forked from rudzik8/mcl_decor
Make a normal nodebox for Gravel Path instead of 2D texture
and update item texture for it
This commit is contained in:
parent
97e0bd9b52
commit
b28f2e69eb
21
register.lua
21
register.lua
|
@ -31,8 +31,7 @@ minetest.register_craft({
|
|||
minetest.register_node("mcl_decor:gravel_path", {
|
||||
description = S("Gravel Path"),
|
||||
tiles = {
|
||||
"mcl_decor_gravel_path.png",
|
||||
"blank.png" -- just to fix that ugly texturing for sides of the nodebox
|
||||
"default_gravel.png",
|
||||
},
|
||||
wield_image = "mcl_decor_gravel_path.png",
|
||||
inventory_image = "mcl_decor_gravel_path.png",
|
||||
|
@ -43,6 +42,24 @@ minetest.register_node("mcl_decor:gravel_path", {
|
|||
buildable_to = true,
|
||||
walkable = true,
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.4375, -0.5, -0.4375, -0.125, -0.4375, -0.125}, -- NodeBox1
|
||||
{-0.125, -0.5, -0.0625, 0.0625, -0.4375, 0.125}, -- NodeBox2
|
||||
{-0.3125, -0.5, 0.1875, -0.0625, -0.4375, 0.4375}, -- NodeBox3
|
||||
{0.0625, -0.5, -0.375, 0.25, -0.4375, -0.1875}, -- NodeBox4
|
||||
{0.125, -0.5, 0.125, 0.375, -0.4375, 0.375}, -- NodeBox5
|
||||
{0.25, -0.5, -0.125, 0.375, -0.4375, 0}, -- NodeBox6
|
||||
{-0.4375, -0.5, 0, -0.3125, -0.4375, 0.125}, -- NodeBox7
|
||||
}
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5},
|
||||
}
|
||||
},
|
||||
collision_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5},
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 430 B After Width: | Height: | Size: 412 B |
Loading…
Reference in New Issue