1. 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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

I need please help with my Code

Discussion in 'Requests' started by xXTim00xx, Nov 24, 2021.

  1. xXTim00xx

    xXTim00xx Member

    Nov 15, 2021
    Likes Received:

    I tried to code, that when I click on a slot, the block over the event-block is set to an fence, but it doesn't work.

    My Code:

    on inventory click:
    if name of player's current inventory contains "&2Kaki&7-&4&lUpgrader":
    if clicked slot is 11:
    execute console command "/kaki remove %player% 100"
    clear scoreboard of player
    set line 5 of scoreboard of player to "§5§l Galaxy§7§l-§b§lMC§7§l.§a§lde "
    set line 4 of scoreboard of player to "§7§l -----------------"
    set line 3 of scoreboard of player to "§2 Kakis§7 :§6 %{kaki.%player%}%"
    set line 2 of scoreboard of player to "§e Insel Größe§7 :§a 50x50"
    set line 1 of scoreboard of player to "§7§l -----------------"
    set block 1 above of the event-block to fence
    cancel event
    cancel event

Share This Page