• check_circle Functions
  • 1,738 views, 2 today
  • 54 downloads, 0 today
  • 2
  • 1
  • 4
BackedDrop's Avatar BackedDrop
Level 9 : Apprentice Network
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.
CompatibilityMinecraft 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.

Create an account or sign in to comment.

2
02/22/2023 8:17 am
Level 52 : Grandmaster Crafter
Eroxen
Eroxen's Avatar
The 'main' function in your datapack does not load because of two typos:
line 4: armor.featarmor.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. 頑張って下さい!
1
02/27/2023 7:00 am
Level 9 : Apprentice Network
BackedDrop
BackedDrop's Avatar
I have corrected it. Sorry for the inconvenience.
2
02/27/2023 7:33 am
Level 52 : Grandmaster Crafter
Eroxen
Eroxen's Avatar
英語上手😃
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!
2
02/28/2023 6:05 am
Level 9 : Apprentice Network
BackedDrop
BackedDrop's Avatar
fixed. Thank you very much for contacting me. Postscript: I'm not good at English, I'm just using translation :P
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome