1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2025-07-16 20:50:22 +02:00

Disallow partially or entirely some items to rotate with the screwdriver

This commit is contained in:
kilbith
2015-05-14 12:25:11 +02:00
parent 246a38832a
commit e374b83bc0
20 changed files with 43 additions and 3 deletions

View File

@ -37,6 +37,7 @@ homedecor.register("desk_fan", {
inventory_image = "homedecor_desk_fan_inv.png",
wield_image = "homedecor_desk_fan_inv.png",
selection_box = { type = "regular" },
on_rotate = screwdriver.disallow,
on_construct = function(pos)
local entity_remove = minetest.get_objects_inside_radius(pos, 0.1)
local meta = minetest.get_meta(pos)