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 variable of block?

Discussion in 'Skript' started by _ExtraGames_, Oct 14, 2021 at 12:43 PM.

  1. _ExtraGames_

    _ExtraGames_ New Member

    Joined:
    Apr 3, 2021
    Messages:
    6
    Likes Received:
    0
    Im trying for like 2 days and can't do it. how do I remove variable of block?
     
  2. oToghty

    VIP Supporter +

    Joined:
    Sep 1, 2020
    Messages:
    95
    Likes Received:
    3
    wdym
     
  3. _ExtraGames_

    _ExtraGames_ New Member

    Joined:
    Apr 3, 2021
    Messages:
    6
    Likes Received:
    0
    Code (Text):
    1. on place of hay block:
    2.     set {_wheat} to event block
    3.  
    4. on break of hay block:
    5.     remove {_wheat}
    the 'remove' don't work
     
  4. Minecoll_YT

    Supporter Forums Helper

    Joined:
    Dec 2, 2018
    Messages:
    567
    Likes Received:
    36
    two different ways - every variable starting with an "_" is local
    Code (Text):
    1. on place of stone:
    2.     add location of event-block to {list::*}
    3.  
    4. on break of stone:
    5.     remove location of event-block from {list::*}
    Code (Text):
    1. on place of stone:
    2.     set {stone} to location of event-block
    3.  
    4. on break of stone:
    5.     delete {stone}
     

Share This Page

Loading...