Solved Planks

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

Scholler

Active Member
Aug 6, 2018
130
9
0
25
So I'm doing a shop gui, and I have problems with planks, so I added a command to test what's the material of the player's tool (send material of player's tool), it says WOOD for minecraft:emoji_stuck_out_tongue:lanks
But..
code_language.skript:
format gui slot 4 of player with a wood with name "&ePlanks/Wood" to run player command "/gui wood"
is not working. The /gui <material> loops 64 of that material so I can buy it. Not working too, says "Correct usage: /gui <item stack>" when I type /gui planks or /gui wood
Hope you understand what I want
 
code_language.skript:
format gui slot 4 of player with a oak_wooden_plank with name "&ePlanks/Wood" to run player command "/gui wood"
 
From aliases-english.sk:
code_language.skript:
    oak(_| )[wood[en](_| )]plank¦s = 5
    spruce(_| )[wood[en](_| )]plank¦s = 5:1
    birch(_| )[wood[en](_| )]plank¦s = 5:2
    jungle(_| )[wood[en](_| )]plank¦s = 5:3
    acacia(_| )[wood[en](_| )]plank¦s = 5:4
    dark(_| )oak(_| )[wood[en](_| )]plank¦s = 5:5
    [<any>](_| )wood[en](_| )plank = 5:0-5
 
code_language.skript:
format gui slot 4 of player with a oak_wooden_plank with name "&ePlanks/Wood" to run player command "/gui wood"
From aliases-english.sk:
code_language.skript:
    oak(_| )[wood[en](_| )]plank¦s = 5
    spruce(_| )[wood[en](_| )]plank¦s = 5:1
    birch(_| )[wood[en](_| )]plank¦s = 5:2
    jungle(_| )[wood[en](_| )]plank¦s = 5:3
    acacia(_| )[wood[en](_| )]plank¦s = 5:4
    dark(_| )oak(_| )[wood[en](_| )]plank¦s = 5:5
    [<any>](_| )wood[en](_| )plank = 5:0-5
Thank you!
 
Status
Not open for further replies.