Cleaned up code
188
dirt_road.lua
@ -1,26 +1,3 @@
|
||||
local slope_cbox = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, -0.25, 0.5},
|
||||
{-0.5, -0.25, -0.25, 0.5, 0, 0.5},
|
||||
{-0.5, 0, 0, 0.5, 0.25, 0.5},
|
||||
{-0.5, 0.25, 0.25, 0.5, 0.5, 0.5}
|
||||
}
|
||||
}
|
||||
|
||||
local slope_cbox_long = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -1.5, 0.5, -0.375, 0.5}, -- NodeBox1
|
||||
{-0.5, -0.375, -1.25, 0.5, -0.25, 0.5}, -- NodeBox2
|
||||
{-0.5, -0.25, -1, 0.5, -0.125, 0.5}, -- NodeBox3
|
||||
{-0.5, -0.125, -0.75, 0.5, 0, 0.5}, -- NodeBox4
|
||||
{-0.5, 0, -0.5, 0.5, 0.125, 0.5}, -- NodeBox5
|
||||
{-0.5, 0.125, -0.25, 0.5, 0.25, 0.5}, -- NodeBox6
|
||||
{-0.5, 0.25, 0, 0.5, 0.375, 0.5}, -- NodeBox7
|
||||
{-0.5, 0.375, 0.25, 0.5, 0.5, 0.5}, -- NodeBox8
|
||||
}
|
||||
}
|
||||
|
||||
--Dirt Road
|
||||
minetest.register_node("mypaths:dirt_road", {
|
||||
@ -42,7 +19,7 @@ minetest.register_node("mypaths:dirt_road_side", {
|
||||
description = "Dirt Road Side",
|
||||
tile_images = {"mypaths_dirt_road_side.png",
|
||||
"mypaths_dirt_road_side.png",
|
||||
"mypaths_grass.png",
|
||||
"default_grass.png",
|
||||
"mypaths_dirt_road.png",
|
||||
"mypaths_dirt_road_side2.png",
|
||||
"mypaths_dirt_road_side.png",
|
||||
@ -66,11 +43,11 @@ minetest.register_craft({
|
||||
minetest.register_node("mypaths:dirt_road_side_angle", {
|
||||
description = "Dirt Road Side Angle",
|
||||
tile_images = {"mypaths_dirt_road_side_angle.png",
|
||||
"mypaths_grass.png",
|
||||
"mypaths_grass.png",
|
||||
"default_grass.png",
|
||||
"default_grass.png",
|
||||
"mypaths_dirt_road.png",
|
||||
"mypaths_dirt_road.png",
|
||||
"mypaths_grass.png",
|
||||
"default_grass.png",
|
||||
},
|
||||
drawtype = "normal",
|
||||
paramtype = "light",
|
||||
@ -92,10 +69,10 @@ minetest.register_node("mypaths:dirt_road_side_angle_end1", {
|
||||
description = "Dirt Road Angle End 1",
|
||||
tile_images = {"mypaths_dirt_road_side_angle_end1.png",
|
||||
"mypaths_dirt_road_side_angle_end2.png^[transformR180",
|
||||
"mypaths_grass.png",
|
||||
"default_grass.png",
|
||||
"mypaths_dirt_road.png",
|
||||
"mypaths_dirt_road_side.png^[transformR180",
|
||||
"mypaths_grass.png",
|
||||
"default_grass.png",
|
||||
},
|
||||
drawtype = "normal",
|
||||
paramtype = "light",
|
||||
@ -118,9 +95,9 @@ minetest.register_node("mypaths:dirt_road_side_angle_end2", {
|
||||
tile_images = {"mypaths_dirt_road_side_angle_end2.png",
|
||||
"mypaths_dirt_road_side_angle_end2.png^[transformFY",
|
||||
"mypaths_dirt_road.png",
|
||||
"mypaths_grass.png",
|
||||
"default_grass.png",
|
||||
"mypaths_dirt_road_side.png",
|
||||
"mypaths_grass.png",
|
||||
"default_grass.png",
|
||||
},
|
||||
drawtype = "normal",
|
||||
paramtype = "light",
|
||||
@ -145,7 +122,7 @@ minetest.register_node("mypaths:dirt_road_side_angle_end3", {
|
||||
"mypaths_dirt_road.png",
|
||||
"mypaths_dirt_road_side.png",
|
||||
"mypaths_dirt_road.png",
|
||||
"mypaths_grass.png",
|
||||
"default_grass.png",
|
||||
},
|
||||
drawtype = "normal",
|
||||
paramtype = "light",
|
||||
@ -170,7 +147,7 @@ minetest.register_node("mypaths:dirt_road_side_angle_end4", {
|
||||
"mypaths_dirt_road_side.png^[transformR180",
|
||||
"mypaths_dirt_road.png",
|
||||
"mypaths_dirt_road.png",
|
||||
"mypaths_grass.png",
|
||||
"default_grass.png",
|
||||
},
|
||||
drawtype = "normal",
|
||||
paramtype = "light",
|
||||
@ -218,9 +195,9 @@ minetest.register_node("mypaths:dirt_road_ocorner", {
|
||||
description = "Dirt Road Outside Corner",
|
||||
tile_images = {"mypaths_dirt_road_ocorner.png",
|
||||
"mypaths_dirt_road_ocorner.png^[transformR270",
|
||||
"mypaths_grass.png",
|
||||
"default_grass.png",
|
||||
"mypaths_dirt_road_side2.png",
|
||||
"mypaths_grass.png",
|
||||
"default_grass.png",
|
||||
"mypaths_dirt_road_side.png",
|
||||
},
|
||||
drawtype = "normal",
|
||||
@ -238,145 +215,4 @@ minetest.register_craft({
|
||||
{"mypaths:dirt_road", "mypaths:dirt_road","default:dirt"},
|
||||
}
|
||||
})
|
||||
--Dirt Road Side Slope
|
||||
minetest.register_node("mypaths:dirt_road_slope", {
|
||||
description = "Dirt Road Edge Slope",
|
||||
drawtype = "mesh",
|
||||
mesh = "slope_test_slope.obj",
|
||||
tiles = {"mypaths_path_mesh.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {choppy=2, oddly_breakable_by_hand=2, flammable=3},
|
||||
sounds = default.node_sound_dirt_defaults(),
|
||||
on_place = minetest.rotate_node,
|
||||
collision_box = slope_cbox,
|
||||
selection_box = slope_cbox
|
||||
})
|
||||
--Craft
|
||||
minetest.register_craft({
|
||||
output = "mypaths:dirt_road_slope 6",
|
||||
recipe = {
|
||||
{"", "","mypaths:dirt_road_side"},
|
||||
{"", "mypaths:dirt_road_side","mypaths:dirt_road_side"},
|
||||
{"mypaths:dirt_road_side", "mypaths:dirt_road_side","mypaths:dirt_road_side"},
|
||||
}
|
||||
})
|
||||
|
||||
--Dirt Road Side Slope 2
|
||||
minetest.register_node("mypaths:dirt_road_slope2", {
|
||||
description = "Dirt Road Edge Slope 2",
|
||||
drawtype = "mesh",
|
||||
mesh = "slope_test_slope.obj",
|
||||
tiles = {"mypaths_path_mesh2.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {choppy=2, oddly_breakable_by_hand=2, flammable=3},
|
||||
sounds = default.node_sound_dirt_defaults(),
|
||||
on_place = minetest.rotate_node,
|
||||
collision_box = slope_cbox,
|
||||
selection_box = slope_cbox
|
||||
})
|
||||
--Craft
|
||||
minetest.register_craft({
|
||||
output = "mypaths:dirt_road_slope2 6",
|
||||
recipe = {
|
||||
{"mypaths:dirt_road_side", "",""},
|
||||
{"mypaths:dirt_road_side", "mypaths:dirt_road_side",""},
|
||||
{"mypaths:dirt_road_side", "mypaths:dirt_road_side","mypaths:dirt_road_side"},
|
||||
}
|
||||
})
|
||||
|
||||
--Dirt Road Slope
|
||||
minetest.register_node("mypaths:dirt_dirt_slope", {
|
||||
description = "Dirt Road Slope",
|
||||
drawtype = "mesh",
|
||||
mesh = "slope_test_slope.obj",
|
||||
tiles = {"mypaths_dirt_mesh.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {choppy=2, oddly_breakable_by_hand=2, flammable=3},
|
||||
sounds = default.node_sound_dirt_defaults(),
|
||||
on_place = minetest.rotate_node,
|
||||
collision_box = slope_cbox,
|
||||
selection_box = slope_cbox
|
||||
})
|
||||
--Craft
|
||||
minetest.register_craft({
|
||||
output = "mypaths:dirt_dirt_slope 6",
|
||||
recipe = {
|
||||
{"", "","mypaths:dirt_road"},
|
||||
{"", "mypaths:dirt_road","mypaths:dirt_road"},
|
||||
{"mypaths:dirt_road", "mypaths:dirt_road","mypaths:dirt_road"},
|
||||
}
|
||||
})
|
||||
--Dirt Road Slope Long
|
||||
minetest.register_node("mypaths:dirt_slope_long", {
|
||||
description = "Dirt Long slope",
|
||||
drawtype = "mesh",
|
||||
mesh = "slope_test_slope_long.obj",
|
||||
tiles = {"mypaths_dirt_long_mesh.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {choppy=2, oddly_breakable_by_hand=2, flammable=3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_place = minetest.rotate_node,
|
||||
collision_box = slope_cbox_long,
|
||||
selection_box = slope_cbox_long
|
||||
})
|
||||
--Craft
|
||||
minetest.register_craft({
|
||||
output = "mypaths:dirt_slope_long 1",
|
||||
recipe = {
|
||||
{"mypaths:dirt_dirt_slope", "mypaths:dirt_dirt_slope",""},
|
||||
{"", "",""},
|
||||
{"", "",""},
|
||||
}
|
||||
})
|
||||
|
||||
--Dirt Road Side Slope Long
|
||||
minetest.register_node("mypaths:dirt_side_slope_long", {
|
||||
description = "Dirt Side Long slope",
|
||||
drawtype = "mesh",
|
||||
mesh = "slope_test_slope_long.obj",
|
||||
tiles = {"mypaths_dirt_side_long_mesh.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {choppy=2, oddly_breakable_by_hand=2, flammable=3},
|
||||
sounds = default.node_sound_dirt_defaults(),
|
||||
on_place = minetest.rotate_node,
|
||||
collision_box = slope_cbox_long,
|
||||
selection_box = slope_cbox_long
|
||||
})
|
||||
--Craft
|
||||
minetest.register_craft({
|
||||
output = "mypaths:dirt_side_slope_long 1",
|
||||
recipe = {
|
||||
{"mypaths:dirt_road_slope", "mypaths:dirt_road_slope",""},
|
||||
{"", "",""},
|
||||
{"", "",""},
|
||||
}
|
||||
})
|
||||
|
||||
--Dirt Road Side Slope Long2
|
||||
minetest.register_node("mypaths:dirt_side_slope_long2", {
|
||||
description = "Dirt Side Long slope 2",
|
||||
drawtype = "mesh",
|
||||
mesh = "slope_test_slope_long.obj",
|
||||
tiles = {"mypaths_dirt_side_long_mesh2.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {choppy=2, oddly_breakable_by_hand=2, flammable=3},
|
||||
sounds = default.node_sound_dirt_defaults(),
|
||||
on_place = minetest.rotate_node,
|
||||
collision_box = slope_cbox_long,
|
||||
selection_box = slope_cbox_long
|
||||
})
|
||||
--Craft
|
||||
minetest.register_craft({
|
||||
output = "mypaths:dirt_side_slope_long2 1",
|
||||
recipe = {
|
||||
{"mypaths:dirt_road_slope2", "mypaths:dirt_road_slope2",""},
|
||||
{"", "",""},
|
||||
{"", "",""},
|
||||
}
|
||||
})
|
||||
|
168
dirt_road_slopes.lua
Normal file
@ -0,0 +1,168 @@
|
||||
local slope_cbox = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, -0.25, 0.5},
|
||||
{-0.5, -0.25, -0.25, 0.5, 0, 0.5},
|
||||
{-0.5, 0, 0, 0.5, 0.25, 0.5},
|
||||
{-0.5, 0.25, 0.25, 0.5, 0.5, 0.5}
|
||||
}
|
||||
}
|
||||
|
||||
local slope_cbox_long = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -1.5, 0.5, -0.375, 0.5}, -- NodeBox1
|
||||
{-0.5, -0.375, -1.25, 0.5, -0.25, 0.5}, -- NodeBox2
|
||||
{-0.5, -0.25, -1, 0.5, -0.125, 0.5}, -- NodeBox3
|
||||
{-0.5, -0.125, -0.75, 0.5, 0, 0.5}, -- NodeBox4
|
||||
{-0.5, 0, -0.5, 0.5, 0.125, 0.5}, -- NodeBox5
|
||||
{-0.5, 0.125, -0.25, 0.5, 0.25, 0.5}, -- NodeBox6
|
||||
{-0.5, 0.25, 0, 0.5, 0.375, 0.5}, -- NodeBox7
|
||||
{-0.5, 0.375, 0.25, 0.5, 0.5, 0.5}, -- NodeBox8
|
||||
}
|
||||
}
|
||||
|
||||
--Dirt Road Side Slope
|
||||
minetest.register_node("mypaths:dirt_road_slope", {
|
||||
description = "Dirt Road Edge Slope",
|
||||
drawtype = "mesh",
|
||||
mesh = "slope.obj",
|
||||
tiles = {"mypaths_path_mesh.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {crumbly = 2},
|
||||
sounds = default.node_sound_dirt_defaults(),
|
||||
on_place = minetest.rotate_node,
|
||||
collision_box = slope_cbox,
|
||||
selection_box = slope_cbox
|
||||
})
|
||||
|
||||
--Craft
|
||||
minetest.register_craft({
|
||||
output = "mypaths:dirt_road_slope 6",
|
||||
recipe = {
|
||||
{"", "","mypaths:dirt_road_side"},
|
||||
{"", "mypaths:dirt_road_side","mypaths:dirt_road_side"},
|
||||
{"mypaths:dirt_road_side", "mypaths:dirt_road_side","mypaths:dirt_road_side"},
|
||||
}
|
||||
})
|
||||
|
||||
--Dirt Road Side Slope 2
|
||||
minetest.register_node("mypaths:dirt_road_slope2", {
|
||||
description = "Dirt Road Edge Slope 2",
|
||||
drawtype = "mesh",
|
||||
mesh = "slope.obj",
|
||||
tiles = {"mypaths_path_mesh2.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {crumbly = 2},
|
||||
sounds = default.node_sound_dirt_defaults(),
|
||||
on_place = minetest.rotate_node,
|
||||
collision_box = slope_cbox,
|
||||
selection_box = slope_cbox
|
||||
})
|
||||
--Craft
|
||||
minetest.register_craft({
|
||||
output = "mypaths:dirt_road_slope2 6",
|
||||
recipe = {
|
||||
{"mypaths:dirt_road_side", "",""},
|
||||
{"mypaths:dirt_road_side", "mypaths:dirt_road_side",""},
|
||||
{"mypaths:dirt_road_side", "mypaths:dirt_road_side","mypaths:dirt_road_side"},
|
||||
}
|
||||
})
|
||||
|
||||
--Dirt Road Slope
|
||||
minetest.register_node("mypaths:dirt_dirt_slope", {
|
||||
description = "Dirt Road Slope",
|
||||
drawtype = "mesh",
|
||||
mesh = "twelve-twelve.obj",
|
||||
tiles = {"mypaths_dirt_road.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {crumbly = 2},
|
||||
sounds = default.node_sound_dirt_defaults(),
|
||||
on_place = minetest.rotate_node,
|
||||
collision_box = slope_cbox,
|
||||
selection_box = slope_cbox
|
||||
})
|
||||
|
||||
--Craft
|
||||
minetest.register_craft({
|
||||
output = "mypaths:dirt_dirt_slope 6",
|
||||
recipe = {
|
||||
{"", "","mypaths:dirt_road"},
|
||||
{"", "mypaths:dirt_road","mypaths:dirt_road"},
|
||||
{"mypaths:dirt_road", "mypaths:dirt_road","mypaths:dirt_road"},
|
||||
}
|
||||
})
|
||||
--Dirt Road Slope Long
|
||||
minetest.register_node("mypaths:dirt_slope_long", {
|
||||
description = "Dirt Long slope",
|
||||
drawtype = "mesh",
|
||||
mesh = "six-twelve_slope.obj",
|
||||
tiles = {"mypaths_dirt_road.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {crumbly = 2},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_place = minetest.rotate_node,
|
||||
collision_box = slope_cbox_long,
|
||||
selection_box = slope_cbox_long
|
||||
})
|
||||
--Craft
|
||||
minetest.register_craft({
|
||||
output = "mypaths:dirt_slope_long 1",
|
||||
recipe = {
|
||||
{"mypaths:dirt_dirt_slope", "mypaths:dirt_dirt_slope",""},
|
||||
{"", "",""},
|
||||
{"", "",""},
|
||||
}
|
||||
})
|
||||
|
||||
--Dirt Road Side Slope Long
|
||||
minetest.register_node("mypaths:dirt_side_slope_long", {
|
||||
description = "Dirt Side Long slope",
|
||||
drawtype = "mesh",
|
||||
mesh = "slope_long.obj",
|
||||
tiles = {"mypaths_dirt_side_long_mesh.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {crumbly = 2},
|
||||
sounds = default.node_sound_dirt_defaults(),
|
||||
on_place = minetest.rotate_node,
|
||||
collision_box = slope_cbox_long,
|
||||
selection_box = slope_cbox_long
|
||||
})
|
||||
--Craft
|
||||
minetest.register_craft({
|
||||
output = "mypaths:dirt_side_slope_long 1",
|
||||
recipe = {
|
||||
{"mypaths:dirt_road_slope", "mypaths:dirt_road_slope",""},
|
||||
{"", "",""},
|
||||
{"", "",""},
|
||||
}
|
||||
})
|
||||
|
||||
--Dirt Road Side Slope Long2
|
||||
minetest.register_node("mypaths:dirt_side_slope_long2", {
|
||||
description = "Dirt Side Long slope 2",
|
||||
drawtype = "mesh",
|
||||
mesh = "slope_long.obj",
|
||||
tiles = {"mypaths_dirt_side_long_mesh2.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {crumbly = 2},
|
||||
sounds = default.node_sound_dirt_defaults(),
|
||||
on_place = minetest.rotate_node,
|
||||
collision_box = slope_cbox_long,
|
||||
selection_box = slope_cbox_long
|
||||
})
|
||||
--Craft
|
||||
minetest.register_craft({
|
||||
output = "mypaths:dirt_side_slope_long2 1",
|
||||
recipe = {
|
||||
{"mypaths:dirt_road_slope2", "mypaths:dirt_road_slope2",""},
|
||||
{"", "",""},
|
||||
{"", "",""},
|
||||
}
|
||||
})
|
133
grass.lua
@ -45,15 +45,53 @@ local ocorner_cbox = {
|
||||
}
|
||||
}
|
||||
|
||||
local icorner_cbox_long = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -1.5, -0.25, 0.5, 0.5},
|
||||
{-0.5, -0.5, 0.25, 1.5, 0.5, 0.5},
|
||||
{-0.5, -0.5, 0, 1.5, 0.375, 0.5},
|
||||
{-0.5, -0.5, -1.5, 0, 0.375, 0.5},
|
||||
{-0.5, -0.5, -1.5, 0.25, 0.25, 0.5},
|
||||
{-0.5, -0.5, -1.5, 0.5, 0.125, 0.5},
|
||||
{-0.5, -0.5, -1.5, 0.75, 0, 0.5},
|
||||
{-0.5, -0.5, -1.5, 1, -0.125, 0.5},
|
||||
{-0.5, -0.5, -1.5, 1.25, -0.25, 0.5},
|
||||
{-0.5, -0.5, -1.5, 1.5, -0.375, 0.5},
|
||||
{-0.5, -0.5, -0.25, 1.5, 0.25, 0.5},
|
||||
{-0.5, -0.5, -0.5, 1.5, 0.125, 0.5},
|
||||
{-0.5, -0.5, -0.75, 1.5, 0, 0.5},
|
||||
{-0.5, -0.5, -1, 1.5, -0.125, 0.5},
|
||||
{-0.5, -0.5, -1.25, 1.5, -0.25, 0.5},
|
||||
}
|
||||
}
|
||||
|
||||
local ocorner_cbox_long = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, 0.25, -0.25, 0.5, 0.5},
|
||||
{-0.5, -0.5, 0, 0, 0.375, 0.5},
|
||||
{-0.5, -0.5, -0.25, 0.25, 0.25, 0.5},
|
||||
{-0.5, -0.5, -0.5, 0.5, 0.125, 0.5},
|
||||
{-0.5, -0.5, -0.75, 0.75, 0, 0.5},
|
||||
{-0.5, -0.5, -1, 1, -0.125, 0.5},
|
||||
{-0.5, -0.5, -1.25, 1.25, -0.25, 0.5},
|
||||
{-0.5, -0.5, -1.5, 1.5, -0.375, 0.5},
|
||||
}
|
||||
}
|
||||
|
||||
--Grass Block
|
||||
minetest.register_node("mypaths:grass", {
|
||||
description = "Grass",
|
||||
description = "Fake Grass",
|
||||
tiles = {"default_grass.png"},
|
||||
drawtype = "normal",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {crumbly = 2, soil=1},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
})
|
||||
sounds = default.node_sound_dirt_defaults({
|
||||
footstep = {name="default_grass_footstep", gain=0.25},
|
||||
}),
|
||||
})
|
||||
--Craft
|
||||
minetest.register_craft({
|
||||
output = "mypaths:grass 9",
|
||||
@ -67,12 +105,14 @@ minetest.register_craft({
|
||||
minetest.register_node("mypaths:grass_slope", {
|
||||
description = "Grass slope",
|
||||
drawtype = "mesh",
|
||||
mesh = "slope_test_slope.obj",
|
||||
tiles = {"mypaths_grass_mesh.png"},
|
||||
mesh = "twelve-twelve.obj",
|
||||
tiles = {"default_grass.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {choppy=2, oddly_breakable_by_hand=2, flammable=3},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
groups = {crumbly = 2, soil=1},
|
||||
sounds = default.node_sound_dirt_defaults({
|
||||
footstep = {name="default_grass_footstep", gain=0.25},
|
||||
}),
|
||||
on_place = minetest.rotate_node,
|
||||
collision_box = slope_cbox,
|
||||
selection_box = slope_cbox
|
||||
@ -89,12 +129,14 @@ minetest.register_craft({
|
||||
minetest.register_node("mypaths:grass_slope_long", {
|
||||
description = "Grass Slope Long",
|
||||
drawtype = "mesh",
|
||||
mesh = "slope_test_slope_long.obj",
|
||||
tiles = {"mypaths_grass_mesh.png"},
|
||||
mesh = "six-twelve_slope.obj",
|
||||
tiles = {"default_grass.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {choppy=2, oddly_breakable_by_hand=2, flammable=3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
groups = {crumbly = 2, soil=1},
|
||||
sounds = default.node_sound_dirt_defaults({
|
||||
footstep = {name="default_grass_footstep", gain=0.25},
|
||||
}),
|
||||
on_place = minetest.rotate_node,
|
||||
collision_box = slope_cbox_long,
|
||||
selection_box = slope_cbox_long
|
||||
@ -112,12 +154,14 @@ minetest.register_craft({
|
||||
minetest.register_node("mypaths:grass_ocorner", {
|
||||
description = "Grass slope (outer corner)",
|
||||
drawtype = "mesh",
|
||||
mesh = "slope_test_ocorner.obj",
|
||||
tiles = {"mypaths_grass_mesh.png"},
|
||||
mesh = "twelve-twelve-oc.obj",
|
||||
tiles = {"default_grass.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {choppy=2, oddly_breakable_by_hand=2, flammable=3},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
groups = {crumbly = 2, soil=1},
|
||||
sounds = default.node_sound_dirt_defaults({
|
||||
footstep = {name="default_grass_footstep", gain=0.25},
|
||||
}),
|
||||
on_place = minetest.rotate_node,
|
||||
collision_box = ocorner_cbox,
|
||||
selection_box = ocorner_cbox
|
||||
@ -136,14 +180,17 @@ minetest.register_craft({
|
||||
minetest.register_node("mypaths:grass_icorner", {
|
||||
description = "Grass slope (inner corner)",
|
||||
drawtype = "mesh",
|
||||
mesh = "slope_test_icorner.obj",
|
||||
tiles = {"mypaths_grass_mesh.png"},
|
||||
mesh = "twelve-twelve-ic.obj",
|
||||
tiles = {"default_grass.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {choppy=2, oddly_breakable_by_hand=2, flammable=3},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
groups = {crumbly = 2, soil=1},
|
||||
sounds = default.node_sound_dirt_defaults({
|
||||
footstep = {name="default_grass_footstep", gain=0.25},
|
||||
}),
|
||||
on_place = minetest.rotate_node,
|
||||
collision_box = icorner_cbox,
|
||||
selection_box = icorner_cbox
|
||||
})
|
||||
--Craft
|
||||
minetest.register_craft({
|
||||
@ -154,3 +201,51 @@ minetest.register_craft({
|
||||
{"mypaths:grass", "",""},
|
||||
}
|
||||
})
|
||||
minetest.register_node("mypaths:grass_slope_long_oc", {
|
||||
description = "Grass Slope Long (Outer Corner)",
|
||||
drawtype = "mesh",
|
||||
mesh = "six-twelve_slope-oc.obj",
|
||||
tiles = {"default_grass.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {crumbly = 2, soil=1},
|
||||
sounds = default.node_sound_dirt_defaults({
|
||||
footstep = {name="default_grass_footstep", gain=0.25},
|
||||
}),
|
||||
on_place = minetest.rotate_node,
|
||||
collision_box = ocorner_cbox_long,
|
||||
selection_box = ocorner_cbox_long
|
||||
})
|
||||
--Craft
|
||||
minetest.register_craft({
|
||||
output = "mypaths:grass_slope_long_oc 3",
|
||||
recipe = {
|
||||
{"mypaths:grass_slope", "mypaths:grass_slope","mypaths:grass_slope"},
|
||||
{"mypaths:grass_slope", "mypaths:grass_slope",""},
|
||||
{"mypaths:grass_slope", "",""},
|
||||
}
|
||||
})
|
||||
minetest.register_node("mypaths:grass_slope_long_ic", {
|
||||
description = "Grass Slope Long (Inner Corner)",
|
||||
drawtype = "mesh",
|
||||
mesh = "six-twelve_slope-ic.obj",
|
||||
tiles = {"default_grass.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {crumbly = 2, soil=1},
|
||||
sounds = default.node_sound_dirt_defaults({
|
||||
footstep = {name="default_grass_footstep", gain=0.25},
|
||||
}),
|
||||
on_place = minetest.rotate_node,
|
||||
collision_box = icorner_cbox_long,
|
||||
selection_box = icorner_cbox_long
|
||||
})
|
||||
--Craft
|
||||
minetest.register_craft({
|
||||
output = "mypaths:grass_slope_long_ic 4",
|
||||
recipe = {
|
||||
{"mypaths:grass_slope", "mypaths:grass_slope","mypaths:grass_slope"},
|
||||
{"mypaths:grass_slope", "mypaths:grass_slope","mypaths:grass_slope"},
|
||||
{"mypaths:grass_slope", "mypaths:grass_slope",""},
|
||||
}
|
||||
})
|
||||
|
1
init.lua
@ -1,4 +1,5 @@
|
||||
|
||||
dofile(minetest.get_modpath("mypaths").."/dirt_road.lua")
|
||||
dofile(minetest.get_modpath("mypaths").."/dirt_road_slopes.lua")
|
||||
dofile(minetest.get_modpath("mypaths").."/stone_paths.lua")
|
||||
dofile(minetest.get_modpath("mypaths").."/grass.lua")
|
||||
|
59
models/six-twelve_slope-ic.obj
Normal file
@ -0,0 +1,59 @@
|
||||
# Blender v2.73 (sub 0) OBJ File: 'six-twelve_allslopes.blend'
|
||||
# www.blender.org
|
||||
v -1.500000 -0.500000 0.500000
|
||||
v -1.500000 -0.500000 -0.500000
|
||||
v -0.500000 -0.500000 -0.500000
|
||||
v -0.500000 -0.500000 0.500000
|
||||
v -1.500000 0.500000 0.500000
|
||||
v -1.500000 0.000000 -0.500000
|
||||
v -0.500000 0.000000 -0.500000
|
||||
v -0.500000 0.500000 0.500000
|
||||
v -1.500000 -0.500000 -1.500000
|
||||
v -0.500000 -0.500000 -1.500000
|
||||
v -0.500000 0.000000 -1.500000
|
||||
v 0.500000 -0.500000 -0.500000
|
||||
v 0.500000 -0.500000 0.500000
|
||||
v 0.500000 0.500000 -0.500000
|
||||
v 0.500000 0.500000 0.500000
|
||||
v 0.500000 -0.500000 -1.500000
|
||||
v 0.500000 0.500000 -1.500000
|
||||
vt 0.999900 0.999900
|
||||
vt 0.000100 0.500000
|
||||
vt 0.000100 0.000100
|
||||
vt 0.999900 0.000100
|
||||
vt 1.000000 0.000000
|
||||
vt 1.000000 1.000000
|
||||
vt 0.000000 1.000000
|
||||
vt 0.000100 0.999900
|
||||
vt 1.000000 0.000095
|
||||
vt 1.000000 0.999905
|
||||
vt 0.006215 0.006580
|
||||
vt 0.000047 0.000142
|
||||
vt 1.000000 0.500000
|
||||
vt 0.000000 0.000000
|
||||
vn -1.000000 0.000000 0.000000
|
||||
vn 0.000000 0.894400 -0.447200
|
||||
vn 0.000000 0.000000 1.000000
|
||||
vn 0.000000 -1.000000 0.000000
|
||||
vn -0.447200 0.894400 0.000000
|
||||
vn 1.000000 0.000000 0.000000
|
||||
vn 0.000000 0.000000 -1.000000
|
||||
s off
|
||||
f 5/1/1 6/2/1 2/3/1 1/4/1
|
||||
f 7/5/2 8/6/2 15/7/2
|
||||
f 8/1/3 5/8/3 1/3/3 4/4/3
|
||||
f 1/8/4 2/3/4 3/4/4 4/1/4
|
||||
f 8/8/2 7/3/2 6/9/2 5/10/2
|
||||
f 14/7/5 7/11/5 15/6/5
|
||||
f 6/6/2 7/7/2 9/5/2
|
||||
f 3/1/4 2/8/4 9/3/4 10/4/4
|
||||
f 11/12/5 7/9/5 14/6/5 17/7/5
|
||||
f 14/1/6 15/8/6 13/3/6 12/4/6
|
||||
f 14/8/6 12/3/6 16/4/6 17/1/6
|
||||
f 3/8/4 10/3/4 16/4/4 12/1/4
|
||||
f 10/5/7 11/13/7 17/7/7 16/14/7
|
||||
f 4/8/4 3/3/4 12/4/4 13/1/4
|
||||
f 8/8/3 4/3/3 13/4/3 15/1/3
|
||||
f 7/6/5 11/7/5 9/14/5
|
||||
f 9/4/7 11/2/7 10/3/7
|
||||
f 2/5/1 6/13/1 9/14/1
|
49
models/six-twelve_slope-oc.obj
Normal file
@ -0,0 +1,49 @@
|
||||
# Blender v2.73 (sub 0) OBJ File: 'six-twelve_allslopes.blend'
|
||||
# www.blender.org
|
||||
v -1.500000 -0.500000 0.500000
|
||||
v -1.500000 -0.500000 -0.500000
|
||||
v -0.500000 -0.500000 -0.500000
|
||||
v -0.500000 -0.500000 0.500000
|
||||
v -0.500000 0.000000 -0.500000
|
||||
v -0.500000 0.000000 0.500000
|
||||
v -1.500000 -0.500000 -1.500000
|
||||
v -0.500000 -0.500000 -1.500000
|
||||
v 0.500000 -0.500000 -0.500000
|
||||
v 0.500000 -0.500000 0.500000
|
||||
v 0.500000 0.000000 -0.500000
|
||||
v 0.500000 0.500000 0.500000
|
||||
v 0.500000 -0.500000 -1.500000
|
||||
vt 0.000000 0.000000
|
||||
vt 1.000000 0.000000
|
||||
vt 1.000000 1.000000
|
||||
vt 0.000047 0.999952
|
||||
vt 0.000047 0.000142
|
||||
vt 0.999953 0.000142
|
||||
vt 0.000100 0.999900
|
||||
vt 0.000100 0.000100
|
||||
vt 0.999900 0.000100
|
||||
vt 0.999900 0.999900
|
||||
vt 0.999900 0.500000
|
||||
vt 1.000000 0.999905
|
||||
vt 0.000100 0.500000
|
||||
vt 1.000000 0.500000
|
||||
vn -0.447200 0.894400 0.000000
|
||||
vn 0.000000 -1.000000 0.000000
|
||||
vn 0.000000 0.894400 -0.447200
|
||||
vn 1.000000 0.000000 0.000000
|
||||
vn 0.000000 0.000000 1.000000
|
||||
s off
|
||||
f 5/1/1 6/2/1 12/3/1
|
||||
f 6/3/1 5/4/1 2/5/1 1/6/1
|
||||
f 1/7/2 2/8/2 3/9/2 4/10/2
|
||||
f 2/2/1 5/3/1 7/1/1
|
||||
f 11/1/3 5/2/3 12/4/3
|
||||
f 3/10/2 2/7/2 7/8/2 8/9/2
|
||||
f 11/11/4 12/7/4 10/8/4 9/9/4
|
||||
f 8/6/3 5/12/3 11/7/3 13/8/3
|
||||
f 3/7/2 8/8/2 13/9/2 9/10/2
|
||||
f 5/7/3 8/8/3 7/6/3
|
||||
f 4/7/2 3/8/2 9/9/2 10/10/2
|
||||
f 6/13/5 4/8/5 10/9/5 12/10/5
|
||||
f 11/13/4 9/8/4 13/9/4
|
||||
f 6/14/5 1/1/5 4/2/5
|
38
models/six-twelve_slope.obj
Normal file
@ -0,0 +1,38 @@
|
||||
# Blender v2.73 (sub 0) OBJ File: 'six-twelve_allslopes.blend'
|
||||
# www.blender.org
|
||||
v -0.500000 -0.500000 0.500000
|
||||
v -0.500000 -0.500000 -0.500000
|
||||
v 0.500000 -0.500000 -0.500000
|
||||
v 0.500000 -0.500000 0.500000
|
||||
v -0.500000 0.500000 0.500000
|
||||
v -0.500000 0.000000 -0.500000
|
||||
v 0.500000 0.000000 -0.500000
|
||||
v 0.500000 0.500000 0.500000
|
||||
v -0.500000 -0.500000 -1.500000
|
||||
v 0.500000 -0.500000 -1.500000
|
||||
vt 0.999900 0.999900
|
||||
vt 0.000100 0.500000
|
||||
vt 0.000100 0.000100
|
||||
vt 0.999900 0.000100
|
||||
vt 0.999900 0.500000
|
||||
vt 0.000100 0.999900
|
||||
vt 1.000000 0.000095
|
||||
vt 1.000000 0.999905
|
||||
vt 1.000000 0.000000
|
||||
vt 1.000000 0.500000
|
||||
vt 0.000000 0.000000
|
||||
vn -1.000000 0.000000 0.000000
|
||||
vn 1.000000 0.000000 0.000000
|
||||
vn 0.000000 0.000000 1.000000
|
||||
vn 0.000000 -1.000000 0.000000
|
||||
vn 0.000000 0.894400 -0.447200
|
||||
s off
|
||||
f 5/1/1 6/2/1 2/3/1 1/4/1
|
||||
f 7/5/2 8/6/2 4/3/2 3/4/2
|
||||
f 8/1/3 5/6/3 1/3/3 4/4/3
|
||||
f 1/6/4 2/3/4 3/4/4 4/1/4
|
||||
f 8/6/5 7/3/5 6/7/5 5/8/5
|
||||
f 6/8/5 7/6/5 10/3/5 9/7/5
|
||||
f 7/2/2 3/3/2 10/4/2
|
||||
f 3/1/4 2/6/4 9/3/4 10/4/4
|
||||
f 2/9/1 6/10/1 9/11/1
|
@ -1,48 +0,0 @@
|
||||
# Blender v2.69 (sub 0) OBJ File: 'slope_test_icorner.blend'
|
||||
# www.blender.org
|
||||
mtllib slope_test_icorner.mtl
|
||||
o Cube_Cube.000
|
||||
v 0.500000 0.500000 0.500000
|
||||
v -0.500000 0.500000 0.500000
|
||||
v -0.500000 -0.500000 0.500000
|
||||
v 0.500000 -0.500000 0.500000
|
||||
v -0.500000 -0.500000 -0.500000
|
||||
v 0.500000 0.500000 -0.500000
|
||||
v 0.500000 -0.500000 0.500000
|
||||
v 0.500000 -0.500000 -0.500000
|
||||
v -0.500000 -0.500000 -0.500000
|
||||
vt 0.546875 0.984375
|
||||
vt 0.296875 0.984375
|
||||
vt 0.296875 0.734375
|
||||
vt 0.546875 0.734375
|
||||
vt 0.828125 0.421875
|
||||
vt 0.578125 0.171875
|
||||
vt 0.828125 0.171875
|
||||
vt 0.546875 0.703125
|
||||
vt 0.296875 0.703125
|
||||
vt 0.546875 0.328125
|
||||
vt 0.578125 0.703125
|
||||
vt 0.578125 0.453125
|
||||
vt 0.828125 0.453125
|
||||
vt 0.828125 0.984375
|
||||
vt 0.578125 0.984375
|
||||
vt 0.578125 0.734375
|
||||
vt 0.828125 0.734375
|
||||
vt 0.015625 0.734375
|
||||
vt 0.265625 0.734375
|
||||
vt 0.265625 0.984375
|
||||
vt 0.015625 0.984375
|
||||
vt 0.265625 0.703125
|
||||
vt 0.015625 0.703125
|
||||
vt 0.015625 0.328125
|
||||
usemtl None
|
||||
s off
|
||||
f 6/1 1/2 7/3 8/4
|
||||
f 2/5 5/6 3/7
|
||||
f 2/8 1/9 5/10
|
||||
f 6/11 8/12 9/13
|
||||
f 9/14 8/15 7/16 3/17
|
||||
f 3/18 7/19 1/20 2/21
|
||||
f 1/22 6/23 9/24
|
||||
l 1 4
|
||||
l 3 4
|
@ -1,32 +0,0 @@
|
||||
# Blender v2.69 (sub 0) OBJ File: 'slope_test_ocorner.blend'
|
||||
# www.blender.org
|
||||
mtllib slope_test_ocorner.mtl
|
||||
o Cube_Cube.002
|
||||
v 0.500000 0.500000 0.500000
|
||||
v -0.500000 -0.500000 0.500000
|
||||
v 0.500000 -0.500000 0.500000
|
||||
v -0.500000 -0.500000 -0.500000
|
||||
v 0.500000 -0.500000 -0.500000
|
||||
vt 0.578125 0.734375
|
||||
vt 0.828125 0.734375
|
||||
vt 0.828125 0.984375
|
||||
vt 0.578125 0.984375
|
||||
vt 0.296875 0.703125
|
||||
vt 0.296875 0.453125
|
||||
vt 0.546875 0.453125
|
||||
vt 0.546875 0.984375
|
||||
vt 0.296875 0.734375
|
||||
vt 0.546875 0.734375
|
||||
vt 0.265625 0.578125
|
||||
vt 0.015625 0.203125
|
||||
vt 0.265625 0.203125
|
||||
vt 0.015625 0.984375
|
||||
vt 0.015625 0.609375
|
||||
vt 0.265625 0.609375
|
||||
usemtl None
|
||||
s off
|
||||
f 3/1 2/2 4/3 5/4
|
||||
f 1/5 3/6 5/7
|
||||
f 1/8 2/9 3/10
|
||||
f 1/11 4/12 2/13
|
||||
f 1/14 5/15 4/16
|
32
models/twelve-twelve-ic.obj
Normal file
@ -0,0 +1,32 @@
|
||||
# Blender v2.73 (sub 0) OBJ File: 'twelve-twelve-ic.blend'
|
||||
# www.blender.org
|
||||
v -0.500000 -0.500000 0.500000
|
||||
v -0.500000 -0.500000 -0.500000
|
||||
v 0.500000 -0.500000 -0.500000
|
||||
v 0.500000 -0.500000 0.500000
|
||||
v -0.500000 0.500000 0.500000
|
||||
v 0.500000 0.500000 -0.500000
|
||||
v 0.500000 0.500000 0.500000
|
||||
vt 0.999900 0.999900
|
||||
vt 0.000100 0.999900
|
||||
vt 0.000100 0.000100
|
||||
vt 0.999900 0.000100
|
||||
vt 1.000000 1.000000
|
||||
vt 0.000000 1.000000
|
||||
vt 1.000000 0.000000
|
||||
vt 0.000000 0.000000
|
||||
vn 1.000000 0.000000 0.000000
|
||||
vn 0.000000 0.000000 1.000000
|
||||
vn 0.000000 -1.000000 0.000000
|
||||
vn 0.000000 0.707100 -0.707100
|
||||
vn -1.000000 0.000000 0.000000
|
||||
vn 0.000000 0.000000 -1.000000
|
||||
vn -0.707100 0.707100 0.000000
|
||||
s off
|
||||
f 6/1/1 7/2/1 4/3/1 3/4/1
|
||||
f 7/1/2 5/2/2 1/3/2 4/4/2
|
||||
f 1/2/3 2/3/3 3/4/3 4/1/3
|
||||
f 5/5/4 7/6/4 2/7/4
|
||||
f 5/1/5 2/3/5 1/4/5
|
||||
f 2/7/6 6/6/6 3/8/6
|
||||
f 7/5/7 6/2/7 2/3/7
|
26
models/twelve-twelve-oc.obj
Normal file
@ -0,0 +1,26 @@
|
||||
# Blender v2.73 (sub 0) OBJ File: 'twelve-twelve-oc.blend'
|
||||
# www.blender.org
|
||||
v 0.500000 0.500000 0.500000
|
||||
v -0.500000 -0.500000 0.500000
|
||||
v 0.500000 -0.500000 0.500000
|
||||
v -0.500000 -0.500000 -0.500000
|
||||
v 0.500000 -0.500000 -0.500000
|
||||
vt 0.999900 0.999900
|
||||
vt 0.000100 0.999900
|
||||
vt 0.000100 0.000100
|
||||
vt 0.999900 0.000100
|
||||
vt 0.000000 1.000000
|
||||
vt 0.000000 0.000000
|
||||
vt 1.000000 0.000000
|
||||
vt 1.000000 1.000000
|
||||
vn 0.000000 -1.000000 -0.000000
|
||||
vn 1.000000 0.000000 0.000000
|
||||
vn 0.000000 -0.000000 1.000000
|
||||
vn -0.707100 0.707100 0.000000
|
||||
vn 0.000000 0.707100 -0.707100
|
||||
s off
|
||||
f 3/1/1 2/2/1 4/3/1 5/4/1
|
||||
f 1/5/2 3/6/2 5/7/2
|
||||
f 1/8/3 2/6/3 3/7/3
|
||||
f 1/8/4 4/6/4 2/7/4
|
||||
f 1/5/5 5/6/5 4/7/5
|
29
models/twelve-twelve.obj
Normal file
@ -0,0 +1,29 @@
|
||||
# Blender v2.73 (sub 0) OBJ File: 'twelve-twelve.blend'
|
||||
# www.blender.org
|
||||
v 0.500000 0.500000 0.500000
|
||||
v -0.500000 0.500000 0.500000
|
||||
v -0.500000 -0.500000 0.500000
|
||||
v 0.500000 -0.500000 0.500000
|
||||
v -0.500000 -0.500000 -0.500000
|
||||
v 0.500000 -0.500000 -0.500000
|
||||
vt 0.999900 0.999900
|
||||
vt 0.000100 0.999900
|
||||
vt 0.000100 0.000100
|
||||
vt 0.999900 0.000100
|
||||
vt 1.000000 1.000000
|
||||
vt 0.000000 0.000000
|
||||
vt 1.000000 0.000000
|
||||
vt 0.000000 1.000000
|
||||
vt -0.000050 0.999916
|
||||
vt -0.000050 0.000084
|
||||
vn 0.000000 -0.000000 1.000000
|
||||
vn 0.000000 -1.000000 -0.000000
|
||||
vn -1.000000 -0.000000 0.000000
|
||||
vn 1.000000 0.000000 0.000000
|
||||
vn 0.000000 0.707100 -0.707100
|
||||
s off
|
||||
f 1/1/1 2/2/1 3/3/1 4/4/1
|
||||
f 4/1/2 3/2/2 5/3/2 6/4/2
|
||||
f 2/5/3 5/6/3 3/7/3
|
||||
f 1/8/4 4/6/4 6/7/4
|
||||
f 2/5/5 1/9/5 6/10/5 5/7/5
|
Before Width: | Height: | Size: 497 B |
Before Width: | Height: | Size: 962 B |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 859 B |
Before Width: | Height: | Size: 769 B |
Before Width: | Height: | Size: 883 B |
Before Width: | Height: | Size: 435 B |
Before Width: | Height: | Size: 666 B |