on right click:
if event-block is iron door:
if tool of player is lever:
if name of tool of player is "Maymuncuk":
if chance of 50%:
wait 15 seconds
activate block
if chance of 50%:
remove lever named "Maymuncuk" from the player
send "Maymuncuk kırıldı!"
else:
send "Maymuncuk yok!"
if event-block is wooden door:
if tool of player is lever:
if name of tool of player is "Maymuncuk":
if chance of 50%:
wait 10 seconds
activate block
if chance of 50%:
remove lever named "Maymuncuk" from the player
send "Maymuncuk kırıldı!"
else:
send "Maymuncuk yok!"
command /maymuncukal:
permission: op
trigger:
give lever named "Maymuncuk" to player