Started by
D3Ezz
on
Topic category: Advanced modding
I want to make an enchantment that when a player kills an animal, you will gain 3 hunger points! If it is possible, can someone give me the procedures?
Topic category: Advanced modding
I want to make an enchantment that when a player kills an animal, you will gain 3 hunger points! If it is possible, can someone give me the procedures?
I'm pretty sure that using the global procedure "entity dies" allows you to use the "source entity" as a component, with that, use the if block to detect if the item in main-hand of the source-entity is enchanted with your custom enchantment. Then use the Set Food Level procedure to set the player food to 3 hunger points + what he already haves using the math block.
Hold up....set the food level of source entity...not target entity.