Help with block State.

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

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

TimCom228

Member
Dec 26, 2019
31
0
6
24
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 =)
 
Last edited:

Thanks. I will transfer the server to 1.14
[doublepost=1583264593,1583252365][/doublepost]
Please help implement. Instead of the usual half blocks, you need to write half blocks with data tag TYPE: TOP. Script:
Code:
on explode:
  loop exploded blocks:
    loop-block is stone brick slab
    set {_e::%location of loop-value%} to true
    set {_e::%location of loop-value%::*} to location of loop-value
  wait 0.1 second
  loop {_e::*}:
    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 =)
 
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:
command /targettype:
    trigger:
        send "Skript name of target block: %type of target block%"

command /tooltype:
    trigger:
        send "Skript name of player's tool: %type of player's tool%"
 
Status
Not open for further replies.