on_rotate = screwdriver.rotate_simple,
sounds = default.node_sound_stone_defaults(),
sunlight_propagates = true,
- node_box = {
- type = "fixed",
- fixed = {{0, -0.5, 0, 0.375, -0.47, 0.375},
- {-0.4375, -0.5, -0.4375, -0.0625, -0.47, -0.0625},
- {-0.4375, -0.5, 0.125, -0.125, -0.47, 0.4375},
- {0.125, -0.5, -0.375, 0.375, -0.47, -0.125}}
- },
+ node_box = xdecor.pixelnodebox(16, {
+ {8, 0, 8, 14, 0.5, 14},
+ {1, 0, 1, 7, 0.5, 7},
+ {1, 0, 10, 6, 0.5, 15},
+ {10, 0, 2, 14, 0.5, 6}
+ }),
selection_box = xdecor.nodebox.slab_y(0.05)
})
tiles = {"xdecor_wood.png"},
groups = {choppy=3, oddly_breakable_by_hand=2, flammable=3},
sounds = default.node_sound_wood_defaults(),
- node_box = {
- type = "fixed",
- fixed = {{-0.5, 0.4, -0.5, 0.5, 0.5, 0.5},
- {-0.15, -0.5, -0.15, 0.15, 0.4, 0.15}}
- }
+ node_box = xdecor.pixelnodebox(16, {
+ {0, 14, 0, 16, 16, 16}, {5.5, 0, 5.5, 10.5, 14, 10.5}
+ })
})
xdecor.register("tatami", {
tiles = {"xdecor_tatami.png"},
wield_image = "xdecor_tatami.png",
groups = {snappy=3, flammable=3},
- node_box = {
- type = "fixed", fixed = {{-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5}}
- }
+ node_box = xdecor.nodebox.slab_y(0.0625)
})
xdecor.register("tv", {
})
minetest.register_craft({
- output = "xdecor:cushion 2",
+ output = "xdecor:cushion 3",
recipe = {
- {"wool:red", "wool:red"}
+ {"wool:red", "wool:red", "wool:red"}
}
})
default.player_set_animation(clicker, "stand", 30)
elseif default.player_attached[player] ~= true and node.param2 <= 3 and
+ clicker:get_player_control().sneak == false and
clicker:get_player_velocity().x == 0 and
clicker:get_player_velocity().y == 0 and
clicker:get_player_velocity().z == 0 then
sounds = default.node_sound_wood_defaults(),
groups = {choppy=3, oddly_breakable_by_hand=2, flammable=3},
on_rotate = screwdriver.rotate_simple,
- node_box = {
- type = "fixed",
- fixed = {{-0.3125, -0.5, 0.1875, -0.1875, 0.5, 0.3125},
- {0.1875, -0.5, 0.1875, 0.3125, 0.5, 0.3125},
- {-0.1875, 0.025, 0.22, 0.1875, 0.45, 0.28},
- {-0.3125, -0.5, -0.3125, -0.1875, -0.125, -0.1875},
- {0.1875, -0.5, -0.3125, 0.3125, -0.125, -0.1875},
- {-0.3125, -0.125, -0.3125, 0.3125, 0, 0.1875}}
- },
+ node_box = xdecor.pixelnodebox(16, {
+ {3, 0, 11, 5, 16, 13},
+ {11, 0, 11, 13, 16, 13},
+ {5, 9, 11.5, 11, 15, 12.5},
+ {3, 0, 3, 5, 6, 5},
+ {11, 0, 3, 13, 6, 5},
+ {3, 6, 3, 13, 8, 11}
+ }),
can_dig = dig,
on_rightclick = function(pos, node, clicker)
pos.y = pos.y + 0 -- Sitting position.
tiles = {"xdecor_cushion.png"},
groups = {snappy=3, flammable=3, fall_damage_add_percent=-50},
on_place = minetest.rotate_node,
- node_box = xdecor.nodebox.slab_y(-0.5, 0.5),
+ node_box = xdecor.nodebox.slab_y(0.5),
can_dig = dig,
on_rightclick = function(pos, node, clicker)
pos.y = pos.y + 0