[p]I'm trying to do specific item hold stuff, but i don't know how to use the objective. can you help me with this command?[/p]
[p]/scoreboard players set @p OBJECTIVE 1 {SelectedItemSlot:0,Inventory:[{id:minecraft:redstone_block,Slot:0b}]}[/p]
then[/p]
/execute @p[score_OBJECTIVE_min=1,score_OBJECTIVE=1] ~ ~ ~ fill X1 Y1 Z1 X2 Y2 Z2 <Block ID> [Damage] [Replacement Method] {dataTags}[/p]
this both is for specific item to hold to give special effects to the holder using NBT tags and stuff. I need help with these. PLs help, i am a n00b at scoreboards. That's the reason i made this account.[/p]
[p][/p]
[p]/scoreboard players set @p OBJECTIVE 1 {SelectedItemSlot:0,Inventory:[{id:minecraft:redstone_block,Slot:0b}]}[/p]
[p][/p]
0
[p] [/p] [p]/scoreboard players set @p OBJECTIVE 1 {SelectedItemSlot:0,Inventory:[{id:minecraft:redstone_block,Slot:0b}]}[/p] [p] [/p]
0
How to use objective, i want a like a sword to make a region thing or a one shot but gives you some wither as an effect for as long as you hold it.