how to make an enchantment that increases item pick up distance?

Started by offscuff on

Topic category: Feature requests and ideas for MCreator

Last seen on 12:42, 5. Jun 2022
Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to make an enchantment that increases item pick up distance?

I'm trying to make an enchantment that pulls items in from further away the higher the level, but I don't know how to do it.

This is my first mod so I'm not too familiar with mcreator

Last seen on 10:30, 18. Mar 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
To draw items to you, you…
Thu, 06/16/2022 - 02:16

To draw items to you, you need to calculate the XYZ position of the living entity and subtract it by the XYZ of the item entity then times that by a number less than 0.4, then add that to the velocity of the item entity per tick. I can't remember if Mcreator comes with the procedure blocks required to do this effectively. But I have done it. It could be the other way around also, I haven't got access to my computer at this time. I will be releasing a plugin in the future that has all this as procedure blocks ready to go. Untill then you will have to muck around with what's provided. I'll update you here with more specific info in the future