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.│如果你所遊玩的數據包需要使用該數據包作為前置,那麼只需將此數據包也加進數據包資料夾即可。
To Data Pack Creator│給資料包製作者
- This data pack stores the looting enchantment level of the item held in the mob's main hand to the scoreboard target
looting_level. If the mob's main hand does not hold an item with the Looting enchantment, it will store 0.│此資料包會將生物主手持有的裝備的搶奪附魔等級儲存到記分板目標looting_level,如果主手不持有帶有搶奪附魔的裝備,那麼儲存為0。 - This data pack stores the Fortune enchantment level of the item held in the mob's main hand to the scoreboard object
fortune_level. If the mob's main hand does not hold any item with the Fortune enchantment, it will store 0.│此資料包會將生物主手持有的裝備的時運附魔等級儲存到記分板目標fortune_level,如果主手不持有帶有時運附魔的裝備,那麼儲存為0。
Usage Examples│使用範例
{
"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"
}
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.│上方是我的一個資料包的內容,在定義這個戰利品表的第二個抽獎池的抽獎次數時,將其設定為最小值為0,而最大值為攻擊者記分板looting_level的分數,透過這樣的方式就能將抽獎次數的最大值設為擊殺者持有的武器的搶奪附魔等級。
No gallery available for this project.
| Version | Minecraft | Loader | Download |
|---|---|---|---|
|
records_the_level_of_enchantments_1.0.3+1.21.9 1.0.3+1.21.9+mod |
1.21.10, 1.21.11, 1.21.9
|
fabric, forge, neoforge, quilt
|
Download |
|
records_the_level_of_enchantments_1.0.3+1.21.9 1.0.3+1.21.9 |
1.21.10, 1.21.11, 1.21.9
|
datapack
|
Download |
|
records_the_level_of_enchantments_1.0.2+1.21.9 1.0.2+1.21.9+mod |
1.21.10, 1.21.11, 1.21.9
|
fabric, forge, neoforge, quilt
|
Download |
|
records_the_level_of_enchantments_1.0.2+1.21.9 1.0.2+1.21.9 |
1.21.10, 1.21.11, 1.21.9
|
datapack
|
Download |
|
records_the_level_of_enchantments_1.0.1+1.21.7 1.0.1+1.21.7 |
1.21.7, 1.21.8
|
datapack
|
Download |
|
records_the_level_of_enchantments_1.0.1+1.21.5 1.0.1+1.21.5+mod |
1.21.5, 1.21.6, 1.21.7
|
fabric, forge, neoforge, quilt
|
Download |
|
records_the_level_of_enchantments_1.0.1+1.21.5 1.0.1+1.21.5 |
1.21.5, 1.21.6, 1.21.7
|
datapack
|
Download |
|
records_the_level_of_enchantments_1.0.0+1.21.5 1.0.0+1.21.5+mod |
1.21.5, 1.21.6, 1.21.7
|
fabric, forge, neoforge, quilt
|
Download |
|
records_the_level_of_enchantments_1.0.0+1.21.5 1.0.0+1.21.5 |
1.21.5, 1.21.6, 1.21.7
|
datapack
|
Download |