How to create a item that functions like a lead?

Started by DDeli on Sun, 04/04/2021 - 20:15

Topic category: Help with modding (Java Edition)

Last seen on 18:39, 30. Sep 2021
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to create a item that functions like a lead?
Tue, 04/06/2021 - 23:04 (edited)

Hello, I wanted to make a custom item that functions like a regular lead. However I am unsure on how to create this kind of procedure, How could I do this? Thanks!

Edited by DDeli on Tue, 04/06/2021 - 23:04
Last seen on 18:39, 30. Sep 2021
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I'm still waiting for a…
Tue, 04/06/2021 - 04:07

I'm still waiting for a response, Thanks!

Last seen on 20:02, 20. May 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I don't think this is really…
Tue, 04/06/2021 - 05:33

I don't think this is really possible in MCreator, but you could maybe do it that the item is ranged (though with short range). Then, on the trigger "when bullet hits living entity", you affect the entity with custom potion effect, which you create before and on the potion's trigger "on potion active tick" you make a procedure, where it checks for an entity with your "lead" item in hand and teleports to them.