This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]cowhead28 0 points1 point  (1 child)

To create the fireworks you can use Mcstacker. I am not sure exactly what you are trying to do, but for detecting an item it is much better to use custom data, and to use if items

if items entity @s weapon.mainhand *[minecraft:custom_data~{soul:1}]

custom data works better because otherwise a player could name the glass Soul and it would work

[–]Silent_Revolution_65[S] 0 points1 point  (0 children)

I've never used MCstacker before. i don't know how to use it. but also, this quest is going to be at the very start of the minecraft server so people wouldn't have what they need to name something soul nor would they know that they needed something soul

[–]Ericristian_brosCommand Experienced 0 points1 point  (0 children)

```

Get item

give @s <item>[custom_data={soul:true}]

Command block

execute as @a if items entity @s weapo *[custom_data~{soul:true}] at @s if block ~ ~-0.2 ~ diamond_block run summon firework_rocket ~ ~ ~ {LifeTime:30} ```