Compatibility
Minecraft: Java Edition
1.21.5–1.21.7
Platforms
Creators
Details
Licensed MIT
Published 2 months ago
Updated 2 months ago
給使用者│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
產生戰利品│Generate loot
- 創建一個函數│Create a function
- 在該函數中加入下方兩條指令,請將<戰利品表命名空間ID>替換為你要讓末影龍掉落的戰利品表。│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.
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>"}
- 將這個函數加入函數標籤
#minecraft:load│Add this function to the function tag#minecraft:load
請注意:戰利品會生成在x=0,z=0中y最大的方塊上方。│Please note: loot will spawn above the block with the largest y value at x=0,z=0.
執行函數│Execute Function
- 創建一個函數,其中加入你希望在末影龍死亡之後執行的指令。│Create a function that contains the instructions you want to be executed after the ender dragon dies.
- 將這個函數加入函數標籤
#ender_dragon_loot:rewards│Add this function to the function tag#ender_dragon_loot:rewards
請注意:指令執行位置會被設定在下方圖片中有白色框線的那個方塊│Please note: The command execution position will be set to the square with a white frame in the picture below




