
Records the Level of Enchantments│記錄附魔的等級
The Fortune and Looting enchantment levels of the equipment held by the mob are recorded as scoreboard scores to facilitate the definition of loot tables.│生物所持有的裝備的時運和搶奪附魔等級被記錄為記分板分數,以方便定義戰利品表。
給使用者
如果你所遊玩的資料包需要使用該資料包作為前置,那麼只需將此數據包也加進數據包資料夾即可。
給資料包製作者
- 此資料包會將生物主手持有的裝備的掠奪附魔等級儲存到記分板目標
looting_level,如果主手不持有帶有掠奪附魔的裝備,那麼儲存為0。 - 此資料包會將生物主手持有的裝備的幸運附魔等級儲存到記分板目標
fortune_level,如果主手不持有帶有幸运附魔的裝備,那麼儲存為0。
使用範例
{
"type": "minecraft:entity",
"pools": [
{
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:tag",
"expand":true,
"name": "minecraft:bee_loot"
}
],
"rolls": {
"type":"minecraft:uniform",
"min":0,
"max":2
}
},
{
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:tag",
"expand":true,
"name": "minecraft:bee_loot"
}
],
"rolls": {
"type":"minecraft:uniform",
"min":0,
"max":{
"type":"score",
"target":"attacker",
"score":"looting_level"
}
}
}
],
"random_sequence": "minecraft:entities/bee"
}
上方是我的一個資料包的內容,在定義這個戰利品表的第二個抽獎池的抽獎次數時,將其設定為最小值為0,而最大值為攻擊者記分板looting_level的分數,透過這樣的方式就能將抽獎次數的最大值設為擊殺者持有的武器的掠奪附魔等級。
正在加载版本记录…
正在加载评论…
评论在新手盒子客户端中发表,这里同步展示。