What happens is I click the item and it basically doesn't work. It shows up on the console as
"Unknown command. Type "help" for help."
on rightclick holding a chest:
show "s;1;i;Stick;n;<light green>Mage's Staff!;l;<RED>Blast them away!;c;/g1 t;s;2;i;Blaze Rod;n;<white>Lightning Rod!;l;<cyan>The mighty Thor.;c;/g2" with 1 rows named "<light green>Gadgets!" to PLAYER
on rightclick holding a stick:
make the player shoot a fireball at speed 5
give a stick named "<Yellow>Mage's Staff!" to the player
on rightclick holding a blaze rod:
strike lightning effect at the player
give a blaze rod named "<CYAN>Lightning Rod!" to the player
When a player clicks, the command will be executed by console and not by player ;)
Take the slash away, if you have a slash there the console tries to run "g2"
Did I help you? Want to help me buy pizza?
Looking for Skript projects, PM me with details!
Is there a way to make the player run the command and not the console?
make player execute "suicide"
EDIT: Sorry, forgot which thread I was in. No, there is no way to directly do it, but there are workarounds, like having a console command that forces the player to run a command and such
Oh I see, could you explain further on to this? If it's not too much trouble.
It runs a console command of your choice, so you have it run a console command that makes the player run something
on rightclick with stick:
wait 2 ticks
show "s;1;i;fire;n;Click here to suicide!;l;Nooooo!;c;sudo %player% suicide" with 1 row named "DONT DO IT D:" to the player
command sudo <player> <text>:
make player argument execute "%text argment%"
You must login to post a comment. Don't have an account? Register to get one!