ItemsExchange: ItemExchange rewrite
-
An exchange is defined by having one (and only one) exchange item in a chest -
When an exchange item is in a chest, the chest can be opened by anyone -
However, you can't remove items all willy-nilly -
Instead there's a fixed cost per-slot, and when you click a given slot it gets replaced with the number of payment items
So as an example, say you have a shop that sells 16 bookshelves for 2 diamonds. Each slot in the shop chest would have 16 bookshelves, and in the center or off in the corner or something would be the exchange item, which explains it costs 2 diamonds. If you click a bookshelf item, it removes 2 diamonds from your inventory and puts those 2 diamonds where the bookshelf was.
Basically it's youtuber SMP shops, but without requiring trust.
-
Recipe to create an exchange item from existing items -
Right clicking on an exchange item opens a chest GUI to edit its attributes
Attributes
-
Item Type -
glimmer:custom_item_id PDC tag -
Enchantments -
minecraft:custom_display_name -
Is wordbank-renamed -
Treasure map relic PDC tag