給使用者 To Users
如果你所遊玩的數據包需要使用該數據包作為前置,那麼只需將此數據包也加進數據包資料夾即可。 If the data pack you are playing requires this data pack as a prerequisite, just add this data pack to the data pack folder.
如果你要卸載使用此數據包作為前置的數據包,請在移除該數據包檔案之後輸入此指令:/data remove storage minecraft:ender_dragon_loot loot_table_list
,隨後使用/reload
重新加載。 If you are uninstalling a data pack that uses this data pack as a prerequisite, enter this command after removing the data pack archive: /data remove storage minecraft:ender_dragon_loot loot_table_list
and then reload it with /reload
.
給數據包製作者 To Data Pack Creator
- 此數據包會將生物主手持有的裝備的搶奪附魔等級儲存到記分板目標
looting_level
,如果主手不持有帶有搶奪附魔的裝備,那麼儲存為0。 This data pack stores the looting enchantment level of the item held in the mob's main hand to the scoreboard targetlooting_level
. If the mob's main hand does not hold an item with the Looting enchantment, it will store 0. - 此數據包會將生物主手持有的裝備的時運附魔等級儲存到記分板目標
fortune_level
,如果主手不持有帶有時運附魔的裝備,那麼儲存為0。 This data pack stores the Fortune enchantment level of the item held in the mob's main hand to the scoreboard objectfortune_level
. If the mob's main hand does not hold any item with the Fortune enchantment, it will store 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
的分數,透過這樣的方式就能將抽獎次數的最大值設為擊殺者持有的武器的搶奪附魔等級。 The above is the content of one of my data pack. When defining the number of draws for the second draw pool of this loot table, I set it to a min value of 0 and a max value of the attacker's scoreboard looting_level
. In this way, the max number of draws can be set to the looting enchantment level of the weapon held by the killer.