Get Block Info

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

Lukhausen

Active Member
Mar 20, 2017
145
11
18
How can I get detailed block info like with the //info tool of World edit?
type of block
and how do i find out of a chest is a double chest?
 
Im not sure what the //info tool does so you should explain what you are looking for.
As for double chest, check for the blocks around it.

I wrote a custom condition for it once using Skript-Mirror
code_language.skript:
# Custom Condition
condition %block% is [a] double[ ]chest:
    check:  
        if expression-1 is a chest:
            if block north of expression-1 is a chest:
                continue
            else if block south of expression-1 is a chest:
                continue
            else if block east of expression-1 is a chest:
                continue
            else if block west of expression-1 is a chest:
                continue

# Example
on right click:
    if clicked block is double chest:
        send "DOUBLE"
 
Im not sure what the //info tool does so you should explain what you are looking for.
As for double chest, check for the blocks around it.

I wrote a custom condition for it once using Skript-Mirror
code_language.skript:
# Custom Condition
condition %block% is [a] double[ ]chest:
    check: 
        if expression-1 is a chest:
            if block north of expression-1 is a chest:
                continue
            else if block south of expression-1 is a chest:
                continue
            else if block east of expression-1 is a chest:
                continue
            else if block west of expression-1 is a chest:
                continue

# Example
on right click:
    if clicked block is double chest:
        send "DOUBLE"
1.13 had an update where you could place two single chests next to eachother (see pictures from other thread) so that cide won't work.
The F3 menu has a type: single/left/right, maybe you can get that information somehow
 
  • Like
Reactions: Beitrag
1.13 had an update where you could place two single chests next to eachother (see pictures from other thread) so that cide won't work.
The F3 menu has a type: single/left/right, maybe you can get that information somehow
Oh good thinking, I actually totally forgot about that!
 
Status
Not open for further replies.