How to execute a specific item in minecraft

[BACK]
How to execute a specific item in minecraft
Posted On: April 26, 2024

I want to make a command executing a tripwire hook when it is thrown in the ground you summon a lighting bolt but it seems you can't add NBT tags in an execute command so how to specify the item I want.


Question from user Mohannad El-Nesr at gaming.stackexchange.com.


Answer:

you cannot do it using execute only you must use scoreboard as in the following:.


/scoreboard players set @e[type=item] Lightning 1 {Item:{id:"minecraft:tripwire_hook",Damage:0s,Count:1b,tag:{display:{Name:"Lightninger",Lore:[]}}}}.


then .


/execute @e[score_Lightning_min=1] ~ ~ ~ summon Lightning_Bolt.


Answer from user Mohannad El-Nesr at gaming.stackexchange.com.


[BACK]
How to execute a specific item in minecraft
Posted On: April 26, 2024

I want to make a command executing a tripwire hook when it is thrown in the ground you summon a lighting bolt but it seems you can't add NBT tags in an execute command so how to specify the item I want.


Question from user Mohannad El-Nesr at gaming.stackexchange.com.


Answer:

you cannot do it using execute only you must use scoreboard as in the following:.


/scoreboard players set @e[type=item] Lightning 1 {Item:{id:"minecraft:tripwire_hook",Damage:0s,Count:1b,tag:{display:{Name:"Lightninger",Lore:[]}}}}.


then .


/execute @e[score_Lightning_min=1] ~ ~ ~ summon Lightning_Bolt.


Answer from user Mohannad El-Nesr at gaming.stackexchange.com.


[BACK]

I beg your pardon? I beg your pardon?

Posted On: August 30, 2025
She just,,,,teleported back up?? It didn't say she used her special ability, homegirl just changed her mind.Question from user Unique_Interview_193 at BaldursGate3 at reddit.com.Answer:They added thin...[More]


Is it possible to use NBT tags in commands in Minecraft: Bedrock Edition? Is it possible to use NBT tags in commands in Minecraft: Bedrock Edition?

Posted On: January 19, 2023
This question was split into different questions for each workaround. See these two meta posts for more information.Can you use NBT tags in commands? I’ve tried commands that normally work in J...[More]


Can you play the entire game solo? Can you play the entire game solo?

Posted On: May 28, 2024
Just curious. It seems like it would be impossible with some of the fights but I wonder if it can be done. Like you just use tav and leave all your companions at camp every day?Question from user glit...[More]


Why am I dealing so little damage to enemies in ToTK? Why am I dealing so little damage to enemies in ToTK?

Posted On: May 16, 2023
Despite being several hours into the game, almost all the weapons I'm finding are still really weak. As such, I'm barely dealing any damage to the enemies I come across. Enemies on the other h...[More]


In Minecraft, what to do with all these Iron ingots? In Minecraft, what to do with all these Iron ingots?

Posted On: February 15, 2023
So I have about 10 iron ingots, but not sure what to start using them for first. Which is the more important thing to invest my ingots? I know armor swords and tools are important, but what is my prio...[More]


Couldn't play at release,, I can finally commit. Pick my MC! Couldn't play at release,, I can finally commit. Pick my MC!

Posted On: January 9, 2026
Nothing too wild or difficult, I haven't played a crpg in a while. But I did play old school AD&D way back. What should I roll for my first proper playthrough?Question from user Killroyjones at Baldur...[More]


How does a heavy build work? How does a heavy build work?

Posted On: April 10, 2024
The first time I started the game I picked Wretch. I knew nothing about the game. I quickly started collecting the heaviest equipment available, thinking it must be best. I started grinding the Godric...[More]


Hogwarts Legacy Recommendations? Hogwarts Legacy Recommendations?

Posted On: April 23, 2023
I finally got a PS5 and blew through Hogwarts Legacy. Can anyone recommend a similar story based open world game I can play before I go back for my next rerun? Question from user Elise2016 at Hogwa...[More]


Is it possible to sort non-stackable items in minecraft? Is it possible to sort non-stackable items in minecraft?

Posted On: May 23, 2023
Item Sorters are super sweet. But, I have a skeleton farm, and am getting tons of non-stackable drops. Since armor can be smelted into iron/gold, I'd like to smelt those drops in a furnace, and bu...[More]


Will a Star Fragment disappear if I use fast travel in Tears of the Kingdom? Will a Star Fragment disappear if I use fast travel in Tears of the Kingdom?

Posted On: May 29, 2023
I saw a Star Fragment land a fair distance away from me while exploring at night. I was going to run towards it, when I noticed it had landed right next to a tower I could fast travel to. If I fast...[More]