Help with Entity Selling Stolen Player Items

Started by verifiedwaffles on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with Entity Selling Stolen Player Items

I'm designing an entity that chases down the player and steals items from a random inventory slot, and then allows them to be purchased back by the player (basically similar to villager/wandering trader trade system). I've managed to figure out the item stealing aspect, however, I have no idea on how to have the entity list these items to trade.

 

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You are going to have to…
Thu, 04/24/2025 - 13:14

You are going to have to make a GUI and bind it to this entity. It will be quite hard, but using procedures, you can make a trading system.

Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yeah I've already got a GUI…
Thu, 04/24/2025 - 13:55

Yeah I've already got a GUI and can do the basics of the trading system, just don't know how to trade specifically whichever item is in the entities inventory.

Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can you share how you made…
Thu, 04/24/2025 - 15:49

Can you share how you made your trading system? I think it might be something simple like using a random process to select a slot from it as the inventory if it contains an item, but I can't quite tell without knowning, I haven't done trading systems myself.