je pense qu'il faudrait des variables
#je ne l'ai pas tester mais il peut fonctionner je ne sait pas trop
options:
GD: &9[Gadget] &f
On join:
set {gd.%UUID of player%.block} to false
Command /colorsp:
trigger:
if {gd.%UUID of player%.block} is false
set {gd.%UUID of player%.block} to true
message "{@GD}Tu as activé la traînée de Blocks"
else:
set {gd.%UUID of player%.block} to false
message "{@GD}Tu as désactivé la traînée de Blocks"
On any move:
if {gd.%UUID of player%.block} if true:
set {loc.%UUID of player%.block} to location of player set 1 of block stained hardened clay offset by 0.0, -0.8, 0.0 at {loc.%UUID of player%}
Command /gadgets:
trigger:
open chest with 3 rows named "&c Gadgets" to player
wait 1 tick
format slot 0 of player with grey glass named " " to run [make player execute command "/cutmenu"]
format slot 1 of player with grey glass named " " to run [make player execute command "/cutmenu"]
format slot 2 of player with grey glass named " " to run [make player execute command "/cutmenu"]
format slot 3 of player with grey glass named " " to run [make player execute command "/cutmenu"]
format slot 4 of player with grey glass named " " to run [make player execute command "/cutmenu"]
format slot 5 of player with grey glass named " " to run [make player execute command "/cutmenu"]
format slot 6 of player with grey glass named " " to run [make player execute command "/cutmenu"]
format slot 7 of player with grey glass named " " to run [make player execute command "/cutmenu"]
format slot 8 of player with grey glass named " " to run [make player execute command "/cutmenu"]
format slot 9 of player with grey glass named " " to run [make player execute command "/cutmenu"]
format slot 17 of player with grey glass named " " to run [make player execute command "/cutmenu"]
format slot 18 of player with grey glass named " " to run [make player execute command "/cutmenu"]
format slot 19 of player with grey glass named " " to run [make player execute command "/cutmenu"]
format slot 20 of player with grey glass named " " to run [make player execute command "/cutmenu"]
format slot 21 of player with grey glass named " " to run [make player execute command "/cutmenu"]
format slot 22 of player with grey glass named " " to run [make player execute command "/cutmenu"]
format slot 23 of player with grey glass named " " to run [make player execute command "/cutmenu"]
format slot 24 of player with grey glass named " " to run [make player execute command "/cutmenu"]
format slot 25 of player with grey glass named " " to run [make player execute command "/cutmenu"]
format slot 26 of player with grey glass named " " to run [make player execute command "/cutmenu"]
#contours
format slot 13 of player with beacon named "&fTrînée de Blocks" whith lore "&fClique ici pour activer la traînée de Block" to run [make player execute command "/colorsp"]
Command /cutmenu:
trigger:
message "{@GD}Tu as quiter le menu"
close player's inventory