How to detect when a falling block lands

  • 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 community!

    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.

DioAdhname

Member
Mar 7, 2023
2
0
1
i have been breaking my head over how to detect when a falling block lands, since im new to skript, i searched it up, the only things i found were using a timer, that i dont want to since i wanna make it able to fall from higher up, even killing the entities didnt work, but it sure did crash my mc, aswell as using "if {_diamond} exists: {_diamonds} is on ground"

also i would prefer to not need to use another plugin, but if i really have to its fine

thanks in advance
 

Attachments

  • DiamondStaff.sk
    0 bytes · Views: 208
According to this post, there isn't one. There's an alternate solution there though.
 
does that work on skript?
Yeah. There's more of a pseudo-code solution in the replies if you scroll a tiny bit. Basically, if you can reference a falling block, use a "while %entity% exists" or something like that. Set a variable to the location of the entity and wait 1 tick within the loop. After the loop, you can just consider that variable to be its last location. Might take a bit of trial and error to be able to actually reference that entity though.
 
Status
Not open for further replies.