Good evening everybody.
What i cant exactly realize is one thing, that is this.
I tried many ways, read the docs, couldnt figure out how to call out the value from a projectile.
What i want to do is set a value to a projectile that is fireball and afterwards when it hits something, it reads the value and does the specific thing from the value type.
Here is the code:
Cant manage for it to broadcast "works"
What i cant exactly realize is one thing, that is this.
I tried many ways, read the docs, couldnt figure out how to call out the value from a projectile.
What i want to do is set a value to a projectile that is fireball and afterwards when it hits something, it reads the value and does the specific thing from the value type.
Here is the code:
code_language.skript:
on right click holding redstone repeater:
if player has clay ball:
remove 1 clay ball from player
shoot a fireball from player at speed 1
set {_flm} to event-projectile
else:
send "you dont have ammo"
on projectile hit:
if event-projectile is a fireball:
if {_flm} of event-projectile is set:
broadcast "works"
broadcast "Canon"
Cant manage for it to broadcast "works"