Hello people of Minecraftia. I have a small suggestion. I'm making a vanilla lucky block map and I tried and tried but I couldn't figure out how to use .execute for a sponge block that is on the ground. Thank you for reading, and may Notch be with you!
Hello people of Minecraftia. I have a small suggestion. I'm making a vanilla lucky block map and I tried and tried but I couldn't figure out how to use .execute for a sponge block that is on the ground. Thank you for reading, and may Notch be with you!
-EmeraldMods
/execute's syntax does not allow you to define NBT data to determine what entity to affect. You'll instead have to use the /scoreboard command in order to assign a specific item a score based on NBT data:
/execute's syntax does not allow you to define NBT data to determine what entity to affect. You'll instead have to use the /scoreboard command in order to assign a specific item a score based on NBT data:
I know this thread is very old, but I really wanted to say that it helped me out a lot while making One Command Creations and I will probably use it in my adventure map. Thank you!
Rollback Post to RevisionRollBack
I would make a signature, but I'm not really sure what to say. So I'll just say bye.
The Meaning of Life, the Universe, and Everything.
Join Date:
8/19/2015
Posts:
98
Member Details
/scoreboard players set @e[type=Item] ShrineItem 1 {Item:{id:slime_ball,Count:1,tag:{HideFlags:1,display:{Name:"Slime Crystal",Lore:[A Ball Of Slime That Gives Slimes Power]},ench:[{id:2,lvl:5}]}}}
You have unbalanced brackets. try this. {Item:{id:slime_ball},Count:1,tag:{HideFlags:1,display:{Name:"Slime Crystal",Lore:[A Ball Of Slime That Gives Slimes Power]},ench:[{id:2,lvl:5]}}}
/scoreboard players set @e[type=Item] ShrineItem 1 {Item:{id:slime_ball,Count:1,tag:{HideFlags:1,display:{Name:"Slime Crystal",Lore:[A Ball Of Slime That Gives Slimes Power]},ench:[{id:2,lvl:5}]}}}
-EmeraldMods
You want these emeralds? Too bad! These are MY emeralds!
I don't care if you have a egg or dragon in your signature. I'm not gonna click it.
/execute's syntax does not allow you to define NBT data to determine what entity to affect. You'll instead have to use the /scoreboard command in order to assign a specific item a score based on NBT data:
And then target based on score:
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
Thank you sooo much!!!! You saved my hard worked map!!
You want these emeralds? Too bad! These are MY emeralds!
I don't care if you have a egg or dragon in your signature. I'm not gonna click it.
I know this thread is very old, but I really wanted to say that it helped me out a lot while making One Command Creations and I will probably use it in my adventure map. Thank you!
I would make a signature, but I'm not really sure what to say. So I'll just say bye.
BYE!
/scoreboard players set @e[type=Item] ShrineItem 1 {Item:{id:slime_ball,Count:1,tag:{HideFlags:1,display:{Name:"Slime Crystal",Lore:[A Ball Of Slime That Gives Slimes Power]},ench:[{id:2,lvl:5}]}}}
It doesnt work
You have unbalanced brackets. try this. {Item:{id:slime_ball},Count:1,tag:{HideFlags:1,display:{Name:"Slime Crystal",Lore:[A Ball Of Slime That Gives Slimes Power]},ench:[{id:2,lvl:5]}}}