How to make the item receive enchantment by killing an entity

Started by Wotan on

Topic category: Advanced modding

Active 2 years ago
Joined Sep 2017
Points:
703

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 0
How to make the item receive enchantment by killing an entity

In Mcreator 2020.5

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

Active 3 years ago
Joined Oct 2019
Points:
664

User statistics:

  • Modifications: 1
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 13
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.