on script load: register new shaped recipe for sandstone named "&9&lSANDFARMER" using sand, sand, sand, sand, apple, sand, sand, sand, sand on script load: register new shaped recipe for ender_portal_frame named "&9&lBOYFARMER" using obsidian, obsidian, obsidian, obsidian, apple, obsidian, obsidian, obsidian, obsidian on script load: register new shaped recipe for enchantment_table named "&9&lKOPACZ FOSY" using stone, stone, stone, stone, apple, stone, stone, stone, stone on place of sandstone: if player's tool is sandstone named "&9&lSANDFARMER": if player is in region "spawn": cancel event else: loop blocks under event-block: if loop-block is bedrock: stop if loop-block is stone: stop if loop-block is grass: stop if loop-block is dirt: stop set loop-block to sand on place of ender_portal_frame: if player's tool is ender_portal_frame named "&9&lBOYFARMER": if player is in region "spawn": cancel event else: loop blocks under event-block: if loop-block is bedrock: stop if loop-block is stone: stop if loop-block is grass: stop if loop-block is dirt: stop set loop-block to obsidian on place of enchantment_table: if player's tool is enchantment_table named "&9&lKOPACZ FOSY": if player is in region "spawn": cancel event else: loop blocks under event-block: if loop-block is bedrock: stop set loop-block to air