Solved Why this code don't works with the furnace and the chest?

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

PantherBoy

Active Member
Jul 20, 2017
74
0
6
24
Skript Version: 2.2 V8B
Minecraft Version:1.8.8

---
Full Code:


code_language.skript:
On place:
    if player is holding block:
        if player do not have the permission "Mars.build":
            if block above is air:
                cancel event
            else if block above is slab:7:
                if event-block is not a chest, crafting table,furnace , anvil or non-burning furnace:
                    cancel event
            else:
                cancel event

Errors on Reload: No errors

Console Errors:No error

Other Useful Info: If I place down an anvil in east facing, the code don't work, and I can put it down anywhere! And the furnace and the chest can be placed anywhere. The workbench is works fine... Why? How can i repair the code? What is the problem?


Addons using (including versions):
No addons
 
im not sure if this is the reason, but
"if player is holding block:" is not a thing

EDIT: never mind did a test and that part works

EDIT: ok, so i did some testing.... its because a chest and an anvil are not considered blocks
 
im not sure if this is the reason, but
"if player is holding block:" is not a thing

EDIT: never mind did a test and that part works

EDIT: ok, so i did some testing.... its because a chest and an anvil are not considered blocks
And how can I solve the problem?
And what about with the furnace?
 
Status
Not open for further replies.