CreateLock: type: world events: on player clicks wood_door with tripwire_hook: - if { - narrate "This key cannot be crafted into another lock." - - determine CANCELLED - queue clear } - - if { + - if { - if ]> { - narrate "This door is already locked." - queue clear } } else if ]> { - narrate "This door is already locked." - queue clear } - define w - define y - define x - define z - flag global locked_Doors.incrementer:++ - flag global locked_Doors....: - take iteminhand - drop tripwire_hook[lore=] -