entity trade like piglins

Started by softmushroombaby on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
entity trade like piglins

https://imgur.com/a/fvw7BBV

I want to make it so when I right-click a mob, they look at an item, and 5 seconds later, throw back a random item! (kind of like piglin trades!) But the "wait 100 ticks" procedure doesn't allow any randomizers because of a local variable. how do I work around this?

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could (and should) just…
Thu, 04/10/2025 - 11:05

You could (and should) just use a loot table

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
and you should use  instead…
Thu, 04/10/2025 - 11:06

and you should use 

instead of remove item from inventory