Im trying to make a crate opening skript.
The code:
options:
{lada:1} = 322 8
{lada:2} = 373:8201
{lada:3} = 322:1
{lada:4} = 332 12
on right click with 131:
if clicked block is end portal frame:
cancel event
remove 1 of player's tool from player
set {_cucc33} to random element out of {lada::*}
execute console command "/give %player% %{_cucc33}%"
What is my problem:
When I open the crate nothing happens.
When I open the console I see this:
[17:07:36] [Server thread/INFO]: CONSOLE issued server command: /give noob123
[17:07:36] [Server thread/INFO]: Hiba: Ismeretlen tárgy név: .
Server version: spigot 1.8.8
Skript plugins: Skript 2.2, skript-mirror, skUtilities, SkQuery, TuSKe, SkQuery
The code:
options:
{lada:1} = 322 8
{lada:2} = 373:8201
{lada:3} = 322:1
{lada:4} = 332 12
on right click with 131:
if clicked block is end portal frame:
cancel event
remove 1 of player's tool from player
set {_cucc33} to random element out of {lada::*}
execute console command "/give %player% %{_cucc33}%"
What is my problem:
When I open the crate nothing happens.
When I open the console I see this:
[17:07:36] [Server thread/INFO]: CONSOLE issued server command: /give noob123
[17:07:36] [Server thread/INFO]: Hiba: Ismeretlen tárgy név: .
Server version: spigot 1.8.8
Skript plugins: Skript 2.2, skript-mirror, skUtilities, SkQuery, TuSKe, SkQuery