kingsoul
This commit is contained in:
parent
bc924d9f58
commit
29dac0c00f
@ -14,18 +14,12 @@ public class kingsoul extends Item {
|
||||
super(settings);
|
||||
|
||||
}
|
||||
Boolean kingSoulActive = false;
|
||||
|
||||
@Override
|
||||
public TypedActionResult<ItemStack> use(World world, PlayerEntity PlayerEntity, Hand hand) {
|
||||
|
||||
PlayerEntity.getHungerManager().add(1, 1);
|
||||
|
||||
if (kingSoulActive == true) {
|
||||
kingSoulActive = false;
|
||||
} else if (kingSoulActive == false) {
|
||||
kingSoulActive = true;
|
||||
}
|
||||
|
||||
return new TypedActionResult<ItemStack>(ActionResult.SUCCESS, PlayerEntity.getStackInHand(hand));
|
||||
|
||||
}
|
||||
|
@ -5,5 +5,6 @@
|
||||
"effect.shitmod.exp": "Experience",
|
||||
"effect.shitmod.lean": "Lean",
|
||||
"item.shitmod.lean": "Lean",
|
||||
"item.shitmod.orange_juice": "Orange Juice"
|
||||
"item.shitmod.orange_juice": "Orange Juice",
|
||||
"item.shitmod.kingsoul_charm": "Kingsoul Charm"
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 51 KiB |
Loading…
x
Reference in New Issue
Block a user