Forcing Player to Use Item.

Started by B0nesRC0οI on

Topic category: Help with modding (Java Edition)

Last seen on 04:19, 3. Jul 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Forcing Player to Use Item.

I need a way to simulate a right click event to have the player use a spawn egg. the problem is, the "Simulate Right Click of [entity] on Block at x: y: z:" block does not do what I need it to, and instead is only useful for making the player open a chest or whatever. If anyone knows a way to make what I need to happen, or some other work around (such as some way to summon the mob by looking at what the spawn egg is) It would be very much helpful.

Last seen on 04:19, 3. Jul 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Should say that this is…
Mon, 07/01/2024 - 20:12

Should say that this is meant to be used not only with vanilla mobs, but also with modded mobs as well so using any variation of a look up table won't work as it must be dynamic enough to work with any mob egg