
# Команда выполняемая при клике по NPC для телепорта игрока на легкую арену
command /opendungeoneasy [<player>]:
permission: op
trigger:
if name of tool of arg-1 is "&8 » &fКлюч Подземелья &8 - &aПростой":
remove 1 of tool of arg-1 from arg-1's inventory
send "&f &dХранитель: &fВы немедленно прибудете на арену! Помните, что выйти можно только с помощью команды телепортации, например &e/dleave.&f." to arg-1
wait 2 ticks
make console execute command "effect give %arg-1% minecraft:nausea 8 5"
wait 5 seconds
make console execute command "gms %arg-1%"
set arg-1's flight mode to false
make console execute command "god %arg-1% disable"
teleport arg-1 to {spawnlocarena1}
Должно забирать ключ, а по итогу его не забирает из инвентаря
command /opendungeoneasy [<player>]:
permission: op
trigger:
if name of tool of arg-1 is "&8 » &fКлюч Подземелья &8 - &aПростой":
remove 1 of tool of arg-1 from arg-1's inventory
send "&f &dХранитель: &fВы немедленно прибудете на арену! Помните, что выйти можно только с помощью команды телепортации, например &e/dleave.&f." to arg-1
wait 2 ticks
make console execute command "effect give %arg-1% minecraft:nausea 8 5"
wait 5 seconds
make console execute command "gms %arg-1%"
set arg-1's flight mode to false
make console execute command "god %arg-1% disable"
teleport arg-1 to {spawnlocarena1}
Должно забирать ключ, а по итогу его не забирает из инвентаря