Animal Trap!

Started by chublilpanda on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Animal Trap!

I'm making a mod with my girlfriend and it's a little on the dark side.

We want to make cans that when right clicked on a mob, will pick them up and turn them into cookable meat.

Anyone able to help us with this?

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Player Right Clicks Entity…
Mon, 09/27/2021 - 21:09

Player Right Clicks Entity Global Trigger

if Source Entity item in main hand = YOUR_TRAP

 do Despawn Event/Target Entity 

spawn gem at X Y Z YOUR_MEAT

and if you want it to be specific for every mob type, 

if Source Entity item in main hand = YOUR_TRAP

AND Event/Target Entity (sub)type YOUR_MOB

 do Despawn Event/Target Entity 

spawn gem at X Y Z YOUR_MEAT_FOR_YOUR_MOB