那么,children这个文件夹肯定就是用来集合战利品的了。
OK,既然搞清楚了,那么,开用!
我们这次将钻石集合在一起,为:
{“pools“:[{“rolls“:10,“entries“:[{“type“:“item“,“name“:“iron_ingot“,“fun“:[{“fun“:“set_t“,“t“:{“min“:0,“max“:10}}]},{“type“:“group“,“children“:[{“type“:“item“,“name“:“diamond“,“weight“:75,“fun“:[{“fun“:“set_t“,“t“:{“min“:0,“max“:0}}]},{“type“:“item“,“name“:“diamond“,“weight“:25,“fun“:[{“fun“:“set_t“,“t“:{“min“:1,“max“:2}]}]}]},{“type“:“item“,“name“:“coal“,“fun“:[{“fun“:“set_t“,“t“:{“min“:0,“max“:2}}]}]}]}
这样子,我们把钻石集合在一个战利品内的children文件夹算,方便多了,就是内容更多了,看得更头昏眼花了。
(忽然担心命令方块能不能存下去)
等等,那岂不是,可以在一个group类的战利品文件夹里面继续group,然后再接着group,那岂不是........
禁止套娃!
——第三段第五节:官方战利品表
实际上,Minecraft也有很多自带的战利品表(不然宝箱里的东西哪里来的)。Mojang是良心的,所以也给了我们使用官方渠道的战利品表的方法。
The content is not finished, continue reading on the next page