当前位置:竞技屋>客户端游戏>

设置自定义方块掉落的说明与样例代码

竞技屋 人气:9.24K

设置自定义方块掉落的说明与样例代码

This is an example of a loot table. It's the "bonus chest" right now, one of the simpler examples.

Functions would be a list of stuff to apply, like: "set enchants", "set damage", "set nbt", "set data", etc.

("weight" is "chance of getting this vs something else")

晚餐骨:这里是一个物品列表的例子。这个现在是一个奖励箱的普通例子。

调用的方式就像是一个列表,比如“设置附魔”,“设置损害值”,“设置nbt”,“设置元数据”诸如此类的东西。

权重是指与其他物品相比有机会获得此项的概率。

代码网址: