local power_switch_box = {
   type = 'fixed',
   fixed = {-.3875, -.5, .125, .3875, .5, .5}
}

minetest.register_node('sabotage:power_switch_on', {
   description = 'Power Switch',
   drawtype = 'mesh',
   mesh = 'sabotage_power_switch_on.obj',
   tiles = {'sabotage_power_switch.png'},
   paramtype = 'light',
   paramtype2 = 'facedir',
   selection_box = power_switch_box,
   collision_box = power_switch_box,
   groups = {breakable=1, sabotage=2, not_in_creative_inventory=1},
   drop = 'sabotage:power_switch_off',
   sabotage_switch = 'sabotage:power_switch_off',
   on_rightclick = sabotage.on_rightclick,
})

minetest.register_node('sabotage:power_switch_off', { --non-sabotaged version.
   description = 'Power Switch',
   drawtype = 'mesh',
   mesh = 'sabotage_power_switch_off.obj',
   tiles = {'sabotage_power_switch.png'},
   paramtype = 'light',
   paramtype2 = 'facedir',
   selection_box = power_switch_box,
   collision_box = power_switch_box,
   groups = {breakable=1, sabotage=1},
   sabotage_switch = 'sabotage:power_switch_on',
   on_rightclick = sabotage.on_rightclick,
})
