我爱读小说网

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

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

        Mojang给了我们一个方法:weight。

        现在,我们把钻石这部分单独扣出来讲。

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

        我们把75%和25%分开成两个:

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

        此时,这两个都会被选择,但是我们必须要改变成只选择一个。

        所以我们就要使用刚才的:weight。

        在这两个战利品文件夹里都创建叫weight的文件:

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

        看到那两个weight文件了没?没看到?好吧,这里的单词确实挺多的。

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