function getState(block: block) :: boolean:
if "%{_block}.getType()%" is "REDSTONE_LAMP_ON":
return true
return false
on place:
if event-block is redstone lamp:
wait second
send "%getState(event-block)%"
on inventory click:
send "1"
if name of player's inventory is "&aWydarzenia":
send "2"
cancel event
if clicked slot is 4:
send "3"
send "&aWybrano wydarzenie: &9End"
zobacz co wysyła
on rightclick:
if skutil file "dane/login/%player%.yml" doesn't exist:
skutil create file "dane/akcesoria/%player%.yml"
polecam dawać przed wyrażenie skutil bo u mnie czasem się gubiło.
Oczywiście do tego kodu wymagany jest dodatek skUtilities