Added recipes and long slopes
This commit is contained in:
parent
aa4bdd5f80
commit
8e6bb2c6d5
118
dirt_road.lua
118
dirt_road.lua
@ -8,6 +8,20 @@ local slope_cbox = {
|
||||
}
|
||||
}
|
||||
|
||||
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", {
|
||||
description = "Dirt Road",
|
||||
@ -100,7 +114,7 @@ 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",
|
||||
@ -114,6 +128,17 @@ minetest.register_node("mypaths:dirt_road_slope", {
|
||||
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",
|
||||
@ -127,6 +152,17 @@ minetest.register_node("mypaths:dirt_road_slope2", {
|
||||
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",
|
||||
@ -140,3 +176,83 @@ minetest.register_node("mypaths:dirt_dirt_slope", {
|
||||
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",""},
|
||||
{"", "",""},
|
||||
{"", "",""},
|
||||
}
|
||||
})
|
||||
|
46
grass.lua
46
grass.lua
@ -64,7 +64,7 @@ minetest.register_craft({
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_node("mypaths:slope", {
|
||||
minetest.register_node("mypaths:grass_slope", {
|
||||
description = "Grass slope",
|
||||
drawtype = "mesh",
|
||||
mesh = "slope_test_slope.obj",
|
||||
@ -77,9 +77,17 @@ minetest.register_node("mypaths:slope", {
|
||||
collision_box = slope_cbox,
|
||||
selection_box = slope_cbox
|
||||
})
|
||||
--[[
|
||||
minetest.register_node("mypaths:slope_long", {
|
||||
description = "Grass slope",
|
||||
--Craft
|
||||
minetest.register_craft({
|
||||
output = "mypaths:grass_slope 6",
|
||||
recipe = {
|
||||
{"", "","mypaths:grass"},
|
||||
{"", "mypaths:grass","mypaths:grass"},
|
||||
{"mypaths:grass", "mypaths:grass","mypaths:grass"},
|
||||
}
|
||||
})
|
||||
minetest.register_node("mypaths:grass_slope_long", {
|
||||
description = "Grass Slope Long",
|
||||
drawtype = "mesh",
|
||||
mesh = "slope_test_slope_long.obj",
|
||||
tiles = {"mypaths_grass_mesh.png"},
|
||||
@ -91,7 +99,16 @@ minetest.register_node("mypaths:slope_long", {
|
||||
collision_box = slope_cbox_long,
|
||||
selection_box = slope_cbox_long
|
||||
})
|
||||
--]]
|
||||
--Craft
|
||||
minetest.register_craft({
|
||||
output = "mypaths:grass_slope_long 1",
|
||||
recipe = {
|
||||
{"mypaths:grass_slope", "mypaths:grass_slope",""},
|
||||
{"", "",""},
|
||||
{"", "",""},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_node("mypaths:grass_ocorner", {
|
||||
description = "Grass slope (outer corner)",
|
||||
drawtype = "mesh",
|
||||
@ -105,6 +122,16 @@ minetest.register_node("mypaths:grass_ocorner", {
|
||||
collision_box = ocorner_cbox,
|
||||
selection_box = ocorner_cbox
|
||||
})
|
||||
--Craft
|
||||
minetest.register_craft({
|
||||
output = "mypaths:grass_ocorner 4",
|
||||
recipe = {
|
||||
{"", "",""},
|
||||
{"", "mypaths:grass","mypaths:grass"},
|
||||
{"", "mypaths:grass","mypaths:grass"},
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
minetest.register_node("mypaths:grass_icorner", {
|
||||
description = "Grass slope (inner corner)",
|
||||
@ -118,3 +145,12 @@ minetest.register_node("mypaths:grass_icorner", {
|
||||
on_place = minetest.rotate_node,
|
||||
collision_box = icorner_cbox,
|
||||
})
|
||||
--Craft
|
||||
minetest.register_craft({
|
||||
output = "mypaths:grass_icorner 5",
|
||||
recipe = {
|
||||
{"mypaths:grass", "mypaths:grass","mypaths:grass"},
|
||||
{"mypaths:grass", "",""},
|
||||
{"mypaths:grass", "",""},
|
||||
}
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user