#Problem with onProjectileHit

1 messages ยท Page 1 of 1 (latest)

dawn terrace
#

Both consoles got exectued?

eternal plume
dawn terrace
eternal plume
#

i'll try to do that tho

eternal plume
oblique marsh
#

Humm

#

Try using Dimension.runCommand()

#

Just for testing

eternal plume
#

So hitEntity.Dimension.runCommand?

#

Or just Dimension.runCommand?

oblique marsh
eternal plume
#

ok

eternal plume
#

[Scripting][error]-ReferenceError: 'dimension' is not defined at <anonymous> (onProjectileHit.js:9)

eternal plume
oblique marsh
#

entity.dimension.runCommand....

eternal plume
#

just reverted it to hitEntity.dimension.runCommand again

#

It still works the same

#

the command doesn't run

#

Ok

eternal plume
#

'entity' is not defined

oblique marsh
eternal plume
#

Just changed my code again lol

#

It now works but it replaces the air blocks for some reason