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.

Help with block State.

Discussion in 'Skript' started by TimCom228, Mar 2, 2020.

Tags:
Thread Status:
Not open for further replies.
  1. TimCom228

    TimCom228 Member

    Joined:
    Dec 26, 2019
    Messages:
    30
    Likes Received:
    0
    How to write a block state in a skript? My server MC version is 1.13. For example, I need to make a script to check the installation of a half block at the top of the block.

    Sorry if there are errors, I do not speak English and use a translator =)
     
    #1 TimCom228, Mar 2, 2020
    Last edited: Mar 4, 2020
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    227
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    227
  4. TimCom228

    TimCom228 Member

    Joined:
    Dec 26, 2019
    Messages:
    30
    Likes Received:
    0
    Thanks. I will transfer the server to 1.14
    --- Double Post Merged, Mar 3, 2020, Original Post Date: Mar 3, 2020 ---
    Please help implement. Instead of the usual half blocks, you need to write half blocks with data tag TYPE: TOP. Script:
    Code (Text):
    1. on explode:
    2.   loop exploded blocks:
    3.     loop-block is stone brick slab
    4.     set {_e::%location of loop-value%} to true
    5.     set {_e::%location of loop-value%::*} to location of loop-value
    6.   wait 0.1 second
    7.   loop {_e::*}:
    8.     set block at {_e::%loop-index%::1} to oak slab
    And anyway, thanks for the help. I have been looking for how to solve this problem for a long time. It's great that there are people like you who help newcomers for free =)
     
  5. Lego_freak1999

    Lego_freak1999 Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    664
    Likes Received:
    45
    I know its fixed now but if u want to get names of blocks and types of these u can use this code.

    ! this work for most block datas but not all.

    Code (Text):
    1. command /targettype:
    2.     trigger:
    3.         send "Skript name of target block: %type of target block%"
    4.  
    5. command /tooltype:
    6.     trigger:
    7.         send "Skript name of player's tool: %type of player's tool%"
     
Thread Status:
Not open for further replies.

Share This Page

Loading...