Vanilla GUI does not work?

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

dkjessn

New Member
Apr 28, 2025
5
0
1
I am trying to create a gui uisng Vanilla GUI on Minecraft 1.8.
(version 1.8 on perpose)

I keep getting errors such as

Code:
[18:06:47 ERROR]: 'tag "ServerMenu"' is not a text (superklippen.sk, line 13: set metadata tag "ServerMenu" of player to chest inventory with 3 rows named "Server menu"')
[18:06:47 ERROR]: 'tag "ServerMenu"' is not a text (superklippen.sk, line 14: set slot 4 of metadata tag "ServerMenu" of player to stone named "Prison"')
[18:06:47 ERROR]: 'tag "ServerMenu"' is not a text (superklippen.sk, line 15: set slot 6 of metadata tag "ServerMenu" of player to stone name "Friheden"')
[18:06:47 ERROR]: 'tag "ServerMenu"' is not a text (superklippen.sk, line 16: open (metadata tag "ServerMenu" of player) to player')
[18:06:47 ERROR]: can't understand this event: 'on inventory click' (superklippen.sk, line 19: on inventory click:')

Here goes the code.

Code:
command /menu:
    trigger:
        set metadata tag "ServerMenu" of player to chest inventory with 3 rows named "Server menu"
        set slot 4 of metadata tag "ServerMenu" of player to stone named "Prison"
        set slot 6 of metadata tag "ServerMenu" of player to stone name "Friheden"
        open (metadata tag "ServerMenu" of player) to player


on inventory click:
    if event-inventory = (metadata tag "ServerMenu" of player):
        cancel event
        if index of event-slot is 2:
            teleport player to location at -89, -60, -112 in world "world"
            send "Velkommen i fængslet"  
        else if index of event-slot is 4:
            teleport player to location at -89, -60, -112 in world "world"
            send "Velkommen i fængslet"

Plugins

Code:
[18:08:22 INFO]: Plugins (35): RemoveJoinLeaveMessage, WorldEdit, ArmorStandEditor, spark, WorldGuard, HamsterAPI, SignEdit, StopSkullGriefing, ViaVersion, TestPlugin, Vault, Skript, DecentHolograms, Essentials, GroupManager, skDragon, HeadDatabase, PlexCore, ProtocolLib, Citizens, SkBee, EssentialsChat, Enchants, FramePicture, TAB, skript-reflect, EssentialsSpawn, SkEssentials, skript-yaml, TitleManager, SkQuery, HolographicDisplays, LiteBans, Skellett, skRayFall

Version

Code:
[18:09:23 INFO]: This server is running CraftBukkit version git-Spigot-c3c767f-33d5de3 (MC: 1.8) (Implementing API version 1.8-R0.1-SNAPSHOT)

Can anyone tell me what I miss?

TIA
 
Last edited:
hey I havent tested a gui on 1.8 but I do have a GUI skript for skript here it is so you could try this I hope it works!
This also is a tp command gui but you can change that:
#MAKE SURE YOU DO /SETSPAWN COMMAND WHERE YOU WANT YOUR SPAWN TO BE
#THANKS TO FANSTAAF FOR THE SETSPAWN SKRIPT THIS GUI CANT BE POSSIBLE WITHOUT HIM <3
#BTW IF ANYONE KNOWS HTO TO MAKE ITEMS GLOW IM SKRIPT OR SKBEE CAN YOU TELL ME?


command /setspawn:
permission: op
trigger:
set {_pitch} to player's pitch
set {_yaw} to player's yaw
set {spawn} to location at player
set {spawn}'s pitch to {_pitch}
set {spawn}'s yaw to {_yaw}
send "Spawn has been set to %{spawn}%" to player

command /menu:
trigger:
open shulker box with 3 rows named "&4Menu Gui" to player
wait 1 tick
set slot 13 of player's current inventory to paper named "&4Teleport to spawn" with lore "&6Teleport to spawn"

on inventory click:
if name of event-inventory is "&4Menu Gui":
cancel event
if index of event-slot is 13:
teleport player to {spawn}


HERE ANOTHER ONE FOR KITS YOU CAN CHANGE THIS ASWELL:


#THIS WILL POP UP IN A GUI FOR THE KITS
command /cpvpkits:
cooldown: 4 hours
cooldown message: "&4Wait every 4 hours to use this command"
aliases: /cpvpk
trigger:
open chest inventory with 3 rows called "&5CPVP Kits" to player
wait 1 tick
set slot 13 of player's current inventory to obsidian named "&5Starter Cpvp Kit"
set slot 11 of player's current inventory to end crystal named "&5Grinder Cpvp Kit"
set slot 15 of player's current inventory to respawn anchor named "&6GOD KIT"





on inventory click:
if name of event-inventory is "&5CPVP Kits":
cancel event
if index of event-slot is 11:
give player 32 end crystals, 32 obsidian, 32 respawn anchors, 32 glowstone




on inventory click:
if name of event-inventory is "&5CPVP Kits":
cancel event
if index of event-slot is 13:
give player 48 end crystals, 48 obsidian, 48 respawn anchors, 48 glowstone




on inventory click:
if name of event-inventory is "&5CPVP Kits":
cancel event
if index of event-slot is 15:
give player netherite sword of knockback 1, 64 obsidian, 64 respawn anchors, 64 glowstone, 64 end crystals, totem of undying
 
I did now try with variables in Minecraft 1.8 and this Vanilla script.

Code:
on join:
    if {rank::%UUID of player%} is not set:
        set {rank::%UUID of player%} to "default"
    if {coins.%player%} is not set:
        set {coins.%player%} to 0
    stop

on first join:
    set {rank::%UUID of player%} to "default" 

command /menu:
    trigger:
        set {Inventory::%player%} to chest inventory with 1 row named "Server menu"
        set slot 2 of {Inventory::%player%} to stone named "Prison"
        set slot 4 of {Inventory::%player%} to stone named "Friheden"
        open {Inventory::%player%} to player
 
on inventory click:
    if event-inventory is {Inventory::%player%}:
        cancel event
        if index of event-slot is 2:
            teleport player to location at -89, -60, -112 in world "world"
            send "Velkommen i fængslet"     
        else if index of event-slot is 4:
            teleport player to location at -89, -60, -112 in world "world"
            send "Velkommen i fængslet"


It gives the following errors

Code:
[17:54:38 ERROR]: 'chest inventory with 1 row' is not an item type (superklippen.sk, line 13: set {Inventory::%player%} to chest inventory with 1 row named "Server menu"')
[17:54:38 ERROR]: 'slot 4' is not a number (superklippen.sk, line 14: set slot 4 of {Inventory::%player%} to stone named "Prison"')
[17:54:38 ERROR]: 'slot 4' is not a number (superklippen.sk, line 15: set slot 4 of {Inventory::%player%} to stone named "Friheden"')
[17:54:38 ERROR]: can't understand this event: 'on inventory click' (superklippen.sk, line 19: on inventory click:')

Any help is appreciated.

TIA
 
Last edited:
hey I havent tested a gui on 1.8 but I do have a GUI skript for skript here it is so you could try this I hope it works!
This also is a tp command gui but you can change that:
#MAKE SURE YOU DO /SETSPAWN COMMAND WHERE YOU WANT YOUR SPAWN TO BE
#THANKS TO FANSTAAF FOR THE SETSPAWN SKRIPT THIS GUI CANT BE POSSIBLE WITHOUT HIM <3
#BTW IF ANYONE KNOWS HTO TO MAKE ITEMS GLOW IM SKRIPT OR SKBEE CAN YOU TELL ME?


command /setspawn:
permission: op
trigger:
set {_pitch} to player's pitch
set {_yaw} to player's yaw
set {spawn} to location at player
set {spawn}'s pitch to {_pitch}
set {spawn}'s yaw to {_yaw}
send "Spawn has been set to %{spawn}%" to player

command /menu:
trigger:
open shulker box with 3 rows named "&4Menu Gui" to player
wait 1 tick
set slot 13 of player's current inventory to paper named "&4Teleport to spawn" with lore "&6Teleport to spawn"

on inventory click:
if name of event-inventory is "&4Menu Gui":
cancel event
if index of event-slot is 13:
teleport player to {spawn}


HERE ANOTHER ONE FOR KITS YOU CAN CHANGE THIS ASWELL:


#THIS WILL POP UP IN A GUI FOR THE KITS
command /cpvpkits:
cooldown: 4 hours
cooldown message: "&4Wait every 4 hours to use this command"
aliases: /cpvpk
trigger:
open chest inventory with 3 rows called "&5CPVP Kits" to player
wait 1 tick
set slot 13 of player's current inventory to obsidian named "&5Starter Cpvp Kit"
set slot 11 of player's current inventory to end crystal named "&5Grinder Cpvp Kit"
set slot 15 of player's current inventory to respawn anchor named "&6GOD KIT"





on inventory click:
if name of event-inventory is "&5CPVP Kits":
cancel event
if index of event-slot is 11:
give player 32 end crystals, 32 obsidian, 32 respawn anchors, 32 glowstone




on inventory click:
if name of event-inventory is "&5CPVP Kits":
cancel event
if index of event-slot is 13:
give player 48 end crystals, 48 obsidian, 48 respawn anchors, 48 glowstone




on inventory click:
if name of event-inventory is "&5CPVP Kits":
cancel event
if index of event-slot is 15:
give player netherite sword of knockback 1, 64 obsidian, 64 respawn anchors, 64 glowstone, 64 end crystals, totem of undying

Just wondering you paste this code.

The "open chest inventory" does not work either. I tried it prior to this post.
Secondly, I am wondering why you ignore the version as it is essential to the script.
 
I've never played 1.8 excpet for hypixel but I do know you can do a first join skript or a skript like this
on first join:
console command "lp user %player% parent set member"
console command "let's welcome %player% to the server"
 
I've never played 1.8 excpet for hypixel but I do know you can do a first join skript or a skript like this
on first join:
console command "lp user %player% parent set member"
console command "let's welcome %player% to the server"

It must be Minecraft 1.8, and it must be GUI related to investigate why I cannot make a chest.
That is the core of the thread, and that is what I need help with.