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!

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

Auto Removing Blocks

Discussion in 'Requests' started by Ter2FIc, Dec 31, 2020.

  1. Ter2FIc

    Ter2FIc Member

    Joined:
    Dec 30, 2020
    Messages:
    20
    Likes Received:
    0
    The Reason Why:
    I want to make Survival Server but I don't want the maps to get messy. And also, I'm not good at making skripts.:emoji_sob:

    What I want to see:
    Blocks that player placed automatically disappear after 5 mins.
    ⁕The blocks won't disappear if the bed is connected ( the blocks that were connected with blocks that touch the bed)

    I hope it was not too much :emoji_grinning: :emoji_sweat_smile:
     
  2. WeeHee

    WeeHee Active Member

    Joined:
    Mar 4, 2017
    Messages:
    108
    Likes Received:
    21
    So if the player places a bed on blocks they've placed within the 5 minutes, the blocks wouldn't disappear. All blocks in x radius of the blocks or all blocks connected (which could be millions of blocks)?

    I guess it will be easier to talk about on Discord?
     
  3. Ter2FIc

    Ter2FIc Member

    Joined:
    Dec 30, 2020
    Messages:
    20
    Likes Received:
    0
    Ok then. Contact me on discord, Ter2Fic #0295
     
    #3 Ter2FIc, Jan 21, 2021
    Last edited: Jan 21, 2021
  4. DogLoverPink

    Supporter +

    Joined:
    Sep 2, 2020
    Messages:
    28
    Likes Received:
    1
    OK, i am dumb, or would this just work?

    Code (Text):
    1. on place:
    2.   wait 5 minutes
    3.   loop blocks in radius 5 around event-block:
    4.     loop-block is bed
    5.     stop
    6.   set event-block to air
     
  5. WeeHee

    WeeHee Active Member

    Joined:
    Mar 4, 2017
    Messages:
    108
    Likes Received:
    21
    It wouldn't work because there has to be a path of blocks that connects the bed and the placed block.
     
  6. cuddlytrap

    cuddlytrap Member

    Joined:
    Dec 18, 2020
    Messages:
    26
    Likes Received:
    0
    i dotn know if thats possible :/
     
  7. WeeHee

    WeeHee Active Member

    Joined:
    Mar 4, 2017
    Messages:
    108
    Likes Received:
    21
    It's possible, but it's hard to make. It would need some smart pathfinding algorithm, so it won't get too laggy. Maybe there's other solutions. In fact, it may be easier than I think.
     

Share This Page

Loading...