Add 'mywoodslopes' mod.

This commit is contained in:
AntumDeluge 2016-09-14 23:37:29 -07:00
parent 4123079b2a
commit df3a25127c
18 changed files with 1105 additions and 7 deletions

View File

@ -90,25 +90,26 @@ The game includes the mods from the default [minetest_game](https://github.com/m
* spawning/
* [adv_spawning][[animals_modpack] (part of animals_modpack) ([???][lic.amp_adv_spawning]) -- version: 0.0.13
* [spawneggs][] ([WTFPL][lic.spawneggs]) -- version [4650370 Git][ver.spawneggs]
* [tnt][] ([WTFPL](mods/tnt/README.txt)) (Git [d6a0b7d][tnt version])
* [tnt][] ([WTFPL](mods/tnt/README.txt)) -- version: [d6a0b7d Git][ver.tnt]
* tools/
* [compassgps][] ([WTFPL / CC0 / CC BY-SA](mods/tools/compassgps/README.md))
* [torches][] ([LGPL / CC-BY-SA](mods/tools/torches/README.txt))
* [workbench][] ([GPL / WTFPL](mods/tools/workbench/LICENSE))
* [tools_obsidian][] ([LGPL / CC BY-SA](mods/tools/tools_obsidian/README.md)) -- version: [f77fd79][tools_obsidian version]
* [tools_obsidian][] ([LGPL / CC BY-SA](mods/tools/tools_obsidian/README.md)) -- version: [f77fd79][ver.tools_obsidian]
* transport/
* [carts][] ([WTFPL/CC0](mods/transport/carts/README.txt))
* [hovercraft][] ([LGPL / CC BY-SA / CC0](mods/transport/hovercraft/LICENSE.txt))
* ui/
* [bookmarks_gui][] ([BSD 3-Clause](mods/ui/bookmarks_gui/LICENSE))
* [home_gui][] ([BSD 3-Clause](mods/ui/home_gui/LICENSE)) Installed version: [f6b5001][home_gui version] (Git)
* [home_gui][] ([BSD 3-Clause](mods/ui/home_gui/LICENSE)) -- version: [f6b5001 Git][ver.home_gui]
* [hud][] ([LGPL / CC BY-SA / WTFPL](mods/ui/hud/README.txt))
* [hudmap][] ([LGPL / WTFPL](mods/ui/hudmap/README.txt))
* [vector_extras][] ([WTFPL](mods/vector_extras/LICENSE.txt))
* weather/
* [lightning][] ([LGPL/CC-BY-SA](mods/weather/lightning/README.md))
* wood/
* [coloredwood][] ([LGPL][lic.coloredwood]) Version: Git [7b177f3][ver.coloredwood]
* [coloredwood][] ([LGPL][lic.coloredwood]) -- version: [7b177f3 Git][ver.coloredwood]
* [mywoodslopes][] ([DWYWPL][lic.mywoodslopes]) -- version: [3a1b531 Git][ver.mywoodslopes]
* world/
* [ethereal][] ([WTFPL](mods/world/ethereal/license.txt))
* [glow][] (GPL)
@ -215,7 +216,6 @@ The game includes the mods from the default [minetest_game](https://github.com/m
[glow]: https://forum.minetest.net/viewtopic.php?t=6300
[helicopter]: https://forum.minetest.net/viewtopic.php?t=6183
[home_gui]: http://cornernote.github.io/minetest-home_gui/
[home_gui version]: https://github.com/cornernote/minetest-home_gui/tree/f6b500164f95a85c4f2fab9a150983887bad143f
[homedecor]: https://forum.minetest.net/viewtopic.php?t=2041
[hovercraft]: https://forum.minetest.net/viewtopic.php?t=6722
[hud]: https://github.com/BlockMen/hud
@ -238,6 +238,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
[moreores]: https://forum.minetest.net/viewtopic.php?t=549
[moretrees]: https://forum.minetest.net/viewtopic.php?t=4394
[mydoors]: https://forum.minetest.net/viewtopic.php?t=10626
[mywoodslopes]: https://forum.minetest.net/viewtopic.php?t=11433
[nether]: https://forum.minetest.net/viewtopic.php?t=5790
[painting]: https://github.com/minetest-mods/painting
[peaceful_npc]: https://forum.minetest.net/viewtopic.php?t=4167
@ -256,10 +257,8 @@ The game includes the mods from the default [minetest_game](https://github.com/m
[technic]: https://forum.minetest.net/viewtopic.php?t=2538
[throwing]: https://forum.minetest.net/viewtopic.php?t=687
[tnt]: https://forum.minetest.net/viewtopic.php?id=2902
[tnt version]: https://github.com/PilzAdam/TNT/tree/d6a0b7dfec33c647414ed4c2dadf32b9347b7508
[torches]: https://forum.minetest.net/viewtopic.php?t=6099
[tools_obsidian]: https://forum.minetest.net/viewtopic.php?t=14236
[tools_obsidian version]: https://github.com/Dragonop/tools_obsidian/tree/f77fd79d76a85c07e08ca965708a75f500be32d6
[trampoline]: mods/furniture/trampoline
[trash_can]: https://forum.minetest.net/viewtopic.php?t=6315
[trees]: https://forum.minetest.net/viewtopic.php?f=11&t=5713
@ -313,6 +312,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
[lic.mdoors.2]: doc/modpacks/mydoors/licence.txt
[lic.mobf]: mods/mobf_core/License.txt
[lic.mobs_monster]: mods/mobs_aggressive/mobs_monster/license.txt
[lic.mywoodslopes]: mods/wood/mywoodslopes/licence.txt
[lic.playeranim.1]: mods/player_visuals/playeranim/LICENSE.txt
[lic.playeranim.2]: mods/player_visuals/playeranim/LICENSE-original.txt
[lic.privilegeareas]: mods/engine/privilegeareas/README.md
@ -330,16 +330,20 @@ The game includes the mods from the default [minetest_game](https://github.com/m
[ver.cme]: https://github.com/BlockMen/cme/tree/e3502a1
[ver.coloredwood]: https://github.com/minetest-mods/coloredwood/tree/7b177f3
[ver.creeper]: https://github.com/Rui-Minetest/creeper/tree/036666e
[ver.home_gui]: https://github.com/cornernote/minetest-home_gui/tree/f6b5001
[ver.homedecor]: https://github.com/minetest-mods/homedecor_modpack/tree/02a4d14
[ver.ilights]: https://github.com/minetest-mods/ilights/tree/d5f6900
[ver.invisibility]: https://github.com/tenplus1/invisibility/tree/bf4156b
[ver.jukebox]: https://github.com/minetest-mods/jukebox/tree/e6a507f
[ver.mobs_monster]: https://github.com/tenplus1/mobs_monster/tree/91cbcf7
[ver.mywoodslopes]: https://github.com/minetest-mods/mywoodslopes/tree/3a1b531
[ver.playeranim]: https://github.com/minetest-mods/playeranim/tree/f1c542e
[ver.privilegeareas]: https://github.com/minetest-mods/privilegeareas/tree/aebaa00
[ver.simple_protection]: https://github.com/SmallJoker/simple_protection/tree/c822e56
[ver.spawneggs]: https://github.com/thefamilygrog66/spawneggs/tree/4650370
[ver.spectator_mode]: https://github.com/minetest-mods/spectator_mode/tree/3459db4
[ver.throwing]: https://github.com/Jeija/minetest-mod-throwing/tree/79ad788
[ver.tnt]: https://github.com/PilzAdam/TNT/tree/d6a0b7d
[ver.tools_obsidian]: https://github.com/Dragonop/tools_obsidian/tree/f77fd79
[ver.walking_light]: https://github.com/petermaloney/walking_light/tree/93de9b7
[ver.wardrobe]: https://github.com/prestidigitator/minetest-mod-wardrobe/tree/c48b011

View File

@ -0,0 +1,5 @@
mywoodslopes allows you to make slopes with wood blocks.
Licence - DWYWPL
Forum - https://forum.minetest.net/viewtopic.php?f=11&t=11433

View File

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

View File

@ -0,0 +1 @@
Make slopes with wood blocks.

View File

@ -0,0 +1,202 @@
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 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 moretrees_slopes = { --Material , Description , Item, Image
{"willow" , "Willow Wood" , "ethereal:willow_wood", "willow"},
{"redwood", "RedWood Wood", "ethereal:redwood_wood", "redwood"},
{"frost", "Frost Wood", "ethereal:frost_wood", "frost"},
{"yellow", "Healing Tree Wood", "ethereal:yellow_wood", "yellow"},
{"palm", "Palm Wood", "ethereal:palm_wood", "moretrees_palm"},
{"banana", "Banana Wood", "ethereal:banana_wood", "banana"},
{"birch", "Birch Wood", "ethereal:birch_wood", "moretrees_birch"},
}
for i in ipairs(moretrees_slopes) do
local mat = moretrees_slopes[i][1]
local desc = moretrees_slopes[i][2]
local item = moretrees_slopes[i][3]
local img = moretrees_slopes[i][4]
--slope
minetest.register_node("mywoodslopes:"..mat.."_slope", {
description = desc.." Slope",
drawtype = "mesh",
mesh = "twelve-twelve.obj",
tiles = {img.."_wood.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,
selection_box = slope_cbox
})
--icorner
minetest.register_node("mywoodslopes:"..mat.."_icorner", {
description = desc.." Slope Inside Corner",
drawtype = "mesh",
mesh = "twelve-twelve-ic.obj",
tiles = {img.."_wood.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 = icorner_cbox,
selection_box = icorner_cbox
})
--ocorner
minetest.register_node("mywoodslopes:"..mat.."_ocorner", {
description = desc.." Slope Outside Corner",
drawtype = "mesh",
mesh = "twelve-twelve-oc.obj",
tiles = {img.."_wood.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 = ocorner_cbox,
selection_box = ocorner_cbox
})
--rotated---------------------------------------------------------------
--slope
minetest.register_node("mywoodslopes:"..mat.."_slope_r", {
description = desc.." Slope Rotated",
drawtype = "mesh",
mesh = "twelve-twelve.obj",
tiles = {img.."_wood.png^[transformR90"},
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,
selection_box = slope_cbox
})
--icorner
minetest.register_node("mywoodslopes:"..mat.."_icorner_r", {
description = desc.." Slope Inside Corner Rotate",
drawtype = "mesh",
mesh = "twelve-twelve-ic.obj",
tiles = {img.."_wood.png^[transformR90"},
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 = icorner_cbox,
selection_box = icorner_cbox
})
--ocorner
minetest.register_node("mywoodslopes:"..mat.."_ocorner_r", {
description = desc.." Slope Outside Corner Rotated",
drawtype = "mesh",
mesh = "twelve-twelve-oc.obj",
tiles = {img.."_wood.png^[transformR90"},
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 = ocorner_cbox,
selection_box = ocorner_cbox
})
--Crafts--------------------------------------------------------
--slope
minetest.register_craft({
output = "mywoodslopes:"..mat.."_slope 3",
recipe = {
{"", "",""},
{item, "",""},
{item, item,""},
}
})
--slope icorner
minetest.register_craft({
output = "mywoodslopes:"..mat.."_icorner 3",
recipe = {
{"", "",""},
{"", item,""},
{item,"", item},
}
})
--slope ocorner
minetest.register_craft({
output = "mywoodslopes:"..mat.."_ocorner 3",
recipe = {
{"", "",""},
{item, "",item},
{"", item,""},
}
})
--rotated-----------------------------------------------
--slope
minetest.register_craft({
output = "mywoodslopes:"..mat.."_slope_r 1",
recipe = {
{"", "",""},
{"", "mywoodslopes:"..mat.."_slope",""},
{"", "",""},
}
})
--slope icorner
minetest.register_craft({
output = "mywoodslopes:"..mat.."_icorner_r 1",
recipe = {
{"", "",""},
{"", "mywoodslopes:"..mat.."_icorner",""},
{"", "",""},
}
})
--slope ocorner
minetest.register_craft({
output = "mywoodslopes:"..mat.."_ocorner_r 1",
recipe = {
{"", "",""},
{"", "mywoodslopes:"..mat.."_ocorner",""},
{"", "",""},
}
})
--]]
end

View File

@ -0,0 +1,13 @@
dofile(minetest.get_modpath("mywoodslopes").."/slopes.lua")
dofile(minetest.get_modpath("mywoodslopes").."/long_slopes.lua")
if minetest.get_modpath("moretrees") then
dofile(minetest.get_modpath("mywoodslopes").."/moretrees.lua")
return
end
if minetest.get_modpath("ethereal") then
dofile(minetest.get_modpath("mywoodslopes").."/ethereal.lua")
return
end

View File

@ -0,0 +1,13 @@
DO WHAT YOU WANT TO PUBLIC LICENSE
or abbreviated DWYWPL
December 2nd 2015
License Copyright (C) 2015 Michael Tomaino (PlatinumArts@gmail.com)
www.sandboxgamemaker.com/DWYWPL/
DO WHAT YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
1. You are allowed to do whatever you want to with what content is using this license.
2. This content is provided 'as-is', without any express or implied warranty. In no event
will the authors be held liable for any damages arising from the use of this content.

View File

@ -0,0 +1,220 @@
local slope_cbox_long = {
type = "fixed",
fixed = {
{-0.5, -0.5, -1.5, 0.5, -0.375, 0.5},
{-0.5, -0.375, -1.25, 0.5, -0.25, 0.5},
{-0.5, -0.25, -1, 0.5, -0.125, 0.5},
{-0.5, -0.125, -0.75, 0.5, 0, 0.5},
{-0.5, 0, -0.5, 0.5, 0.125, 0.5},
{-0.5, 0.125, -0.25, 0.5, 0.25, 0.5},
{-0.5, 0.25, 0, 0.5, 0.375, 0.5},
{-0.5, 0.375, 0.25, 0.5, 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},
}
}
local wood_long_slopes = { --Material , Description , Image , Item
{ "wood" , "Wood" , "default:wood"},
{ "pine_wood" , "Pinewood" , "default:pine_wood"},
{ "junglewood" , "Junglewood" , "default:junglewood"},
{ "acacia_wood" , "Acacia wood" , "default:acacia_wood"},
{ "aspen_wood" , "Aspen wood" , "default:aspen_wood"},
}
for i in ipairs(wood_long_slopes) do
local mat = wood_long_slopes[i][1]
local desc = wood_long_slopes[i][2]
local item = wood_long_slopes[i][3]
--long slope
minetest.register_node("mywoodslopes:"..mat.."_slope_long", {
description = desc.." Slope Long",
drawtype = "mesh",
mesh = "six-twelve_slope.obj",
tiles = {"default_"..mat..".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
})
--Inside Corner Long
minetest.register_node("mywoodslopes:"..mat.."_long_icorner", {
description = desc.." Long Slope Inside Corner",
drawtype = "mesh",
mesh = "six-twelve_slope-ic.obj",
tiles = {"default_"..mat..".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 = icorner_cbox_long,
selection_box = icorner_cbox_long
})
--Outside Corner Long
minetest.register_node("mywoodslopes:"..mat.."_long_ocorner", {
description = desc.." Long Slope Outside Corner",
drawtype = "mesh",
mesh = "six-twelve_slope-oc.obj",
tiles = {"default_"..mat..".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 = ocorner_cbox_long,
selection_box = ocorner_cbox_long
})
--rotated---------------------------------------------------------------
--long slope
minetest.register_node("mywoodslopes:"..mat.."_slope_long_r", {
description = desc.." Slope Long Rotated",
drawtype = "mesh",
mesh = "six-twelve_slope.obj",
tiles = {"default_"..mat..".png^[transformR90"},
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
})
--Inside Corner Long
minetest.register_node("mywoodslopes:"..mat.."_long_icorner_r", {
description = desc.." Long Slope Inside Corner",
drawtype = "mesh",
mesh = "six-twelve_slope-ic.obj",
tiles = {"default_"..mat..".png^[transformR90"},
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 = icorner_cbox_long,
selection_box = icorner_cbox_long
})
--Outside Corner Long
minetest.register_node("mywoodslopes:"..mat.."_long_ocorner_r", {
description = desc.." Long Slope Outside Corner",
drawtype = "mesh",
mesh = "six-twelve_slope-oc.obj",
tiles = {"default_"..mat..".png^[transformR90"},
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 = ocorner_cbox_long,
selection_box = ocorner_cbox_long
})
--Crafts--------------------------------------------------------
--slope long
minetest.register_craft({
output = "mywoodslopes:"..mat.."_slope_long 3",
recipe = {
{"", "",""},
{item, "",""},
{item, item,item},
}
})
--slope icorner
minetest.register_craft({
output = "mywoodslopes:"..mat.."_long_icorner 3",
recipe = {
{"", item,""},
{item, item,item},
{item,"", item},
}
})
--slope ocorner
minetest.register_craft({
output = "mywoodslopes:"..mat.."_long_ocorner 3",
recipe = {
{item, "",item},
{item, item,item},
{"", item,""},
}
})
--rotated-----------------------------------------------
--slope long
minetest.register_craft({
output = "mywoodslopes:"..mat.."_slope_long_r 1",
recipe = {
{"", "",""},
{"", "mywoodslopes:"..mat.."_slope_long",""},
{"", "",""},
}
})
--slope icorner
minetest.register_craft({
output = "mywoodslopes:"..mat.."_long_icorner_r 1",
recipe = {
{"", "",""},
{"", "mywoodslopes:"..mat.."_long_icorner",""},
{"", "",""},
}
})
--slope ocorner
minetest.register_craft({
output = "mywoodslopes:"..mat.."_long_ocorner_r 1",
recipe = {
{"", "",""},
{"", "mywoodslopes:"..mat.."_long_ocorner",""},
{"", "",""},
}
})
end

View File

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

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,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

View File

@ -0,0 +1,205 @@
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 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 moretrees_slopes = { --Material , Description , Item, Image
{ "apple" , "Apple Plank" , "moretrees:apple_planks", "apple_tree"},
{"beech", "Beech Plank", "moretrees:beech_planks", "beech"},
{"oak", "Oak Plank", "moretrees:oak_planks", "oak"},
{"sequoia", "Giant Sequoia Plank", "moretrees:sequoia_planks", "sequoia"},
{"birch", "Birch Plank", "moretrees:birch_planks", "birch"},
{"palm", "Palm Plank", "moretrees:palm_planks", "palm"},
{"spruce", "Spruce Plank", "moretrees:spruce_planks", "spruce"},
{"willow", "Willow Plank", "moretrees:willow_planks", "willow"},
{"rubber", "Rubber Plank", "moretrees:rubber_tree_planks","rubber_tree"},
{"fir", "Douglas Fir Plank", "moretrees:fir_planks", "fir"},
}
for i in ipairs(moretrees_slopes) do
local mat = moretrees_slopes[i][1]
local desc = moretrees_slopes[i][2]
local item = moretrees_slopes[i][3]
local img = moretrees_slopes[i][4]
--slope
minetest.register_node("mywoodslopes:"..mat.."_slope", {
description = desc.." Slope",
drawtype = "mesh",
mesh = "twelve-twelve.obj",
tiles = {"moretrees_"..img.."_wood.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,
selection_box = slope_cbox
})
--icorner
minetest.register_node("mywoodslopes:"..mat.."_icorner", {
description = desc.." Slope Inside Corner",
drawtype = "mesh",
mesh = "twelve-twelve-ic.obj",
tiles = {"moretrees_"..img.."_wood.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 = icorner_cbox,
selection_box = icorner_cbox
})
--ocorner
minetest.register_node("mywoodslopes:"..mat.."_ocorner", {
description = desc.." Slope Outside Corner",
drawtype = "mesh",
mesh = "twelve-twelve-oc.obj",
tiles = {"moretrees_"..img.."_wood.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 = ocorner_cbox,
selection_box = ocorner_cbox
})
--rotated---------------------------------------------------------------
--slope
minetest.register_node("mywoodslopes:"..mat.."_slope_r", {
description = desc.." Slope Rotated",
drawtype = "mesh",
mesh = "twelve-twelve.obj",
tiles = {"moretrees_"..img.."_wood.png^[transformR90"},
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,
selection_box = slope_cbox
})
--icorner
minetest.register_node("mywoodslopes:"..mat.."_icorner_r", {
description = desc.." Slope Inside Corner Rotate",
drawtype = "mesh",
mesh = "twelve-twelve-ic.obj",
tiles = {"moretrees_"..img.."_wood.png^[transformR90"},
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 = icorner_cbox,
selection_box = icorner_cbox
})
--ocorner
minetest.register_node("mywoodslopes:"..mat.."_ocorner_r", {
description = desc.." Slope Outside Corner Rotated",
drawtype = "mesh",
mesh = "twelve-twelve-oc.obj",
tiles = {"moretrees_"..img.."_wood.png^[transformR90"},
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 = ocorner_cbox,
selection_box = ocorner_cbox
})
--Crafts--------------------------------------------------------
--slope
minetest.register_craft({
output = "mywoodslopes:"..mat.."_slope 3",
recipe = {
{"", "",""},
{item, "",""},
{item, item,""},
}
})
--slope icorner
minetest.register_craft({
output = "mywoodslopes:"..mat.."_icorner 3",
recipe = {
{"", "",""},
{"", item,""},
{item,"", item},
}
})
--slope ocorner
minetest.register_craft({
output = "mywoodslopes:"..mat.."_ocorner 3",
recipe = {
{"", "",""},
{item, "",item},
{"", item,""},
}
})
--rotated-----------------------------------------------
--slope
minetest.register_craft({
output = "mywoodslopes:"..mat.."_slope_r 1",
recipe = {
{"", "",""},
{"", "mywoodslopes:"..mat.."_slope",""},
{"", "",""},
}
})
--slope icorner
minetest.register_craft({
output = "mywoodslopes:"..mat.."_icorner_r 1",
recipe = {
{"", "",""},
{"", "mywoodslopes:"..mat.."_icorner",""},
{"", "",""},
}
})
--slope ocorner
minetest.register_craft({
output = "mywoodslopes:"..mat.."_ocorner_r 1",
recipe = {
{"", "",""},
{"", "mywoodslopes:"..mat.."_ocorner",""},
{"", "",""},
}
})
--]]
end

Binary file not shown.

After

Width:  |  Height:  |  Size: 239 KiB

View File

@ -0,0 +1,198 @@
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 icorner_cbox = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.25, 0.5},
{-0.5, -0.5, -0.25, 0.5, 0, 0.5},
{-0.5, -0.5, -0.5, 0.25, 0, 0.5},
{-0.5, 0, -0.5, 0, 0.25, 0.5},
{-0.5, 0, 0, 0.5, 0.25, 0.5},
{-0.5, 0.25, 0.25, 0.5, 0.5, 0.5},
{-0.5, 0.25, -0.5, -0.25, 0.5, 0.5},
}
}
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 wood_slopes = { --Material , Description , Image , Item
{ "wood" , "Wood" , "default:wood"},
{ "pine_wood" , "Pinewood" , "default:pine_wood"},
{ "junglewood" , "Junglewood" , "default:junglewood"},
{ "acacia_wood" , "Acacia wood" , "default:acacia_wood"},
{ "aspen_wood" , "Aspen wood" , "default:aspen_wood"},
}
for i in ipairs(wood_slopes) do
local mat = wood_slopes[i][1]
local desc = wood_slopes[i][2]
local item = wood_slopes[i][3]
--slope
minetest.register_node("mywoodslopes:"..mat.."_slope", {
description = desc.." Slope",
drawtype = "mesh",
mesh = "twelve-twelve.obj",
tiles = {"default_"..mat..".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,
selection_box = slope_cbox
})
--icorner
minetest.register_node("mywoodslopes:"..mat.."_icorner", {
description = desc.." Slope Inside Corner",
drawtype = "mesh",
mesh = "twelve-twelve-ic.obj",
tiles = {"default_"..mat..".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 = icorner_cbox,
selection_box = icorner_cbox
})
--ocorner
minetest.register_node("mywoodslopes:"..mat.."_ocorner", {
description = desc.." Slope Outside Corner",
drawtype = "mesh",
mesh = "twelve-twelve-oc.obj",
tiles = {"default_"..mat..".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 = ocorner_cbox,
selection_box = ocorner_cbox
})
--rotated---------------------------------------------------------------
--slope
minetest.register_node("mywoodslopes:"..mat.."_slope_r", {
description = desc.." Slope Rotated",
drawtype = "mesh",
mesh = "twelve-twelve.obj",
tiles = {"default_"..mat..".png^[transformR90"},
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,
selection_box = slope_cbox
})
--icorner
minetest.register_node("mywoodslopes:"..mat.."_icorner_r", {
description = desc.." Slope Inside Corner Rotate",
drawtype = "mesh",
mesh = "twelve-twelve-ic.obj",
tiles = {"default_"..mat..".png^[transformR90"},
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 = icorner_cbox,
selection_box = icorner_cbox
})
--ocorner
minetest.register_node("mywoodslopes:"..mat.."_ocorner_r", {
description = desc.." Slope Outside Corner Rotated",
drawtype = "mesh",
mesh = "twelve-twelve-oc.obj",
tiles = {"default_"..mat..".png^[transformR90"},
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 = ocorner_cbox,
selection_box = ocorner_cbox
})
--Crafts--------------------------------------------------------
--slope
minetest.register_craft({
output = "mywoodslopes:"..mat.."_slope 3",
recipe = {
{"", "",""},
{item, "",""},
{item, item,""},
}
})
--slope icorner
minetest.register_craft({
output = "mywoodslopes:"..mat.."_icorner 3",
recipe = {
{"", "",""},
{"", item,""},
{item,"", item},
}
})
--slope ocorner
minetest.register_craft({
output = "mywoodslopes:"..mat.."_ocorner 3",
recipe = {
{"", "",""},
{item, "",item},
{"", item,""},
}
})
--rotated-----------------------------------------------
--slope
minetest.register_craft({
output = "mywoodslopes:"..mat.."_slope_r 1",
recipe = {
{"", "",""},
{"", "mywoodslopes:"..mat.."_slope",""},
{"", "",""},
}
})
--slope icorner
minetest.register_craft({
output = "mywoodslopes:"..mat.."_icorner_r 1",
recipe = {
{"", "",""},
{"", "mywoodslopes:"..mat.."_icorner",""},
{"", "",""},
}
})
--slope ocorner
minetest.register_craft({
output = "mywoodslopes:"..mat.."_ocorner_r 1",
recipe = {
{"", "",""},
{"", "mywoodslopes:"..mat.."_ocorner",""},
{"", "",""},
}
})
end