- check_circle Functions
- 1,738 views, 2 today
- 54 downloads, 0 today
0
日本語
私が初めて作ったデータパックです。
難しいコマンドは書けなかったので、アイテムを一つだけ追加するデータパックとなっております。
これからは難しいコマンドも書けるように頑張っていきたいと思います!コマンドが作動しなかったり、バグを発見したら、優しく教えてくれると助かります!
English
This is the first data pack I made.
I didn't seem to be able to write a difficult command, so it's a data pack that adds one item.
Throwing one newly added item will instantly equip Netherite gear, as simple as that.
If you find any bugs, please kindly let me know.
私が初めて作ったデータパックです。
難しいコマンドは書けなかったので、アイテムを一つだけ追加するデータパックとなっております。
これからは難しいコマンドも書けるように頑張っていきたいと思います!コマンドが作動しなかったり、バグを発見したら、優しく教えてくれると助かります!
English
This is the first data pack I made.
I didn't seem to be able to write a difficult command, so it's a data pack that adds one item.
Throwing one newly added item will instantly equip Netherite gear, as simple as that.
If you find any bugs, please kindly let me know.
Compatibility | Minecraft 1.16 |
Tags |
1 Update Logs
Update v1.0.1 : by BackedDrop 02/27/2023 6:27:20 amFeb 27th, 2023
Fixed an error in the content of the "main.mcfunction" file in the data pack.
tools/tracking
5851298
119
set-armor-datapack
Create an account or sign in to comment.
line 4: armor.feat→armor.feet
line 5: [type=item.name=set_armor]→[type=item,name=set_armor]
If you change this, the function will load. For me though, it still didn't seem to work (on Minecraft 1.16.5). I changed the main.mcfunction to this to make it work:
execute at @e[type=item,nbt={Item:{tag:{display:{Name:'"set_armor"'}}}}] run replaceitem entity @p armor.head netherite_helmet
execute at @e[type=item,nbt={Item:{tag:{display:{Name:'"set_armor"'}}}}] run replaceitem entity @p armor.chest netherite_chestplate
execute at @e[type=item,nbt={Item:{tag:{display:{Name:'"set_armor"'}}}}] run replaceitem entity @p armor.legs netherite_leggings
execute at @e[type=item,nbt={Item:{tag:{display:{Name:'"set_armor"'}}}}] run replaceitem entity @p armor.feet netherite_boots
kill @e[type=item,nbt={Item:{tag:{display:{Name:'"set_armor"'}}}}]
give @p brick{display:{Name:"\"set_armor\""}}
I hope this helps you. 頑張って下さい!
Just to let you know, you cannot put spaces (空白) in Minecraft function names. The namespace in you pack is "set armor" right now, so the function does not load. If you replace the space with an underscore, so changing the name to "set_armor", it will work.
It's no inconvenience for me, I'm happy to help. Good luck!