This commit is contained in:
Sunskimmer822 2022-03-01 20:39:16 -06:00
parent bc924d9f58
commit 29dac0c00f
3 changed files with 3 additions and 8 deletions

View File

@ -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));
}

View File

@ -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