Need help in a script that turns sandstone to bedrock for a few seconds

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

Reinitiated

New Member
Jun 13, 2025
5
0
1
Hello, I'm currently trying to make any sandstone when broken then it turns to bedrock for a few seconds, then becomes into sandstone again.

Code:
on mine of sandstone:
  event-block is sandstone
  cancel event
  set {_loc} to event-block's location
  set block at {_loc} to bedrock
  give player 1 sandstone
  wait 5 seconds
  set block at {_loc} to sandstone

My script just makes the sandstone back to normal when breaking.
 
try removing
Code:
event-block is sandstone
+ make it a
Code:
on break:
event
It says "Cant understand this section: on break"

Edit: I tried changing the "on mine of sandstone" to "on break of sandstone" but it wouldn't work and without errors
 
Last edited:
Code:
on break of sandstone:
    cancel event
    set event-block to bedrock
    wait 5 seconds
    set event-block to sandstone

this should work.
 
Last edited:

Attachments

  • Screenshot 2025-06-13 at 4.25.20 PM.png
    Screenshot 2025-06-13 at 4.25.20 PM.png
    35.5 KB · Views: 154
Code:
on break of sandstone:
    cancel event
    set event-block to bedrock
    wait 5 seconds
    set event-block to sandstone

this should work.
This is weird?? Doesn't work too. It just makes the block to sandstone again when broken and not bedrock?
Do I have to install any addons?