Started by
verifiedwaffles
on
Topic category: Help with Minecraft modding (Java Edition)
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.
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.
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.
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.