可能适用于自定义床战地图。注意:示例中的方块商店功能尚不完整,但后续将支持出售功能。
待此资源完成后,我(也许)会上传一个床战地图,这是我目前构思出的最佳类型的商店。
备注:
- 价格由物品决定。示例命令如下:
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":{}}]
商店物品设置
全新简易(ish)设置!使用 /function shop:create_new_setup_menu 来创建它。在左侧空槽位放入一个物品,以设定新物品的显示外观。最右侧的槽位是购买后实际获得的物品。箭头按钮用于调整价格。满意后,点击中心空槽上方的玻璃板以创建新的商店物品。然后,按住 Shift 键将其拖入你的物品栏。这样你就拥有了该物品!
之所以采用这种方式,是因为盔甲架存在一些限制:无法在不使用命令的情况下在一个槽位中放置多个物品。这使得功能更加完善。
对于生存模式(现在技术上已可用):
用堆肥桶、木桶、3 块木质台阶和 4 根木棍合成。木棍放在四角,木桶在中间,堆肥桶在顶部,其他侧边放台阶。
使用方法(针对已使用该资源的用户):
给自己发放所需物品。
在你希望放置商店方块的位置放置一个存储方块。
在其下方再放置 5 个方块(其中 4 个为间隔)。
按住 Shift 键将步骤 1 中发放的所有物品依次填入底部的这个槽位。
在顶部的方块中放入任意物品,离开该区域后再重新进入。然后点击该物品。
此时,商店将完全设置完毕。
如果遇到任何 Bug(例如填充物掉落至地面),请提交至 Bug 追踪器,以便我进行修复。
TODO:
|
\ 修复可放置填充物的问题
\ 提高对生存模式的兼容性
\ 支持使用任意物品作为货币,且数量超过 99 件。同时支持跨多个物品栏槽位分割存放。
如果你有希望我添加的功能,请在评论区留言。我很可能会将其加入。
最初发布于 Planet Minecraft 上的 Barrel Shops (for bedwars)。
点击此处查看我的模组列表(以及我推荐的模组),或直接发布你想让我制作的创意!
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).
Go here for a list of my mods(and mods i reccomend), or just to post your ideas for things for me to make!
评论 0
登录后参与评分
还没有评论,来抢沙发吧