Hello team
Ok, so im working on doing a little C4 skript, where players can place c4 and detonate it remotely.
I have that part all worked out perfectly, now i want to make it so rather than a general explosion, it will throw the blocks up and out a bit.
I came across this code
Problem is, i can't pop that into my skript, because my explosion is caused by clicking on a book (the remote trigger) and it tells me this error
"Boom Boomed Blocks can only be used in an explode event. (arrow.sk, line 66: loop exploded blocks:')"
When i write it like this: (in game i put a c4 on the ground)
it SORT OF works, except when i detonate the c4 sitting on the ground, the ground kind of just jumps up about half a block, nothing moves, and it looks like nothing happened. I would like to see the blocks jump up a bit (maybe no more than 15 blocks high) and outwards at a decent radius (not toooo far, but a nice blast radius)
Help me if you can
Ok, so im working on doing a little C4 skript, where players can place c4 and detonate it remotely.
I have that part all worked out perfectly, now i want to make it so rather than a general explosion, it will throw the blocks up and out a bit.
I came across this code
code_language.skript:
on explosion:
cancel event
create a fake explosion at event-location
loop exploded blocks:
spawn falling block of loop-block at loop-block
set loop-block to air
push last spawned entity direction from event-location to last spawned entity with force 2
Problem is, i can't pop that into my skript, because my explosion is caused by clicking on a book (the remote trigger) and it tells me this error
"Boom Boomed Blocks can only be used in an explode event. (arrow.sk, line 66: loop exploded blocks:')"
When i write it like this: (in game i put a c4 on the ground)
code_language.skript:
on right-click holding a book:
if name of player's tool contains "&9Detonator":
if {explode.%player%.1} is set:
wait 2 seconds
create a fake explosion at {explode.%player%.1}
loop blocks in radius 5 around {explode.%player%.1}:
spawn falling block of loop-block at loop-block
set loop-block to air
push last spawned entity direction from event-location to last spawned entity with force 1
it SORT OF works, except when i detonate the c4 sitting on the ground, the ground kind of just jumps up about half a block, nothing moves, and it looks like nothing happened. I would like to see the blocks jump up a bit (maybe no more than 15 blocks high) and outwards at a decent radius (not toooo far, but a nice blast radius)
Help me if you can