Hey Guys,
Have a problem with no errors
it nothing hapends when i rightclick the item and there are no errors on reloading.
code:
Have a problem with no errors
it nothing hapends when i rightclick the item and there are no errors on reloading.
code:
code_language.skript:
command /shop2:
trigger:
open chest with 6 row named "&8» &cShop" to player
wait 1 tick
set {_i} to 0
loop 53 times:
format slot 0 of player with blue stained glass pane named " " to be unstealable
add 1 to {_i}
{_i} is between 0 and 53:
format slot {_i} of player with blue stained glass pane named " " to be unstealable
set slot 1 of current inventory of player to diamond sword named "&8➫ &cSchwerter" with lore "&aKlicke um Schwerter zu Kaufen."
set slot 2 of player's current inventory to diamond chestplate named "&8➫ &cRüstungen"
set slot 3 of player's current inventory to bow named "&8➫ &cBögen"
set slot 4 of player's current inventory to enchantment table named "&8➫ &cNützliches"
set slot 9 of player's current inventory to gray stained glass pane named " "
set slot 10 of player's current inventory to gray stained glass pane named " "
set slot 11 of player's current inventory to gray stained glass pane named " "
set slot 12 of player's current inventory to gray stained glass pane named " "
set slot 13 of player's current inventory to gray stained glass pane named " "
set slot 14 of player's current inventory to gray stained glass pane named " "
set slot 15 of player's current inventory to gray stained glass pane named " "
set slot 16 of player's current inventory to gray stained glass pane named " "
set slot 17 of player's current inventory to gray stained glass pane named " "
on inventory click:
inventory name of current inventory of player contains "&8» &cShop":
cancel event
if clicked item is diamond sword:
name of clicked item is "&8➫ &cSchwerter":
send "Mario" to player
wait 1 ticks
set slot 1 of current inventory of player to glowing diamond sword named "&8➫ &cSchwerter"