Magma Explosion

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
Feb 8, 2022
20
0
1
15
How do you make it so when an arrow shot from a bow called “&c&l&oMagma Bow” hits the ground, it creates a fake explosion still damaging players near it and launches entities that look like magma blocks into the air and disappear when they hit the ground

my skript so far is:
on projectile hit:
if projectile is arrow:
if difference between now and {bowdraw.%shooter%} is greater than {drawtime}:
 
Last edited:
You should use:
On shoot:
Set {%shooter%.lastbow} to player's tool

On projectile hit:
event-projectile is an arrow
name of {%shooter%.lastbow} is "&c&l&oMagma Bow"
create a fake explosion at event-projectile
loop all player's in radius 4 of event-projectile:
damage loop-player by 3
loop 10 times:
spawn falling magma block at event-projectile
push the last spawned entity up with force 3
push the last spawned entity forward with force (random int between -2 and 2)
push the last spawned entity sideways with force (random int between -2 and 2)
delete event-projectile

This will spawn an explosion and magma blocks on the arrow hit event, and will remove the arrow after. This Skript will not delete the magma blocks after they land.
 
Status
Not open for further replies.