spawn falling blocks with variables

  • 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.
Jun 18, 2022
1
0
1
15
Skript Version: 2.6.2
Skript Author: GreenSkittles23/me
Minecraft Version: 1.18.2
Code:
on place:
wait 2.5 seconds
set event-block to air
set {loc_} to location of block 1.25 below event-block
spawn falling {_t} at {loc_}

I was wondering if there was a way to spawn falling blocks but the block id is a variable and not just a block. Just to mention, this was for a custom GUI shop I was making on one of my private testing servers. I also want to mention in the code below is where I define {_t} as a variable that is the name of a block,
here is that code:
set {_t} to "sandstone"
 
Status
Not open for further replies.