Compatibility
Minecraft: Java Edition
1.21.5–1.21.7
Platforms
Creators
Details
Licensed MIT
Published 3 months ago
Updated 3 months ago
To Users│給使用者
f the data pack you are playing requires this data pack as a prerequisite, just add this data pack to the data pack folder.│I如果你所遊玩的資料包需要使用該數據包作為前置,那麼只需將此數據包也加進數據包資料夾即可。
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.│如果你要卸載使用此資料包作為前置的資料包,請在移除該資料包檔案之後輸入此指令:/data remove storage minecraft:ender_dragon_loot loot_table_list,隨後使用/reload重新加載。
To Data Pack Creator│給資料包製作者
Generate loot│產生戰利品
- Create a function│創建一個函數
- Add the following two instructions to the function. Replace <loot table namespace ID> with the loot table you want the ender dragon to drop from.│在該函數中加入下方兩條指令,請將<戰利品表命名空間ID>替換為你要讓末影龍掉落的戰利品表。
data remove storage minecraft:ender_dragon_loot loot_table_list[{id:"<loot table namespace ID>"}]
data modify storage minecraft:ender_dragon_loot loot_table_list append value {id:"<loot table namespace ID>"}
- Add this function to the function tag
#minecraft:load│將這個函數加入函數標籤#minecraft:load
Please note: loot will spawn above the block with the largest y value at x=0,z=0.│請注意:戰利品會生成在x=0,z=0中y最大的方塊上方。
Execute Function│執行函數
- Create a function that contains the instructions you want to be executed after the ender dragon dies.│創建一個函數,其中加入你希望在末影龍死亡之後執行的指令。
- Add this function to the function tag
#ender_dragon_loot:rewards│將這個函數加入函數標籤#ender_dragon_loot:rewards
Please note: The command execution position will be set to the square with a white frame in the picture below│請注意:指令執行位置會被設定在下方圖片中有白色框線的那個方塊




