Simplify rotation of pillar-like nodes

This commit is contained in:
Wuzzy 2019-12-14 23:42:17 +01:00
parent 44c95084ab
commit 92ef7c3b9a
8 changed files with 68 additions and 0 deletions

View file

@ -1,5 +1,11 @@
local S = minetest.get_translator("mcl_farming")
local mod_screwdriver = minetest.get_modpath("screwdriver") ~= nil
local on_rotate
if mod_screwdriver then
on_rotate = screwdriver.rotate_simple
end
-- Seeds
minetest.register_craftitem("mcl_farming:pumpkin_seeds", {
description = S("Pumpkin Seeds"),
@ -93,6 +99,7 @@ local pumpkin_base_def = {
tiles = {"farming_pumpkin_top.png", "farming_pumpkin_top.png", "farming_pumpkin_side.png"},
groups = {handy=1,axey=1, plant=1,building_block=1, dig_by_piston=1, enderman_takable=1},
sounds = mcl_sounds.node_sound_wood_defaults(),
on_rotate = on_rotate,
_mcl_blast_resistance = 5,
_mcl_hardness = 1,
}
@ -134,6 +141,7 @@ minetest.register_node("mcl_farming:pumpkin_face_light", {
mobs_mc.tools.check_iron_golem_summon(pos)
mobs_mc.tools.check_snow_golem_summon(pos)
end,
on_rotate = on_rotate,
_mcl_blast_resistance = 5,
_mcl_hardness = 1,
})