1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

remove block on death

Discussion in 'Skript' started by Bendik0208, Feb 12, 2020.

  1. Bendik0208

    Bendik0208 Member

    Joined:
    Jul 26, 2017
    Messages:
    16
    Likes Received:
    0
    Hello,
    how can I remove blocks that the player have placed?
    Code (Text):
    1. on death:
    2.   remove placed blocks
    3.  
     
  2. Goose

    Goose Well-Known Member

    Joined:
    Nov 23, 2019
    Messages:
    373
    Likes Received:
    21
    Code (Text):
    1. on place:
    2.     add event-block to {_blocks::%player's uuid%::*}
    3. on death:
    4.     loop {_blocks::%player's uuid%::*}:
    5.         set loop-value to air
     
Loading...