Compatibility
Minecraft: Java Edition
Platforms
Creators
Details
Might be for a custom bedwars map. Note: example block shop give incomplete. However, selling will be possible later.
I will (maybe) upload a bedwars map once this is complete, this is the best shop type I have come up with.
Notes:
+Compatible with any storage block that actually is a storage block (ender chests don't count)
-Not currently survival-friendly (only barely!)
+Prices decided by the item. Example give is give @p dirt[​minecraft:custom_data={shop:{bought:false},iron_price:2,gold_price:1,resultitem:{id:"glass_block",count:7,components:{"minecraft:custom_data":{}}]
Shop Item Setup
New easy(ish) setup! Use /function shop:create_new_setup_menu to create it. Put an item in the left empty slot to set what the new item will appear as. Rightmost slot is what they actually get once they buy it. The arrow buttons change the price. When you are happy, click the glass pane above the center empty slot to create the new shop item. Then, shift-click it into your inventory. Then you have your item!
This was because of some problems with armor stands: You can't put more than one item in a slot without commands. This makes it more functional.
For survival (which now it technically works):
Craft it with a composter, a barrel, 3 wooden stairs, and four sticks. Sticks in corners, barrel in middle, composter on top, stairs on other sides.
Usage (for the people already using it):
Give yourself the items.
Place a storage block where you want the shop block to be.
Place another 5 blocks below (4 between).
Fill this one on the bottom by shift-clicking in all the items you gave yourself in step 1.
Place any of the items in the top block, leave the block, and reenter. Then, click the item. Then, the shop will be fully set up.
If you come across any bugs such as filler items dropping on the ground, please put it on the bug tracker so that I can patch it.
TODO: | \ Fix filler items being placeable \ Make more survival-friendly \ Make it possible to use any item as currency and with more than 99 of that item. Also make it so that it can be split between multiple inv. slots.
If there are any features you want me to add, leave a comment. I will be likely to add it.
Originally posted on Planet Minecraft as Barrel Shops (for bedwars).