i need help with finding a command

Onaylı Üye
Katılım
24 Şub 2023
Mesajlar
59
Tepki puanı
7
Ödüller
3
Yaş
23
3 HİZMET YILI
I need to execute a command at an armor stand that's has a special helmet
With a special trim or a special name I don't care I just need a command that does that.
`execute as @e[type=armor_stand,nbt={ArmorItems:[{},{},{},{components:{"mineraft:trim":{material:"minecraft:copper",pattern:"minecraft:silence"},count: 1}}]}] run tellraw @a "asda"`
Something like this but it works.
 
Onaylı Üye
Katılım
24 Şub 2023
Mesajlar
59
Tepki puanı
7
Ödüller
3
Yaş
23
3 HİZMET YILI
It seems like you're trying to execute a command at an armor stand with a specific helmet, possibly one with a special trim or name. The issue with your current command is likely due to the incorrect syntax and formatting of the NBT data.
Here's a corrected version of the command that should work for your needs:
plaintext
Copy code
execute as @e[type=armor_stand,nbt={ArmorItems:[{},{},{id:"minecraft:copper_helmet",tag:{display:{Name:'{"text":"Special Helmet","italic":false}'},components:{mineraft:trim:{material:"minecraft:copper",pattern:"minecraft:silence"}}}}]}] run tellraw @a "Your message here"
In this command:
  • type=armor_stand specifies that we're targeting armor stands.
  • nbt={ArmorItems:[{},{},{id:"minecraft:copper_helmet",tag:{display:{Name:'{"text":"Special Helmet","italic":false}'},components:{mineraft:trim:{material:"minecraft:copper",pattern:"minecraft:silence"}}}}]} specifies the NBT data of the armor stand we're looking for. It checks if the helmet slot (third slot in the ArmorItems list) contains a copper helmet with the specified name and trim.
  • execute as @e[...] runs the command as the matching armor stand.
  • run tellraw @a "Your message here" is the command that will be executed when the armor stand is found, replacing "Your message here" with the message you want to display.
Make sure to replace "Your message here" with the actual message you want to display. Additionally, adjust the helmet's name and trim to match your specific requirements.
why use ChatGPT 😭😭 i tried with ChatGPT, fucking useless
 
Onaylı Üye
Katılım
24 Nis 2024
Mesajlar
74
Tepki puanı
2
2 HİZMET YILI
Use Google Chatbot (Gemini)!
You'll find the answer
 
Üye
Katılım
22 Ocak 2020
Mesajlar
48
Tepki puanı
3
Ödüller
5
Yaş
30
6 HİZMET YILI
execute as @e[type=armor_stand,nbt={ArmorItems:[{},{},{id:"minecraft:copper_helmet",tag:{CustomModelData:<your_custom_model_data>}},{},{}]}] run <your_command>

Replace <your_custom_model_data> with the custom model data of your special helmet. Replace <your_command> with the command you want to execute.

For example, if your custom model data is 123, and you want to execute the command /say Hello at the armor stand, the command would look like this:
execute as @e[type=armor_stand,nbt={ArmorItems:[{},{},{id:"minecraft:copper_helmet",tag:{CustomModelData:123}},{},{}]}] run say Hello

This command will execute the command /say Hello at any armor stand with a copper helmet with custom model data of 123. Adjust the command according to your specific needs.
 
Uzman Üye
Katılım
27 Eki 2021
Mesajlar
196
Tepki puanı
7
Ödüller
3
Yaş
25
4 HİZMET YILI
i wanna play minecraft , but mojang is problem , i cant install , can u help
 
Üst