hey,
first of all I want to explain, that I want to have a villager with the name "Kits" and when you rightclick on the villager, it should open an gui where you can buy some kits.
Now I tried something but it stopped me already at the point, of opening a gui. It it just opening the standard villager gui, you have in vanilla
Can somebody help me?
first of all I want to explain, that I want to have a villager with the name "Kits" and when you rightclick on the villager, it should open an gui where you can buy some kits.
Now I tried something but it stopped me already at the point, of opening a gui. It it just opening the standard villager gui, you have in vanilla
Can somebody help me?
Code:
on right click on villager:
if display name of clicked entity is "&8» &6&lKits":
open chest with 3 rows named "&8» &cConfirmation" to player
format slot 0 of player with gray stained glass pane named "&8-/-" to be unstealable
format slot 1 of player with gray stained glass pane named "&8-/-" to be unstealable
format slot 2 of player with gray stained glass pane named "&8-/-" to be unstealable
format slot 3 of player with gray stained glass pane named "&8-/-" to be unstealable
format slot 4 of player with gray stained glass pane named "&8-/-" to be unstealable
format slot 5 of player with gray stained glass pane named "&8-/-" to be unstealable
format slot 6 of player with gray stained glass pane named "&8-/-" to be unstealable
format slot 7 of player with gray stained glass pane named "&8-/-" to be unstealable
format slot 8 of player with gray stained glass pane named "&8-/-" to be unstealable
format slot 18 of player with gray stained glass pane named "&8-/-" to be unstealable
format slot 19 of player with gray stained glass pane named "&8-/-" to be unstealable
format slot 20 of player with gray stained glass pane named "&8-/-" to be unstealable
format slot 21 of player with gray stained glass pane named "&8-/-" to be unstealable
format slot 22 of player with gray stained glass pane named "&8-/-" to be unstealable
format slot 23 of player with gray stained glass pane named "&8-/-" to be unstealable
format slot 24 of player with gray stained glass pane named "&8-/-" to be unstealable
format slot 25 of player with gray stained glass pane named "&8-/-" to be unstealable
format slot 26 of player with gray stained glass pane named "&8-/-" to be unstealable
format slot 17 of player with gray stained glass pane named "&8-/-" to be unstealable
format slot 8 of player with gray stained glass pane named "&8-/-" to be unstealable
format slot 9 of player with gray stained glass pane named "&8-/-" to be unstealable
format slot 14 of player with gray stained glass pane named "&8-/-" to be unstealable
format slot 18 of player with gray stained glass pane named "&8-/-" to be unstealable
format slot 12 of player with gray stained glass pane named "&8-/-" to be unstealable
format slot 12 of player with gray stained glass pane named "&8-/-" to be unstealable