So with this new 1.13 update in command blocks, ive been having trouble with the nbts, specifically with arrows. What I am trying to create (which worked in 1.12) is a special arrow that summons other arrows as it flies. In 1.12, i was able to do so by giving myself this arrow:
and using a repeater block to tag ONLY THAT ARROW as it flew. But, within 1.13, I cant seem to do that. I can't seem to get only certain arrows to spawn other ones, and other arrows to be normal.
In 1.12, I have it set to where if it detects the arrow with {CustomPotionEffects::[{Id:6b,Duration:0,Amplifier:0b}]}, it will summon arrows 20 blocks above that arrow until it lands. I cant have it detect normal arrows for 2 reason:
1. I plan on creating other cool arrows
2. If i set that command up for normal arrows, it would spawn more arrows on top of the summoned arrows for all eternity
I've been at this for close to a week now, so any help would be greatly appreciated!
/give @p minecraft:tipped_arrow{CustomPotionEffects:[{Id:6b,Amplifier:0b,Duration:0}]}
Prior to 1.13 → /give @p [amount] [nbt]
since 1.13 → /give @p [nbt] [amount]
Also, you missed the suffix for Amplifier. Not always, but sometimes it will cause issue when game is trying to match nbts with different/no suffix, and as result, fail.
/tag @e[type=arrow,tag=!magicarrow,nbt={CustomPotionEffects:[{Id:6b,Duration:0,Amplifier:0b}]}] add magicarrow
Prior to 1.13 → /scoreboard players tag @e add foo
since 1.13 → /tag @e add foo
→ id changed
These above are part of the message I send...
So basically, you missed the suffix for Id and Amplifier.
So with this new 1.13 update in command blocks, ive been having trouble with the nbts, specifically with arrows. What I am trying to create (which worked in 1.12) is a special arrow that summons other arrows as it flies. In 1.12, i was able to do so by giving myself this arrow:
/give @p minecraft:tipped_arrow 64 0 {CustomPotionEffects:[{Id:6b,Duration:0,Amplifier:0b}]},
and using a repeater block to tag ONLY THAT ARROW as it flew. But, within 1.13, I cant seem to do that. I can't seem to get only certain arrows to spawn other ones, and other arrows to be normal.
In 1.12, I have it set to where if it detects the arrow with {CustomPotionEffects::[{Id:6b,Duration:0,Amplifier:0b}]}, it will summon arrows 20 blocks above that arrow until it lands. I cant have it detect normal arrows for 2 reason:
1. I plan on creating other cool arrows
2. If i set that command up for normal arrows, it would spawn more arrows on top of the summoned arrows for all eternity
I've been at this for close to a week now, so any help would be greatly appreciated!
Just some command format changes from 1.12 to 1.13.
Since westperson pm me the "same" question, and I respond it after I saw this post...
Unless he/she stated otherwise, this topic can be seen as [Solved].
i am having nearly the same probleme, but with inventory, i am at first giving me an arrow :
/give @s minecraft:tipped_arrow{CustomPotionEffects:[{Id:5,Amplifier:1}]}
Then, when i want to clear this specific arrow with this command :
/clear @s minecraft:tipped_arrow{nbt:{CustomPotionEffects:[{Id:5,Amplifier:1}]}}
Minecraft says me that i don't have that specific item
These above are part of the message I send...
So basically, you missed the suffix for Id and Amplifier.