#Item Enchant on GUI

1 messages · Page 1 of 1 (latest)

dapper magnet
#

Please Help me 😭

final egret
#

what have you tried so far

dapper magnet
#

set slot 0 of player's current inventory to netherite sword named "&btest"

#

how to add enchant on it

final egret
#

i mean enchant slot 0 of player's current inventory with mending should work xD not ideal way to do it but it should work

dapper magnet
final egret
#

like what

dapper magnet
#

this is full skript:

command /opengui:
    trigger:
        open virtual chest inventory with size 3 named "&6My GUI" to player
        set slot 0 of player's current inventory to totem of undying named "&eTotem"
        set slot 4 of player's current inventory to paper named "&aGo to Spawn" with lore "&7Click to run /spawn"

on inventory click:
    if name of event-inventory is "&6My GUI":
    
        if clicked slot is 0:
            wait 1 tick
            set slot 0 of event-inventory to totem of undying named "&eTotem"
        
        if clicked slot is 4:
            cancel event
            execute console command "spawn %player%"
        
        if clicked slot is 2: 
            wait 1 tick
            set slot 2 of event-inventory to netherite sword
#

i want to enchant netherite sword

#

@final egret you can help me?

final egret
#

so just enchant it i really dont see a problem

#
dapper magnet
#

thanks

flint gorge
dapper magnet