Add 'hill_nodebox' mod
parent
21b24a546c
commit
3196963637
|
@ -118,6 +118,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
|
||||||
* [biome_lib][] ([WTFPL][lic.wtfpl]) -- version: [9cdcdcf Git][ver.biome_lib] *2017-01-26* ([patched][patch.biome_lib])
|
* [biome_lib][] ([WTFPL][lic.wtfpl]) -- version: [9cdcdcf Git][ver.biome_lib] *2017-01-26* ([patched][patch.biome_lib])
|
||||||
* [ethereal][] ([MIT][lic.ethereal]) -- version [2c24961 Git][ver.ethereal] *2017-04-23* ([patched][patch.ethereal])
|
* [ethereal][] ([MIT][lic.ethereal]) -- version [2c24961 Git][ver.ethereal] *2017-04-23* ([patched][patch.ethereal])
|
||||||
* [glow][] ([GPL][lic.gpl2.0]) -- version: [30f9cf3 Git][ver.glow] *2015-09-25* ([patched][patch.glow])
|
* [glow][] ([GPL][lic.gpl2.0]) -- version: [30f9cf3 Git][ver.glow] *2015-09-25* ([patched][patch.glow])
|
||||||
|
* [hill_nodebox][] ([BSD 3-Clause][lic.hill_nodebox]) -- version [1.0.0 (6d9acf7 Git)][ver.hill_nodebox] *2014-01-16*
|
||||||
* [nether][] ([WTFPL / CC BY-SA][lic.nether]) -- version: [bc2ccfb Git][ver.nether] *2017-01-04* ([patched][patch.nether])
|
* [nether][] ([WTFPL / CC BY-SA][lic.nether]) -- version: [bc2ccfb Git][ver.nether] *2017-01-04* ([patched][patch.nether])
|
||||||
* [worldedge][] ([DWYWPL][lic.dwywpl]) -- version: [e15fa99 Git][ver.worldedge] *2016-03-23* ([patched][patch.worldedge])
|
* [worldedge][] ([DWYWPL][lic.dwywpl]) -- version: [e15fa99 Git][ver.worldedge] *2016-03-23* ([patched][patch.worldedge])
|
||||||
|
|
||||||
|
@ -273,6 +274,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
|
||||||
[hbarmor]: https://forum.minetest.net/viewtopic.php?t=11337
|
[hbarmor]: https://forum.minetest.net/viewtopic.php?t=11337
|
||||||
[helicopter]: https://forum.minetest.net/viewtopic.php?t=6183
|
[helicopter]: https://forum.minetest.net/viewtopic.php?t=6183
|
||||||
[hidename]: https://github.com/AntumDeluge/mtmod-hidename
|
[hidename]: https://github.com/AntumDeluge/mtmod-hidename
|
||||||
|
[hill_nodebox]: https://cornernote.github.io/minetest-hill_nodebox/
|
||||||
[home_gui]: http://cornernote.github.io/minetest-home_gui/
|
[home_gui]: http://cornernote.github.io/minetest-home_gui/
|
||||||
[homedecor]: https://forum.minetest.net/viewtopic.php?t=2041
|
[homedecor]: https://forum.minetest.net/viewtopic.php?t=2041
|
||||||
[hovercraft]: https://forum.minetest.net/viewtopic.php?t=6722
|
[hovercraft]: https://forum.minetest.net/viewtopic.php?t=6722
|
||||||
|
@ -376,6 +378,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
|
||||||
[lic.farming_plus]: mods/farming/farming_plus/README.txt
|
[lic.farming_plus]: mods/farming/farming_plus/README.txt
|
||||||
[lic.fort_spikes]: mods/buildings/fort_spikes/README.md
|
[lic.fort_spikes]: mods/buildings/fort_spikes/README.md
|
||||||
[lic.hidename]: mods/player_visuals/hidename/LICENSE.txt
|
[lic.hidename]: mods/player_visuals/hidename/LICENSE.txt
|
||||||
|
[lic.hill_nodebox]: mods/world/hill_nodebox/LICENSE
|
||||||
[lic.homedecor]: mods/mp_homedecor_modpack/LICENSE
|
[lic.homedecor]: mods/mp_homedecor_modpack/LICENSE
|
||||||
[lic.hovercraft]: mods/transport/hovercraft/LICENSE.txt
|
[lic.hovercraft]: mods/transport/hovercraft/LICENSE.txt
|
||||||
[lic.inventory_plus]: mods/inventory/inventory_plus/LICENSE
|
[lic.inventory_plus]: mods/inventory/inventory_plus/LICENSE
|
||||||
|
@ -473,6 +476,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
|
||||||
[ver.hbarmor]: repo.or.cz/minetest_hbarmor.git/tree/bfc5f8c
|
[ver.hbarmor]: repo.or.cz/minetest_hbarmor.git/tree/bfc5f8c
|
||||||
[ver.helicopter]: https://github.com/SokolovPavel/helicopter/tree/10f1433
|
[ver.helicopter]: https://github.com/SokolovPavel/helicopter/tree/10f1433
|
||||||
[ver.hidename]: https://github.com/AntumDeluge/mtmod-hidename/tree/bb52dbc
|
[ver.hidename]: https://github.com/AntumDeluge/mtmod-hidename/tree/bb52dbc
|
||||||
|
[ver.hill_nodebox]: https://github.com/cornernote/minetest-hill_nodebox/tree/6d9acf7
|
||||||
[ver.home_gui]: https://github.com/cornernote/minetest-home_gui/tree/f6b5001
|
[ver.home_gui]: https://github.com/cornernote/minetest-home_gui/tree/f6b5001
|
||||||
[ver.homedecor]: https://github.com/minetest-mods/homedecor_modpack/tree/8e467ef
|
[ver.homedecor]: https://github.com/minetest-mods/homedecor_modpack/tree/8e467ef
|
||||||
[ver.hovercraft]: https://github.com/stujones11/hovercraft/tree/7b0df6f
|
[ver.hovercraft]: https://github.com/stujones11/hovercraft/tree/7b0df6f
|
||||||
|
|
|
@ -0,0 +1,32 @@
|
||||||
|
Copyright (c) 2013, Brett O'Donnell http://cornernote.github.io
|
||||||
|
All rights reserved.
|
||||||
|
_____ _____ _____ _____ _____ _____
|
||||||
|
| |___| __ | | |___| __ | | |___|_ _|___
|
||||||
|
| --| . | -| | | | -_| -| | | | . | | | | -_|
|
||||||
|
|_____|___|__|__|_|___|___|__|__|_|___|___| |_| |___|
|
||||||
|
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without modification,
|
||||||
|
are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
* Redistributions of source code must retain the above copyright notice, this
|
||||||
|
list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
* Redistributions in binary form must reproduce the above copyright notice, this
|
||||||
|
list of conditions and the following disclaimer in the documentation and/or
|
||||||
|
other materials provided with the distribution.
|
||||||
|
|
||||||
|
* Neither the name of the organization nor the names of its
|
||||||
|
contributors may be used to endorse or promote products derived from
|
||||||
|
this software without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||||
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||||
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
||||||
|
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||||
|
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@ -0,0 +1,32 @@
|
||||||
|
# Hill Nodebox for Minetest
|
||||||
|
|
||||||
|
Allows players to craft and place hill-like nodes that are comprised of 16 levels of square nodeboxes.
|
||||||
|
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- Hill-like nodes using nodebox.
|
||||||
|
- Comprised of 16 levels of square nodeboxes.
|
||||||
|
|
||||||
|
|
||||||
|
## Resources
|
||||||
|
|
||||||
|
- **[Documentation](http://cornernote.github.io/minetest-hill_nodebox)**
|
||||||
|
- **[GitHub Project](https://github.com/cornernote/minetest-hill_nodebox)**
|
||||||
|
- **[Minetest Forum](http://minetest.net/forum/viewtopic.php?id=3555)**
|
||||||
|
|
||||||
|
|
||||||
|
## Support
|
||||||
|
|
||||||
|
- Does this README need improvement? Go ahead and [suggest a change](https://github.com/cornernote/minetest-hill_nodebox/edit/master/README.md).
|
||||||
|
- Found a bug, or need help using this project? Check the [open issues](https://github.com/cornernote/minetest-hill_nodebox/issues) or [create an issue](https://github.com/cornernote/minetest-hill_nodebox/issues/new).
|
||||||
|
|
||||||
|
|
||||||
|
## About
|
||||||
|
|
||||||
|
This module is open source, so it's distributed freely. If you find it useful then I ask not for your wealth, but simply to spare your time to consider the world we share by watching [Earthlings](http://earthlings.com/), a multi-award winning film available to watch online for free. A must-see for anyone who wishes to make the world a better place.
|
||||||
|
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
[BSD-3-Clause](https://raw.github.com/cornernote/minetest-hill_nodebox/master/LICENSE), Copyright © 2013-2014 [Brett O'Donnell](http://cornernote.github.io/)
|
|
@ -0,0 +1 @@
|
||||||
|
default
|
|
@ -0,0 +1,55 @@
|
||||||
|
--[[
|
||||||
|
|
||||||
|
Hill Nodebox for Minetest
|
||||||
|
|
||||||
|
Copyright (c) 2012 cornernote, Brett O'Donnell <cornernote@gmail.com>
|
||||||
|
Source Code: https://github.com/cornernote/minetest-hill_nodebox
|
||||||
|
License: GPLv3
|
||||||
|
|
||||||
|
]]--
|
||||||
|
|
||||||
|
|
||||||
|
-- how many square steps to make the hill
|
||||||
|
local steps = 16
|
||||||
|
|
||||||
|
-- build the nodebox
|
||||||
|
local nodebox, step = {}, 0
|
||||||
|
for k=1,steps do
|
||||||
|
step = k/steps - 0.5
|
||||||
|
table.insert(nodebox,{-0.5,-0.5,step, 0.5,step,0.5})
|
||||||
|
end
|
||||||
|
|
||||||
|
-- register the node
|
||||||
|
minetest.register_node("hill_nodebox:hill", {
|
||||||
|
description = "Hill",
|
||||||
|
drawtype = "nodebox",
|
||||||
|
node_box = {type = "fixed", fixed = nodebox},
|
||||||
|
tiles = {
|
||||||
|
"default_grass.png",
|
||||||
|
"default_dirt.png",
|
||||||
|
"default_dirt.png^default_grass_side.png",
|
||||||
|
"default_dirt.png^default_grass_side.png",
|
||||||
|
"default_dirt.png^default_grass_side.png",
|
||||||
|
"default_grass.png",
|
||||||
|
},
|
||||||
|
paramtype = "light",
|
||||||
|
paramtype2 = "facedir",
|
||||||
|
sunlight_propagates = true,
|
||||||
|
groups = {crumbly=3},
|
||||||
|
sounds = default.node_sound_dirt_defaults({
|
||||||
|
footstep = {name="default_grass_footstep", gain=0.4},
|
||||||
|
}),
|
||||||
|
})
|
||||||
|
|
||||||
|
-- register the craft
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "hill_nodebox:hill",
|
||||||
|
recipe = {
|
||||||
|
{"", "", "default:dirt"},
|
||||||
|
{"", "default:dirt", "default:dirt"},
|
||||||
|
{"default:dirt", "default:dirt", ""},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
-- log that we started
|
||||||
|
minetest.log("action", "[MOD]"..minetest.get_current_modname().." -- loaded from "..minetest.get_modpath(minetest.get_current_modname()))
|
Loading…
Reference in New Issue