Solved Block sphere gone wrong

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

    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.

Grin

Member
Jan 26, 2017
25
4
0
Skript Version: 2.2 dev23
Skript Author: Bensku
Minecraft Version: 1.11.2


Full Code:
code_language.skript:
command /ishavecraftingtable:
    trigger:
        loop blocks in radius 1 around the player:
            broadcast "%loop-block%"
            add loop-block to {_b::*}
        if {_b::*} contains crafting table:
            broadcast "yas"
        else:
            broadcast "no"

Output:
MDq1IJR.png


Errors on Reload:

code_language.skript:
NONE

Console Errors: (if applicable)

code_language.skript:
NONE

Other Useful Info:

Addons using (including versions):
Up to date many add-ons

Troubleshooting:
Have you tried searching the docs?
Yes
Have you tried searching the forums? Yes
What other methods have you tried to fix it?
  • change crafting table to crafting_table
 
Change
code_language.skript:
if {_b::*} contains crafting table:
to
code_language.skript:
if "%{_b::*%}%" contains "crafting_table":
 
  • Like
Reactions: Grin
The following:
code_language.skript:
if blocks in radius 1of player contains crafting table:
Should work just fine
 
  • Like
Reactions: Grin
New code:
code_language.skript:
command /c:
    trigger:
        loop blocks in radius 2 of player:
            broadcast "%loop-block%"
        if blocks in radius 2 of player contains crafting_table:
            broadcast "yas"
        else:
            broadcast "no"

Output:
pA0fvSm.png

still can't fix :emoji_frowning:
[doublepost=1489402110,1489390843][/doublepost]I now use @Vexio 's code and It's work
but @Snow-Pyon 's didn't work.

nvm someone told me It's Skript logic lol.
 
Status
Not open for further replies.