我爱读小说网

字: 大 中 小
关灯 护眼
我爱读小说网 > Minecraft指令手册 > 第八十九章 战利品表(战利品表 下)(/loot 下) (11 / 27)

第八十九章 战利品表(战利品表 下)(/loot 下) (11 / 27)

        {“pools“:[{“rolls“:10,“entries“:[{“type“:“item“,“name“:“iron_ingot“,“fun“:[{“fun“:“set_t“,“t“:{“min“:,“max“:}}]}]}]}

        然后让我们看一下题目,毕竟审题更重要[滑稽]:

        怎么实现一次十连抽,并且奖品有:铁锭,随机0~10个;钻石,随机0~2个;煤炭,随机0~30个?

        随机0~10,也就是最小值0,最大值10。填入:

        {“pools“:[{“rolls“:10,“entries“:[{“type“:“item“,“name“:“iron_ingot“,“fun“:[{“fun“:“set_t“,“t“:{“min“:0,“max“:10}}]}]}]}

        OK,铁锭完事。

        接下来,就是钻石和煤炭了。

        照着铁锭的模版做:

        {“pools“:[{“rolls“:10,“entries“:[{“type“:“item“,“name“:“iron_ingot“,“fun“:[{“fun“:“set_t“,“t“:{“min“:0,“max“:10}}]},{“type“:“item“,“name“:“diamond“,“fun“:[{“fun“:“set_t“,“t“:{“min“:0,“max“:2}}]},{“type“:“item“,“name“:“coal“,“fun“:[{“fun“:“set_t“,“t“:{“min“:0,“max“:2}}]}]}]}

        作者不禁感叹:这串代码真长。

  The content is not finished, continue reading on the next page