on rightclick with clock: set {_gui} to a new chest inventory with 1 row with name "MAPY" set slot 0 of {_gui} to lime wool open {_gui} to player on inventory click: if name of event-inventory is "MAPY": if index of event-slot = 0: cancel event execute console commend "join 1"