How to make the item receive enchantment by killing an entity

Started by Wotan on Thu, 01/14/2021 - 18:40

Topic category: Advanced modding

Last seen on 03:22, 7. Feb 2021
Joined Sep 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to make the item receive enchantment by killing an entity
Thu, 01/14/2021 - 18:40

In Mcreator 2020.5

An item in the secondary hand will receive 1 enchantment level for each dead entity. How to do this?

Last seen on 16:00, 22. Feb 2021
Joined Oct 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You could set a procedure…
Fri, 01/29/2021 - 08:47

You could set a procedure that says "if in off-hand and killed number of Mobs > give enchantment 'X' ".

Giving an enchantment is actually a procedure block you can choose in the procedure maker. That should work just fine, you probably have to tinker around with some numbers though.