Make pig spawn on rightclick?

Started by Classic_Mushroom on Sat, 02/27/2021 - 01:10

Topic category: Help with modding (Java Edition)

Last seen on 23:58, 21. Mar 2022
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Make pig spawn on rightclick?
Sat, 02/27/2021 - 01:10

I don't want to reveal much about my mod, only that I need to have that when I right-click with my item in hand it spawns a pig. The code I did for this to happen is that if a player right-clicks with this item in hand, it would enter out the command /summon minecraft:pig in the name of Event/Target Entity (I didn't add anything for the Event/Target Entity). Any help, I just started an hour ago.

Last seen on 07:08, 12. Mar 2021
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You realize there is a spawn…
Sat, 02/27/2021 - 01:23

You realize there is a spawn command in mcreator, here are some screenshots.

 

https://imgur.com/a/6tfJ9WT