我爱读小说网

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

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

        那么就填75啦!

        然后25%的那个weight就填25。

        这样子,就完美的实现了题目的要求。

        {“pools“:[{“rolls“:10,“entries“:[{“type“:“item“,“name“:“iron_ingot“,“fun“:[{“fun“:“set_t“,“t“:{“min“:0,“max“:10}}]},{“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}}]}]}]}

        但是谁说weight一定要用百分比来算了?

        实际上,weight是这样算的:

        选择概率=这个战利品的值/所有考虑的战利品的总和值

        这是一个分数啊!

        当然,为了方便这并没有什么错的。

        但是,这个没有墙壁的房子,有个天花板。你打算走出这个房子,但是你忽然发现——天花板是沙子做成的。

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