on rightclick on entity: entity's display name is "Kupiec": set {_} to type of player's tool set {_i} to player's tool set {_name} to to name of player's tool set {_lore} to "%line 1 of lore of player's tool%" if {_} is air: send "&8>> &cW rece musisz trzymac przedmiot!" stop if {item::%{_i}%.%{_name}%.%{_lore}%} is not set: send "&8>> &cTego przedmiotu nie da sie sprzedac!" stop set {_xx} to {item::%{_i}%.%{_name}%.%{_lore}%} parsed as number add {_xx} to {moneta.%player%} remove {_i} from player's inventory send "&8>> &aSprzedales &7%{_}% &aza cene: &7%{item::%{_i}%.%{_name}%.%{_lore}%}%" stop command /dodajitem []: permission: item.dodaj trigger: set {_} to type of player's tool set {_i} to player's tool set {_name} to to name of player's tool set {_lore} to "%line 1 of lore of player's tool%" if {_} is air: send "&8>> &cW rece musisz trzymac przedmiot!" stop if arg 1 is not set: send "&8>> &cWpisz cene!" stop set {item::%{_i}%.%{_name}%.%{_lore}%} to "%arg 1%" send "&8>> &aOd teraz &7%{_i}% %{_name}% %{_lore}% &akosztuje &7%arg 1% monet&a!" stop