Add 'mypaths' mod @ Git commit 4de5e84:

https://github.com/minetest-mods/mypaths/tree/4de5e84
This commit is contained in:
AntumDeluge 2017-06-08 16:52:45 -07:00
parent c0c57ca204
commit e1be4c1be3
37 changed files with 1340 additions and 0 deletions

View File

@ -179,6 +179,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
* [myfences][] ([DWYWPL][lic.dwywpl]) -- version: [c6e529a Git][ver.myfences] *2016-04-04*
* [mylights][] ([DWYWPL][lic.dwywpl]) -- version: [437fc0c Git][ver.mylights] *2016-03-23*
* [mypaint][] ([DWYWPL][lic.dwywpl]) -- version: [c1d4dd5 Git][ver.mypaint] *2016-03-25*
* [mypaths][] ([DWYWPL][lic.dwywpl]) -- version: [4de5e84 Git][ver.mypaths] *2016-03-23*
* [myroofs][] ([DWYWPL][lic.dwywpl]) -- version: [6da6148 Git][ver.myroofs] *2016-03-23*
* [mysheetmetal][] ([DWYWPL][lic.dwywpl]) -- version: [7c5ab71 Git][ver.mysheetmetal] *2016-04-12* ([patched][patch.mysheetmetal])
* [mywoodslopes][] ([DWYWPL][lic.dwywpl]) -- version: [3a1b531 Git][ver.mywoodslopes] *2016-03-23*
@ -265,6 +266,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
[myfences]: https://forum.minetest.net/viewtopic.php?t=14275
[mylights]: https://forum.minetest.net/viewtopic.php?t=13154
[mypaint]: https://forum.minetest.net/viewtopic.php?t=14274
[mypaths]: https://forum.minetest.net/viewtopic.php?t=11388
[myroofs]: https://forum.minetest.net/viewtopic.php?t=11416
[mysheetmetal]: https://forum.minetest.net/viewtopic.php?t=11702
[mywoodslopes]: https://forum.minetest.net/viewtopic.php?t=11433
@ -475,6 +477,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
[ver.myfences]: https://github.com/DonBatman/myfences/tree/c6e529a
[ver.mylights]: https://github.com/minetest-mods/mylights/tree/437fc0c
[ver.mypaint]: https://github.com/DonBatman/mypaint/tree/c1d4dd5
[ver.mypaths]: https://github.com/minetest-mods/mypaths/tree/4de5e84
[ver.myroofs]: https://github.com/minetest-mods/myroofs/tree/6da6148
[ver.mysheetmetal]: https://github.com/minetest-mods/mysheetmetal/tree/7c5ab71
[ver.mywoodslopes]: https://github.com/minetest-mods/mywoodslopes/tree/3a1b531

View File

@ -10,6 +10,7 @@
- [myfences][] (DWYWPL)
- [mylights][] (DWYWPL)
- [mypaint][] (DWYWPL)
- [mypaths][] (DWYWPL)
- [myroofs][] (DWYWPL)
- [mysheetmetal][] (DWYWPL)
- [mywoodslopes][] (DWYWPL)
@ -24,6 +25,7 @@
[myfences]: https://forum.minetest.net/viewtopic.php?t=14275
[mylights]: https://forum.minetest.net/viewtopic.php?t=13154
[mypaint]: https://forum.minetest.net/viewtopic.php?t=14274
[mypaths]: https://forum.minetest.net/viewtopic.php?t=11388
[myroofs]: https://forum.minetest.net/viewtopic.php?t=11416
[mysheetmetal]: https://forum.minetest.net/viewtopic.php?t=11702
[mywoodslopes]: https://forum.minetest.net/viewtopic.php?t=11433

View File

@ -0,0 +1,8 @@
# mypaths
mypaths allows you to make dirt paths.
Check it out on the forum
https://forum.minetest.net/viewtopic.php?f=11&t=11388
Licence - DWYWPL

View File

@ -0,0 +1,98 @@
--Dirt Road
minetest.register_node("mypaths:dirt_road", {
description = "Dirt Road",
tiles = {"mypaths_dirt_road.png"},
drawtype = "normal",
groups = {crumbly = 2},
sounds = default.node_sound_dirt_defaults(),
})
--Craft
minetest.register_craft({
type = "cooking",
output = "mypaths:dirt_road 1",
recipe = "default:dirt",
})
--Dirt Road Side
minetest.register_craft({
output = "mypaths:dirt_road_side 9",
recipe = {
{"mypaths:dirt_road", "mypaths:dirt_road","default:dirt"},
{"mypaths:dirt_road", "mypaths:dirt_road","default:dirt"},
{"mypaths:dirt_road", "mypaths:dirt_road","default:dirt"},
}
})
--Dirt Road Side Angle
minetest.register_craft({
output = "mypaths:dirt_road_side_angle 9",
recipe = {
{"default:dirt", "default:dirt","default:dirt"},
{"mypaths:dirt_road", "default:dirt","default:dirt"},
{"mypaths:dirt_road", "mypaths:dirt_road","default:dirt"},
}
})
--Dirt Road Side Angle End
minetest.register_craft({
output = "mypaths:dirt_road_side_angle_end1 9",
recipe = {
{"default:dirt", "default:dirt","default:dirt"},
{"default:dirt", "default:dirt","default:dirt"},
{"mypaths:dirt_road", "mypaths:dirt_road","default:dirt"},
}
})
--Dirt Road Side Angle End
minetest.register_craft({
output = "mypaths:dirt_road_side_angle_end2 9",
recipe = {
{"default:dirt", "default:dirt","default:dirt"},
{"default:dirt", "default:dirt","default:dirt"},
{"default:dirt", "mypaths:dirt_road","mypaths:dirt_road"},
}
})
--Dirt Road Side Angle End
minetest.register_craft({
output = "mypaths:dirt_road_side_angle_end3 9",
recipe = {
{"default:dirt", "default:dirt","mypaths:dirt_road"},
{"mypaths:dirt_road", "mypaths:dirt_road","mypaths:dirt_road"},
{"mypaths:dirt_road", "mypaths:dirt_road","mypaths:dirt_road"},
}
})
--Dirt Road Side Angle End
minetest.register_craft({
output = "mypaths:dirt_road_side_angle_end4 9",
recipe = {
{"mypaths:dirt_road", "default:dirt","default:dirt"},
{"mypaths:dirt_road", "mypaths:dirt_road","mypaths:dirt_road"},
{"mypaths:dirt_road", "mypaths:dirt_road","mypaths:dirt_road"},
}
})
--Dirt Road Inside Corner
minetest.register_craft({
output = "mypaths:dirt_road_icorner 9",
recipe = {
{"mypaths:dirt_road", "mypaths:dirt_road","mypaths:dirt_road"},
{"mypaths:dirt_road", "mypaths:dirt_road","mypaths:dirt_road"},
{"mypaths:dirt_road", "mypaths:dirt_road","default:dirt"},
}
})
--Dirt Road Outside Corner
minetest.register_craft({
output = "mypaths:dirt_road_ocorner 9",
recipe = {
{"default:dirt", "default:dirt","default:dirt"},
{"mypaths:dirt_road", "mypaths:dirt_road","default:dirt"},
{"mypaths:dirt_road", "mypaths:dirt_road","default:dirt"},
}
})
--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"},
}
})

View File

@ -0,0 +1,3 @@
default
moreblocks?
ethereal?

View File

@ -0,0 +1 @@
Dirt and stone paths.

View File

@ -0,0 +1,132 @@
--Dirt Road Side
minetest.register_node("mypaths:dirt_road_side", {
description = "Dirt Road Side",
tiles = {"mypaths_dirt_road_side.png",
"mypaths_dirt_road_side.png",
"default_grass.png",
"mypaths_dirt_road.png",
"mypaths_dirt_road_side2.png",
"mypaths_dirt_road_side.png",
},
drawtype = "normal",
paramtype = "light",
paramtype2 = "facedir",
groups = {crumbly = 2},
sounds = default.node_sound_dirt_defaults(),
})
--Dirt Road Side Angle
minetest.register_node("mypaths:dirt_road_side_angle", {
description = "Dirt Road Side Angle",
tiles = {"mypaths_dirt_road_side_angle.png",
"default_grass.png",
"default_grass.png",
"mypaths_dirt_road.png",
"mypaths_dirt_road.png",
"default_grass.png",
},
drawtype = "normal",
paramtype = "light",
paramtype2 = "facedir",
groups = {crumbly = 2},
sounds = default.node_sound_dirt_defaults(),
})
--Dirt Road Side Angle End
minetest.register_node("mypaths:dirt_road_side_angle_end1", {
description = "Dirt Road Angle End 1",
tiles = {"mypaths_dirt_road_side_angle_end1.png",
"mypaths_dirt_road_side_angle_end2.png^[transformR180",
"default_grass.png",
"mypaths_dirt_road.png",
"mypaths_dirt_road_side.png^[transformR180",
"default_grass.png",
},
drawtype = "normal",
paramtype = "light",
paramtype2 = "facedir",
groups = {crumbly = 2},
sounds = default.node_sound_dirt_defaults(),
})
--Dirt Road Side Angle End
minetest.register_node("mypaths:dirt_road_side_angle_end2", {
description = "Dirt Road Angle End 2",
tiles = {"mypaths_dirt_road_side_angle_end2.png",
"mypaths_dirt_road_side_angle_end2.png^[transformFY",
"mypaths_dirt_road.png",
"default_grass.png",
"mypaths_dirt_road_side.png",
"default_grass.png",
},
drawtype = "normal",
paramtype = "light",
paramtype2 = "facedir",
groups = {crumbly = 2},
sounds = default.node_sound_dirt_defaults(),
})
--Dirt Road Side Angle End
minetest.register_node("mypaths:dirt_road_side_angle_end3", {
description = "Dirt Road Angle End 3",
tiles = {"mypaths_dirt_road_side_angle_end3.png",
"mypaths_dirt_road_side_angle_end4.png^[transformR180",
"mypaths_dirt_road.png",
"mypaths_dirt_road_side.png",
"mypaths_dirt_road.png",
"default_grass.png",
},
drawtype = "normal",
paramtype = "light",
paramtype2 = "facedir",
groups = {crumbly = 2},
sounds = default.node_sound_dirt_defaults(),
})
--Dirt Road Side Angle End
minetest.register_node("mypaths:dirt_road_side_angle_end4", {
description = "Dirt Road Angle End 4",
tiles = {"mypaths_dirt_road_side_angle_end4.png",
"mypaths_dirt_road_side_angle_end3.png^[transformR180",
"mypaths_dirt_road_side.png^[transformR180",
"mypaths_dirt_road.png",
"mypaths_dirt_road.png",
"default_grass.png",
},
drawtype = "normal",
paramtype = "light",
paramtype2 = "facedir",
groups = {crumbly = 2},
sounds = default.node_sound_dirt_defaults(),
})
--Dirt Road Inside Corner
minetest.register_node("mypaths:dirt_road_icorner", {
description = "Dirt Road Inside Corner",
tiles = {"mypaths_dirt_road_icorner.png",
"mypaths_dirt_road_icorner.png^[transformR90",
"mypaths_dirt_road_side2.png",
"mypaths_dirt_road.png",
"mypaths_dirt_road.png",
"mypaths_dirt_road_side.png",
},
drawtype = "normal",
paramtype = "light",
paramtype2 = "facedir",
groups = {crumbly = 2},
sounds = default.node_sound_dirt_defaults(),
})
--Dirt Road Outside Corner
minetest.register_node("mypaths:dirt_road_ocorner", {
description = "Dirt Road Outside Corner",
tiles = {"mypaths_dirt_road_ocorner.png",
"mypaths_dirt_road_ocorner.png^[transformR270",
"default_grass.png",
"mypaths_dirt_road_side2.png",
"default_grass.png",
"mypaths_dirt_road_side.png",
},
drawtype = "normal",
paramtype = "light",
paramtype2 = "facedir",
groups = {crumbly = 2},
sounds = default.node_sound_dirt_defaults(),
})

View File

@ -0,0 +1,160 @@
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
})
--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",""},
{"", "",""},
{"", "",""},
}
})

View File

@ -0,0 +1,84 @@
--Dirt Road Side
minetest.register_craft({
output = "mypaths:dirt_road_side 9",
recipe = {
{"ethereal:dry_dirt", "ethereal:dry_dirt","default:dirt"},
{"ethereal:dry_dirt", "ethereal:dry_dirt","default:dirt"},
{"ethereal:dry_dirt", "ethereal:dry_dirt","default:dirt"},
}
})
--Dirt Road Side Angle
minetest.register_craft({
output = "mypaths:dirt_road_side_angle 9",
recipe = {
{"default:dirt", "default:dirt","default:dirt"},
{"ethereal:dry_dirt", "default:dirt","default:dirt"},
{"ethereal:dry_dirt", "ethereal:dry_dirt","default:dirt"},
}
})
--Dirt Road Side Angle End
minetest.register_craft({
output = "mypaths:dirt_road_side_angle_end1 9",
recipe = {
{"default:dirt", "default:dirt","default:dirt"},
{"default:dirt", "default:dirt","default:dirt"},
{"ethereal:dry_dirt", "ethereal:dry_dirt","default:dirt"},
}
})
--Dirt Road Side Angle End
minetest.register_craft({
output = "mypaths:dirt_road_side_angle_end2 9",
recipe = {
{"default:dirt", "default:dirt","default:dirt"},
{"default:dirt", "default:dirt","default:dirt"},
{"default:dirt", "ethereal:dry_dirt","ethereal:dry_dirt"},
}
})
--Dirt Road Side Angle End
minetest.register_craft({
output = "mypaths:dirt_road_side_angle_end3 9",
recipe = {
{"default:dirt", "default:dirt","ethereal:dry_dirt"},
{"ethereal:dry_dirt", "ethereal:dry_dirt","ethereal:dry_dirt"},
{"ethereal:dry_dirt", "ethereal:dry_dirt","ethereal:dry_dirt"},
}
})
--Dirt Road Side Angle End
minetest.register_craft({
output = "mypaths:dirt_road_side_angle_end4 9",
recipe = {
{"ethereal:dry_dirt", "default:dirt","default:dirt"},
{"ethereal:dry_dirt", "ethereal:dry_dirt","ethereal:dry_dirt"},
{"ethereal:dry_dirt", "ethereal:dry_dirt","ethereal:dry_dirt"},
}
})
--Dirt Road Inside Corner
minetest.register_craft({
output = "mypaths:dirt_road_icorner 9",
recipe = {
{"ethereal:dry_dirt", "ethereal:dry_dirt","ethereal:dry_dirt"},
{"ethereal:dry_dirt", "ethereal:dry_dirt","ethereal:dry_dirt"},
{"ethereal:dry_dirt", "ethereal:dry_dirt","default:dirt"},
}
})
--Dirt Road Outside Corner
minetest.register_craft({
output = "mypaths:dirt_road_ocorner 9",
recipe = {
{"default:dirt", "default:dirt","default:dirt"},
{"ethereal:dry_dirt", "ethereal:dry_dirt","default:dirt"},
{"ethereal:dry_dirt", "ethereal:dry_dirt","default:dirt"},
}
})
--Dirt Slope
minetest.register_craft({
output = "mypaths:dirt_dirt_slope 6",
recipe = {
{"", "","ethereal:dry_dirt"},
{"", "ethereal:dry_dirt","ethereal:dry_dirt"},
{"ethereal:dry_dirt", "ethereal:dry_dirt","ethereal:dry_dirt"},
}
})

View File

@ -0,0 +1,251 @@
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
}
}
local icorner_cbox = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.25, 0.5}, -- NodeBox5
{-0.5, -0.5, -0.25, 0.5, 0, 0.5}, -- NodeBox6
{-0.5, -0.5, -0.5, 0.25, 0, 0.5}, -- NodeBox7
{-0.5, 0, -0.5, 0, 0.25, 0.5}, -- NodeBox8
{-0.5, 0, 0, 0.5, 0.25, 0.5}, -- NodeBox9
{-0.5, 0.25, 0.25, 0.5, 0.5, 0.5}, -- NodeBox10
{-0.5, 0.25, -0.5, -0.25, 0.5, 0.5}, -- NodeBox11
}
}
local ocorner_cbox = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.25, 0.5},
{-0.5, -0.25, -0.25, 0.25, 0, 0.5},
{-0.5, 0, 0, 0, 0.25, 0.5},
{-0.5, 0.25, 0.25, -0.25, 0.5, 0.5}
}
}
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 = "Fake Grass",
tiles = {"default_grass.png"},
drawtype = "normal",
paramtype = "light",
paramtype2 = "facedir",
groups = {crumbly = 2, soil=1},
sounds = default.node_sound_dirt_defaults({
footstep = {name="default_grass_footstep", gain=0.25},
}),
})
--Craft
minetest.register_craft({
output = "mypaths:grass 9",
recipe = {
{"default:dirt", "default:dirt","default:dirt"},
{"default:dirt", "default:dirt","default:dirt"},
{"default:dirt", "default:dirt","default:dirt"},
}
})
minetest.register_node("mypaths:grass_slope", {
description = "Grass slope",
drawtype = "mesh",
mesh = "twelve-twelve.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 = slope_cbox,
selection_box = slope_cbox
})
--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 = "six-twelve_slope.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 = 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",
mesh = "twelve-twelve-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,
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)",
drawtype = "mesh",
mesh = "twelve-twelve-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,
selection_box = icorner_cbox
})
--Craft
minetest.register_craft({
output = "mypaths:grass_icorner 5",
recipe = {
{"mypaths:grass", "mypaths:grass","mypaths:grass"},
{"mypaths:grass", "",""},
{"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",""},
}
})

View File

@ -0,0 +1,188 @@
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")
if minetest.get_modpath("ethereal") then
dofile(minetest.get_modpath("mypaths").."/ethereal.lua")
minetest.register_alias("mypaths:dirt_road", "ethereal:dry_dirt")
else
dofile(minetest.get_modpath("mypaths").."/crafts.lua")
end
if minetest.get_modpath("moreblocks") then
stairsplus:register_all(
"mypaths",
"grass",
"mypaths:grass",
{
description = "Grass",
tiles = {"mypaths_grass.png"},
groups = {crumbly=2},
sounds = default.node_sound_dirt_defaults(),
}
)
stairsplus:register_all(
"mypaths",
"dirt_road",
"mypaths:dirt_road",
{
description = "Dirt Road",
tiles = {"mypaths_dirt_road.png"},
groups = {crumbly=2},
sounds = default.node_sound_dirt_defaults(),
}
)
stairsplus:register_all(
"mypaths",
"dirt_road_side",
"mypaths:dirt_road_side",
{
description = "Dirt Road Side",
tiles = {"mypaths_dirt_road_side.png",
"mypaths_dirt_road_side.png",
"mypaths_grass.png",
"mypaths_dirt_road.png",
"mypaths_dirt_road_side2.png",
"mypaths_dirt_road_side.png",
},
groups = {crumbly=2},
sounds = default.node_sound_dirt_defaults(),
}
)
stairsplus:register_all(
"mypaths",
"dirt_road_side_angle",
"mypaths:dirt_road_side_angle",
{
description = "Dirt Road Side Angle",
tiles = {"mypaths_dirt_road_side_angle.png",
"mypaths_grass.png",
"mypaths_grass.png",
"mypaths_dirt_road.png",
"mypaths_dirt_road.png",
"mypaths_grass.png",
},
groups = {crumbly=2},
sounds = default.node_sound_dirt_defaults(),
}
)
stairsplus:register_all(
"mypaths",
"dirt_road_side_angle_end1",
"mypaths:dirt_road_side_angle_end1",
{
description = "Dirt Road Angle End 1",
tiles = {"mypaths_dirt_road_side_angle_end1.png",
"mypaths_dirt_road_side_angle_end2.png^[transformR180",
"mypaths_grass.png",
"mypaths_dirt_road.png",
"mypaths_dirt_road_side.png^[transformR180",
"mypaths_grass.png",
},
groups = {crumbly=2},
sounds = default.node_sound_dirt_defaults(),
}
)
stairsplus:register_all(
"mypaths",
"dirt_road_side_angle_end2",
"mypaths:dirt_road_side_angle_end2",
{
description = "Dirt Road Angle End 2",
tiles = {"mypaths_dirt_road_side_angle_end2.png",
"mypaths_dirt_road_side_angle_end2.png^[transformR180",
"mypaths_grass.png",
"mypaths_dirt_road.png",
"mypaths_dirt_road_side.png",
"mypaths_grass.png",
},
groups = {crumbly=2},
sounds = default.node_sound_dirt_defaults(),
}
)
stairsplus:register_all(
"mypaths",
"dirt_road_side_angle_end3",
"mypaths:dirt_road_side_angle_end3",
{
description = "Dirt Road Angle End 3",
tiles = {"mypaths_dirt_road_side_angle_end3.png",
"mypaths_dirt_road_side_angle_end4.png^[transformR180",
"mypaths_grass.png",
"mypaths_dirt_road.png",
"mypaths_dirt_road_side.png",
"mypaths_grass.png",
},
groups = {crumbly=2},
sounds = default.node_sound_dirt_defaults(),
}
)
stairsplus:register_all(
"mypaths",
"dirt_road_side_angle_end4",
"mypaths:dirt_road_side_angle_end4",
{
description = "Dirt Road Angle End 4",
tiles = {"mypaths_dirt_road_side_angle_end4.png",
"mypaths_dirt_road_side_angle_end3.png^[transformR180",
"mypaths_dirt_road_side.png^[transformR180",
"mypaths_dirt_road.png",
"mypaths_dirt_road.png",
"mypaths_grass.png",
},
groups = {crumbly=2},
sounds = default.node_sound_dirt_defaults(),
}
)
stairsplus:register_all(
"mypaths",
"dirt_road_icorner",
"mypaths:dirt_road_icorner",
{
description = "Dirt Road Inside Corner",
tiles = {"mypaths_dirt_road_icorner.png",
"mypaths_dirt_road_icorner.png^[transformR90",
"mypaths_dirt_road_side2.png",
"mypaths_dirt_road.png",
"mypaths_dirt_road.png",
"mypaths_dirt_road_side.png",
},
groups = {crumbly=2},
sounds = default.node_sound_dirt_defaults(),
}
)
stairsplus:register_all(
"mypaths",
"dirt_road_ocorner",
"mypaths:dirt_road_ocorner",
{
description = "Dirt Road Outside Corner",
tiles = {"mypaths_dirt_road_ocorner.png",
"mypaths_dirt_road_ocorner.png^[transformR270",
"mypaths_grass.png",
"mypaths_dirt_road_side2.png",
"mypaths_grass.png",
"mypaths_dirt_road_side.png",
},
groups = {crumbly=2},
sounds = default.node_sound_dirt_defaults(),
}
)
end

View File

@ -0,0 +1 @@
name = mypaths

View 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

View 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

View 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

View File

@ -0,0 +1,35 @@
# Blender v2.69 (sub 0) OBJ File: 'slope_test_slope.blend'
# www.blender.org
mtllib slope_test_slope.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
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.578125 0.734375
vt 0.828125 0.734375
vt 0.828125 0.984375
vt 0.578125 0.984375
vt 0.546875 0.703125
vt 0.296875 0.453125
vt 0.546875 0.453125
vt 0.578125 0.703125
vt 0.578125 0.453125
vt 0.828125 0.453125
vt 0.265625 0.984375
vt 0.015625 0.984375
vt 0.015625 0.609375
vt 0.265625 0.609375
usemtl None
s off
f 1/1 2/2 3/3 4/4
f 4/5 3/6 5/7 6/8
f 2/9 5/10 3/11
f 1/12 4/13 6/14
f 2/15 1/16 6/17 5/18

View File

@ -0,0 +1,75 @@
# Blender v2.69 (sub 0) OBJ File: 'slope_test_slope_long.blend'
# www.blender.org
mtllib slope_test_slope_long.mtl
o Cube
v -0.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.500000 0.500000
v -0.500000 0.500000 0.500000
v 0.000000 -0.500000 -1.500000
v -0.500000 -0.500000 -0.500000
v 0.500000 -0.500000 -0.500000
v -0.000000 -0.500000 0.500000
v 0.500000 0.000000 0.500000
v -0.500000 0.000000 0.500000
v 0.500000 0.000000 -0.500000
v -0.000000 0.500000 0.500000
v -0.500000 0.000000 -0.500000
v 0.000000 -0.500000 -0.500000
v 0.000000 0.000000 -0.500000
v -0.000000 0.000000 0.500000
vt 0.375000 0.625000
vt 0.250000 0.625000
vt 0.250000 0.250000
vt 0.375000 0.250000
vt 0.125000 0.625000
vt 0.125000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.625000
vt 0.625000 0.375000
vt 0.625000 0.250000
vt 0.750000 0.250000
vt 0.750000 0.375000
vt 1.000000 0.750000
vt 0.750000 0.875000
vt 0.750000 0.750000
vt 0.750000 0.625000
vt 1.000000 0.625000
vt 0.500000 0.625000
vt 0.500000 0.250000
vt 0.500000 1.000000
vt 0.375000 1.000000
vt 0.250000 1.000000
vt 0.125000 0.250000
vt 0.000000 0.250000
vt 0.625000 0.500000
vt 0.750000 0.500000
vt 0.500000 0.500000
vt 0.500000 0.375000
vt 0.500000 0.875000
vt 0.500000 0.750000
vt 1.000000 0.500000
usemtl Material
s off
f 16/1 9/2 3/3 10/4
f 17/5 14/6 5/7 13/8
f 18/9 14/10 6/11 12/12
f 2/13 13/14 9/15
f 6/13 15/16 12/17
f 8/18 16/1 10/4 4/19
f 1/20 7/21 16/1 8/18
f 7/21 2/22 9/2 16/1
f 7/23 17/5 13/8 2/24
f 1/3 15/2 17/5 7/23
f 15/2 6/22 14/6 17/5
f 10/25 18/9 12/12 4/26
f 3/27 11/28 18/9 10/25
f 11/28 5/19 14/10 18/9
f 9/15 11/29 3/30
f 9/15 13/14 11/29
f 13/14 5/20 11/29
f 12/17 8/26 4/31
f 12/17 15/16 8/26
f 15/16 1/27 8/26

View 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

View 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

View 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 209 KiB

View File

@ -0,0 +1,66 @@
local material = {
{ "Cobble", "default_cobble","cobble"},
{ "Sandstone", "default_sandstone","sandstone"},
{ "Desert Stone", "default_desert_stone","desert_stone"},
{ "Stone", "default_stone","stone"},
{ "Tree", "default_tree","tree"},
{ "Desert Sand", "default_desert_sand","desert_sand"},
{ "Coal", "default_coal_block","coalblock"},
{ "Clay", "default_clay","clay"},
{ "Dirt", "default_dirt","dirt"},
}
for i in ipairs(material) do
local matdesc = material[i][1]
local imgtile = material[i][2]
local mat = material[i][3]
minetest.register_node("mypaths:path_"..mat, {
description = ""..matdesc.." Path",
drawtype = "nodebox",
tiles = {""..imgtile..".png"},
paramtype = "light",
paramtype2 = "facedir",
sunlight_propagates = true,
buildable_to = true,
-- walkable = true,
climbable = false,
groups = {cracky=3},
stack_max = 250,
sounds = default.node_sound_stone_defaults(),
node_box = {
type = "fixed",
fixed = {
{-0.375, -0.5, -0.4375, -0.125, -0.4375, 0},
{-0.4375, -0.5, -0.3125, -0.125, -0.4375, -0.0625},
{-0.375, -0.5, 0.1875, 0, -0.4375, 0.375},
{-0.3125, -0.5, 0.0625, -0.0625, -0.4375, 0.4375},
{0.125, -0.5, 0.125, 0.3125, -0.4375, 0.3125},
{0.1875, -0.5, 0.1875, 0.4375, -0.4375, 0.4375},
{0, -0.5, -0.375, 0.4375, -0.4375, -0.1875},
{0.0625, -0.5, -0.4375, 0.375, -0.4375, -0.125},
{0.0625, -0.5, -0.0625, 0.25, -0.4375, 0.0625},
{0, -0.5, -0.0625, 0.0625, -0.4375, 0},
}
},
selection_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5},
},
},
on_place = minetest.rotate_node
})
--Craft
minetest.register_craft({
output = "mypaths:path_"..mat.." 5",
recipe = {
{"","default:gravel",""},
{"","default:"..mat.."",""},
{"","",""},
}
})
end

Binary file not shown.

After

Width:  |  Height:  |  Size: 907 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 920 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 898 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 908 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 901 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 901 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 887 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 888 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 902 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 901 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 795 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB