tien Mentosh voila ton coffre Menu avec se qu'il te fallait je t'est même préparer un GUI de base ;)
#-######################################################################################################################
# Author PhoenixnoirDev
# version 0.0.0
# Contacte sur le forum MC Skrypt : [Contenu masqué]
#-######################################################################################################################
#-######################################################################################################################
# -------------------[ OPTION ]-------------------
options:
namitem: Menu
#-######################################################################################################################
#-######################################################################################################################
# -------------------[ Gestion du On Join ]-------------------
on join:
wait 1 ticks
set slot 17 of player to air
add chest named "{@namitem}" to the slot 17 of player
#-######################################################################################################################
#-######################################################################################################################
# -------------------[ Gestion du On respawn ]-------------------
on respawn:
wait 10 ticks
set slot 17 of player to air
add chest named "{@namitem}" to the slot 17 of player
#-######################################################################################################################
#-######################################################################################################################
# -------------------[ Gestion du On Drop ]-------------------
on drop:
if name of event-item is "{@namitem}":
cancel event
#-######################################################################################################################
#-######################################################################################################################
# -------------------[ Gestion du Click dans l'iventaire ]-------------------
On inventory click:
slot is 17:
cancel event
open chest with 2 row named "&2{@namitem}" to player
wait 1 tick
format slot 0 of player with red stained glass pane named "&b {@namitem}" to be unstealable
format slot 1 of player with red stained glass pane named "&b {@namitem}" to be unstealable
#format slot 2 of player with red flower named "&6 nom de ton menu" to close then run [make player execute command "/ta commande perso"]
format slot 7 of player with red stained glass pane named "&b {@namitem}" to be unstealable
format slot 8 of player with red stained glass pane named "&b {@namitem}" to be unstealable
format slot 9 of player with red stained glass pane named "&b {@namitem}" to be unstealable
format slot 10 of player with red stained glass pane named "&b {@namitem}" to be unstealable
format slot 16 of player with red stained glass pane named "&b {@namitem}" to be unstealable
format slot 17 of player with red stained glass pane named "&b {@namitem}" to be unstealable
#-######################################################################################################################
#-######################################################################################################################
# -------------------[ Gestion de la comande pour le nombre de coffre ]-------------------
command /menuco:
trigger:
set slot 17 of player to air
add chest named "{@namitem}" to the slot 17 of player
#-######################################################################################################################
#-######################################################################################################################
# -------------------[ Gestion du timer de controle des coffre]-------------------
every 10 seconds:
make players execute command "/menuco"
#-######################################################################################################################