Enchantment Help

Started by D3Ezz on

Topic category: Advanced modding

Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Enchantment Help

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?

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm pretty sure that using…
Sat, 12/30/2023 - 00:35

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.

Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hold up....set the food…
Sun, 01/07/2024 - 22:31

Hold up....set the food level of source entity...not target entity.