#Cannot add NBT to thrown fireball

1 messages · Page 1 of 1 (latest)

hot elm
#

Problem: add nbt from "[the nbt]" to nbt of [entity, item, block, etc.] does not work somehow

The code:

on right click holding a fire charge:
    cancel event
    remove 1 fire charge from player
    make player shoot a fireball at speed 1.6
    set {_f} to last shot fireball
    add nbt from "{ExplosionPower:5b}" to nbt of {_f}

I am trying to make the player shoot a fireball with an explosion power of greater than 1 (I chose 5 so that it's obvious)
Also not sure if the syntax is wrong. The program does not throw a single error.
This does not work. Please help!

lavish surge
#

cuz ur adding the nbt to the variable not the fireball

hot elm
lavish surge
#

im not sure if u can use that