I need help creating a script that when an explosion occurs, it throws the blocks that were in the radius of the explosion, away from it, somewhat like a realistic explosion. I created a bit of code to help people visualize what I need help with, I know it doesn't work. Any help is appreciated.
Info:
Game Version: 1.11.2
Skript: Latest Bensku Version
SkQuery: 1.11 Lime
SkRayFall: Latest
Skellett: Latest
Umbaska: Latest
code_language.skript:
on explosion:
cancel event
create a fake explosion at event-location
loop blocks in radius 4:
set loop-block to air
spawn falling block of loop-block at event-location
push last spawned entity away from event-explosion with force 1
stop trigger
Info:
Game Version: 1.11.2
Skript: Latest Bensku Version
SkQuery: 1.11 Lime
SkRayFall: Latest
Skellett: Latest
Umbaska: Latest