Compare commits
78 Commits
Author | SHA1 | Date | |
---|---|---|---|
9d953ccebf | |||
26f59baba0 | |||
0ace9fe493 | |||
ca45478761 | |||
1482a7810f | |||
01ec8290f6 | |||
723db44933 | |||
5fc5fce74e | |||
846214993f | |||
10dd84a7f1 | |||
8ff1cb598f | |||
7d701da5b9 | |||
d5edcb2a10 | |||
c711946453 | |||
4d2a7ab6fe | |||
832b8f8817 | |||
f6e0db21b2 | |||
413054fd2f | |||
652d431664 | |||
cc7e1271be | |||
e6b5336bad | |||
3f7edb39a1 | |||
64eade096e | |||
2b76b077f0 | |||
d91da8b442 | |||
6f1ee946a0 | |||
9eb4926d8d | |||
281268e7bc | |||
350a5f49e7 | |||
0e2c30ec72 | |||
b7217dd1f7 | |||
a8a06d8deb | |||
4f9b05be4e | |||
da652c16cd | |||
1b78097ab7 | |||
dbba372137 | |||
4c767ad7ff | |||
780df105ea | |||
8f6176f68c | |||
6a996eb86a | |||
80d35c8215 | |||
65e3afdd8b | |||
1fa4669ae8 | |||
f2ede87a5a | |||
16ae14f458 | |||
59c384dca4 | |||
df8c150c9a | |||
7347b05e3e | |||
acd570ba0d | |||
f3005d6367 | |||
fc3c5f4738 | |||
fbfb079f54 | |||
e9c6cef4dd | |||
5f35766ed0 | |||
f4b68fbfd7 | |||
6a1ffa7651 | |||
0569ff9683 | |||
6f033c1695 | |||
831bbb2b27 | |||
4ad4dc958f | |||
cf1b054a99 | |||
81f77ae97e | |||
085e9d56bc | |||
5500c9906c | |||
d587b4d23f | |||
01b411c753 | |||
2bd998e791 | |||
de620e4ff8 | |||
7f06db2200 | |||
ab2c63270f | |||
15033a3514 | |||
34c01e66c7 | |||
26a5273dd6 | |||
db93277a98 | |||
30fba0ea40 | |||
27051c782e | |||
eb3f9363d5 | |||
fa6937ce7b |
14
.luacheckrc
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
unused_args = false
|
||||||
|
allow_defined_top = true
|
||||||
|
|
||||||
|
read_globals = {
|
||||||
|
"DIR_DELIM",
|
||||||
|
"minetest", "core",
|
||||||
|
"dump",
|
||||||
|
"vector", "nodeupdate",
|
||||||
|
"VoxelManip", "VoxelArea",
|
||||||
|
"PseudoRandom", "ItemStack",
|
||||||
|
"intllib",
|
||||||
|
"default",
|
||||||
|
}
|
||||||
|
|
63
CHANGELOG.md
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
# Changelog
|
||||||
|
|
||||||
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
||||||
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [1.2.0] - 2018-11-24
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Stairs+ nodes for `basic_materials`'s concrete, cement and brass blocks.
|
||||||
|
- Listring add for circular saw.
|
||||||
|
- **Stairs+:** New API function
|
||||||
|
`stairsplus:register_custom_subset(subset, modname, subname, recipeitem, fields)`.
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- The papyrus crafting recipe override is now properly applied over the
|
||||||
|
`default` mod's recipe.
|
||||||
|
- Centered wooden tiles are now craftable.
|
||||||
|
- Wool Stairs+ nodes can no longer be used in crafting.
|
||||||
|
- The circular saw can no longer replace items from the player's inventory
|
||||||
|
when it is full.
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- New craft for:
|
||||||
|
- Stone Tile
|
||||||
|
- Circle Stone Bricks
|
||||||
|
- Stairs+:
|
||||||
|
- Move definitions to `stairsplus.defs` table in a separate file
|
||||||
|
- Move recipe definitions to `stairsplus.register_recipes` function in a separate file
|
||||||
|
|
||||||
|
## [1.1.0] - 2017-10-04
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- 3 new node shapes in the circular saw (thin slabs, available in
|
||||||
|
"L-shaped", "corner-shaped" and "U-shaped" variations), all with 1/16
|
||||||
|
thickness.
|
||||||
|
- New Stairs+ nodes:
|
||||||
|
- Coral Skeleton
|
||||||
|
- Desert Sandstone, Silver Sandstone
|
||||||
|
- Desert Sandstone Brick, Silver Sandstone Brick
|
||||||
|
- Desert Sandstone Block, Silver Sandstone Block
|
||||||
|
- Obsidian Block
|
||||||
|
- Sandstone Block
|
||||||
|
- Stone Block, Desert Stone Block
|
||||||
|
- Straw
|
||||||
|
- Tin Block
|
||||||
|
- Wool (all colors)
|
||||||
|
- Other mods can now get a list of all the defined Stairs+ shapes
|
||||||
|
|
||||||
|
## 1.0.0 - 2017-02-19
|
||||||
|
|
||||||
|
- Initial versioned release.
|
||||||
|
|
||||||
|
[Unreleased]: https://github.com/minetest-mods/moreblocks/compare/v1.2.0...HEAD
|
||||||
|
[1.2.0]: https://github.com/minetest-mods/moreblocks/compare/v1.1.0...v1.2.0
|
||||||
|
[1.1.0]: https://github.com/minetest-mods/moreblocks/compare/v1.0.0...v1.1.0
|
10
CONTRIBUTING.md
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# Contributing to More Blocks
|
||||||
|
|
||||||
|
Thank you for your interest in More Blocks! Before contributing,
|
||||||
|
be sure to know about these few guidelines:
|
||||||
|
|
||||||
|
- Contributions have to be licensed under the zlib license (or compatible)
|
||||||
|
for code, and CC BY-SA 3.0 (or compatible) for assets.
|
||||||
|
- Make sure to update the changelog, keeping the
|
||||||
|
[changelog format](http://keepachangelog.com/en/1.0.0/) we use.
|
||||||
|
- Don't bump the version yourself. Maintainers will do this when necessary.
|
5
LICENSE.md
Executable file → Normal file
@ -1,7 +1,6 @@
|
|||||||
zlib license
|
# zlib license
|
||||||
============
|
|
||||||
|
|
||||||
Copyright (c) 2011-2015 Calinou and contributors
|
Copyright (c) 2011-2018 Hugo Locurcio and contributors
|
||||||
|
|
||||||
**This software 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 software.**
|
**This software 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 software.**
|
||||||
|
|
||||||
|
77
README.md
Executable file → Normal file
@ -1,11 +1,76 @@
|
|||||||
More Blocks
|
# More Blocks
|
||||||
===========
|
|
||||||
|
|
||||||
More Blocks for Minetest <http://minetest.net>, a free/libre infinite
|
More Blocks for [Minetest](https://www.minetest.net/), a free and open source infinite
|
||||||
world block sandbox game.
|
world block sandbox game.
|
||||||
|
|
||||||
To install, just clone this repository into your "mods" directory.
|
[**Forum topic**](https://forum.minetest.net/viewtopic.php?f=11&t=509)
|
||||||
|
|
||||||
More Blocks code is licensed under the zlib license, textures are by Calinou and are licensed under CC BY-SA 3.0 Unported.
|
## Installation
|
||||||
|
|
||||||
**Forum topic:** <https://forum.minetest.net/viewtopic.php?f=11&t=509>
|
### Download the mod
|
||||||
|
|
||||||
|
To install More Blocks, clone this Git repository into your Minetest's `mods/`
|
||||||
|
directory:
|
||||||
|
|
||||||
|
```
|
||||||
|
git clone https://github.com/minetest-mods/moreblocks.git
|
||||||
|
```
|
||||||
|
|
||||||
|
You can also
|
||||||
|
[download a ZIP archive](https://github.com/minetest-mods/moreblocks/archive/master.zip)
|
||||||
|
of More Blocks. If you do so, you will need to extract the archive, then rename
|
||||||
|
the resulting folder from `moreblocks-master` to `moreblocks` – this is
|
||||||
|
**absolutely** necessary to do, else, it won't work!
|
||||||
|
|
||||||
|
### Enable the mod
|
||||||
|
|
||||||
|
Once you have installed More Blocks, you need to enable it in Minetest.
|
||||||
|
The procedure is as follows:
|
||||||
|
|
||||||
|
#### Using the client's main menu
|
||||||
|
|
||||||
|
This is the easiest way to enable More Blocks when playing in singleplayer
|
||||||
|
(or on a server hosted from a client).
|
||||||
|
|
||||||
|
1. Start Minetest and switch to the **Local Game** tab.
|
||||||
|
2. Select the world you want to enable More Blocks in.
|
||||||
|
3. Click **Configure**, then enable `moreblocks` by double-clicking it
|
||||||
|
(or ticking the **Enabled** checkbox).
|
||||||
|
4. Save the changes, then start a game on the world you enabled More Blocks on.
|
||||||
|
5. More Blocks should now be running on your world.
|
||||||
|
|
||||||
|
#### Using a text editor
|
||||||
|
|
||||||
|
This is the recommended way to enable the mod on a server without using a GUI.
|
||||||
|
|
||||||
|
1. Make sure Minetest is not currently running (else, it will overwrite
|
||||||
|
the changes when exiting).
|
||||||
|
2. Open the world's `world.mt` file using a text editor.
|
||||||
|
3. Add the following line at the end of the file:
|
||||||
|
|
||||||
|
```
|
||||||
|
load_mod_moreblocks = true
|
||||||
|
```
|
||||||
|
|
||||||
|
If the line is already present in the file, then replace `false` with `true` on that line.
|
||||||
|
|
||||||
|
4. Save the file, then start a game on the world you enabled More Blocks on.
|
||||||
|
5. More Blocks should now be running on your world.
|
||||||
|
|
||||||
|
## Version compatibility
|
||||||
|
|
||||||
|
More Blocks is currently primarily tested with Minetest 0.4.16.
|
||||||
|
It may or may not work with newer or older versions. Issues arising in older
|
||||||
|
versions than 0.4.16 will generally not be fixed.
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
Copyright © 2011-2018 Hugo Locurcio and contributors
|
||||||
|
|
||||||
|
- More Blocks code is licensed under the zlib license, see
|
||||||
|
[`LICENSE.md`](LICENSE.md) for details.
|
||||||
|
- Unless otherwise specified, More Blocks textures are licensed under
|
||||||
|
[CC BY-SA 3.0 Unported](https://creativecommons.org/licenses/by-sa/3.0/).
|
||||||
|
|
||||||
|
`moreblocks_copperpatina.png` was created by pithydon, and is licensed under
|
||||||
|
[CC0 1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/).
|
||||||
|
75
aliases.lua
Executable file → Normal file
@ -1,7 +1,7 @@
|
|||||||
--[[
|
--[[
|
||||||
More Blocks: alias definitions
|
More Blocks: alias definitions
|
||||||
|
|
||||||
Copyright (c) 2011-2015 Calinou and contributors.
|
Copyright (c) 2011-2018 Hugo Locurcio and contributors.
|
||||||
Licensed under the zlib license. See LICENSE.md for more information.
|
Licensed under the zlib license. See LICENSE.md for more information.
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
@ -10,37 +10,6 @@ minetest.register_alias("sweeper", "moreblocks:sweeper")
|
|||||||
minetest.register_alias("circular_saw", "moreblocks:circular_saw")
|
minetest.register_alias("circular_saw", "moreblocks:circular_saw")
|
||||||
minetest.register_alias("jungle_stick", "moreblocks:jungle_stick")
|
minetest.register_alias("jungle_stick", "moreblocks:jungle_stick")
|
||||||
|
|
||||||
-- Wrong drops
|
|
||||||
|
|
||||||
-- //MFF(Mg|10/11/15)
|
|
||||||
|
|
||||||
-- Microblocks
|
|
||||||
for _,i in pairs({"", "_1", "_2", "_4", "_12", "_14", "_15"}) do
|
|
||||||
minetest.register_alias("moreblocks:micro_clay_brick" .. i, "moreblocks:micro_brick" .. i)
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Panels
|
|
||||||
for _,i in pairs({"", "_1", "_2", "_4", "_12", "_14", "_15"}) do
|
|
||||||
minetest.register_alias("moreblocks:panel_clay_brick" .. i, "moreblocks:panel_brick" .. i)
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Slabs
|
|
||||||
for _,i in pairs({"", "_1", "_2", "_quarter", "_three_quarter", "_14", "_15"}) do
|
|
||||||
minetest.register_alias("moreblocks:slab_clay_brick" .. i, "moreblocks:slab_brick" .. i)
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Stairs
|
|
||||||
for _,i in pairs({"", "_outer", "_inner", "_alt", "_alt_1", "_alt_2", "_alt_4", "_half"}) do
|
|
||||||
minetest.register_alias("moreblocks:stair_clay_brick" .. i, "moreblocks:stair_brick" .. i)
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Slopes
|
|
||||||
for _,i in pairs({"", "_half", "_half_raised", "_outer", "_outer_cut", "_outer_cut_half", "_outer_half", "_outer_half_raised", "_inner", "_inner_half", "_inner_half_raised"}) do
|
|
||||||
minetest.register_alias("moreblocks:slope_clay_brick" .. i, "moreblocks:slope_brick" .. i)
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-- Old block/item replacement:
|
-- Old block/item replacement:
|
||||||
minetest.register_alias("moreblocks:oerkkiblock", "default:mossycobble")
|
minetest.register_alias("moreblocks:oerkkiblock", "default:mossycobble")
|
||||||
minetest.register_alias("moreblocks:screwdriver", "screwdriver:screwdriver")
|
minetest.register_alias("moreblocks:screwdriver", "screwdriver:screwdriver")
|
||||||
@ -50,6 +19,9 @@ minetest.register_alias("moreblocks:stone_bricks", "default:stonebrick")
|
|||||||
minetest.register_alias("moreblocks:stonebrick", "default:stonebrick")
|
minetest.register_alias("moreblocks:stonebrick", "default:stonebrick")
|
||||||
minetest.register_alias("moreblocks:junglewood", "default:junglewood")
|
minetest.register_alias("moreblocks:junglewood", "default:junglewood")
|
||||||
minetest.register_alias("moreblocks:jungle_wood", "default:junglewood")
|
minetest.register_alias("moreblocks:jungle_wood", "default:junglewood")
|
||||||
|
minetest.register_alias("moreblocks:fence_junglewood", "default:fence_junglewood")
|
||||||
|
minetest.register_alias("moreblocks:fence_jungle_wood", "default:fence_junglewood")
|
||||||
|
minetest.register_alias("moreblocks:jungle_stick", "default:stick")
|
||||||
|
|
||||||
for _, t in pairs(circular_saw.names) do
|
for _, t in pairs(circular_saw.names) do
|
||||||
minetest.register_alias("moreblocks:" .. t[1] .. "_jungle_wood" .. t[2],
|
minetest.register_alias("moreblocks:" .. t[1] .. "_jungle_wood" .. t[2],
|
||||||
@ -60,13 +32,13 @@ minetest.register_alias("moreblocks:horizontaljungletree", "moreblocks:horizonta
|
|||||||
minetest.register_alias("moreblocks:stonesquare", "moreblocks:stone_tile")
|
minetest.register_alias("moreblocks:stonesquare", "moreblocks:stone_tile")
|
||||||
minetest.register_alias("moreblocks:circlestonebrick", "moreblocks:circle_stone_bricks")
|
minetest.register_alias("moreblocks:circlestonebrick", "moreblocks:circle_stone_bricks")
|
||||||
minetest.register_alias("moreblocks:ironstonebrick", "moreblocks:iron_stone_bricks")
|
minetest.register_alias("moreblocks:ironstonebrick", "moreblocks:iron_stone_bricks")
|
||||||
minetest.register_alias("moreblocks:fence_junglewood", "moreblocks:fence_jungle_wood")
|
|
||||||
minetest.register_alias("moreblocks:coalstone", "moreblocks:coal_stone")
|
minetest.register_alias("moreblocks:coalstone", "moreblocks:coal_stone")
|
||||||
minetest.register_alias("moreblocks:ironstone", "moreblocks:iron_stone")
|
minetest.register_alias("moreblocks:ironstone", "moreblocks:iron_stone")
|
||||||
minetest.register_alias("moreblocks:woodtile", "moreblocks:wood_tile")
|
minetest.register_alias("moreblocks:woodtile", "moreblocks:wood_tile")
|
||||||
minetest.register_alias("moreblocks:woodtile_full", "moreblocks:wood_tile_full")
|
minetest.register_alias("moreblocks:woodtile_full", "moreblocks:wood_tile_full")
|
||||||
minetest.register_alias("moreblocks:woodtile_centered", "moreblocks:wood_tile_centered")
|
minetest.register_alias("moreblocks:woodtile_centered", "moreblocks:wood_tile_centered")
|
||||||
minetest.register_alias("moreblocks:woodtile_up", "moreblocks:wood_tile_up")
|
minetest.register_alias("moreblocks:woodtile_up", "moreblocks:wood_tile_offset")
|
||||||
|
minetest.register_alias("moreblocks:wood_tile_up", "moreblocks:wood_tile_offset")
|
||||||
minetest.register_alias("moreblocks:woodtile_down", "moreblocks:wood_tile_down")
|
minetest.register_alias("moreblocks:woodtile_down", "moreblocks:wood_tile_down")
|
||||||
minetest.register_alias("moreblocks:woodtile_left", "moreblocks:wood_tile_left")
|
minetest.register_alias("moreblocks:woodtile_left", "moreblocks:wood_tile_left")
|
||||||
minetest.register_alias("moreblocks:woodtile_right", "moreblocks:wood_tile_right")
|
minetest.register_alias("moreblocks:woodtile_right", "moreblocks:wood_tile_right")
|
||||||
@ -85,22 +57,49 @@ minetest.register_alias("moreblocks:emptybookshelf", "moreblocks:empty_bookshelf
|
|||||||
minetest.register_alias("moreblocks:junglestick", "moreblocks:jungle_stick")
|
minetest.register_alias("moreblocks:junglestick", "moreblocks:jungle_stick")
|
||||||
minetest.register_alias("moreblocks:splitstonesquare","moreblocks:split_stone_tile")
|
minetest.register_alias("moreblocks:splitstonesquare","moreblocks:split_stone_tile")
|
||||||
minetest.register_alias("moreblocks:allfacestree","moreblocks:all_faces_tree")
|
minetest.register_alias("moreblocks:allfacestree","moreblocks:all_faces_tree")
|
||||||
|
minetest.register_alias("moreblocks:empty_bookshelf","moreblocks:empty_shelf")
|
||||||
|
minetest.register_alias("moreblocks:split_stone_tile_alt","moreblocks:checker_stone_tile")
|
||||||
|
|
||||||
-- ABM for horizontal trees (fix facedir):
|
-- ABM for horizontal trees (fix facedir):
|
||||||
local horizontal_tree_convert_facedir = {7, 12, 9, 18}
|
local horizontal_tree_convert_facedir = {7, 12, 9, 18}
|
||||||
|
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
nodenames = {"moreblocks:horizontal_tree"},
|
nodenames = {"moreblocks:horizontal_tree","moreblocks:horizontal_jungle_tree"},
|
||||||
interval = 1,
|
interval = 1,
|
||||||
chance = 1,
|
chance = 1,
|
||||||
action = function(pos, node)
|
action = function(pos, node)
|
||||||
|
if node.name == "moreblocks:horizontal_tree" then
|
||||||
|
node.name = "default:tree"
|
||||||
|
else
|
||||||
|
node.name = "default:jungletree"
|
||||||
|
end
|
||||||
node.param2 = node.param2 < 3 and node.param2 or 0
|
node.param2 = node.param2 < 3 and node.param2 or 0
|
||||||
minetest.set_node(pos, {
|
minetest.set_node(pos, {
|
||||||
name = "default:tree",
|
name = node.name,
|
||||||
param2 = horizontal_tree_convert_facedir[node.param2 + 1]
|
param2 = horizontal_tree_convert_facedir[node.param2 + 1]
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_alias("moreblocks:jungle_stick", "default:stick")
|
minetest.register_lbm({
|
||||||
minetest.register_alias("moreblocks:fence_jungle_wood", "default:fence_junglewood")
|
name = "moreblocks:reduce_wood_tile_redundancy",
|
||||||
|
nodenames = {
|
||||||
|
"moreblocks:wood_tile_left",
|
||||||
|
"moreblocks:wood_tile_down",
|
||||||
|
"moreblocks:wood_tile_right",
|
||||||
|
"moreblocks:wood_tile_flipped",
|
||||||
|
},
|
||||||
|
action = function(pos, node)
|
||||||
|
if node.name:find("left") then
|
||||||
|
minetest.set_node(pos, {name = "moreblocks:wood_tile_offset", param2=1})
|
||||||
|
elseif node.name:find("down") then
|
||||||
|
minetest.set_node(pos, {name = "moreblocks:wood_tile_offset", param2=2})
|
||||||
|
elseif node.name:find("right") then
|
||||||
|
minetest.set_node(pos, {name = "moreblocks:wood_tile_offset", param2=3})
|
||||||
|
else -- wood_tile_flipped
|
||||||
|
minetest.set_node(pos, {name = "moreblocks:wood_tile", param2=1})
|
||||||
|
end
|
||||||
|
minetest.log('action', "LBM replaced " .. node.name ..
|
||||||
|
" at " .. minetest.pos_to_string(pos))
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
57
circular_saw.lua
Executable file → Normal file
@ -1,7 +1,7 @@
|
|||||||
--[[
|
--[[
|
||||||
More Blocks: circular saw
|
More Blocks: circular saw
|
||||||
|
|
||||||
Copyright (c) 2011-2015 Calinou and contributors.
|
Copyright (c) 2011-2018 Hugo Locurcio, Sokomine and contributors.
|
||||||
Licensed under the zlib license. See LICENSE.md for more information.
|
Licensed under the zlib license. See LICENSE.md for more information.
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
@ -26,35 +26,45 @@ circular_saw.cost_in_microblocks = {
|
|||||||
1, 1, 1, 1, 1, 1, 1, 2,
|
1, 1, 1, 1, 1, 1, 1, 2,
|
||||||
2, 3, 2, 4, 2, 4, 5, 6,
|
2, 3, 2, 4, 2, 4, 5, 6,
|
||||||
7, 1, 1, 2, 4, 6, 7, 8,
|
7, 1, 1, 2, 4, 6, 7, 8,
|
||||||
3, 1, 1, 2, 4, 4, 2, 6,
|
1, 2, 2, 3, 1, 1, 2, 4,
|
||||||
7, 3, 7, 7, 4, 8, 3, 2,
|
4, 2, 6, 7, 3, 7, 7, 4,
|
||||||
6, 2, 1, 3, 4,
|
8, 3, 2, 6, 2, 1, 3, 4
|
||||||
}
|
}
|
||||||
|
|
||||||
-- This parameter is legacy node
|
|
||||||
circular_saw.names = {
|
circular_saw.names = {
|
||||||
{"micro", "_1"},
|
{"micro", "_1"},
|
||||||
{"panel", "_1"},
|
{"panel", "_1"},
|
||||||
|
{"micro", "_2"},
|
||||||
|
{"panel", "_2"},
|
||||||
|
{"micro", "_4"},
|
||||||
|
{"panel", "_4"},
|
||||||
{"micro", ""},
|
{"micro", ""},
|
||||||
{"panel", ""},
|
{"panel", ""},
|
||||||
|
|
||||||
{"micro", "_12"},
|
{"micro", "_12"},
|
||||||
{"panel", "_12"},
|
{"panel", "_12"},
|
||||||
|
{"micro", "_14"},
|
||||||
|
{"panel", "_14"},
|
||||||
{"micro", "_15"},
|
{"micro", "_15"},
|
||||||
{"panel", "_15"},
|
{"panel", "_15"},
|
||||||
|
|
||||||
{"stair", "_outer"},
|
{"stair", "_outer"},
|
||||||
{"stair", ""},
|
{"stair", ""},
|
||||||
{"stair", "_inner"},
|
|
||||||
|
|
||||||
|
{"stair", "_inner"},
|
||||||
{"slab", "_1"},
|
{"slab", "_1"},
|
||||||
|
{"slab", "_2"},
|
||||||
{"slab", "_quarter"},
|
{"slab", "_quarter"},
|
||||||
{"slab", ""},
|
{"slab", ""},
|
||||||
{"slab", "_three_quarter"},
|
{"slab", "_three_quarter"},
|
||||||
|
{"slab", "_14"},
|
||||||
{"slab", "_15"},
|
{"slab", "_15"},
|
||||||
|
|
||||||
|
{"slab", "_two_sides"},
|
||||||
|
{"slab", "_three_sides"},
|
||||||
|
{"slab", "_three_sides_u"},
|
||||||
{"stair", "_half"},
|
{"stair", "_half"},
|
||||||
{"stair", "_alt_1"},
|
{"stair", "_alt_1"},
|
||||||
|
{"stair", "_alt_2"},
|
||||||
{"stair", "_alt_4"},
|
{"stair", "_alt_4"},
|
||||||
{"stair", "_alt"},
|
{"stair", "_alt"},
|
||||||
|
|
||||||
@ -66,6 +76,7 @@ circular_saw.names = {
|
|||||||
{"slope", "_inner_half_raised"},
|
{"slope", "_inner_half_raised"},
|
||||||
{"slope", "_inner_cut"},
|
{"slope", "_inner_cut"},
|
||||||
{"slope", "_inner_cut_half"},
|
{"slope", "_inner_cut_half"},
|
||||||
|
|
||||||
{"slope", "_inner_cut_half_raised"},
|
{"slope", "_inner_cut_half_raised"},
|
||||||
{"slope", "_outer"},
|
{"slope", "_outer"},
|
||||||
{"slope", "_outer_half"},
|
{"slope", "_outer_half"},
|
||||||
@ -97,7 +108,6 @@ function circular_saw:get_output_inv(modname, material, amount, max)
|
|||||||
|
|
||||||
for i = 1, #circular_saw.names do
|
for i = 1, #circular_saw.names do
|
||||||
local t = circular_saw.names[i]
|
local t = circular_saw.names[i]
|
||||||
if not t[3] then
|
|
||||||
local cost = circular_saw.cost_in_microblocks[i]
|
local cost = circular_saw.cost_in_microblocks[i]
|
||||||
local balance = math.min(math.floor(amount/cost), max)
|
local balance = math.min(math.floor(amount/cost), max)
|
||||||
local nodename = modname .. ":" .. t[1] .. "_" .. material .. t[2]
|
local nodename = modname .. ":" .. t[1] .. "_" .. material .. t[2]
|
||||||
@ -106,7 +116,6 @@ function circular_saw:get_output_inv(modname, material, amount, max)
|
|||||||
list[pos] = nodename .. " " .. balance
|
list[pos] = nodename .. " " .. balance
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
return list
|
return list
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -172,7 +181,7 @@ function circular_saw:update_inventory(pos, amount)
|
|||||||
|
|
||||||
-- 0-7 microblocks may remain left-over:
|
-- 0-7 microblocks may remain left-over:
|
||||||
inv:set_list("micro", {
|
inv:set_list("micro", {
|
||||||
modname .. ":micro_" .. material .. "_bottom " .. (amount % 8)
|
modname .. ":micro_" .. material .. " " .. (amount % 8)
|
||||||
})
|
})
|
||||||
-- Display:
|
-- Display:
|
||||||
inv:set_list("output",
|
inv:set_list("output",
|
||||||
@ -290,6 +299,17 @@ function circular_saw.on_metadata_inventory_put(
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function circular_saw.allow_metadata_inventory_take(pos, listname, index, stack, player)
|
||||||
|
local meta = minetest.get_meta(pos)
|
||||||
|
local inv = meta:get_inventory()
|
||||||
|
local input_stack = inv:get_stack(listname, index)
|
||||||
|
local player_inv = player:get_inventory()
|
||||||
|
if not player_inv:room_for_item("main", input_stack) then
|
||||||
|
return 0
|
||||||
|
else return stack:get_count()
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function circular_saw.on_metadata_inventory_take(
|
function circular_saw.on_metadata_inventory_take(
|
||||||
pos, listname, index, stack, player)
|
pos, listname, index, stack, player)
|
||||||
|
|
||||||
@ -326,12 +346,11 @@ function circular_saw.on_metadata_inventory_take(
|
|||||||
-- The recycle field plays no role here since it is processed immediately.
|
-- The recycle field plays no role here since it is processed immediately.
|
||||||
end
|
end
|
||||||
|
|
||||||
gui_slots = "listcolors[#606060AA;#808080;#101010;#202020;#FFF]"
|
|
||||||
|
|
||||||
function circular_saw.on_construct(pos)
|
function circular_saw.on_construct(pos)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
local fancy_inv = default.gui_bg..default.gui_bg_img..default.gui_slots
|
local fancy_inv = default.gui_bg..default.gui_bg_img..default.gui_slots
|
||||||
meta:set_string("formspec", "size[11,10]"..fancy_inv..
|
meta:set_string(
|
||||||
|
"formspec", "size[11,10]"..fancy_inv..
|
||||||
"label[0,0;" ..S("Input\nmaterial").. "]" ..
|
"label[0,0;" ..S("Input\nmaterial").. "]" ..
|
||||||
"list[current_name;input;1.5,0;1,1;]" ..
|
"list[current_name;input;1.5,0;1,1;]" ..
|
||||||
"label[0,1;" ..S("Left-over").. "]" ..
|
"label[0,1;" ..S("Left-over").. "]" ..
|
||||||
@ -341,7 +360,16 @@ function circular_saw.on_construct(pos)
|
|||||||
"field[0.3,3.5;1,1;max_offered;" ..S("Max").. ":;${max_offered}]" ..
|
"field[0.3,3.5;1,1;max_offered;" ..S("Max").. ":;${max_offered}]" ..
|
||||||
"button[1,3.2;1,1;Set;" ..S("Set").. "]" ..
|
"button[1,3.2;1,1;Set;" ..S("Set").. "]" ..
|
||||||
"list[current_name;output;2.8,0;8,6;]" ..
|
"list[current_name;output;2.8,0;8,6;]" ..
|
||||||
"list[current_player;main;1.5,6.25;8,4;]")
|
"list[current_player;main;1.5,6.25;8,4;]" ..
|
||||||
|
"listring[current_name;output]" ..
|
||||||
|
"listring[current_player;main]" ..
|
||||||
|
"listring[current_name;input]" ..
|
||||||
|
"listring[current_player;main]" ..
|
||||||
|
"listring[current_name;micro]" ..
|
||||||
|
"listring[current_player;main]" ..
|
||||||
|
"listring[current_name;recycle]" ..
|
||||||
|
"listring[current_player;main]"
|
||||||
|
)
|
||||||
|
|
||||||
meta:set_int("anz", 0) -- No microblocks inside yet.
|
meta:set_int("anz", 0) -- No microblocks inside yet.
|
||||||
meta:set_string("max_offered", 99) -- How many items of this kind are offered by default?
|
meta:set_string("max_offered", 99) -- How many items of this kind are offered by default?
|
||||||
@ -410,6 +438,7 @@ minetest.register_node("moreblocks:circular_saw", {
|
|||||||
allow_metadata_inventory_move = circular_saw.allow_metadata_inventory_move,
|
allow_metadata_inventory_move = circular_saw.allow_metadata_inventory_move,
|
||||||
-- Only input- and recycle-slot are intended as input slots:
|
-- Only input- and recycle-slot are intended as input slots:
|
||||||
allow_metadata_inventory_put = circular_saw.allow_metadata_inventory_put,
|
allow_metadata_inventory_put = circular_saw.allow_metadata_inventory_put,
|
||||||
|
allow_metadata_inventory_take = circular_saw.allow_metadata_inventory_take,
|
||||||
-- Taking is allowed from all slots (even the internal microblock slot). Moving is forbidden.
|
-- Taking is allowed from all slots (even the internal microblock slot). Moving is forbidden.
|
||||||
-- Putting something in is slightly more complicated than taking anything because we have to make sure it is of a suitable material:
|
-- Putting something in is slightly more complicated than taking anything because we have to make sure it is of a suitable material:
|
||||||
on_metadata_inventory_put = circular_saw.on_metadata_inventory_put,
|
on_metadata_inventory_put = circular_saw.on_metadata_inventory_put,
|
||||||
|
6
config.lua
Executable file → Normal file
@ -1,14 +1,14 @@
|
|||||||
--[[
|
--[[
|
||||||
More Blocks: configuration handling
|
More Blocks: configuration handling
|
||||||
|
|
||||||
Copyright (c) 2011-2015 Calinou and contributors.
|
Copyright (c) 2011-2018 Hugo Locurcio and contributors.
|
||||||
Licensed under the zlib license. See LICENSE.md for more information.
|
Licensed under the zlib license. See LICENSE.md for more information.
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
moreblocks.config = {}
|
moreblocks.config = {}
|
||||||
|
|
||||||
local function getbool_default(setting, default)
|
local function getbool_default(setting, default)
|
||||||
local value = minetest.setting_getbool(setting)
|
local value = minetest.settings:get_bool(setting)
|
||||||
if value == nil then
|
if value == nil then
|
||||||
value = default
|
value = default
|
||||||
end
|
end
|
||||||
@ -21,7 +21,7 @@ local function setting(settingtype, name, default)
|
|||||||
getbool_default("moreblocks." .. name, default)
|
getbool_default("moreblocks." .. name, default)
|
||||||
else
|
else
|
||||||
moreblocks.config[name] =
|
moreblocks.config[name] =
|
||||||
minetest.setting_get("moreblocks." .. name) or default
|
minetest.settings:get("moreblocks." .. name) or default
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
255
crafting.lua
Executable file → Normal file
@ -1,7 +1,7 @@
|
|||||||
--[[
|
--[[
|
||||||
More Blocks: crafting recipes
|
More Blocks: crafting recipes
|
||||||
|
|
||||||
Copyright (c) 2011-2015 Calinou and contributors.
|
Copyright (c) 2011-2018 Hugo Locurcio and contributors.
|
||||||
Licensed under the zlib license. See LICENSE.md for more information.
|
Licensed under the zlib license. See LICENSE.md for more information.
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
@ -12,21 +12,14 @@ minetest.register_craft({
|
|||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "default:stick",
|
output = "default:stick",
|
||||||
recipe = {{"default:sapling"},}
|
recipe = {{"group:sapling"},}
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "default:stick",
|
|
||||||
recipe = {{"default:junglesapling"},}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "default:wood",
|
output = "default:wood",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"default:stick", "default:stick", "default:stick"},
|
{"default:stick", "default:stick"},
|
||||||
{"default:stick", "default:stick", "default:stick"},
|
{"default:stick", "default:stick"},
|
||||||
{"default:stick", "default:stick", "default:stick"}
|
|
||||||
-- MODIFICATION MADE FOR MFF ^
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -36,12 +29,6 @@ minetest.register_craft({
|
|||||||
recipe = {"default:junglegrass", "default:dirt"},
|
recipe = {"default:junglegrass", "default:dirt"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "default:dirt_with_grass",
|
|
||||||
type = "shapeless",
|
|
||||||
recipe = {"default:mese", "default:dirt"},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "default:mossycobble",
|
output = "default:mossycobble",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
@ -49,32 +36,27 @@ minetest.register_craft({
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "default:mossycobble",
|
output = "moreblocks:wood_tile_center 9",
|
||||||
type = "shapeless",
|
recipe = {
|
||||||
recipe = {"default:mese_crystal_fragment", "default:cobble"},
|
{"group:wood", "group:wood", "group:wood"},
|
||||||
|
{"group:wood", "moreblocks:wood_tile", "group:wood"},
|
||||||
|
{"group:wood", "group:wood", "group:wood"},
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moreblocks:wood_tile 9",
|
output = "moreblocks:wood_tile 9",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"default:wood", "default:wood", "default:wood"},
|
{"group:wood", "group:wood", "group:wood"},
|
||||||
{"default:wood", "default:wood", "default:wood"},
|
{"group:wood", "group:wood", "group:wood"},
|
||||||
{"default:wood", "default:wood", "default:wood"},
|
{"group:wood", "group:wood", "group:wood"},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moreblocks:wood_tile_flipped",
|
type = "shapeless",
|
||||||
recipe = {{"moreblocks:wood_tile"},}
|
output = "moreblocks:wood_tile",
|
||||||
})
|
recipe = {"moreblocks:wood_tile_flipped"}
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "moreblocks:wood_tile_center 9",
|
|
||||||
recipe = {
|
|
||||||
{"default:wood", "default:wood", "default:wood"},
|
|
||||||
{"default:wood", "moreblocks:wood_tile", "default:wood"},
|
|
||||||
{"default:wood", "default:wood", "default:wood"},
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
@ -86,7 +68,7 @@ minetest.register_craft({
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moreblocks:wood_tile_up",
|
output = "moreblocks:wood_tile_offset",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"default:stick"},
|
{"default:stick"},
|
||||||
{"moreblocks:wood_tile_center"},
|
{"moreblocks:wood_tile_center"},
|
||||||
@ -94,33 +76,29 @@ minetest.register_craft({
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moreblocks:wood_tile_down",
|
type = "shapeless",
|
||||||
recipe = {
|
output = "moreblocks:wood_tile_offset",
|
||||||
{"moreblocks:wood_tile_center"},
|
recipe = {"moreblocks:wood_tile_down"}
|
||||||
{"default:stick"},
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moreblocks:wood_tile_left",
|
type = "shapeless",
|
||||||
recipe = {
|
output = "moreblocks:wood_tile_offset",
|
||||||
{"default:stick", "moreblocks:wood_tile_center"},
|
recipe = {"moreblocks:wood_tile_left"}
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moreblocks:wood_tile_right",
|
type = "shapeless",
|
||||||
recipe = {
|
output = "moreblocks:wood_tile_offset",
|
||||||
{"moreblocks:wood_tile_center", "default:stick"},
|
recipe = {"moreblocks:wood_tile_right"}
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moreblocks:circle_stone_bricks 8",
|
output = "moreblocks:circle_stone_bricks 5",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"default:stone", "default:stone", "default:stone"},
|
{"", "default:stone", ""},
|
||||||
{"default:stone", "", "default:stone"},
|
{"default:stone", "default:coal_lump", "default:stone"},
|
||||||
{"default:stone", "default:stone", "default:stone"},
|
{"", "default:stone", ""},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -142,6 +120,33 @@ minetest.register_craft({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "moreblocks:all_faces_pine_tree 8",
|
||||||
|
recipe = {
|
||||||
|
{"default:pine_tree", "default:pine_tree", "default:pine_tree"},
|
||||||
|
{"default:pine_tree", "", "default:pine_tree"},
|
||||||
|
{"default:pine_tree", "default:pine_tree", "default:pine_tree"},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "moreblocks:all_faces_acacia_tree 8",
|
||||||
|
recipe = {
|
||||||
|
{"default:acacia_tree", "default:acacia_tree", "default:acacia_tree"},
|
||||||
|
{"default:acacia_tree", "", "default:acacia_tree"},
|
||||||
|
{"default:acacia_tree", "default:acacia_tree", "default:acacia_tree"},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "moreblocks:all_faces_aspen_tree 8",
|
||||||
|
recipe = {
|
||||||
|
{"default:aspen_tree", "default:aspen_tree", "default:aspen_tree"},
|
||||||
|
{"default:aspen_tree", "", "default:aspen_tree"},
|
||||||
|
{"default:aspen_tree", "default:aspen_tree", "default:aspen_tree"},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moreblocks:sweeper 4",
|
output = "moreblocks:sweeper 4",
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -151,10 +156,11 @@ minetest.register_craft({
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moreblocks:stone_tile 4",
|
output = "moreblocks:stone_tile 9",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"default:cobble", "default:cobble"},
|
{"default:cobble", "default:cobble", "default:cobble"},
|
||||||
{"default:cobble", "default:cobble"},
|
{"default:cobble", "default:stone", "default:cobble"},
|
||||||
|
{"default:cobble", "default:cobble", "default:cobble"},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -166,12 +172,20 @@ minetest.register_craft({
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moreblocks:split_stone_tile_alt",
|
output = "moreblocks:checker_stone_tile",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"moreblocks:split_stone_tile"},
|
{"moreblocks:split_stone_tile"},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- When approaching the below craft, loop back to cobblestone, which can then be used to craft stone tiles again
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "default:cobble",
|
||||||
|
recipe = {
|
||||||
|
{"moreblocks:checker_stone_tile"},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moreblocks:grey_bricks 2",
|
output = "moreblocks:grey_bricks 2",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
@ -185,9 +199,33 @@ minetest.register_craft({
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moreblocks:empty_bookshelf",
|
output = "moreblocks:empty_shelf",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
recipe = {"moreblocks:sweeper", "default:bookshelf"},
|
recipe = {"moreblocks:sweeper", "default:bookshelf"},
|
||||||
|
replacements = {{"default:bookshelf", "default:book 3"}},
|
||||||
|
-- When obtaining an empty shelf, return the books used in it as well
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "moreblocks:empty_shelf",
|
||||||
|
type = "shapeless",
|
||||||
|
recipe = {"moreblocks:sweeper", "vessels:shelf"},
|
||||||
|
replacements = {{"vessels:shelf", "vessels:glass_bottle 3"}},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = "default:bookshelf",
|
||||||
|
recipe = {"moreblocks:empty_shelf", "default:book", "default:book", "default:book"},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "moreblocks:empty_shelf",
|
||||||
|
recipe = {
|
||||||
|
{"group:wood", "group:wood", "group:wood"},
|
||||||
|
{"", "", ""},
|
||||||
|
{"group:wood", "group:wood", "group:wood"},
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
@ -209,16 +247,16 @@ minetest.register_craft({
|
|||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moreblocks:plankstone 4",
|
output = "moreblocks:plankstone 4",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"default:stone", "default:wood"},
|
{"group:stone", "group:wood"},
|
||||||
{"default:wood", "default:stone"},
|
{"group:wood", "group:stone"},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moreblocks:plankstone 4",
|
output = "moreblocks:plankstone 4",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"default:wood", "default:stone"},
|
{"group:wood", "group:stone"},
|
||||||
{"default:stone", "default:wood"},
|
{"group:stone", "group:wood"},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -381,12 +419,36 @@ minetest.register_craft({
|
|||||||
recipe = {"default:mese_crystal_fragment", "default:stone"},
|
recipe = {"default:mese_crystal_fragment", "default:stone"},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "moreblocks:trap_desert_stone",
|
||||||
|
type = "shapeless",
|
||||||
|
recipe = {"default:mese_crystal_fragment", "default:desert_stone"},
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moreblocks:trap_glass",
|
output = "moreblocks:trap_glass",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
recipe = {"default:mese_crystal_fragment", "default:glass"},
|
recipe = {"default:mese_crystal_fragment", "default:glass"},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "moreblocks:trap_obsidian_glass",
|
||||||
|
type = "shapeless",
|
||||||
|
recipe = {"default:mese_crystal_fragment", "default:obsidian_glass"},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "moreblocks:trap_obsidian",
|
||||||
|
type = "shapeless",
|
||||||
|
recipe = {"default:mese_crystal_fragment", "default:obsidian"},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "moreblocks:trap_sandstone",
|
||||||
|
type = "shapeless",
|
||||||
|
recipe = {"default:mese_crystal_fragment", "default:sandstone"},
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moreblocks:cactus_brick",
|
output = "moreblocks:cactus_brick",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
@ -419,26 +481,56 @@ minetest.register_craft({
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moreblocks:cobble_compressed",
|
output = "moreblocks:dirt_compressed",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"default:cobble"},
|
{'default:dirt', 'default:dirt', 'default:dirt'},
|
||||||
{"default:cobble"},
|
{'default:dirt', 'default:dirt', 'default:dirt'},
|
||||||
-- MODIFICATION MADE FOR MFF
|
{'default:dirt', 'default:dirt', 'default:dirt'},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "default:cobble 2", -- MODIFICATION MADE FOR MFF
|
output = "default:dirt 9",
|
||||||
|
recipe = {{"moreblocks:dirt_compressed"}},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "moreblocks:cobble_compressed",
|
||||||
|
recipe = {
|
||||||
|
{"default:cobble", "default:cobble", "default:cobble"},
|
||||||
|
{"default:cobble", "default:cobble", "default:cobble"},
|
||||||
|
{"default:cobble", "default:cobble", "default:cobble"},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "default:cobble 9",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"moreblocks:cobble_compressed"},
|
{"moreblocks:cobble_compressed"},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "cooking", output = "moreblocks:tar", recipe = "default:gravel",
|
type = "cooking", output = "moreblocks:tar", recipe = "default:pine_tree",
|
||||||
})
|
})
|
||||||
|
|
||||||
if minetest.setting_getbool("moreblocks.circular_saw_crafting") ~= false then -- “If nil or true then”
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = "moreblocks:copperpatina",
|
||||||
|
recipe = {"group:water_bucket", "default:copperblock"},
|
||||||
|
replacements = {
|
||||||
|
{"group:water_bucket", "bucket:bucket_empty"}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "default:copper_ingot 9",
|
||||||
|
recipe = {
|
||||||
|
{"moreblocks:copperpatina"},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
if minetest.settings:get_bool("moreblocks.circular_saw_crafting") ~= false then -- “If nil or true then”
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moreblocks:circular_saw",
|
output = "moreblocks:circular_saw",
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -448,30 +540,3 @@ if minetest.setting_getbool("moreblocks.circular_saw_crafting") ~= false then --
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
-- MODIFICATION MADE FOR MFF //MFF(Mg|08/09/15)
|
|
||||||
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "moreblocks:horizontal_jungle_tree 2",
|
|
||||||
recipe = {
|
|
||||||
{"default:jungletree", "", "default:jungletree"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "default:jungletree 2",
|
|
||||||
recipe = {
|
|
||||||
{"moreblocks:horizontal_jungle_tree"},
|
|
||||||
{"moreblocks:horizontal_jungle_tree"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "default:junglewood 4",
|
|
||||||
recipe = {
|
|
||||||
{"moreblocks:horizontal_jungle_tree"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
-- END OF MODIFICATIONS
|
|
||||||
|
4
depends.txt
Executable file → Normal file
@ -1,2 +1,6 @@
|
|||||||
default
|
default
|
||||||
intllib?
|
intllib?
|
||||||
|
stairs?
|
||||||
|
farming?
|
||||||
|
wool?
|
||||||
|
basic_materials?
|
||||||
|
10
init.lua
Executable file → Normal file
@ -3,7 +3,7 @@
|
|||||||
** More Blocks **
|
** More Blocks **
|
||||||
By Calinou, with the help of ShadowNinja and VanessaE.
|
By Calinou, with the help of ShadowNinja and VanessaE.
|
||||||
|
|
||||||
Copyright (c) 2011-2015 Calinou and contributors.
|
Copyright (c) 2011-2018 Hugo Locurcio and contributors.
|
||||||
Licensed under the zlib license. See LICENSE.md for more information.
|
Licensed under the zlib license. See LICENSE.md for more information.
|
||||||
=====================================================================
|
=====================================================================
|
||||||
--]]
|
--]]
|
||||||
@ -11,8 +11,12 @@ Licensed under the zlib license. See LICENSE.md for more information.
|
|||||||
moreblocks = {}
|
moreblocks = {}
|
||||||
|
|
||||||
local S
|
local S
|
||||||
if minetest.get_modpath("intllib") then
|
if minetest.global_exists("intllib") then
|
||||||
|
if intllib.make_gettext_pair then
|
||||||
|
S = intllib.make_gettext_pair()
|
||||||
|
else
|
||||||
S = intllib.Getter()
|
S = intllib.Getter()
|
||||||
|
end
|
||||||
else
|
else
|
||||||
S = function(s) return s end
|
S = function(s) return s end
|
||||||
end
|
end
|
||||||
@ -28,6 +32,6 @@ dofile(modpath .. "/redefinitions.lua")
|
|||||||
dofile(modpath .. "/crafting.lua")
|
dofile(modpath .. "/crafting.lua")
|
||||||
dofile(modpath .. "/aliases.lua")
|
dofile(modpath .. "/aliases.lua")
|
||||||
|
|
||||||
if minetest.setting_getbool("log_mods") then
|
if minetest.settings:get_bool("log_mods") then
|
||||||
minetest.log("action", S("[moreblocks] loaded."))
|
minetest.log("action", S("[moreblocks] loaded."))
|
||||||
end
|
end
|
||||||
|
0
locale/de.txt
Executable file → Normal file
0
locale/es.txt
Executable file → Normal file
0
locale/fr.txt
Executable file → Normal file
70
locale/it.txt
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
#
|
||||||
|
# Italian translation
|
||||||
|
# Translator: Emon
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
###init.lua###
|
||||||
|
[moreblocks] loaded. = [moreblocks] caricato.
|
||||||
|
|
||||||
|
###nodes.lua###
|
||||||
|
Jungle Wood Fence = Recinzione in legno della giungla
|
||||||
|
Empty Bookshelf = Libreria vuota
|
||||||
|
Clean Glass = Vetro pulito
|
||||||
|
Plankstone = Pietra e legno
|
||||||
|
Wooden Tile = Mattonella in legno
|
||||||
|
Full Wooden Tile = Mattonella in legno pieno
|
||||||
|
Centered Wooden Tile = Mattonella in legno centrata
|
||||||
|
Up Wooden Tile = Mattonella in legno verso l'alto
|
||||||
|
Down Wooden Tile = Mattonella in legno verso il basso
|
||||||
|
Left Wooden Tile = Mattonella in legno verso sinistra
|
||||||
|
Right Wooden Tile = Mattonella in legno verso destra
|
||||||
|
Circle Stone Bricks = Mattoni concentrici in pietra
|
||||||
|
Stone Tile = Mattonella in pietra
|
||||||
|
Split Stone Tile = Mattonella in pietra divisa
|
||||||
|
Glow Glass = Vetro luminoso
|
||||||
|
Super Glow Glass = Super vetro luminoso
|
||||||
|
Coal Glass = Vetro e carbone
|
||||||
|
Iron Glass = Vetro e ferro
|
||||||
|
Coal Checker = Scacchiera in carbone
|
||||||
|
Iron Checker = Scacchiera in ferro
|
||||||
|
Trap Stone = Pietra trappola
|
||||||
|
Trap Glass = Vetro trappola
|
||||||
|
Trap Glow Glass = Vetro luminoso trappola
|
||||||
|
Trap Super Glow Glass = Super vetro luminoso trappola
|
||||||
|
Coal Stone = Pietra in carbone
|
||||||
|
Iron Stone = Pietra in ferro
|
||||||
|
Coal Stone Bricks = Mattoni di pietra in carbone
|
||||||
|
Iron Stone Bricks = Mattoni di pietra in ferro
|
||||||
|
Cactus Checker = Scacchiera in cactus
|
||||||
|
Cactus Brick = Mattoni di cactus
|
||||||
|
Sweeper = Spazzola
|
||||||
|
Jungle Stick = Bastone in legno della giungla
|
||||||
|
Rope = Corda
|
||||||
|
All-faces Tree = Albero su ogni lato
|
||||||
|
|
||||||
|
###circular_saw.lua###
|
||||||
|
Circular Saw = Sega circolare
|
||||||
|
Circular saw, empty (owned by %s) = Sega circolare, vuota (di proprietà di %s)
|
||||||
|
Circular saw, working with %s (owned by %s) = Sega circolare, in funzione su %s (di proprietà di %s)
|
||||||
|
Circular saw, empty = Sega circolare, vuota
|
||||||
|
Circular saw is empty (owned by %s) = La sega circolare è vuota (di proprietà di %s)
|
||||||
|
|
||||||
|
Input\nmaterial = Materiale\niniziale
|
||||||
|
Left-over = Scarto
|
||||||
|
Max = Max.
|
||||||
|
Set = Imp.
|
||||||
|
Recycle\noutput = Ricicla\nfinale
|
||||||
|
|
||||||
|
###ownership.lua###
|
||||||
|
someone = qualcuno
|
||||||
|
Sorry, %s owns that spot. = Spiacente, quel punto è di proprietà di %s
|
||||||
|
|
||||||
|
###./stairsplus/*###
|
||||||
|
%s Stairs = Scale - %s
|
||||||
|
%s Slab = Lastra - %s
|
||||||
|
%s Panel = Pannello - %s
|
||||||
|
%s Microblock = Microblocco %s
|
||||||
|
|
||||||
|
%s Pane = Pannello - %s
|
||||||
|
%s Fence = Recinzione - %s
|
0
locale/template.txt
Executable file → Normal file
68
models/moreblocks_slope.obj
Executable file → Normal file
@ -1,26 +1,56 @@
|
|||||||
# Blender v2.72 (sub 0) OBJ File: ''
|
g top
|
||||||
# www.blender.org
|
|
||||||
mtllib moreblocks_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 1.0000 1.0000
|
||||||
|
vt 0.0000 1.0000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vn 0.0000 0.7071 -0.7071
|
||||||
|
s off
|
||||||
|
f 2/1/1 1/2/1 4/3/1 3/4/1
|
||||||
|
g bottom
|
||||||
v -0.500000 -0.500000 0.500000
|
v -0.500000 -0.500000 0.500000
|
||||||
v 0.500000 -0.500000 0.500000
|
v 0.500000 -0.500000 0.500000
|
||||||
v -0.500000 -0.500000 -0.500000
|
v -0.500000 -0.500000 -0.500000
|
||||||
v 0.500000 -0.500000 -0.500000
|
v 0.500000 -0.500000 -0.500000
|
||||||
vt 1.000000 1.000000
|
vt 0.0000 0.0000
|
||||||
vt 0.000000 1.000000
|
vt 1.0000 0.0000
|
||||||
vt 0.000000 0.000000
|
vt 1.0000 1.0000
|
||||||
vt 1.000000 0.000000
|
vt 0.0000 1.0000
|
||||||
vn 0.000000 -0.000000 1.000000
|
vn 0.0000 -1.0000 -0.0000
|
||||||
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
|
|
||||||
usemtl None
|
|
||||||
s off
|
s off
|
||||||
f 1/1/1 2/2/1 3/3/1 4/4/1
|
f 6/5/2 5/6/2 7/7/2 8/8/2
|
||||||
f 4/3/2 3/4/2 5/1/2 6/2/2
|
g right
|
||||||
f 2/1/3 5/3/3 3/4/3
|
v -0.500000 0.500000 0.500000
|
||||||
f 1/2/4 4/3/4 6/4/4
|
v -0.500000 -0.500000 0.500000
|
||||||
f 2/1/5 1/2/5 6/3/5 5/4/5
|
v -0.500000 -0.500000 -0.500000
|
||||||
|
vt 1.0000 1.0000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vn -1.0000 0.0000 0.0000
|
||||||
|
s off
|
||||||
|
f 9/9/3 11/10/3 10/11/3
|
||||||
|
g left
|
||||||
|
v 0.500000 0.500000 0.500000
|
||||||
|
v 0.500000 -0.500000 0.500000
|
||||||
|
v 0.500000 -0.500000 -0.500000
|
||||||
|
vt 0.0000 1.0000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vn 1.0000 0.0000 0.0000
|
||||||
|
s off
|
||||||
|
f 12/12/4 13/13/4 14/14/4
|
||||||
|
g back
|
||||||
|
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 1.0000 1.0000
|
||||||
|
vt 0.0000 1.0000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vn 0.0000 -0.0000 1.0000
|
||||||
|
s off
|
||||||
|
f 15/15/5 16/16/5 17/17/5 18/18/5
|
||||||
|
87
models/moreblocks_slope_cut.obj
Executable file → Normal file
@ -1,33 +1,68 @@
|
|||||||
# Blender v2.72 (sub 0) OBJ File: ''
|
g top
|
||||||
# www.blender.org
|
v 0.500000 0.500000 0.500000
|
||||||
mtllib moreblocks_slope_cut.mtl
|
v -0.500000 -0.000000 0.500000
|
||||||
o moreblocks_slope_cut
|
v 0.500000 0.000000 -0.500000
|
||||||
|
v -0.500000 -0.500000 -0.500000
|
||||||
|
vt 0.5000 0.0000
|
||||||
|
vt 1.0000 1.0000
|
||||||
|
vt 0.5000 2.0000
|
||||||
|
vt 0.0000 1.0000
|
||||||
|
vn -0.4082 0.8165 -0.4082
|
||||||
|
s 1
|
||||||
|
f 4/1/1 2/2/1 1/3/1 3/4/1
|
||||||
|
g bottom
|
||||||
|
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 1.0000 1.0000
|
||||||
|
vt 0.0000 1.0000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vn 0.0000 -1.0000 -0.0000
|
||||||
|
s 1
|
||||||
|
f 6/5/2 5/6/2 8/7/2 7/8/2
|
||||||
|
g right
|
||||||
|
v -0.500000 -0.500000 0.500000
|
||||||
|
v -0.500000 -0.000000 0.500000
|
||||||
|
v -0.500000 -0.500000 -0.500000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vt 1.0000 0.5000
|
||||||
|
vn -1.0000 0.0000 0.0000
|
||||||
|
s 1
|
||||||
|
f 11/9/3 9/10/3 10/11/3
|
||||||
|
g left
|
||||||
|
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
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vt 1.0000 0.5000
|
||||||
|
vt 0.0000 1.0000
|
||||||
|
vn 1.0000 0.0000 0.0000
|
||||||
|
s 1
|
||||||
|
f 12/12/4 14/13/4 15/14/4 13/15/4
|
||||||
|
g back
|
||||||
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.000000 0.500000
|
v -0.500000 -0.000000 0.500000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vt 1.0000 1.0000
|
||||||
|
vt 0.0000 0.5000
|
||||||
|
vn -0.0000 -0.0000 1.0000
|
||||||
|
s 1
|
||||||
|
f 16/16/5 17/17/5 18/18/5 19/19/5
|
||||||
|
g front
|
||||||
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 -0.500000
|
||||||
vt 0.000000 0.000000
|
vt 0.0000 0.0000
|
||||||
vt 1.000000 0.000000
|
vt 1.0000 0.0000
|
||||||
vt 1.000000 1.000000
|
vt 0.0000 0.5000
|
||||||
vt 0.000000 0.500000
|
vn 0.0000 0.0000 -1.0000
|
||||||
vt 1.000000 0.500000
|
s 1
|
||||||
vt 0.000000 1.000000
|
f 20/20/6 22/21/6 21/22/6
|
||||||
vt 0.500000 0.000000
|
|
||||||
vt 0.500000 2.000000
|
|
||||||
vn 0.000000 -0.000000 1.000000
|
|
||||||
vn 1.000000 0.000000 0.000000
|
|
||||||
vn 0.000000 -1.000000 -0.000000
|
|
||||||
vn -0.408200 0.816500 -0.408200
|
|
||||||
vn 0.000000 0.000000 -1.000000
|
|
||||||
vn -1.000000 0.000000 0.000000
|
|
||||||
usemtl None
|
|
||||||
s off
|
|
||||||
f 1/1/1 2/2/1 3/3/1 4/4/1
|
|
||||||
f 2/1/2 5/2/2 6/5/2 3/6/2
|
|
||||||
f 2/3/3 1/6/3 7/1/3 5/2/3
|
|
||||||
f 7/7/4 4/3/4 3/8/4 6/6/4
|
|
||||||
f 5/1/5 7/2/5 6/4/5
|
|
||||||
f 7/1/6 1/2/6 4/5/6
|
|
||||||
|
70
models/moreblocks_slope_half.obj
Executable file → Normal file
@ -1,28 +1,56 @@
|
|||||||
# Blender v2.72 (sub 0) OBJ File: ''
|
g top
|
||||||
# www.blender.org
|
|
||||||
mtllib moreblocks_slope_half.mtl
|
|
||||||
o Cube_Cube.002
|
|
||||||
v 0.500000 -0.000000 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.500000 -0.500000 -0.500000
|
||||||
|
v 0.500000 -0.500000 -0.500000
|
||||||
|
vt 1.0000 1.0000
|
||||||
|
vt 0.0000 1.0000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vn 0.0000 0.8944 -0.4472
|
||||||
|
s off
|
||||||
|
f 2/1/1 1/2/1 4/3/1 3/4/1
|
||||||
|
g bottom
|
||||||
v -0.500000 -0.500000 0.500000
|
v -0.500000 -0.500000 0.500000
|
||||||
v 0.500000 -0.500000 0.500000
|
v 0.500000 -0.500000 0.500000
|
||||||
v -0.500000 -0.500000 -0.500000
|
v -0.500000 -0.500000 -0.500000
|
||||||
v 0.500000 -0.500000 -0.500000
|
v 0.500000 -0.500000 -0.500000
|
||||||
vt 1.000000 0.500000
|
vt 0.0000 0.0000
|
||||||
vt 0.000000 0.500000
|
vt 1.0000 0.0000
|
||||||
vt 0.000000 0.000000
|
vt 1.0000 1.0000
|
||||||
vt 1.000000 0.000000
|
vt 0.0000 1.0000
|
||||||
vt 1.000000 1.000000
|
vn 0.0000 -1.0000 -0.0000
|
||||||
vt 0.000000 1.000000
|
|
||||||
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.894400 -0.447200
|
|
||||||
usemtl None
|
|
||||||
s off
|
s off
|
||||||
f 1/1/1 2/2/1 3/3/1 4/4/1
|
f 6/5/2 5/6/2 7/7/2 8/8/2
|
||||||
f 4/3/2 3/4/2 5/5/2 6/6/2
|
g right
|
||||||
f 2/1/3 5/3/3 3/4/3
|
v -0.500000 -0.000000 0.500000
|
||||||
f 1/2/4 4/3/4 6/4/4
|
v -0.500000 -0.500000 0.500000
|
||||||
f 2/5/5 1/6/5 6/3/5 5/4/5
|
v -0.500000 -0.500000 -0.500000
|
||||||
|
vt 1.0000 0.5000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vn -1.0000 0.0000 0.0000
|
||||||
|
s off
|
||||||
|
f 9/9/3 11/10/3 10/11/3
|
||||||
|
g left
|
||||||
|
v 0.500000 -0.000000 0.500000
|
||||||
|
v 0.500000 -0.500000 0.500000
|
||||||
|
v 0.500000 -0.500000 -0.500000
|
||||||
|
vt 0.0000 0.5000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vn 1.0000 0.0000 0.0000
|
||||||
|
s off
|
||||||
|
f 12/12/4 13/13/4 14/14/4
|
||||||
|
g back
|
||||||
|
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 0.500000
|
||||||
|
vt 1.0000 0.5000
|
||||||
|
vt 0.0000 0.5000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vn 0.0000 -0.0000 1.0000
|
||||||
|
s off
|
||||||
|
f 15/15/5 16/16/5 17/17/5 18/18/5
|
||||||
|
86
models/moreblocks_slope_half_raised.obj
Executable file → Normal file
@ -1,32 +1,72 @@
|
|||||||
# Blender v2.72 (sub 0) OBJ File: ''
|
g top
|
||||||
# www.blender.org
|
v -0.500000 0.500000 0.500000
|
||||||
mtllib moreblocks_slope_half_raised.mtl
|
v -0.500000 0.000000 -0.500000
|
||||||
o Cube.001
|
v 0.500000 0.000000 -0.500000
|
||||||
|
v 0.500000 0.500000 0.500000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vt 1.0000 1.0000
|
||||||
|
vt 0.0000 1.0000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vn 0.0000 0.8944 -0.4472
|
||||||
|
s off
|
||||||
|
f 2/1/1 1/2/1 4/3/1 3/4/1
|
||||||
|
g bottom
|
||||||
|
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 1.0000 0.0000
|
||||||
|
vt 1.0000 1.0000
|
||||||
|
vt 0.0000 1.0000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vn 0.0000 -1.0000 -0.0000
|
||||||
|
s off
|
||||||
|
f 6/5/2 5/6/2 7/7/2 8/8/2
|
||||||
|
g right
|
||||||
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 -0.500000
|
||||||
v -0.500000 -0.500000 0.500000
|
v -0.500000 -0.500000 0.500000
|
||||||
|
vt 1.0000 1.0000
|
||||||
|
vt 0.0000 0.5000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vn -1.0000 0.0000 0.0000
|
||||||
|
s off
|
||||||
|
f 9/9/3 10/10/3 11/11/3 12/12/3
|
||||||
|
g left
|
||||||
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 -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 1.000000 1.000000
|
vt 1.0000 0.5000
|
||||||
vt 0.000000 0.500000
|
vt 0.0000 1.0000
|
||||||
vt 0.000000 0.000000
|
vt 0.0000 0.0000
|
||||||
vt 1.000000 0.000000
|
vt 1.0000 0.0000
|
||||||
vt 1.000000 0.500000
|
vn 1.0000 0.0000 0.0000
|
||||||
vt 0.000000 1.000000
|
|
||||||
vn -1.000000 0.000000 0.000000
|
|
||||||
vn 0.000000 0.000000 -1.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
|
|
||||||
usemtl None.001
|
|
||||||
s off
|
s off
|
||||||
f 1/1/1 2/2/1 3/3/1 4/4/1
|
f 13/13/4 15/14/4 16/15/4 14/16/4
|
||||||
f 2/5/2 5/2/2 6/3/2 3/4/2
|
g back
|
||||||
f 5/5/3 7/6/3 8/3/3 6/4/3
|
v -0.500000 0.500000 0.500000
|
||||||
f 7/1/4 1/6/4 4/3/4 8/4/4
|
v -0.500000 -0.500000 0.500000
|
||||||
f 4/4/5 3/1/5 6/6/5 8/3/5
|
v 0.500000 0.500000 0.500000
|
||||||
f 2/4/6 1/1/6 7/6/6 5/3/6
|
v 0.500000 -0.500000 0.500000
|
||||||
|
vt 1.0000 1.0000
|
||||||
|
vt 0.0000 1.0000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vn 0.0000 -0.0000 1.0000
|
||||||
|
s off
|
||||||
|
f 19/17/5 17/18/5 18/19/5 20/20/5
|
||||||
|
g front
|
||||||
|
v -0.500000 0.000000 -0.500000
|
||||||
|
v -0.500000 -0.500000 -0.500000
|
||||||
|
v 0.500000 0.000000 -0.500000
|
||||||
|
v 0.500000 -0.500000 -0.500000
|
||||||
|
vt 1.0000 0.5000
|
||||||
|
vt 0.0000 0.5000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vn 0.0000 0.0000 -1.0000
|
||||||
|
s off
|
||||||
|
f 21/21/6 23/22/6 24/23/6 22/24/6
|
||||||
|
106
models/moreblocks_slope_inner.obj
Executable file → Normal file
@ -1,35 +1,81 @@
|
|||||||
# Blender v2.72 (sub 0) OBJ File: ''
|
g top
|
||||||
# www.blender.org
|
v 0.500000 0.500000 -0.500000
|
||||||
mtllib moreblocks_slope_inner.mtl
|
v 0.500000 0.500000 0.500000
|
||||||
o Cube_Cube.000
|
v -0.500000 0.500000 0.500000
|
||||||
|
v -0.500000 -0.500000 -0.500000
|
||||||
|
v -0.500000 -0.500000 -0.500000
|
||||||
|
vt 1.0000 1.0000
|
||||||
|
vt 0.0000 1.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vt 1.0000 1.0000
|
||||||
|
vt 0.0000 1.0000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vn 0.0000 0.7071 -0.7071
|
||||||
|
vn -0.7071 0.7071 0.0000
|
||||||
|
s 1
|
||||||
|
f 3/1/1 2/2/1 4/3/1
|
||||||
|
f 2/4/2 1/5/2 5/6/2
|
||||||
|
g bottom
|
||||||
|
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 1.0000 1.0000
|
||||||
|
vt 0.0000 1.0000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vn 0.0000 -1.0000 -0.0000
|
||||||
|
s 1
|
||||||
|
f 9/7/3 7/8/3 6/9/3 8/10/3
|
||||||
|
l 8 10
|
||||||
|
g right
|
||||||
|
v -0.500000 0.500000 0.500000
|
||||||
|
v -0.500000 -0.500000 -0.500000
|
||||||
|
v -0.500000 -0.500000 0.500000
|
||||||
|
vt 1.0000 1.0000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vn -1.0000 0.0000 0.0000
|
||||||
|
s 1
|
||||||
|
f 11/11/4 12/12/4 13/13/4
|
||||||
|
g left
|
||||||
v 0.500000 0.500000 -0.500000
|
v 0.500000 0.500000 -0.500000
|
||||||
v 0.500000 0.500000 0.500000
|
v 0.500000 0.500000 0.500000
|
||||||
v 0.500000 -0.500000 0.500000
|
v 0.500000 -0.500000 0.500000
|
||||||
v 0.500000 -0.500000 -0.500000
|
v 0.500000 -0.500000 -0.500000
|
||||||
v -0.500000 0.500000 0.500000
|
|
||||||
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 1.000000 1.000000
|
vt 1.0000 1.0000
|
||||||
vt 0.000000 1.000000
|
vt 0.0000 1.0000
|
||||||
vt 0.000000 0.000000
|
vt 0.0000 0.0000
|
||||||
vt 1.000000 0.000000
|
vt 1.0000 0.0000
|
||||||
vn 1.000000 0.000000 0.000000
|
vn 1.0000 0.0000 0.0000
|
||||||
vn -1.000000 0.000000 0.000000
|
s 1
|
||||||
vn 0.000000 0.707100 -0.707100
|
f 14/14/5 15/15/5 16/16/5 17/17/5
|
||||||
vn 0.000000 0.000000 -1.000000
|
l 15 18
|
||||||
vn 0.000000 -1.000000 -0.000000
|
g back
|
||||||
vn 0.000000 -0.000000 1.000000
|
v 0.500000 0.500000 0.500000
|
||||||
vn -0.707100 0.707100 0.000000
|
v 0.500000 -0.500000 0.500000
|
||||||
usemtl None
|
v -0.500000 0.500000 0.500000
|
||||||
s off
|
v -0.500000 -0.500000 0.500000
|
||||||
f 1/1/1 2/2/1 3/3/1 4/4/1
|
v 0.500000 -0.500000 0.500000
|
||||||
f 5/1/2 6/3/2 7/4/2
|
vt 0.0000 0.0000
|
||||||
f 5/1/3 2/2/3 6/4/3
|
vt 1.0000 0.0000
|
||||||
f 1/2/4 4/3/4 8/4/4
|
vt 1.0000 1.0000
|
||||||
f 8/1/5 4/2/5 3/3/5 7/4/5
|
vt 0.0000 1.0000
|
||||||
f 7/3/6 3/4/6 2/1/6 5/2/6
|
vn 0.0000 -0.0000 1.0000
|
||||||
f 2/1/7 1/2/7 8/3/7
|
s 1
|
||||||
l 7 9
|
f 22/18/6 20/19/6 19/20/6 21/21/6
|
||||||
l 2 9
|
l 22 23
|
||||||
|
l 19 23
|
||||||
|
g front
|
||||||
|
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.0000 1.0000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vn 0.0000 0.0000 -1.0000
|
||||||
|
s 1
|
||||||
|
f 24/22/7 25/23/7 27/24/7
|
||||||
|
90
models/moreblocks_slope_inner_cut.obj
Executable file → Normal file
@ -1,32 +1,72 @@
|
|||||||
# Blender v2.72 (sub 0) OBJ File: ''
|
g top
|
||||||
# www.blender.org
|
v 0.500000 0.500000 -0.500000
|
||||||
mtllib moreblocks_slope_inner_cut.mtl
|
v 0.500000 0.500000 0.500000
|
||||||
o moreblocks_slope_inner_cut
|
v -0.500000 0.500000 0.500000
|
||||||
|
v -0.500000 -0.500000 -0.500000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vt 1.0000 1.0000
|
||||||
|
vt 0.5000 0.0000
|
||||||
|
vt 1.0000 1.0000
|
||||||
|
vt 0.0000 1.0000
|
||||||
|
vn 0.0000 1.0000 0.0000
|
||||||
|
vn -0.5774 0.5774 -0.5774
|
||||||
|
s 1
|
||||||
|
f 3/1/1 2/2/1 1/3/1
|
||||||
|
f 4/4/2 3/5/2 1/6/2
|
||||||
|
g bottom
|
||||||
|
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.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vt 1.0000 1.0000
|
||||||
|
vt 0.0000 1.0000
|
||||||
|
vn 0.0000 -1.0000 -0.0000
|
||||||
|
s 1
|
||||||
|
f 6/7/3 5/8/3 7/9/3 8/10/3
|
||||||
|
g right
|
||||||
|
v -0.500000 -0.500000 0.500000
|
||||||
|
v -0.500000 0.500000 0.500000
|
||||||
|
v -0.500000 -0.500000 -0.500000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vt 1.0000 1.0000
|
||||||
|
vn -1.0000 0.0000 0.0000
|
||||||
|
s 1
|
||||||
|
f 11/11/4 9/12/4 10/13/4
|
||||||
|
g left
|
||||||
v 0.500000 -0.500000 0.500000
|
v 0.500000 -0.500000 0.500000
|
||||||
v 0.500000 -0.500000 -0.500000
|
v 0.500000 -0.500000 -0.500000
|
||||||
v 0.500000 0.500000 -0.500000
|
v 0.500000 0.500000 -0.500000
|
||||||
v 0.500000 0.500000 0.500000
|
v 0.500000 0.500000 0.500000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vt 1.0000 1.0000
|
||||||
|
vt 0.0000 1.0000
|
||||||
|
vn 1.0000 0.0000 0.0000
|
||||||
|
s 1
|
||||||
|
f 12/14/5 13/15/5 14/16/5 15/17/5
|
||||||
|
g back
|
||||||
|
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.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vt 1.0000 1.0000
|
||||||
|
vt 0.0000 1.0000
|
||||||
|
vn 0.0000 -0.0000 1.0000
|
||||||
|
s 1
|
||||||
|
f 18/18/6 16/19/6 17/20/6 19/21/6
|
||||||
|
g front
|
||||||
|
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.000000 0.000000
|
vt 0.0000 0.0000
|
||||||
vt 1.000000 0.000000
|
vt 1.0000 0.0000
|
||||||
vt 1.000000 1.000000
|
vt 0.0000 1.0000
|
||||||
vt 0.000000 1.000000
|
vn 0.0000 0.0000 -1.0000
|
||||||
vt 0.500000 0.000000
|
s 1
|
||||||
vn 1.000000 0.000000 0.000000
|
f 20/22/7 22/23/7 21/24/7
|
||||||
vn 0.000000 -0.000000 1.000000
|
|
||||||
vn 0.000000 -1.000000 -0.000000
|
|
||||||
vn 0.000000 1.000000 0.000000
|
|
||||||
vn -1.000000 0.000000 0.000000
|
|
||||||
vn 0.000000 0.000000 -1.000000
|
|
||||||
vn -0.577400 0.577400 -0.577400
|
|
||||||
usemtl None
|
|
||||||
s off
|
|
||||||
f 1/1/1 2/2/1 3/3/1 4/4/1
|
|
||||||
f 5/1/2 1/2/2 4/3/2 6/4/2
|
|
||||||
f 2/1/3 1/2/3 5/3/3 7/4/3
|
|
||||||
f 6/1/4 4/2/4 3/3/4
|
|
||||||
f 7/1/5 5/2/5 6/3/5
|
|
||||||
f 2/1/6 7/2/6 3/4/6
|
|
||||||
f 7/5/7 6/3/7 3/4/7
|
|
||||||
|
92
models/moreblocks_slope_inner_cut_half.obj
Executable file → Normal file
@ -1,34 +1,72 @@
|
|||||||
# Blender v2.72 (sub 0) OBJ File: ''
|
g top
|
||||||
# www.blender.org
|
v 0.500000 0.000000 -0.500000
|
||||||
mtllib moreblocks_slope_inner_cut_half.mtl
|
v 0.500000 -0.000000 0.500000
|
||||||
o moreblocks_slope_inner_cut_half
|
v -0.500000 -0.000000 0.500000
|
||||||
|
v -0.500000 -0.500000 -0.500000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vt 1.0000 1.0000
|
||||||
|
vt 0.5000 0.0000
|
||||||
|
vt 1.0000 1.0000
|
||||||
|
vt 0.0000 1.0000
|
||||||
|
vn 0.0000 1.0000 0.0000
|
||||||
|
vn -0.4082 0.8165 -0.4082
|
||||||
|
s 1
|
||||||
|
f 3/1/1 2/2/1 1/3/1
|
||||||
|
f 4/4/2 3/5/2 1/6/2
|
||||||
|
g bottom
|
||||||
|
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.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vt 1.0000 1.0000
|
||||||
|
vt 0.0000 1.0000
|
||||||
|
vn 0.0000 -1.0000 -0.0000
|
||||||
|
s 1
|
||||||
|
f 6/7/3 5/8/3 7/9/3 8/10/3
|
||||||
|
g right
|
||||||
|
v -0.500000 -0.500000 0.500000
|
||||||
|
v -0.500000 -0.000000 0.500000
|
||||||
|
v -0.500000 -0.500000 -0.500000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vt 1.0000 0.5000
|
||||||
|
vn -1.0000 0.0000 0.0000
|
||||||
|
s 1
|
||||||
|
f 11/11/4 9/12/4 10/13/4
|
||||||
|
g left
|
||||||
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.000000 0.500000
|
v 0.500000 -0.000000 0.500000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vt 1.0000 0.5000
|
||||||
|
vt 0.0000 0.5000
|
||||||
|
vn 1.0000 0.0000 0.0000
|
||||||
|
s 1
|
||||||
|
f 12/14/5 13/15/5 14/16/5 15/17/5
|
||||||
|
g back
|
||||||
|
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 0.500000
|
||||||
v -0.500000 -0.000000 0.500000
|
v -0.500000 -0.000000 0.500000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vt 1.0000 0.5000
|
||||||
|
vt 0.0000 0.5000
|
||||||
|
vn 0.0000 -0.0000 1.0000
|
||||||
|
s 1
|
||||||
|
f 18/18/6 16/19/6 17/20/6 19/21/6
|
||||||
|
g front
|
||||||
|
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 -0.500000
|
||||||
vt 0.000000 0.000000
|
vt 0.0000 0.0000
|
||||||
vt 1.000000 0.000000
|
vt 1.0000 0.0000
|
||||||
vt 1.000000 0.500000
|
vt 0.0000 0.5000
|
||||||
vt 0.000000 0.500000
|
vn 0.0000 0.0000 -1.0000
|
||||||
vt 1.000000 1.000000
|
s 1
|
||||||
vt 0.000000 1.000000
|
f 20/22/7 22/23/7 21/24/7
|
||||||
vt 0.500000 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 1.000000 0.000000
|
|
||||||
vn -1.000000 0.000000 0.000000
|
|
||||||
vn 0.000000 0.000000 -1.000000
|
|
||||||
vn -0.408200 0.816500 -0.408200
|
|
||||||
usemtl None
|
|
||||||
s off
|
|
||||||
f 1/1/1 2/2/1 3/3/1 4/4/1
|
|
||||||
f 5/1/2 1/2/2 4/3/2 6/4/2
|
|
||||||
f 2/1/3 1/2/3 5/5/3 7/6/3
|
|
||||||
f 6/1/4 4/2/4 3/5/4
|
|
||||||
f 7/1/5 5/2/5 6/3/5
|
|
||||||
f 2/1/6 7/2/6 3/4/6
|
|
||||||
f 7/7/7 6/5/7 3/6/7
|
|
||||||
|
99
models/moreblocks_slope_inner_cut_half_raised.obj
Executable file → Normal file
@ -1,35 +1,76 @@
|
|||||||
# Blender v2.72 (sub 0) OBJ File: ''
|
g top
|
||||||
# www.blender.org
|
|
||||||
mtllib moreblocks_slope_inner_cut_half_raised.mtl
|
|
||||||
o moreblocks_slope_inner_cut_half_raised
|
|
||||||
v 0.500000 -0.500000 0.500000
|
|
||||||
v 0.500000 -0.500000 -0.500000
|
|
||||||
v 0.500000 0.500000 -0.500000
|
v 0.500000 0.500000 -0.500000
|
||||||
v 0.500000 0.500000 0.500000
|
v 0.500000 0.500000 0.500000
|
||||||
|
v -0.500000 0.500000 0.500000
|
||||||
|
v -0.500000 0.000000 -0.500000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vt 1.0000 1.0000
|
||||||
|
vt 0.5000 0.0000
|
||||||
|
vt 1.0000 1.0000
|
||||||
|
vt 0.0000 1.0000
|
||||||
|
vn 0.0000 1.0000 0.0000
|
||||||
|
vn -0.4082 0.8165 -0.4082
|
||||||
|
s 1
|
||||||
|
f 3/1/1 2/2/1 1/3/1
|
||||||
|
f 4/4/2 3/5/2 1/6/2
|
||||||
|
g bottom
|
||||||
|
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.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vt 1.0000 1.0000
|
||||||
|
vt 0.0000 1.0000
|
||||||
|
vn 0.0000 -1.0000 -0.0000
|
||||||
|
s 1
|
||||||
|
f 6/7/3 5/8/3 7/9/3 8/10/3
|
||||||
|
g right
|
||||||
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.000000 -0.500000
|
v -0.500000 0.000000 -0.500000
|
||||||
vt 0.000000 0.000000
|
vt 0.0000 0.0000
|
||||||
vt 1.000000 0.000000
|
vt 1.0000 0.0000
|
||||||
vt 1.000000 1.000000
|
vt 1.0000 1.0000
|
||||||
vt 0.000000 1.000000
|
vt 0.0000 0.5000
|
||||||
vt 0.000000 0.500000
|
vn -1.0000 0.0000 0.0000
|
||||||
vt 1.000000 0.500000
|
s 1
|
||||||
vt 0.500000 0.000000
|
f 11/11/4 9/12/4 10/13/4 12/14/4
|
||||||
vn 1.000000 0.000000 0.000000
|
g left
|
||||||
vn 0.000000 -0.000000 1.000000
|
v 0.500000 -0.500000 0.500000
|
||||||
vn 0.000000 -1.000000 -0.000000
|
v 0.500000 -0.500000 -0.500000
|
||||||
vn 0.000000 1.000000 0.000000
|
v 0.500000 0.500000 -0.500000
|
||||||
vn -1.000000 0.000000 0.000000
|
v 0.500000 0.500000 0.500000
|
||||||
vn -0.000000 0.000000 -1.000000
|
vt 0.0000 0.0000
|
||||||
vn -0.408200 0.816500 -0.408200
|
vt 1.0000 0.0000
|
||||||
usemtl None
|
vt 1.0000 1.0000
|
||||||
s off
|
vt 0.0000 1.0000
|
||||||
f 1/1/1 2/2/1 3/3/1 4/4/1
|
vn 1.0000 0.0000 0.0000
|
||||||
f 5/1/2 1/2/2 4/3/2 6/4/2
|
s 1
|
||||||
f 2/1/3 1/2/3 5/3/3 7/4/3
|
f 13/15/5 14/16/5 15/17/5 16/18/5
|
||||||
f 6/1/4 4/2/4 3/3/4
|
g back
|
||||||
f 7/1/5 5/2/5 6/3/5 8/5/5
|
v 0.500000 -0.500000 0.500000
|
||||||
f 2/1/6 7/2/6 8/6/6 3/4/6
|
v 0.500000 0.500000 0.500000
|
||||||
f 8/7/7 6/3/7 3/4/7
|
v -0.500000 -0.500000 0.500000
|
||||||
|
v -0.500000 0.500000 0.500000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vt 1.0000 1.0000
|
||||||
|
vt 0.0000 1.0000
|
||||||
|
vn 0.0000 -0.0000 1.0000
|
||||||
|
s 1
|
||||||
|
f 19/19/6 17/20/6 18/21/6 20/22/6
|
||||||
|
g front
|
||||||
|
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
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vt 1.0000 0.5000
|
||||||
|
vt 0.0000 1.0000
|
||||||
|
vn -0.0000 0.0000 -1.0000
|
||||||
|
s 1
|
||||||
|
f 21/23/7 23/24/7 24/25/7 22/26/7
|
||||||
|
102
models/moreblocks_slope_inner_half.obj
Executable file → Normal file
@ -1,35 +1,85 @@
|
|||||||
# Blender v2.72 (sub 0) OBJ File: ''
|
g top
|
||||||
# www.blender.org
|
|
||||||
mtllib moreblocks_slope_inner_half.mtl
|
|
||||||
o Cube_Cube.001
|
|
||||||
v 0.500000 0.000000 -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.500000 -0.000000 0.500000
|
||||||
|
v -0.500000 -0.500000 -0.500000
|
||||||
|
v -0.500000 -0.500000 -0.500000
|
||||||
|
vt 1.0000 1.0000
|
||||||
|
vt 0.0000 1.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vt 1.0000 1.0000
|
||||||
|
vt 0.0000 1.0000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vn 0.0000 0.8944 -0.4472
|
||||||
|
vn -0.4472 0.8944 0.0000
|
||||||
|
s off
|
||||||
|
f 3/1/1 2/2/1 4/3/1
|
||||||
|
f 2/4/2 1/5/2 5/6/2
|
||||||
|
g bottom
|
||||||
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.500000 -0.500000
|
v -0.500000 -0.500000 -0.500000
|
||||||
v -0.500000 -0.500000 0.500000
|
v -0.500000 -0.500000 0.500000
|
||||||
v -0.500000 -0.500000 -0.500000
|
v -0.500000 -0.500000 -0.500000
|
||||||
v 0.500000 -0.500000 0.500000
|
v 0.500000 -0.500000 0.500000
|
||||||
vt 1.000000 1.000000
|
vt 1.0000 1.0000
|
||||||
vt 0.000000 1.000000
|
vt 0.0000 1.0000
|
||||||
vt 0.000000 0.000000
|
vt 0.0000 0.0000
|
||||||
vt 1.000000 0.000000
|
vt 1.0000 0.0000
|
||||||
vn 1.000000 0.000000 0.000000
|
vn 0.0000 -1.0000 -0.0000
|
||||||
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.000000 -0.000000 1.000000
|
|
||||||
vn -0.447200 0.894400 0.000000
|
|
||||||
usemtl None.002
|
|
||||||
s off
|
s off
|
||||||
f 1/1/1 2/2/1 3/3/1 4/4/1
|
f 10/7/3 7/8/3 6/9/3 9/10/3
|
||||||
f 5/1/2 6/3/2 7/4/2
|
l 9 8
|
||||||
f 5/1/3 2/2/3 6/4/3
|
l 11 9
|
||||||
f 1/2/4 4/3/4 8/4/4
|
g right
|
||||||
f 8/1/5 4/2/5 3/3/5 7/4/5
|
v -0.500000 -0.000000 0.500000
|
||||||
f 7/3/6 3/4/6 2/1/6 5/2/6
|
v -0.500000 -0.500000 -0.500000
|
||||||
f 2/1/7 1/2/7 8/3/7
|
v -0.500000 -0.500000 0.500000
|
||||||
l 7 9
|
v -0.500000 -0.500000 -0.500000
|
||||||
l 2 9
|
vt 1.0000 1.0000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vn -1.0000 0.0000 0.0000
|
||||||
|
s off
|
||||||
|
f 12/11/4 13/12/4 14/13/4
|
||||||
|
l 15 14
|
||||||
|
g left
|
||||||
|
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 -0.500000
|
||||||
|
v 0.500000 -0.500000 0.500000
|
||||||
|
vt 1.0000 1.0000
|
||||||
|
vt 0.0000 1.0000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vn 1.0000 0.0000 0.0000
|
||||||
|
s off
|
||||||
|
f 16/14/5 17/15/5 18/16/5 19/17/5
|
||||||
|
l 20 17
|
||||||
|
g back
|
||||||
|
v 0.500000 -0.000000 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 0.500000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vt 1.0000 1.0000
|
||||||
|
vt 0.0000 1.0000
|
||||||
|
vn 0.0000 -0.0000 1.0000
|
||||||
|
s off
|
||||||
|
f 24/18/6 22/19/6 21/20/6 23/21/6
|
||||||
|
l 25 24
|
||||||
|
l 25 21
|
||||||
|
g front
|
||||||
|
v 0.500000 0.000000 -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.0000 1.0000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vn 0.0000 0.0000 -1.0000
|
||||||
|
s off
|
||||||
|
f 26/22/7 27/23/7 29/24/7
|
||||||
|
104
models/moreblocks_slope_inner_half_raised.obj
Executable file → Normal file
@ -1,38 +1,86 @@
|
|||||||
# Blender v2.72 (sub 0) OBJ File: ''
|
g top
|
||||||
# www.blender.org
|
|
||||||
mtllib moreblocks_slope_inner_half_raised.mtl
|
|
||||||
o Cube_Cube.003
|
|
||||||
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
|
||||||
|
vt 1.0000 1.0000
|
||||||
|
vt 0.0000 1.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vn 0.0000 0.8944 -0.4472
|
||||||
|
vn -0.4472 0.8944 0.0000
|
||||||
|
s off
|
||||||
|
f 3/1/1 2/2/1 4/3/1
|
||||||
|
f 2/2/2 1/4/2 5/5/2
|
||||||
|
g bottom
|
||||||
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 1.0000 1.0000
|
||||||
|
vt 0.0000 1.0000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vn 0.0000 -1.0000 -0.0000
|
||||||
|
s off
|
||||||
|
f 8/6/3 9/7/3 7/8/3 6/9/3
|
||||||
|
l 10 8
|
||||||
|
g right
|
||||||
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 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 -0.500000
|
||||||
v 0.500000 -0.500000 0.500000
|
vt 1.0000 0.0000
|
||||||
vt 1.000000 1.000000
|
vt 1.0000 1.0000
|
||||||
vt 0.000000 1.000000
|
vt 0.0000 0.5000
|
||||||
vt 0.000000 0.000000
|
vt 0.0000 0.0000
|
||||||
vt 1.000000 0.000000
|
vn -1.0000 0.0000 0.0000
|
||||||
vt 1.000000 0.500000
|
|
||||||
vt 0.000000 0.500000
|
|
||||||
vn 1.000000 0.000000 0.000000
|
|
||||||
vn 0.000000 0.894400 -0.447200
|
|
||||||
vn 0.000000 -0.000000 1.000000
|
|
||||||
vn -0.447200 0.894400 0.000000
|
|
||||||
vn 0.000000 -1.000000 -0.000000
|
|
||||||
vn 0.000000 0.000000 -1.000000
|
|
||||||
vn -1.000000 0.000000 0.000000
|
|
||||||
usemtl None.003
|
|
||||||
s off
|
s off
|
||||||
f 1/1/1 2/2/1 3/3/1 4/4/1
|
f 13/10/4 11/11/4 12/12/4 15/13/4
|
||||||
f 5/1/2 2/2/2 6/4/2
|
g left
|
||||||
f 7/3/3 3/4/3 2/1/3 5/2/3
|
v 0.500000 0.500000 -0.500000
|
||||||
f 2/2/4 1/3/4 8/4/4
|
v 0.500000 0.500000 0.500000
|
||||||
f 7/1/5 9/2/5 4/3/5 3/4/5
|
v 0.500000 -0.500000 0.500000
|
||||||
f 6/5/6 1/2/6 4/3/6 9/4/6
|
v 0.500000 -0.500000 -0.500000
|
||||||
f 7/4/7 5/1/7 6/6/7 9/3/7
|
v 0.500000 -0.500000 0.500000
|
||||||
l 2 10
|
vt 1.0000 1.0000
|
||||||
l 7 10
|
vt 0.0000 1.0000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vn 1.0000 0.0000 0.0000
|
||||||
|
s off
|
||||||
|
f 16/14/5 17/15/5 18/16/5 19/17/5
|
||||||
|
l 20 17
|
||||||
|
g back
|
||||||
|
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.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vt 1.0000 1.0000
|
||||||
|
vt 0.0000 1.0000
|
||||||
|
vn 0.0000 -0.0000 1.0000
|
||||||
|
s off
|
||||||
|
f 24/18/6 22/19/6 21/20/6 23/21/6
|
||||||
|
l 25 21
|
||||||
|
l 25 24
|
||||||
|
g front
|
||||||
|
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
|
||||||
|
vt 1.0000 0.5000
|
||||||
|
vt 0.0000 1.0000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vn -0.0000 0.0000 -1.0000
|
||||||
|
s off
|
||||||
|
f 28/22/7 26/23/7 27/24/7 30/25/7
|
||||||
|
l 29 26
|
||||||
|
63
models/moreblocks_slope_outer.obj
Executable file → Normal file
@ -1,25 +1,48 @@
|
|||||||
# Blender v2.72 (sub 0) OBJ File: ''
|
g top
|
||||||
# www.blender.org
|
|
||||||
mtllib moreblocks_slope_outer.mtl
|
|
||||||
o Cube_Cube.004
|
|
||||||
v 0.500000 -0.500000 0.500000
|
|
||||||
v -0.500000 -0.500000 0.500000
|
v -0.500000 -0.500000 0.500000
|
||||||
v -0.500000 -0.500000 -0.500000
|
v -0.500000 -0.500000 -0.500000
|
||||||
v 0.500000 -0.500000 -0.500000
|
v 0.500000 -0.500000 -0.500000
|
||||||
v 0.500000 0.500000 0.500000
|
v 0.500000 0.500000 0.500000
|
||||||
vt 1.000000 1.000000
|
vt 1.0000 1.0000
|
||||||
vt 0.000000 1.000000
|
vt 0.0000 0.0000
|
||||||
vt 0.000000 0.000000
|
vt 1.0000 0.0000
|
||||||
vt 1.000000 0.000000
|
vt 0.0000 1.0000
|
||||||
vn 0.000000 -1.000000 -0.000000
|
vt 0.0000 0.0000
|
||||||
vn 1.000000 0.000000 0.000000
|
vt 1.0000 0.0000
|
||||||
vn 0.000000 -0.000000 1.000000
|
vn -0.7071 0.7071 0.0000
|
||||||
vn -0.707100 0.707100 0.000000
|
vn 0.0000 0.7071 -0.7071
|
||||||
vn 0.000000 0.707100 -0.707100
|
|
||||||
usemtl None
|
|
||||||
s off
|
s off
|
||||||
f 1/1/1 2/2/1 3/3/1 4/4/1
|
f 4/1/1 2/2/1 1/3/1
|
||||||
f 5/2/2 1/3/2 4/4/2
|
f 4/4/2 3/5/2 2/6/2
|
||||||
f 2/3/3 1/4/3 5/1/3
|
g bottom
|
||||||
f 5/1/4 3/3/4 2/4/4
|
v 0.500000 -0.500000 0.500000
|
||||||
f 5/2/5 4/3/5 3/4/5
|
v -0.500000 -0.500000 0.500000
|
||||||
|
v -0.500000 -0.500000 -0.500000
|
||||||
|
v 0.500000 -0.500000 -0.500000
|
||||||
|
vt 1.0000 1.0000
|
||||||
|
vt 0.0000 1.0000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vn 0.0000 -1.0000 -0.0000
|
||||||
|
s off
|
||||||
|
f 5/7/3 6/8/3 7/9/3 8/10/3
|
||||||
|
g right
|
||||||
|
v 0.500000 -0.500000 0.500000
|
||||||
|
v -0.500000 -0.500000 0.500000
|
||||||
|
v 0.500000 0.500000 0.500000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vt 1.0000 1.0000
|
||||||
|
vn 0.0000 -0.0000 1.0000
|
||||||
|
s off
|
||||||
|
f 10/11/4 9/12/4 11/13/4
|
||||||
|
g left
|
||||||
|
v 0.500000 -0.500000 0.500000
|
||||||
|
v 0.500000 -0.500000 -0.500000
|
||||||
|
v 0.500000 0.500000 0.500000
|
||||||
|
vt 0.0000 1.0000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vn 1.0000 0.0000 0.0000
|
||||||
|
s off
|
||||||
|
f 14/14/5 12/15/5 13/16/5
|
||||||
|
53
models/moreblocks_slope_outer_cut.obj
Executable file → Normal file
@ -1,23 +1,40 @@
|
|||||||
# Blender v2.72 (sub 0) OBJ File: ''
|
g top
|
||||||
# www.blender.org
|
|
||||||
mtllib moreblocks_slope_outer_cut.mtl
|
|
||||||
o Cube.002
|
|
||||||
v 0.500000 0.500000 0.500000
|
v 0.500000 0.500000 0.500000
|
||||||
v -0.500000 -0.500000 0.500000
|
v -0.500000 -0.500000 0.500000
|
||||||
|
v 0.500000 -0.500000 -0.500000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vt 0.5000 1.0000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vn -0.5774 0.5774 -0.5774
|
||||||
|
s off
|
||||||
|
f 2/1/1 1/2/1 3/3/1
|
||||||
|
g bottom
|
||||||
|
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 1.000000 1.000000
|
vt 0.0000 0.0000
|
||||||
vt 0.000000 0.000000
|
vt 1.0000 0.0000
|
||||||
vt 1.000000 0.000000
|
vt 0.0000 1.0000
|
||||||
vt 0.000000 1.000000
|
vn 0.0000 -1.0000 -0.0000
|
||||||
vt 0.500000 1.000000
|
|
||||||
vn 0.000000 -0.000000 1.000000
|
|
||||||
vn 1.000000 0.000000 0.000000
|
|
||||||
vn 0.000000 -1.000000 0.000000
|
|
||||||
vn -0.577400 0.577400 -0.577400
|
|
||||||
usemtl None.004
|
|
||||||
s off
|
s off
|
||||||
f 1/1/1 2/2/1 3/3/1
|
f 5/4/2 4/5/2 6/6/2
|
||||||
f 4/3/2 1/4/2 3/2/2
|
g right
|
||||||
f 3/2/3 2/3/3 4/4/3
|
v 0.500000 0.500000 0.500000
|
||||||
f 2/3/4 1/5/4 4/2/4
|
v -0.500000 -0.500000 0.500000
|
||||||
|
v 0.500000 -0.500000 0.500000
|
||||||
|
vt 1.0000 1.0000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vn 0.0000 -0.0000 1.0000
|
||||||
|
s off
|
||||||
|
f 7/7/3 8/8/3 9/9/3
|
||||||
|
g left
|
||||||
|
v 0.500000 0.500000 0.500000
|
||||||
|
v 0.500000 -0.500000 0.500000
|
||||||
|
v 0.500000 -0.500000 -0.500000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vt 0.0000 1.0000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vn 1.0000 0.0000 0.0000
|
||||||
|
s off
|
||||||
|
f 12/10/4 10/11/4 11/12/4
|
||||||
|
54
models/moreblocks_slope_outer_cut_half.obj
Executable file → Normal file
@ -1,24 +1,40 @@
|
|||||||
# Blender v2.72 (sub 0) OBJ File: ''
|
g top
|
||||||
# www.blender.org
|
|
||||||
mtllib moreblocks_slope_outer_cut_half.mtl
|
|
||||||
o Cube.003
|
|
||||||
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 0.500000
|
||||||
|
v 0.500000 -0.500000 -0.500000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vt 0.5000 1.0000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vn -0.4082 0.8165 -0.4082
|
||||||
|
s off
|
||||||
|
f 2/1/1 1/2/1 3/3/1
|
||||||
|
g bottom
|
||||||
|
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 1.000000 0.500000
|
vt 0.0000 0.0000
|
||||||
vt 0.000000 0.000000
|
vt 1.0000 0.0000
|
||||||
vt 1.000000 0.000000
|
vt 0.0000 1.0000
|
||||||
vt 0.000000 0.500000
|
vn 0.0000 -1.0000 -0.0000
|
||||||
vt 0.000000 1.000000
|
|
||||||
vt 0.500000 1.000000
|
|
||||||
vn 0.000000 -0.000000 1.000000
|
|
||||||
vn 1.000000 0.000000 0.000000
|
|
||||||
vn 0.000000 -1.000000 0.000000
|
|
||||||
vn -0.408200 0.816500 -0.408200
|
|
||||||
usemtl None.005
|
|
||||||
s off
|
s off
|
||||||
f 1/1/1 2/2/1 3/3/1
|
f 5/4/2 4/5/2 6/6/2
|
||||||
f 4/3/2 1/4/2 3/2/2
|
g right
|
||||||
f 3/2/3 2/3/3 4/5/3
|
v 0.500000 -0.000000 0.500000
|
||||||
f 2/3/4 1/6/4 4/2/4
|
v -0.500000 -0.500000 0.500000
|
||||||
|
v 0.500000 -0.500000 0.500000
|
||||||
|
vt 1.0000 0.5000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vn 0.0000 -0.0000 1.0000
|
||||||
|
s off
|
||||||
|
f 7/7/3 8/8/3 9/9/3
|
||||||
|
g left
|
||||||
|
v 0.500000 -0.000000 0.500000
|
||||||
|
v 0.500000 -0.500000 0.500000
|
||||||
|
v 0.500000 -0.500000 -0.500000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vt 0.0000 0.5000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vn 1.0000 0.0000 0.0000
|
||||||
|
s off
|
||||||
|
f 12/10/4 10/11/4 11/12/4
|
||||||
|
70
models/moreblocks_slope_outer_cut_half_raised.obj
Executable file → Normal file
@ -1,28 +1,56 @@
|
|||||||
# Blender v2.72 (sub 0) OBJ File: ''
|
g top
|
||||||
# www.blender.org
|
v -0.500000 -0.000000 0.500000
|
||||||
mtllib moreblocks_slope_outer_cut_half_raised.mtl
|
v 0.500000 0.500000 0.500000
|
||||||
o Cube_Cube.005
|
v 0.500000 0.000000 -0.500000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vt 1.0000 1.0000
|
||||||
|
vn -0.4082 0.8165 -0.4082
|
||||||
|
s off
|
||||||
|
f 1/1/1 2/2/1 3/3/1
|
||||||
|
g bottom
|
||||||
|
v -0.500000 -0.500000 0.500000
|
||||||
|
v 0.500000 -0.500000 0.500000
|
||||||
|
v 0.500000 -0.500000 -0.500000
|
||||||
|
vt 0.0000 1.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vt 1.0000 1.0000
|
||||||
|
vn 0.0000 -1.0000 -0.0000
|
||||||
|
s off
|
||||||
|
f 4/4/2 6/5/2 5/6/2
|
||||||
|
g right
|
||||||
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 0.500000
|
||||||
|
v 0.500000 -0.500000 -0.500000
|
||||||
|
v 0.500000 0.000000 -0.500000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vt 1.0000 0.5000
|
||||||
|
vt 0.0000 0.5000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vn -0.7071 0.0000 -0.7071
|
||||||
|
s off
|
||||||
|
f 8/7/3 7/8/3 10/9/3 9/10/3
|
||||||
|
g left
|
||||||
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.000000 -0.500000
|
v 0.500000 0.000000 -0.500000
|
||||||
vt 0.000000 0.500000
|
vt 0.0000 1.0000
|
||||||
vt 0.000000 0.000000
|
vt 0.0000 0.0000
|
||||||
vt 1.000000 0.000000
|
vt 1.0000 0.0000
|
||||||
vt 1.000000 1.000000
|
vt 1.0000 0.5000
|
||||||
vt 0.000000 1.000000
|
vn 1.0000 0.0000 0.0000
|
||||||
vt 1.000000 0.500000
|
|
||||||
vn 0.000000 -0.000000 1.000000
|
|
||||||
vn 1.000000 0.000000 0.000000
|
|
||||||
vn 0.000000 -1.000000 0.000000
|
|
||||||
vn -0.408200 0.816500 -0.408200
|
|
||||||
vn -0.707100 0.000000 -0.707100
|
|
||||||
usemtl None.006
|
|
||||||
s off
|
s off
|
||||||
f 1/1/1 2/2/1 3/3/1 4/4/1
|
f 12/11/4 11/12/4 13/13/4 14/14/4
|
||||||
f 4/5/2 3/2/2 5/3/2 6/6/2
|
g back
|
||||||
f 2/5/3 5/3/3 3/4/3
|
v -0.500000 -0.000000 0.500000
|
||||||
f 1/2/4 4/3/4 6/4/4
|
v -0.500000 -0.500000 0.500000
|
||||||
f 2/3/5 1/6/5 6/1/5 5/2/5
|
v 0.500000 -0.500000 0.500000
|
||||||
|
v 0.500000 0.500000 0.500000
|
||||||
|
vt 0.0000 0.5000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vt 1.0000 1.0000
|
||||||
|
vn -0.0000 -0.0000 1.0000
|
||||||
|
s off
|
||||||
|
f 15/15/5 16/16/5 17/17/5 18/18/5
|
||||||
|
65
models/moreblocks_slope_outer_half.obj
Executable file → Normal file
@ -1,27 +1,48 @@
|
|||||||
# Blender v2.72 (sub 0) OBJ File: ''
|
g top
|
||||||
# www.blender.org
|
v -0.500000 -0.500000 0.500000
|
||||||
mtllib moreblocks_slope_outer_half.mtl
|
v -0.500000 -0.500000 -0.500000
|
||||||
o Cube.004
|
v 0.500000 -0.500000 -0.500000
|
||||||
|
v 0.500000 -0.000000 0.500000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vt 0.0000 1.0000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vt 1.0000 1.0000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vn 0.0000 0.8944 -0.4472
|
||||||
|
vn -0.4472 0.8944 0.0000
|
||||||
|
s off
|
||||||
|
f 2/1/1 4/2/1 3/3/1
|
||||||
|
f 1/4/2 4/5/2 2/6/2
|
||||||
|
g bottom
|
||||||
v -0.500000 -0.500000 0.500000
|
v -0.500000 -0.500000 0.500000
|
||||||
v -0.500000 -0.500000 -0.500000
|
v -0.500000 -0.500000 -0.500000
|
||||||
v 0.500000 -0.500000 -0.500000
|
v 0.500000 -0.500000 -0.500000
|
||||||
v 0.500000 -0.500000 0.500000
|
v 0.500000 -0.500000 0.500000
|
||||||
v 0.500000 -0.000000 0.500000
|
vt 1.0000 1.0000
|
||||||
vt 1.000000 1.000000
|
vt 0.0000 1.0000
|
||||||
vt 0.000000 1.000000
|
vt 0.0000 0.0000
|
||||||
vt 0.000000 0.000000
|
vt 1.0000 0.0000
|
||||||
vt 1.000000 0.000000
|
vn 0.0000 -1.0000 -0.0000
|
||||||
vt 1.000000 0.500000
|
|
||||||
vt 0.000000 0.500000
|
|
||||||
vn 0.000000 -1.000000 -0.000000
|
|
||||||
vn 0.000000 -0.000000 1.000000
|
|
||||||
vn 1.000000 0.000000 0.000000
|
|
||||||
vn 0.000000 0.894400 -0.447200
|
|
||||||
vn -0.447200 0.894400 0.000000
|
|
||||||
usemtl None.007
|
|
||||||
s off
|
s off
|
||||||
f 1/1/1 2/2/1 3/3/1 4/4/1
|
f 5/7/3 6/8/3 7/9/3 8/10/3
|
||||||
f 5/5/2 1/3/2 4/4/2
|
g right
|
||||||
f 3/4/3 5/6/3 4/3/3
|
v -0.500000 -0.500000 0.500000
|
||||||
f 2/4/4 5/2/4 3/3/4
|
v 0.500000 -0.500000 0.500000
|
||||||
f 1/4/5 5/1/5 2/3/5
|
v 0.500000 -0.000000 0.500000
|
||||||
|
vt 1.0000 0.5000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vn 0.0000 -0.0000 1.0000
|
||||||
|
s off
|
||||||
|
f 11/11/4 9/12/4 10/13/4
|
||||||
|
g left
|
||||||
|
v 0.500000 -0.500000 -0.500000
|
||||||
|
v 0.500000 -0.500000 0.500000
|
||||||
|
v 0.500000 -0.000000 0.500000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vt 0.0000 0.5000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vn 1.0000 0.0000 0.0000
|
||||||
|
s off
|
||||||
|
f 12/14/5 14/15/5 13/16/5
|
||||||
|
90
models/moreblocks_slope_outer_half_raised.obj
Executable file → Normal file
@ -1,34 +1,74 @@
|
|||||||
# Blender v2.72 (sub 0) OBJ File: ''
|
g top
|
||||||
# www.blender.org
|
v -0.500000 -0.000000 0.500000
|
||||||
mtllib moreblocks_slope_outer_half_raised.mtl
|
v 0.500000 0.500000 0.500000
|
||||||
o Cube_Cube.006
|
v 0.500000 0.000000 -0.500000
|
||||||
|
v -0.500000 0.000000 -0.500000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vt 0.0000 1.0000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 1.0000
|
||||||
|
vn 0.0000 0.8944 -0.4472
|
||||||
|
vn -0.4472 0.8944 0.0000
|
||||||
|
s off
|
||||||
|
f 4/1/1 2/2/1 3/3/1
|
||||||
|
f 4/1/2 1/4/2 2/2/2
|
||||||
|
g bottom
|
||||||
|
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.0000 1.0000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vt 1.0000 1.0000
|
||||||
|
vn 0.0000 -1.0000 -0.0000
|
||||||
|
s off
|
||||||
|
f 7/5/3 6/6/3 5/7/3 8/8/3
|
||||||
|
g right
|
||||||
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 0.500000
|
||||||
|
v -0.500000 0.000000 -0.500000
|
||||||
|
v -0.500000 -0.500000 -0.500000
|
||||||
|
vt 1.0000 0.5000
|
||||||
|
vt 0.0000 0.5000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vn -1.0000 0.0000 0.0000
|
||||||
|
s off
|
||||||
|
f 9/9/4 11/10/4 12/11/4 10/12/4
|
||||||
|
g left
|
||||||
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.000000 -0.500000
|
v 0.500000 0.000000 -0.500000
|
||||||
|
vt 0.0000 1.0000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vt 1.0000 0.5000
|
||||||
|
vn 1.0000 0.0000 0.0000
|
||||||
|
s off
|
||||||
|
f 14/13/5 13/14/5 15/15/5 16/16/5
|
||||||
|
g back
|
||||||
|
v -0.500000 -0.000000 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.0000 0.5000
|
||||||
|
vt 0.0000 0.0000
|
||||||
|
vt 1.0000 0.0000
|
||||||
|
vt 1.0000 1.0000
|
||||||
|
vn -0.0000 -0.0000 1.0000
|
||||||
|
s off
|
||||||
|
f 17/17/6 18/18/6 19/19/6 20/20/6
|
||||||
|
g front
|
||||||
|
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.000000 -0.500000
|
||||||
v -0.500000 -0.500000 -0.500000
|
v -0.500000 -0.500000 -0.500000
|
||||||
vt 0.000000 0.500000
|
vt 0.0000 0.5000
|
||||||
vt 0.000000 0.000000
|
vt 0.0000 0.0000
|
||||||
vt 1.000000 0.000000
|
vt 1.0000 0.0000
|
||||||
vt 1.000000 1.000000
|
vt 1.0000 0.5000
|
||||||
vt 0.000000 1.000000
|
vn 0.0000 0.0000 -1.0000
|
||||||
vt 1.000000 0.500000
|
|
||||||
vn 0.000000 -0.000000 1.000000
|
|
||||||
vn 1.000000 0.000000 0.000000
|
|
||||||
vn 0.000000 0.894400 -0.447200
|
|
||||||
vn -1.000000 0.000000 0.000000
|
|
||||||
vn -0.447200 0.894400 0.000000
|
|
||||||
vn 0.000000 0.000000 -1.000000
|
|
||||||
vn 0.000000 -1.000000 -0.000000
|
|
||||||
usemtl None.008
|
|
||||||
s off
|
s off
|
||||||
f 1/1/1 2/2/1 3/3/1 4/4/1
|
f 22/21/7 21/22/7 24/23/7 23/24/7
|
||||||
f 4/5/2 3/2/2 5/3/2 6/6/2
|
|
||||||
f 7/3/3 4/5/3 6/2/3
|
|
||||||
f 1/6/4 7/1/4 8/2/4 2/3/4
|
|
||||||
f 7/3/5 1/4/5 4/5/5
|
|
||||||
f 6/1/6 5/2/6 8/3/6 7/6/6
|
|
||||||
f 5/5/7 3/2/7 2/3/7 8/4/7
|
|
||||||
|
283
nodes.lua
Executable file → Normal file
@ -1,26 +1,48 @@
|
|||||||
--[[
|
--[[
|
||||||
More Blocks: node definitions
|
More Blocks: node definitions
|
||||||
|
|
||||||
Copyright (c) 2011-2015 Calinou and contributors.
|
Copyright (c) 2011-2018 Hugo Locurcio and contributors.
|
||||||
Licensed under the zlib license. See LICENSE.md for more information.
|
Licensed under the zlib license. See LICENSE.md for more information.
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
local S = moreblocks.intllib
|
local S = moreblocks.intllib
|
||||||
|
|
||||||
|
local sound_dirt = default.node_sound_dirt_defaults()
|
||||||
local sound_wood = default.node_sound_wood_defaults()
|
local sound_wood = default.node_sound_wood_defaults()
|
||||||
local sound_stone = default.node_sound_stone_defaults()
|
local sound_stone = default.node_sound_stone_defaults()
|
||||||
local sound_glass = default.node_sound_glass_defaults()
|
local sound_glass = default.node_sound_glass_defaults()
|
||||||
local sound_leaves = default.node_sound_leaves_defaults()
|
local sound_leaves = default.node_sound_leaves_defaults()
|
||||||
|
|
||||||
|
-- Don't break on 0.4.14 and earlier.
|
||||||
|
local sound_metal = (default.node_sound_metal_defaults
|
||||||
|
and default.node_sound_metal_defaults() or sound_stone)
|
||||||
|
|
||||||
local function tile_tiles(name)
|
local function tile_tiles(name)
|
||||||
local tex = "moreblocks_" ..name.. ".png"
|
local tex = "moreblocks_" ..name.. ".png"
|
||||||
return {tex, tex, tex, tex, tex.. "^[transformR90", tex.. "^[transformR90"}
|
return {tex, tex, tex, tex, tex.. "^[transformR90", tex.. "^[transformR90"}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local function wood_tile_replace(itemstack, placer, pointed_thing)
|
||||||
|
local substack
|
||||||
|
if itemstack:get_name() == "moreblocks:wood_tile_flipped" then
|
||||||
|
substack = ItemStack("moreblocks:wood_tile")
|
||||||
|
else -- right, left, and down variants
|
||||||
|
substack = ItemStack("moreblocks:wood_tile_offset")
|
||||||
|
end
|
||||||
|
local _, success = minetest.item_place(substack, placer, pointed_thing)
|
||||||
|
if success then
|
||||||
|
itemstack:take_item()
|
||||||
|
end
|
||||||
|
return itemstack
|
||||||
|
end
|
||||||
|
|
||||||
local nodes = {
|
local nodes = {
|
||||||
["wood_tile"] = {
|
["wood_tile"] = {
|
||||||
description = S("Wooden Tile"),
|
description = S("Wooden Tile"),
|
||||||
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
|
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
|
||||||
|
is_ground_content = false,
|
||||||
|
paramtype2 = "facedir",
|
||||||
|
place_param2 = 0,
|
||||||
tiles = {"default_wood.png^moreblocks_wood_tile.png",
|
tiles = {"default_wood.png^moreblocks_wood_tile.png",
|
||||||
"default_wood.png^moreblocks_wood_tile.png",
|
"default_wood.png^moreblocks_wood_tile.png",
|
||||||
"default_wood.png^moreblocks_wood_tile.png",
|
"default_wood.png^moreblocks_wood_tile.png",
|
||||||
@ -30,145 +52,179 @@ local nodes = {
|
|||||||
sounds = sound_wood,
|
sounds = sound_wood,
|
||||||
},
|
},
|
||||||
["wood_tile_flipped"] = {
|
["wood_tile_flipped"] = {
|
||||||
description = S("Wooden Tile"),
|
description = S("Wooden Tile (Deprecated)"),
|
||||||
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
|
|
||||||
tiles = {"default_wood.png^moreblocks_wood_tile.png^[transformR90",
|
tiles = {"default_wood.png^moreblocks_wood_tile.png^[transformR90",
|
||||||
"default_wood.png^moreblocks_wood_tile.png^[transformR90",
|
"default_wood.png^moreblocks_wood_tile.png^[transformR90",
|
||||||
"default_wood.png^moreblocks_wood_tile.png^[transformR90",
|
"default_wood.png^moreblocks_wood_tile.png^[transformR90",
|
||||||
"default_wood.png^moreblocks_wood_tile.png^[transformR90",
|
"default_wood.png^moreblocks_wood_tile.png^[transformR90",
|
||||||
"default_wood.png^moreblocks_wood_tile.png^[transformR180",
|
"default_wood.png^moreblocks_wood_tile.png^[transformR180",
|
||||||
"default_wood.png^moreblocks_wood_tile.png^[transformR180"},
|
"default_wood.png^moreblocks_wood_tile.png^[transformR180"},
|
||||||
sounds = sound_wood,
|
|
||||||
no_stairs = true,
|
no_stairs = true,
|
||||||
|
on_place = wood_tile_replace
|
||||||
},
|
},
|
||||||
["wood_tile_center"] = {
|
["wood_tile_center"] = {
|
||||||
description = S("Centered Wooden Tile"),
|
description = S("Centered Wooden Tile"),
|
||||||
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
|
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
|
||||||
|
is_ground_content = false,
|
||||||
tiles = {"default_wood.png^moreblocks_wood_tile_center.png"},
|
tiles = {"default_wood.png^moreblocks_wood_tile_center.png"},
|
||||||
sounds = sound_wood,
|
sounds = sound_wood,
|
||||||
},
|
},
|
||||||
["wood_tile_full"] = {
|
["wood_tile_full"] = {
|
||||||
description = S("Full Wooden Tile"),
|
description = S("Full Wooden Tile"),
|
||||||
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
|
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
|
||||||
|
is_ground_content = false,
|
||||||
tiles = tile_tiles("wood_tile_full"),
|
tiles = tile_tiles("wood_tile_full"),
|
||||||
sounds = sound_wood,
|
sounds = sound_wood,
|
||||||
},
|
},
|
||||||
["wood_tile_up"] = {
|
["wood_tile_offset"] = {
|
||||||
description = S("Upwards Wooden Tile"),
|
description = S("Offset Wooden Tile"),
|
||||||
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
|
paramtype2 = "facedir",
|
||||||
tiles = {"default_wood.png^moreblocks_wood_tile_up.png"},
|
place_param2 = 0,
|
||||||
|
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
|
||||||
|
is_ground_content = false,
|
||||||
|
tiles = {"default_wood.png^moreblocks_wood_tile_offset.png"},
|
||||||
sounds = sound_wood,
|
sounds = sound_wood,
|
||||||
no_stairs = true,
|
no_stairs = true,
|
||||||
},
|
},
|
||||||
["wood_tile_down"] = {
|
["wood_tile_down"] = {
|
||||||
description = S("Downwards Wooden Tile"),
|
description = S("Downwards Wooden Tile (Deprecated)"),
|
||||||
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
|
tiles = {"default_wood.png^[transformR180^moreblocks_wood_tile_offset.png^[transformR180"},
|
||||||
tiles = {"default_wood.png^[transformR180^moreblocks_wood_tile_up.png^[transformR180"},
|
|
||||||
sounds = sound_wood,
|
|
||||||
no_stairs = true,
|
no_stairs = true,
|
||||||
|
on_place = wood_tile_replace
|
||||||
},
|
},
|
||||||
["wood_tile_left"] = {
|
["wood_tile_left"] = {
|
||||||
description = S("Leftwards Wooden Tile"),
|
description = S("Leftwards Wooden Tile (Deprecated)"),
|
||||||
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
|
tiles = {"default_wood.png^[transformR270^moreblocks_wood_tile_offset.png^[transformR270"},
|
||||||
tiles = {"default_wood.png^[transformR270^moreblocks_wood_tile_up.png^[transformR270"},
|
|
||||||
sounds = sound_wood,
|
|
||||||
no_stairs = true,
|
no_stairs = true,
|
||||||
|
on_place = wood_tile_replace
|
||||||
},
|
},
|
||||||
["wood_tile_right"] = {
|
["wood_tile_right"] = {
|
||||||
description = S("Rightwards Wooden Tile"),
|
description = S("Rightwards Wooden Tile (Deprecated)"),
|
||||||
groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
|
tiles = {"default_wood.png^[transformR90^moreblocks_wood_tile_offset.png^[transformR90"},
|
||||||
tiles = {"default_wood.png^[transformR90^moreblocks_wood_tile_up.png^[transformR90"},
|
|
||||||
sounds = sound_wood,
|
|
||||||
no_stairs = true,
|
no_stairs = true,
|
||||||
|
on_place = wood_tile_replace
|
||||||
},
|
},
|
||||||
["circle_stone_bricks"] = {
|
["circle_stone_bricks"] = {
|
||||||
description = S("Circle Stone Bricks"),
|
description = S("Circle Stone Bricks"),
|
||||||
groups = {cracky = 3},
|
groups = {stone = 1, cracky = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = sound_stone,
|
sounds = sound_stone,
|
||||||
},
|
},
|
||||||
["grey_bricks"] = {
|
["grey_bricks"] = {
|
||||||
description = S("Stone Bricks"),
|
description = S("Stone Bricks"),
|
||||||
|
paramtype2 = "facedir",
|
||||||
|
place_param2 = 0,
|
||||||
groups = {cracky = 3},
|
groups = {cracky = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = sound_stone,
|
sounds = sound_stone,
|
||||||
},
|
},
|
||||||
["coal_stone_bricks"] = {
|
["coal_stone_bricks"] = {
|
||||||
description = S("Coal Stone Bricks"),
|
description = S("Coal Stone Bricks"),
|
||||||
groups = {cracky = 3},
|
paramtype2 = "facedir",
|
||||||
|
place_param2 = 0,
|
||||||
|
groups = {stone = 1, cracky = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = sound_stone,
|
sounds = sound_stone,
|
||||||
},
|
},
|
||||||
["iron_stone_bricks"] = {
|
["iron_stone_bricks"] = {
|
||||||
description = S("Iron Stone Bricks"),
|
description = S("Iron Stone Bricks"),
|
||||||
groups = {cracky = 3},
|
paramtype2 = "facedir",
|
||||||
|
place_param2 = 0,
|
||||||
|
groups = {stone = 1, cracky = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = sound_stone,
|
sounds = sound_stone,
|
||||||
},
|
},
|
||||||
["stone_tile"] = {
|
["stone_tile"] = {
|
||||||
description = S("Stone Tile"),
|
description = S("Stone Tile"),
|
||||||
groups = {cracky = 3},
|
groups = {stone = 1, cracky = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = sound_stone,
|
sounds = sound_stone,
|
||||||
},
|
},
|
||||||
["split_stone_tile"] = {
|
["split_stone_tile"] = {
|
||||||
description = S("Split Stone Tile"),
|
description = S("Split Stone Tile"),
|
||||||
|
paramtype2 = "facedir",
|
||||||
|
place_param2 = 0,
|
||||||
tiles = {"moreblocks_split_stone_tile_top.png",
|
tiles = {"moreblocks_split_stone_tile_top.png",
|
||||||
"moreblocks_split_stone_tile.png"},
|
"moreblocks_split_stone_tile.png"},
|
||||||
groups = {cracky = 3},
|
groups = {stone = 1, cracky = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = sound_stone,
|
sounds = sound_stone,
|
||||||
},
|
},
|
||||||
["split_stone_tile_alt"] = {
|
["checker_stone_tile"] = {
|
||||||
description = S("Checkered Stone Tile"),
|
description = S("Checker Stone Tile"),
|
||||||
groups = {cracky = 3},
|
groups = {stone = 1, cracky = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = sound_stone,
|
sounds = sound_stone,
|
||||||
},
|
},
|
||||||
["tar"] = {
|
["tar"] = {
|
||||||
description = S("Tar"),
|
description = S("Tar"),
|
||||||
groups = {cracky = 2, tar_block = 1},
|
groups = {cracky=2, tar_block=1},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = sound_stone,
|
sounds = sound_stone,
|
||||||
},
|
},
|
||||||
|
["dirt_compressed"] = {
|
||||||
|
description = S("Compressed Dirt"),
|
||||||
|
groups = {crumbly=2},
|
||||||
|
is_ground_content = false,
|
||||||
|
sounds = sound_dirt,
|
||||||
|
},
|
||||||
["cobble_compressed"] = {
|
["cobble_compressed"] = {
|
||||||
description = S("Compressed Cobblestone"),
|
description = S("Compressed Cobblestone"),
|
||||||
groups = {cracky = 1},
|
groups = {cracky = 1},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = sound_stone,
|
sounds = sound_stone,
|
||||||
},
|
},
|
||||||
["plankstone"] = {
|
["plankstone"] = {
|
||||||
description = S("Plankstone"),
|
description = S("Plankstone"),
|
||||||
|
paramtype2 = "facedir",
|
||||||
|
place_param2 = 0,
|
||||||
groups = {cracky = 3},
|
groups = {cracky = 3},
|
||||||
|
is_ground_content = false,
|
||||||
tiles = tile_tiles("plankstone"),
|
tiles = tile_tiles("plankstone"),
|
||||||
sounds = sound_stone,
|
sounds = sound_stone,
|
||||||
},
|
},
|
||||||
["iron_glass"] = {
|
["iron_glass"] = {
|
||||||
description = S("Iron Glass"),
|
description = S("Iron Glass"),
|
||||||
drawtype = "glasslike_framed_optional",
|
drawtype = "glasslike_framed_optional",
|
||||||
tiles = {"moreblocks_iron_glass.png", "moreblocks_iron_glass_detail.png"}, --MFF connected glass
|
tiles = {"default_glass.png^[colorize:#DEDEDE", "default_glass_detail.png^[colorize:#DEDEDE"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
|
is_ground_content = false,
|
||||||
|
groups = {cracky = 3, oddly_breakable_by_hand = 3},
|
||||||
sounds = sound_glass,
|
sounds = sound_glass,
|
||||||
},
|
},
|
||||||
["coal_glass"] = {
|
["coal_glass"] = {
|
||||||
description = S("Coal Glass"),
|
description = S("Coal Glass"),
|
||||||
drawtype = "glasslike_framed_optional",
|
drawtype = "glasslike_framed_optional",
|
||||||
tiles = {"moreblocks_coal_glass.png", "moreblocks_coal_glass_detail.png"}, --MFF connected glass
|
tiles = {"default_glass.png^[colorize:#828282", "default_glass_detail.png^[colorize:#828282"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
|
is_ground_content = false,
|
||||||
|
groups = {cracky = 3, oddly_breakable_by_hand = 3},
|
||||||
sounds = sound_glass,
|
sounds = sound_glass,
|
||||||
},
|
},
|
||||||
["clean_glass"] = {
|
["clean_glass"] = {
|
||||||
description = S("Clean Glass"),
|
description = S("Clean Glass"),
|
||||||
drawtype = "glasslike_framed_optional",
|
drawtype = "glasslike_framed_optional",
|
||||||
tiles = {"moreblocks_clean_glass.png", "moreblocks_clean_glass_detail.png"}, --MFF connected glass
|
tiles = {"moreblocks_clean_glass.png", "moreblocks_clean_glass_detail.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
|
is_ground_content = false,
|
||||||
|
groups = {cracky = 3, oddly_breakable_by_hand = 3},
|
||||||
sounds = sound_glass,
|
sounds = sound_glass,
|
||||||
},
|
},
|
||||||
["cactus_brick"] = {
|
["cactus_brick"] = {
|
||||||
description = S("Cactus Brick"),
|
description = S("Cactus Brick"),
|
||||||
|
paramtype2 = "facedir",
|
||||||
|
place_param2 = 0,
|
||||||
groups = {cracky = 3},
|
groups = {cracky = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = sound_stone,
|
sounds = sound_stone,
|
||||||
},
|
},
|
||||||
["cactus_checker"] = {
|
["cactus_checker"] = {
|
||||||
description = S("Cactus Checker"),
|
description = S("Cactus Checker"),
|
||||||
groups = {cracky = 3},
|
groups = {stone = 1, cracky = 3},
|
||||||
|
is_ground_content = false,
|
||||||
tiles = {"default_stone.png^moreblocks_cactus_checker.png",
|
tiles = {"default_stone.png^moreblocks_cactus_checker.png",
|
||||||
"default_stone.png^moreblocks_cactus_checker.png",
|
"default_stone.png^moreblocks_cactus_checker.png",
|
||||||
"default_stone.png^moreblocks_cactus_checker.png",
|
"default_stone.png^moreblocks_cactus_checker.png",
|
||||||
@ -177,22 +233,27 @@ local nodes = {
|
|||||||
"default_stone.png^moreblocks_cactus_checker.png^[transformR90"},
|
"default_stone.png^moreblocks_cactus_checker.png^[transformR90"},
|
||||||
sounds = sound_stone,
|
sounds = sound_stone,
|
||||||
},
|
},
|
||||||
["empty_bookshelf"] = {
|
["empty_shelf"] = {
|
||||||
description = S("Empty Bookshelf"),
|
description = S("Empty Shelf"),
|
||||||
tiles = {"default_wood.png", "default_wood.png",
|
paramtype2 = "facedir",
|
||||||
"moreblocks_empty_bookshelf.png"},
|
tiles = {"default_wood.png", "default_wood.png", "default_wood.png",
|
||||||
groups = {snappy = 2, choppy = 3, oddly_breakable_by_hand = 2, flammable = 3},
|
"default_wood.png", "moreblocks_empty_shelf.png", "moreblocks_empty_shelf.png"},
|
||||||
|
groups = {choppy = 3, oddly_breakable_by_hand = 2, flammable = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = sound_wood,
|
sounds = sound_wood,
|
||||||
|
furnace_burntime = 15,
|
||||||
no_stairs = true,
|
no_stairs = true,
|
||||||
},
|
},
|
||||||
["coal_stone"] = {
|
["coal_stone"] = {
|
||||||
description = S("Coal Stone"),
|
description = S("Coal Stone"),
|
||||||
groups = {cracky = 3},
|
groups = {stone = 1, cracky = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = sound_stone,
|
sounds = sound_stone,
|
||||||
},
|
},
|
||||||
["iron_stone"] = {
|
["iron_stone"] = {
|
||||||
description = S("Iron Stone"),
|
description = S("Iron Stone"),
|
||||||
groups = {cracky = 3},
|
groups = {stone = 1, cracky = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = sound_stone,
|
sounds = sound_stone,
|
||||||
},
|
},
|
||||||
["coal_checker"] = {
|
["coal_checker"] = {
|
||||||
@ -203,7 +264,8 @@ local nodes = {
|
|||||||
"default_stone.png^moreblocks_coal_checker.png",
|
"default_stone.png^moreblocks_coal_checker.png",
|
||||||
"default_stone.png^moreblocks_coal_checker.png^[transformR90",
|
"default_stone.png^moreblocks_coal_checker.png^[transformR90",
|
||||||
"default_stone.png^moreblocks_coal_checker.png^[transformR90"},
|
"default_stone.png^moreblocks_coal_checker.png^[transformR90"},
|
||||||
groups = {cracky = 3},
|
groups = {stone = 1, cracky = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = sound_stone,
|
sounds = sound_stone,
|
||||||
},
|
},
|
||||||
["iron_checker"] = {
|
["iron_checker"] = {
|
||||||
@ -214,95 +276,158 @@ local nodes = {
|
|||||||
"default_stone.png^moreblocks_iron_checker.png",
|
"default_stone.png^moreblocks_iron_checker.png",
|
||||||
"default_stone.png^moreblocks_iron_checker.png^[transformR90",
|
"default_stone.png^moreblocks_iron_checker.png^[transformR90",
|
||||||
"default_stone.png^moreblocks_iron_checker.png^[transformR90"},
|
"default_stone.png^moreblocks_iron_checker.png^[transformR90"},
|
||||||
groups = {cracky = 3},
|
groups = {stone = 1, cracky = 3},
|
||||||
|
is_ground_content = false,
|
||||||
sounds = sound_stone,
|
sounds = sound_stone,
|
||||||
},
|
},
|
||||||
["trap_stone"] = {
|
["trap_stone"] = {
|
||||||
description = S("Trap Stone"),
|
description = S("Trap Stone"),
|
||||||
|
drawtype = "glasslike_framed",
|
||||||
|
tiles = {"default_stone.png^moreblocks_trap_box.png"},
|
||||||
walkable = false,
|
walkable = false,
|
||||||
groups = {cracky = 3},
|
groups = {cracky = 3},
|
||||||
|
paramtype = "light",
|
||||||
|
is_ground_content = false,
|
||||||
|
sounds = sound_stone,
|
||||||
|
no_stairs = true,
|
||||||
|
},
|
||||||
|
["trap_desert_stone"] = {
|
||||||
|
description = S("Trap Desert Stone"),
|
||||||
|
drawtype = "glasslike_framed",
|
||||||
|
tiles = {"default_desert_stone.png^moreblocks_trap_box.png"},
|
||||||
|
walkable = false,
|
||||||
|
groups = {cracky = 3},
|
||||||
|
paramtype = "light",
|
||||||
|
is_ground_content = false,
|
||||||
sounds = sound_stone,
|
sounds = sound_stone,
|
||||||
no_stairs = true,
|
no_stairs = true,
|
||||||
},
|
},
|
||||||
["trap_glass"] = {
|
["trap_glass"] = {
|
||||||
description = S("Trap Glass"),
|
description = S("Trap Glass"),
|
||||||
drawtype = "glasslike_framed_optional",
|
drawtype = "glasslike_framed_optional",
|
||||||
tiles = {"moreblocks_trap_glass.png", "default_glass_detail.png"}, --MFF connected glass
|
tiles = {"default_glass.png^moreblocks_trap_box_glass.png", "default_glass_detail.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
|
is_ground_content = false,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
|
groups = {cracky = 3, oddly_breakable_by_hand = 3},
|
||||||
sounds = sound_glass,
|
sounds = sound_glass,
|
||||||
no_stairs = true,
|
no_stairs = true,
|
||||||
},
|
},
|
||||||
|
["trap_obsidian_glass"] = {
|
||||||
|
description = S("Trap Obsidian Glass"),
|
||||||
|
drawtype = "glasslike_framed_optional",
|
||||||
|
tiles = {"default_obsidian_glass.png^moreblocks_trap_box_glass.png", "default_obsidian_glass_detail.png"},
|
||||||
|
paramtype = "light",
|
||||||
|
sunlight_propagates = true,
|
||||||
|
is_ground_content = false,
|
||||||
|
walkable = false,
|
||||||
|
groups = {cracky = 3, oddly_breakable_by_hand = 3},
|
||||||
|
sounds = sound_glass,
|
||||||
|
no_stairs = true,
|
||||||
|
},
|
||||||
|
["trap_obsidian"] = {
|
||||||
|
description = S("Trap Obsidian"),
|
||||||
|
drawtype = "glasslike_framed",
|
||||||
|
tiles = {"default_obsidian.png^moreblocks_trap_box.png"},
|
||||||
|
walkable = false,
|
||||||
|
groups = {cracky = 1, level = 2},
|
||||||
|
paramtype = "light",
|
||||||
|
is_ground_content = false,
|
||||||
|
sounds = sound_stone,
|
||||||
|
no_stairs = true,
|
||||||
|
},
|
||||||
|
["trap_sandstone"] = {
|
||||||
|
description = S("Trap Sandstone"),
|
||||||
|
drawtype = "glasslike_framed",
|
||||||
|
tiles = {"default_sandstone.png^moreblocks_trap_box.png"},
|
||||||
|
walkable = false,
|
||||||
|
groups = {crumbly = 1, cracky = 3},
|
||||||
|
paramtype = "light",
|
||||||
|
is_ground_content = false,
|
||||||
|
sounds = sound_stone,
|
||||||
|
no_stairs = true,
|
||||||
|
},
|
||||||
["all_faces_tree"] = {
|
["all_faces_tree"] = {
|
||||||
description = S("All-faces Tree"),
|
description = S("All-faces Tree"),
|
||||||
tiles = {"default_tree_top.png"},
|
tiles = {"default_tree_top.png"},
|
||||||
groups = {tree = 1,snappy = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
||||||
sounds = sound_wood,
|
sounds = sound_wood,
|
||||||
furnace_burntime = 30,
|
furnace_burntime = 30,
|
||||||
},
|
},
|
||||||
["all_faces_jungle_tree"] = {
|
["all_faces_jungle_tree"] = {
|
||||||
description = S("All-faces Jungle Tree"),
|
description = S("All-faces Jungle Tree"),
|
||||||
tiles = {"default_jungletree_top.png"},
|
tiles = {"default_jungletree_top.png"},
|
||||||
groups = {tree = 1,snappy = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
||||||
sounds = sound_wood,
|
sounds = sound_wood,
|
||||||
furnace_burntime = 30,
|
furnace_burntime = 38,
|
||||||
},
|
},
|
||||||
["horizontal_jungle_tree"] = {
|
["all_faces_pine_tree"] = {
|
||||||
description = S("Horizontal Jungle Tree"),
|
description = S("All-faces Pine Tree"),
|
||||||
tiles = {"default_jungletree.png",
|
tiles = {"default_pine_tree_top.png"},
|
||||||
"default_jungletree.png",
|
groups = {tree = 1, choppy = 3, oddly_breakable_by_hand = 1, flammable = 3},
|
||||||
"default_jungletree.png^[transformR90",
|
|
||||||
"default_jungletree.png^[transformR90",
|
|
||||||
"default_jungletree_top.png",
|
|
||||||
"default_jungletree_top.png"},
|
|
||||||
paramtype2 = "facedir",
|
|
||||||
groups = {tree=1,snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
|
|
||||||
sounds = sound_wood,
|
sounds = sound_wood,
|
||||||
furnace_burntime = 30,
|
furnace_burntime = 26,
|
||||||
|
},
|
||||||
|
["all_faces_acacia_tree"] = {
|
||||||
|
description = S("All-faces Acacia Tree"),
|
||||||
|
tiles = {"default_acacia_tree_top.png"},
|
||||||
|
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
||||||
|
sounds = sound_wood,
|
||||||
|
furnace_burntime = 34,
|
||||||
|
},
|
||||||
|
["all_faces_aspen_tree"] = {
|
||||||
|
description = S("All-faces Aspen Tree"),
|
||||||
|
tiles = {"default_aspen_tree_top.png"},
|
||||||
|
groups = {tree = 1, choppy = 3, oddly_breakable_by_hand = 1, flammable = 3},
|
||||||
|
sounds = sound_wood,
|
||||||
|
furnace_burntime = 22,
|
||||||
},
|
},
|
||||||
["glow_glass"] = {
|
["glow_glass"] = {
|
||||||
description = S("Glow Glass"),
|
description = S("Glow Glass"),
|
||||||
drawtype = "glasslike_framed_optional",
|
drawtype = "glasslike_framed_optional",
|
||||||
tiles = {"moreblocks_glow_glass.png", "moreblocks_glow_glass_detail.png"}, --MFF connected glass
|
tiles = {"default_glass.png^[colorize:#E9CD61", "default_glass_detail.png^[colorize:#E9CD61"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
|
is_ground_content = false,
|
||||||
light_source = 11,
|
light_source = 11,
|
||||||
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
|
groups = {cracky = 3, oddly_breakable_by_hand = 3},
|
||||||
sounds = sound_glass,
|
sounds = sound_glass,
|
||||||
},
|
},
|
||||||
["trap_glow_glass"] = {
|
["trap_glow_glass"] = {
|
||||||
description = S("Trap Glow Glass"),
|
description = S("Trap Glow Glass"),
|
||||||
drawtype = "glasslike_framed_optional",
|
drawtype = "glasslike_framed_optional",
|
||||||
tiles = {"moreblocks_trap_glass.png", "moreblocks_glow_glass_detail.png"}, --MFF connected glass
|
tiles = {"default_glass.png^[colorize:#E9CD61^moreblocks_trap_box_glass.png", "default_glass_detail.png^[colorize:#E9CD61"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
|
is_ground_content = false,
|
||||||
light_source = 11,
|
light_source = 11,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
|
groups = {cracky = 3, oddly_breakable_by_hand = 3},
|
||||||
sounds = sound_glass,
|
sounds = sound_glass,
|
||||||
no_stairs = true,
|
no_stairs = true,
|
||||||
},
|
},
|
||||||
["super_glow_glass"] = {
|
["super_glow_glass"] = {
|
||||||
description = S("Super Glow Glass"),
|
description = S("Super Glow Glass"),
|
||||||
drawtype = "glasslike_framed_optional",
|
drawtype = "glasslike_framed_optional",
|
||||||
tiles = {"moreblocks_super_glow_glass.png", "moreblocks_super_glow_glass_detail.png"}, --MFF connected glass
|
tiles = {"default_glass.png^[colorize:#FFFF78", "default_glass_detail.png^[colorize:#FFFF78"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
|
is_ground_content = false,
|
||||||
light_source = default.LIGHT_MAX,
|
light_source = default.LIGHT_MAX,
|
||||||
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
|
groups = {cracky = 3, oddly_breakable_by_hand = 3},
|
||||||
sounds = sound_glass,
|
sounds = sound_glass,
|
||||||
},
|
},
|
||||||
["trap_super_glow_glass"] = {
|
["trap_super_glow_glass"] = {
|
||||||
description = S("Trap Super Glow Glass"),
|
description = S("Trap Super Glow Glass"),
|
||||||
drawtype = "glasslike_framed_optional",
|
drawtype = "glasslike_framed_optional",
|
||||||
tiles = {"moreblocks_trap_super_glow_glass.png", "moreblocks_super_glow_glass_detail.png"}, --MFF connected glass
|
tiles = {"default_glass.png^[colorize:#FFFF78^moreblocks_trap_box_glass.png", "default_glass_detail.png^[colorize:#FFFF78"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
|
is_ground_content = false,
|
||||||
light_source = default.LIGHT_MAX,
|
light_source = default.LIGHT_MAX,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
|
groups = {cracky = 3, oddly_breakable_by_hand = 3},
|
||||||
sounds = sound_glass,
|
sounds = sound_glass,
|
||||||
no_stairs = true,
|
no_stairs = true,
|
||||||
},
|
},
|
||||||
@ -313,6 +438,7 @@ local nodes = {
|
|||||||
wield_image = "moreblocks_rope.png",
|
wield_image = "moreblocks_rope.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
|
is_ground_content = false,
|
||||||
paramtype2 = "wallmounted",
|
paramtype2 = "wallmounted",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
climbable = true,
|
climbable = true,
|
||||||
@ -321,6 +447,12 @@ local nodes = {
|
|||||||
sounds = sound_leaves,
|
sounds = sound_leaves,
|
||||||
no_stairs = true,
|
no_stairs = true,
|
||||||
},
|
},
|
||||||
|
["copperpatina"] = {
|
||||||
|
description = S("Copper Patina Block"),
|
||||||
|
groups = {cracky = 1, level = 2},
|
||||||
|
is_ground_content = false,
|
||||||
|
sounds = sound_metal,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
for name, def in pairs(nodes) do
|
for name, def in pairs(nodes) do
|
||||||
@ -341,16 +473,9 @@ for name, def in pairs(nodes) do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
-- Items
|
-- Items
|
||||||
|
|
||||||
minetest.register_craftitem("moreblocks:sweeper", {
|
minetest.register_craftitem("moreblocks:sweeper", {
|
||||||
description = S("Sweeper"),
|
description = S("Sweeper"),
|
||||||
inventory_image = "moreblocks_sweeper.png",
|
inventory_image = "moreblocks_sweeper.png",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("moreblocks:nothing", {
|
|
||||||
inventory_image = "invisible.png",
|
|
||||||
on_use = function() end,
|
|
||||||
})
|
|
||||||
|
|
||||||
|
2
ownership.lua
Executable file → Normal file
@ -1,7 +1,7 @@
|
|||||||
--[[
|
--[[
|
||||||
More Blocks: ownership handling
|
More Blocks: ownership handling
|
||||||
|
|
||||||
Copyright (c) 2011-2015 Calinou and contributors.
|
Copyright (c) 2011-2018 Hugo Locurcio and contributors.
|
||||||
Licensed under the zlib license. See LICENSE.md for more information.
|
Licensed under the zlib license. See LICENSE.md for more information.
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
|
72
redefinitions.lua
Executable file → Normal file
@ -1,7 +1,7 @@
|
|||||||
--[[
|
--[[
|
||||||
More Blocks: redefinitions of default stuff
|
More Blocks: redefinitions of default stuff
|
||||||
|
|
||||||
Copyright (c) 2011-2015 Calinou and contributors.
|
Copyright (c) 2011-2018 Hugo Locurcio and contributors.
|
||||||
Licensed under the zlib license. See LICENSE.md for more information.
|
Licensed under the zlib license. See LICENSE.md for more information.
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
@ -10,9 +10,9 @@ Licensed under the zlib license. See LICENSE.md for more information.
|
|||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "default:sign_wall 4",
|
output = "default:sign_wall 4",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"group:wood", "group:wood", "group:wood"},
|
{"default:wood", "default:wood", "default:wood"},
|
||||||
{"group:wood", "group:wood", "group:wood"},
|
{"default:wood", "default:wood", "default:wood"},
|
||||||
{"", "group:stick", ""},
|
{"", "default:stick", ""},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -25,6 +25,11 @@ minetest.register_craft({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.clear_craft({
|
||||||
|
recipe = {
|
||||||
|
{"default:papyrus", "default:papyrus", "default:papyrus"}
|
||||||
|
}
|
||||||
|
})
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "default:paper 4",
|
output = "default:paper 4",
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -32,69 +37,16 @@ minetest.register_craft({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
--[[minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "default:rail 16", -- /MFF (Mg|06/10/15) => (Ombridride|26/07/15)
|
output = "default:rail 24",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"default:steel_ingot", "", "default:steel_ingot"},
|
{"default:steel_ingot", "", "default:steel_ingot"},
|
||||||
{"default:steel_ingot", "default:stick", "default:steel_ingot"},
|
{"default:steel_ingot", "default:stick", "default:steel_ingot"},
|
||||||
{"default:steel_ingot", "", "default:steel_ingot"},
|
{"default:steel_ingot", "", "default:steel_ingot"},
|
||||||
}
|
}
|
||||||
})--]]
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "toolrepair",
|
type = "toolrepair",
|
||||||
additional_wear = -0.10, -- Tool repair buff (10% bonus instead of 2%).
|
additional_wear = -0.10, -- Tool repair buff (10% bonus instead of 2%).
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Redefinitions of some default nodes
|
|
||||||
-- ===================================
|
|
||||||
|
|
||||||
-- Let there be light. This makes some nodes let light pass through:
|
|
||||||
minetest.override_item("default:ladder", {
|
|
||||||
paramtype = "light",
|
|
||||||
sunlight_propagates = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.override_item("default:sapling", {
|
|
||||||
paramtype = "light",
|
|
||||||
sunlight_propagates = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.override_item("default:dry_shrub", {
|
|
||||||
paramtype = "light",
|
|
||||||
sunlight_propagates = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.override_item("default:papyrus", {
|
|
||||||
paramtype = "light",
|
|
||||||
sunlight_propagates = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.override_item("default:fence_wood", {
|
|
||||||
paramtype = "light",
|
|
||||||
sunlight_propagates = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.override_item("default:junglegrass", {
|
|
||||||
paramtype = "light",
|
|
||||||
sunlight_propagates = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.override_item("default:junglesapling", {
|
|
||||||
paramtype = "light",
|
|
||||||
sunlight_propagates = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.override_item("default:grass_1", {
|
|
||||||
inventory_image = "default_grass_3.png", -- Use a bigger inventory image.
|
|
||||||
wield_image = "default_grass_3.png",
|
|
||||||
paramtype = "light",
|
|
||||||
sunlight_propagates = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
for i = 2, 5 do
|
|
||||||
minetest.override_item("default:grass_" ..i, {
|
|
||||||
paramtype = "light",
|
|
||||||
sunlight_propagates = true,
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
62
stairsplus/API.md
Executable file → Normal file
@ -1,5 +1,4 @@
|
|||||||
API documentation for Stairs+
|
# API documentation for Stairs+
|
||||||
=============================
|
|
||||||
|
|
||||||
* `stairsplus:register_all(modname, subname, recipeitem, fields)`
|
* `stairsplus:register_all(modname, subname, recipeitem, fields)`
|
||||||
Registers a stair, slab, panel, microblock, and any other types of
|
Registers a stair, slab, panel, microblock, and any other types of
|
||||||
@ -21,4 +20,63 @@ You will probably never want to use them directly:
|
|||||||
* `stairsplus:register_slab(modname, subname, recipeitem, fields)`
|
* `stairsplus:register_slab(modname, subname, recipeitem, fields)`
|
||||||
* `stairsplus:register_panel(modname, subname, recipeitem, fields)`
|
* `stairsplus:register_panel(modname, subname, recipeitem, fields)`
|
||||||
* `stairsplus:register_micro(modname, subname, recipeitem, fields)`
|
* `stairsplus:register_micro(modname, subname, recipeitem, fields)`
|
||||||
|
* `stairsplus:register_slope(modname, subname, recipeitem, fields)`
|
||||||
|
|
||||||
|
If you only want to register a subset of stairsplus nodes,
|
||||||
|
you can use the `stairsplus:register_custom_subset(subset, modname, subname, recipeitem, fields)` function.
|
||||||
|
The subset table should have the following format:
|
||||||
|
|
||||||
|
```lua
|
||||||
|
local subset = {
|
||||||
|
{ "micro", "" },
|
||||||
|
{ "micro", "_1" },
|
||||||
|
{ "micro", "_2" },
|
||||||
|
{ "micro", "_4" },
|
||||||
|
{ "micro", "_12" },
|
||||||
|
{ "micro", "_14" },
|
||||||
|
{ "micro", "_15" },
|
||||||
|
{ "panel", "" },
|
||||||
|
{ "panel", "_1" },
|
||||||
|
{ "panel", "_2" },
|
||||||
|
{ "panel", "_4" },
|
||||||
|
{ "panel", "_12" },
|
||||||
|
{ "panel", "_14" },
|
||||||
|
{ "panel", "_15" },
|
||||||
|
{ "slab", "" },
|
||||||
|
{ "slab", "_quarter" },
|
||||||
|
{ "slab", "_three_quarter" },
|
||||||
|
{ "slab", "_1" },
|
||||||
|
{ "slab", "_2" },
|
||||||
|
{ "slab", "_14" },
|
||||||
|
{ "slab", "_15" },
|
||||||
|
{ "slab", "_two_sides" },
|
||||||
|
{ "slab", "_three_sides" },
|
||||||
|
{ "slab", "_three_sides_u" },
|
||||||
|
{ "slope", "" },
|
||||||
|
{ "slope", "_half" },
|
||||||
|
{ "slope", "_half_raised" },
|
||||||
|
{ "slope", "_inner" },
|
||||||
|
{ "slope", "_inner_half" },
|
||||||
|
{ "slope", "_inner_half_raised" },
|
||||||
|
{ "slope", "_inner_cut" },
|
||||||
|
{ "slope", "_inner_cut_half" },
|
||||||
|
{ "slope", "_inner_cut_half_raised" },
|
||||||
|
{ "slope", "_outer" },
|
||||||
|
{ "slope", "_outer_half" },
|
||||||
|
{ "slope", "_outer_half_raised" },
|
||||||
|
{ "slope", "_outer_cut" },
|
||||||
|
{ "slope", "_outer_cut_half" },
|
||||||
|
{ "slope", "_outer_cut_half_raised" },
|
||||||
|
{ "slope", "_cut" },
|
||||||
|
{ "stair", "" },
|
||||||
|
{ "stair", "_half" },
|
||||||
|
{ "stair", "_right_half" },
|
||||||
|
{ "stair", "_inner" },
|
||||||
|
{ "stair", "_outer" },
|
||||||
|
{ "stair", "_alt" },
|
||||||
|
{ "stair", "_alt_1" },
|
||||||
|
{ "stair", "_alt_2" },
|
||||||
|
{ "stair", "_alt_4" },
|
||||||
|
}
|
||||||
|
```
|
||||||
|
You can remove entries as needed.
|
2
stairsplus/aliases.lua
Executable file → Normal file
@ -1,7 +1,7 @@
|
|||||||
--[[
|
--[[
|
||||||
More Blocks: alias definitions
|
More Blocks: alias definitions
|
||||||
|
|
||||||
Copyright (c) 2011-2015 Calinou and contributors.
|
Copyright (c) 2011-2018 Hugo Locurcio and contributors.
|
||||||
Licensed under the zlib license. See LICENSE.md for more information.
|
Licensed under the zlib license. See LICENSE.md for more information.
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
|
61
stairsplus/common.lua
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
--[[
|
||||||
|
More Blocks: registrations
|
||||||
|
|
||||||
|
Copyright (c) 2011-2018 Hugo Locurcio and contributors.
|
||||||
|
Licensed under the zlib license. See LICENSE.md for more information.
|
||||||
|
--]]
|
||||||
|
|
||||||
|
local S = moreblocks.intllib
|
||||||
|
|
||||||
|
|
||||||
|
stairsplus.register_single = function(category, alternate, info, modname, subname, recipeitem, fields)
|
||||||
|
local descriptions = {
|
||||||
|
["micro"] = "Microblock",
|
||||||
|
["slab"] = "Slab",
|
||||||
|
["slope"] = "Slope",
|
||||||
|
["panel"] = "Panel",
|
||||||
|
["stair"] = "Stairs",
|
||||||
|
}
|
||||||
|
local def = {}
|
||||||
|
if category ~= "slab" then
|
||||||
|
def = table.copy(info)
|
||||||
|
end
|
||||||
|
|
||||||
|
for k, v in pairs(fields) do
|
||||||
|
def[k] = v
|
||||||
|
end
|
||||||
|
def.drawtype = "nodebox"
|
||||||
|
if category == "slope" then
|
||||||
|
def.drawtype = "mesh"
|
||||||
|
end
|
||||||
|
def.paramtype = "light"
|
||||||
|
def.paramtype2 = def.paramtype2 or "facedir"
|
||||||
|
def.on_place = minetest.rotate_node
|
||||||
|
if category ~= "slab" then
|
||||||
|
def.description = S("%s " .. descriptions[category]):format(fields.description)
|
||||||
|
else
|
||||||
|
local desc_base = S("%s " .. descriptions[category]):format(fields.description)
|
||||||
|
if type(info) ~= "table" then
|
||||||
|
def.node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.5, -0.5, 0.5, (info/16)-0.5, 0.5},
|
||||||
|
}
|
||||||
|
def.description = ("%s (%d/16)"):format(desc_base, info)
|
||||||
|
else
|
||||||
|
def.node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = info,
|
||||||
|
}
|
||||||
|
def.description = desc_base .. alternate:gsub("_", " "):gsub("(%a)(%S*)", function(a, b) return a:upper() .. b end)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
def.groups = stairsplus:prepare_groups(fields.groups)
|
||||||
|
if category == "stair" and alternate == "" then
|
||||||
|
def.groups.stair = 1
|
||||||
|
end
|
||||||
|
if fields.drop and not (type(fields.drop) == "table") then
|
||||||
|
def.drop = modname.. ":" .. category .. "_" .. fields.drop .. alternate
|
||||||
|
end
|
||||||
|
minetest.register_node(":" ..modname.. ":" .. category .. "_" .. subname .. alternate, def)
|
||||||
|
stairsplus.register_recipes(category, alternate, modname, subname, recipeitem)
|
||||||
|
end
|
4
stairsplus/conversion.lua
Executable file → Normal file
@ -1,7 +1,7 @@
|
|||||||
--[[
|
--[[
|
||||||
More Blocks: conversion
|
More Blocks: conversion
|
||||||
|
|
||||||
Copyright (c) 2011-2015 Calinou and contributors.
|
Copyright (c) 2011-2018 Hugo Locurcio and contributors.
|
||||||
Licensed under the zlib license. See LICENSE.md for more information.
|
Licensed under the zlib license. See LICENSE.md for more information.
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
@ -80,6 +80,7 @@ function stairsplus:register_6dfacedir_conversion(modname, material)
|
|||||||
chance = 1,
|
chance = 1,
|
||||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||||
local fdir = node.param2 or 0
|
local fdir = node.param2 or 0
|
||||||
|
local nfdir
|
||||||
|
|
||||||
if flip_upside_down and not flip_to_wall then
|
if flip_upside_down and not flip_to_wall then
|
||||||
nfdir = dirs1[fdir + 2]
|
nfdir = dirs1[fdir + 2]
|
||||||
@ -136,4 +137,3 @@ function stairsplus:register_6dfacedir_conversion(modname, material)
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
98
stairsplus/custom.lua
Normal file
@ -0,0 +1,98 @@
|
|||||||
|
--[[
|
||||||
|
More Blocks: microblock definitions
|
||||||
|
|
||||||
|
Copyright (c) 2011-2018 Hugo Locurcio and contributors.
|
||||||
|
Licensed under the zlib license. See LICENSE.md for more information.
|
||||||
|
--]]
|
||||||
|
|
||||||
|
local S = moreblocks.intllib
|
||||||
|
|
||||||
|
--[[
|
||||||
|
Subset table should have the following format: (You can remove entries as needed.)
|
||||||
|
|
||||||
|
local subset = {
|
||||||
|
{ "micro", "" },
|
||||||
|
{ "micro", "_1" },
|
||||||
|
{ "micro", "_2" },
|
||||||
|
{ "micro", "_4" },
|
||||||
|
{ "micro", "_12" },
|
||||||
|
{ "micro", "_14" },
|
||||||
|
{ "micro", "_15" },
|
||||||
|
{ "panel", "" },
|
||||||
|
{ "panel", "_1" },
|
||||||
|
{ "panel", "_2" },
|
||||||
|
{ "panel", "_4" },
|
||||||
|
{ "panel", "_12" },
|
||||||
|
{ "panel", "_14" },
|
||||||
|
{ "panel", "_15" },
|
||||||
|
{ "slab", "" },
|
||||||
|
{ "slab", "_quarter" },
|
||||||
|
{ "slab", "_three_quarter" },
|
||||||
|
{ "slab", "_1" },
|
||||||
|
{ "slab", "_2" },
|
||||||
|
{ "slab", "_14" },
|
||||||
|
{ "slab", "_15" },
|
||||||
|
{ "slab", "_two_sides" },
|
||||||
|
{ "slab", "_three_sides" },
|
||||||
|
{ "slab", "_three_sides_u" },
|
||||||
|
{ "slope", "" },
|
||||||
|
{ "slope", "_half" },
|
||||||
|
{ "slope", "_half_raised" },
|
||||||
|
{ "slope", "_inner" },
|
||||||
|
{ "slope", "_inner_half" },
|
||||||
|
{ "slope", "_inner_half_raised" },
|
||||||
|
{ "slope", "_inner_cut" },
|
||||||
|
{ "slope", "_inner_cut_half" },
|
||||||
|
{ "slope", "_inner_cut_half_raised" },
|
||||||
|
{ "slope", "_outer" },
|
||||||
|
{ "slope", "_outer_half" },
|
||||||
|
{ "slope", "_outer_half_raised" },
|
||||||
|
{ "slope", "_outer_cut" },
|
||||||
|
{ "slope", "_outer_cut_half" },
|
||||||
|
{ "slope", "_outer_cut_half_raised" },
|
||||||
|
{ "slope", "_cut" },
|
||||||
|
{ "stair", "" },
|
||||||
|
{ "stair", "_half" },
|
||||||
|
{ "stair", "_right_half" },
|
||||||
|
{ "stair", "_inner" },
|
||||||
|
{ "stair", "_outer" },
|
||||||
|
{ "stair", "_alt" },
|
||||||
|
{ "stair", "_alt_1" },
|
||||||
|
{ "stair", "_alt_2" },
|
||||||
|
{ "stair", "_alt_4" },
|
||||||
|
}
|
||||||
|
--]]
|
||||||
|
|
||||||
|
function register_custom_subset(subset, modname, subname, recipeitem, groups, images, description, drop, light)
|
||||||
|
stairsplus:register_custom_subset(subset, modname, subname, recipeitem, {
|
||||||
|
groups = groups,
|
||||||
|
tiles = images,
|
||||||
|
description = description,
|
||||||
|
drop = drop,
|
||||||
|
light_source = light,
|
||||||
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
|
function stairsplus:register_custom_subset_alias(subset, modname_old, subname_old, modname_new, subname_new)
|
||||||
|
local subset = table.copy(subset)
|
||||||
|
for k, v in pairs(subset) do
|
||||||
|
minetest.register_alias(modname_old .. ":" .. v[1] .. "_" .. subname_old .. v[2], modname_new .. ":" .. v[1] .. "_" .. subname_new .. v[2])
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function stairsplus:register_custom_subset_alias_force(subset, modname_old, subname_old, modname_new, subname_new)
|
||||||
|
local subset = table.copy(subset)
|
||||||
|
for k, v in pairs(subset) do
|
||||||
|
minetest.register_alias_force(modname_old .. ":" .. v[1] .. "_" .. subname_old .. v[2], modname_new .. ":" .. v[1] .. "_" .. subname_new .. v[2])
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function stairsplus:register_custom_subset(subset, modname, subname, recipeitem, fields)
|
||||||
|
local subset = table.copy(subset)
|
||||||
|
for k, v in pairs(subset) do
|
||||||
|
stairsplus.register_single(v[1], v[2], stairsplus.defs[v[1]][v[2]], modname, subname, recipeitem, fields)
|
||||||
|
end
|
||||||
|
|
||||||
|
circular_saw.known_nodes[recipeitem] = {modname, subname}
|
||||||
|
end
|
409
stairsplus/defs.lua
Normal file
@ -0,0 +1,409 @@
|
|||||||
|
--[[
|
||||||
|
More Blocks: registrations
|
||||||
|
|
||||||
|
Copyright (c) 2011-2018 Hugo Locurcio and contributors.
|
||||||
|
Licensed under the zlib license. See LICENSE.md for more information.
|
||||||
|
--]]
|
||||||
|
|
||||||
|
|
||||||
|
local box_slope = {
|
||||||
|
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 box_slope_half = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{-0.5, -0.5, -0.5, 0.5, -0.375, 0.5},
|
||||||
|
{-0.5, -0.375, -0.25, 0.5, -0.25, 0.5},
|
||||||
|
{-0.5, -0.25, 0, 0.5, -0.125, 0.5},
|
||||||
|
{-0.5, -0.125, 0.25, 0.5, 0, 0.5},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
local box_slope_half_raised = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{-0.5, -0.5, -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 box_slope_inner = {
|
||||||
|
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 box_slope_inner_half = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{-0.5, -0.5, -0.5, 0.5, -0.375, 0.5},
|
||||||
|
{-0.5, -0.375, -0.25, 0.5, -0.25, 0.5},
|
||||||
|
{-0.5, -0.375, -0.5, 0.25, -0.25, 0.5},
|
||||||
|
{-0.5, -0.25, -0.5, 0, -0.125, 0.5},
|
||||||
|
{-0.5, -0.25, 0, 0.5, -0.125, 0.5},
|
||||||
|
{-0.5, -0.125, 0.25, 0.5, 0, 0.5},
|
||||||
|
{-0.5, -0.125, -0.5, -0.25, 0, 0.5},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
local box_slope_inner_half_raised = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{-0.5, -0.5, -0.5, 0.5, 0.125, 0.5},
|
||||||
|
{-0.5, 0.125, -0.25, 0.5, 0.25, 0.5},
|
||||||
|
{-0.5, 0.125, -0.5, 0.25, 0.25, 0.5},
|
||||||
|
{-0.5, 0.25, -0.5, 0, 0.375, 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},
|
||||||
|
{-0.5, 0.375, -0.5, -0.25, 0.5, 0.5},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
--==============================================================
|
||||||
|
|
||||||
|
local box_slope_outer = {
|
||||||
|
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 box_slope_outer_half = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{-0.5, -0.5, -0.5, 0.5, -0.375, 0.5},
|
||||||
|
{-0.5, -0.375, -0.25, 0.25, -0.25, 0.5},
|
||||||
|
{-0.5, -0.25, 0, 0, -0.125, 0.5},
|
||||||
|
{-0.5, -0.125, 0.25, -0.25, 0, 0.5}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
local box_slope_outer_half_raised = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{-0.5, -0.5, -0.5, 0.5, 0.125, 0.5},
|
||||||
|
{-0.5, 0.125, -0.25, 0.25, 0.25, 0.5},
|
||||||
|
{-0.5, 0.25, 0, 0, 0.375, 0.5},
|
||||||
|
{-0.5, 0.375, 0.25, -0.25, 0.5, 0.5}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stairsplus.defs = {
|
||||||
|
["micro"] = {
|
||||||
|
[""] = {
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.5, 0, 0, 0, 0.5},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["_1"] = {
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.5, 0, 0, -0.4375, 0.5},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["_2"] = {
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.5, 0, 0, -0.375, 0.5},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["_4"] = {
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.5, 0, 0, -0.25, 0.5},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["_12"] = {
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.5, 0, 0, 0.25, 0.5},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["_14"] = {
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.5, 0, 0, 0.375, 0.5},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["_15"] = {
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.5, 0, 0, 0.4375, 0.5},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
["panel"] = {
|
||||||
|
[""] = {
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.5, 0, 0.5, 0, 0.5},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["_1"] = {
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.5, 0, 0.5, -0.4375, 0.5},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["_2"] = {
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.5, 0, 0.5, -0.375, 0.5},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["_4"] = {
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.5, 0, 0.5, -0.25, 0.5},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["_12"] = {
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.5, 0, 0.5, 0.25, 0.5},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["_14"] = {
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.5, 0, 0.5, 0.375, 0.5},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["_15"] = {
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.5, 0, 0.5, 0.4375, 0.5},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
["slab"] = {
|
||||||
|
[""] = 8,
|
||||||
|
["_quarter"] = 4,
|
||||||
|
["_three_quarter"] = 12,
|
||||||
|
["_1"] = 1,
|
||||||
|
["_2"] = 2,
|
||||||
|
["_14"] = 14,
|
||||||
|
["_15"] = 15,
|
||||||
|
["_two_sides"] = {
|
||||||
|
{ -0.5, -0.5, -0.5, 0.5, -7/16, 7/16 },
|
||||||
|
{ -0.5, -0.5, 7/16, 0.5, 0.5, 0.5 }
|
||||||
|
},
|
||||||
|
["_three_sides"] = {
|
||||||
|
{ -7/16, -0.5, -0.5, 0.5, -7/16, 7/16 },
|
||||||
|
{ -7/16, -0.5, 7/16, 0.5, 0.5, 0.5 },
|
||||||
|
{ -0.5, -0.5, -0.5, -7/16, 0.5, 0.5 }
|
||||||
|
},
|
||||||
|
["_three_sides_u"] = {
|
||||||
|
{ -0.5, -0.5, -0.5, 0.5, 0.5, -7/16 },
|
||||||
|
{ -0.5, -0.5, -7/16, 0.5, -7/16, 7/16 },
|
||||||
|
{ -0.5, -0.5, 7/16, 0.5, 0.5, 0.5 }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
["slope"] = {
|
||||||
|
[""] = {
|
||||||
|
mesh = "moreblocks_slope.obj",
|
||||||
|
collision_box = box_slope,
|
||||||
|
selection_box = box_slope,
|
||||||
|
|
||||||
|
},
|
||||||
|
["_half"] = {
|
||||||
|
mesh = "moreblocks_slope_half.obj",
|
||||||
|
collision_box = box_slope_half,
|
||||||
|
selection_box = box_slope_half,
|
||||||
|
},
|
||||||
|
["_half_raised"] = {
|
||||||
|
mesh = "moreblocks_slope_half_raised.obj",
|
||||||
|
collision_box = box_slope_half_raised,
|
||||||
|
selection_box = box_slope_half_raised,
|
||||||
|
},
|
||||||
|
|
||||||
|
--==============================================================
|
||||||
|
|
||||||
|
["_inner"] = {
|
||||||
|
mesh = "moreblocks_slope_inner.obj",
|
||||||
|
collision_box = box_slope_inner,
|
||||||
|
selection_box = box_slope_inner,
|
||||||
|
},
|
||||||
|
["_inner_half"] = {
|
||||||
|
mesh = "moreblocks_slope_inner_half.obj",
|
||||||
|
collision_box = box_slope_inner_half,
|
||||||
|
selection_box = box_slope_inner_half,
|
||||||
|
},
|
||||||
|
["_inner_half_raised"] = {
|
||||||
|
mesh = "moreblocks_slope_inner_half_raised.obj",
|
||||||
|
collision_box = box_slope_inner_half_raised,
|
||||||
|
selection_box = box_slope_inner_half_raised,
|
||||||
|
},
|
||||||
|
|
||||||
|
--==============================================================
|
||||||
|
|
||||||
|
["_inner_cut"] = {
|
||||||
|
mesh = "moreblocks_slope_inner_cut.obj",
|
||||||
|
collision_box = box_slope_inner,
|
||||||
|
selection_box = box_slope_inner,
|
||||||
|
},
|
||||||
|
["_inner_cut_half"] = {
|
||||||
|
mesh = "moreblocks_slope_inner_cut_half.obj",
|
||||||
|
collision_box = box_slope_inner_half,
|
||||||
|
selection_box = box_slope_inner_half,
|
||||||
|
},
|
||||||
|
["_inner_cut_half_raised"] = {
|
||||||
|
mesh = "moreblocks_slope_inner_cut_half_raised.obj",
|
||||||
|
collision_box = box_slope_inner_half_raised,
|
||||||
|
selection_box = box_slope_inner_half_raised,
|
||||||
|
},
|
||||||
|
|
||||||
|
--==============================================================
|
||||||
|
|
||||||
|
["_outer"] = {
|
||||||
|
mesh = "moreblocks_slope_outer.obj",
|
||||||
|
collision_box = box_slope_outer,
|
||||||
|
selection_box = box_slope_outer,
|
||||||
|
},
|
||||||
|
["_outer_half"] = {
|
||||||
|
mesh = "moreblocks_slope_outer_half.obj",
|
||||||
|
collision_box = box_slope_outer_half,
|
||||||
|
selection_box = box_slope_outer_half,
|
||||||
|
},
|
||||||
|
["_outer_half_raised"] = {
|
||||||
|
mesh = "moreblocks_slope_outer_half_raised.obj",
|
||||||
|
collision_box = box_slope_outer_half_raised,
|
||||||
|
selection_box = box_slope_outer_half_raised,
|
||||||
|
},
|
||||||
|
|
||||||
|
--==============================================================
|
||||||
|
|
||||||
|
["_outer_cut"] = {
|
||||||
|
mesh = "moreblocks_slope_outer_cut.obj",
|
||||||
|
collision_box = box_slope_outer,
|
||||||
|
selection_box = box_slope_outer,
|
||||||
|
},
|
||||||
|
["_outer_cut_half"] = {
|
||||||
|
mesh = "moreblocks_slope_outer_cut_half.obj",
|
||||||
|
collision_box = box_slope_outer_half,
|
||||||
|
selection_box = box_slope_outer_half,
|
||||||
|
},
|
||||||
|
["_outer_cut_half_raised"] = {
|
||||||
|
mesh = "moreblocks_slope_outer_cut_half_raised.obj",
|
||||||
|
collision_box = box_slope_outer_half_raised,
|
||||||
|
selection_box = box_slope_outer_half_raised,
|
||||||
|
},
|
||||||
|
["_cut"] = {
|
||||||
|
mesh = "moreblocks_slope_cut.obj",
|
||||||
|
collision_box = box_slope_outer,
|
||||||
|
selection_box = box_slope_outer,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["stair"] = {
|
||||||
|
[""] = {
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{-0.5, -0.5, -0.5, 0.5, 0, 0.5},
|
||||||
|
{-0.5, 0, 0, 0.5, 0.5, 0.5},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["_half"] = {
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{-0.5, -0.5, -0.5, 0, 0, 0.5},
|
||||||
|
{-0.5, 0, 0, 0, 0.5, 0.5},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["_right_half"] = {
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{0, -0.5, -0.5, 0.5, 0, 0.5},
|
||||||
|
{0, 0, 0, 0.5, 0.5, 0.5},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["_inner"] = {
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{-0.5, -0.5, -0.5, 0.5, 0, 0.5},
|
||||||
|
{-0.5, 0, 0, 0.5, 0.5, 0.5},
|
||||||
|
{-0.5, 0, -0.5, 0, 0.5, 0},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["_outer"] = {
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{-0.5, -0.5, -0.5, 0.5, 0, 0.5},
|
||||||
|
{-0.5, 0, 0, 0, 0.5, 0.5},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["_alt"] = {
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{-0.5, -0.5, -0.5, 0.5, 0, 0},
|
||||||
|
{-0.5, 0, 0, 0.5, 0.5, 0.5},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["_alt_1"] = {
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{-0.5, -0.0625, -0.5, 0.5, 0, 0},
|
||||||
|
{-0.5, 0.4375, 0, 0.5, 0.5, 0.5},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["_alt_2"] = {
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{-0.5, -0.125, -0.5, 0.5, 0, 0},
|
||||||
|
{-0.5, 0.375, 0, 0.5, 0.5, 0.5},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["_alt_4"] = {
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{-0.5, -0.25, -0.5, 0.5, 0, 0},
|
||||||
|
{-0.5, 0.25, 0, 0.5, 0.5, 0.5},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
for type,a in pairs(stairsplus.defs) do
|
||||||
|
for name,b in pairs(stairsplus.defs[type]) do
|
||||||
|
table.insert(stairsplus.shapes_list, { type .. "_", name })
|
||||||
|
end
|
||||||
|
end
|
27
stairsplus/init.lua
Executable file → Normal file
@ -1,19 +1,21 @@
|
|||||||
--[[
|
--[[
|
||||||
More Blocks: Stairs+
|
More Blocks: Stairs+
|
||||||
|
|
||||||
Copyright (c) 2011-2015 Calinou and contributors.
|
Copyright (c) 2011-2018 Hugo Locurcio and contributors.
|
||||||
Licensed under the zlib license. See LICENSE.md for more information.
|
Licensed under the zlib license. See LICENSE.md for more information.
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
-- Nodes will be called <modname>:{stair,slab,panel,micro}_<subname>
|
-- Nodes will be called <modname>:{stair,slab,panel,micro,slope}_<subname>
|
||||||
|
|
||||||
local modpath = minetest.get_modpath("moreblocks").. "/stairsplus"
|
local modpath = minetest.get_modpath("moreblocks").. "/stairsplus"
|
||||||
|
|
||||||
stairsplus = {}
|
stairsplus = {}
|
||||||
stairsplus.expect_infinite_stacks = false
|
stairsplus.expect_infinite_stacks = false
|
||||||
|
|
||||||
|
stairsplus.shapes_list = {}
|
||||||
|
|
||||||
if not minetest.get_modpath("unified_inventory")
|
if not minetest.get_modpath("unified_inventory")
|
||||||
and minetest.setting_getbool("creative_mode") then
|
and minetest.settings:get_bool("creative_mode") then
|
||||||
stairsplus.expect_infinite_stacks = true
|
stairsplus.expect_infinite_stacks = true
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -41,6 +43,21 @@ function stairsplus:register_all(modname, subname, recipeitem, fields)
|
|||||||
-- self:register_6dfacedir_conversion(modname, subname) -- Not needed as of Q3 2013, uncomment to fix old maps.
|
-- self:register_6dfacedir_conversion(modname, subname) -- Not needed as of Q3 2013, uncomment to fix old maps.
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function stairsplus:register_alias_all(modname_old, subname_old, modname_new, subname_new)
|
||||||
|
self:register_stair_alias(modname_old, subname_old, modname_new, subname_new)
|
||||||
|
self:register_slab_alias(modname_old, subname_old, modname_new, subname_new)
|
||||||
|
self:register_slope_alias(modname_old, subname_old, modname_new, subname_new)
|
||||||
|
self:register_panel_alias(modname_old, subname_old, modname_new, subname_new)
|
||||||
|
self:register_micro_alias(modname_old, subname_old, modname_new, subname_new)
|
||||||
|
end
|
||||||
|
function stairsplus:register_alias_force_all(modname_old, subname_old, modname_new, subname_new)
|
||||||
|
self:register_stair_alias_force(modname_old, subname_old, modname_new, subname_new)
|
||||||
|
self:register_slab_alias_force(modname_old, subname_old, modname_new, subname_new)
|
||||||
|
self:register_slope_alias_force(modname_old, subname_old, modname_new, subname_new)
|
||||||
|
self:register_panel_alias_force(modname_old, subname_old, modname_new, subname_new)
|
||||||
|
self:register_micro_alias_force(modname_old, subname_old, modname_new, subname_new)
|
||||||
|
end
|
||||||
|
|
||||||
function register_stair_slab_panel_micro(modname, subname, recipeitem, groups, images, description, drop, light)
|
function register_stair_slab_panel_micro(modname, subname, recipeitem, groups, images, description, drop, light)
|
||||||
stairsplus:register_all(modname, subname, recipeitem, {
|
stairsplus:register_all(modname, subname, recipeitem, {
|
||||||
groups = groups,
|
groups = groups,
|
||||||
@ -53,9 +70,13 @@ end
|
|||||||
|
|
||||||
-- dofile(modpath.. "/aliases.lua") -- Not needed as of Q2 2013, uncomment to fix old maps.
|
-- dofile(modpath.. "/aliases.lua") -- Not needed as of Q2 2013, uncomment to fix old maps.
|
||||||
-- dofile(modpath.. "/conversion.lua") -- Not needed as of Q2 2013, uncomment to fix old maps.
|
-- dofile(modpath.. "/conversion.lua") -- Not needed as of Q2 2013, uncomment to fix old maps.
|
||||||
|
dofile(modpath .. "/defs.lua")
|
||||||
|
dofile(modpath .. "/recipes.lua")
|
||||||
|
dofile(modpath .. "/common.lua")
|
||||||
dofile(modpath .. "/stairs.lua")
|
dofile(modpath .. "/stairs.lua")
|
||||||
dofile(modpath .. "/slabs.lua")
|
dofile(modpath .. "/slabs.lua")
|
||||||
dofile(modpath .. "/slopes.lua")
|
dofile(modpath .. "/slopes.lua")
|
||||||
dofile(modpath .. "/panels.lua")
|
dofile(modpath .. "/panels.lua")
|
||||||
dofile(modpath .. "/microblocks.lua")
|
dofile(modpath .. "/microblocks.lua")
|
||||||
|
dofile(modpath .. "/custom.lua")
|
||||||
dofile(modpath .. "/registrations.lua")
|
dofile(modpath .. "/registrations.lua")
|
||||||
|
116
stairsplus/microblocks.lua
Executable file → Normal file
@ -1,7 +1,7 @@
|
|||||||
--[[
|
--[[
|
||||||
More Blocks: microblock definitions
|
More Blocks: microblock definitions
|
||||||
|
|
||||||
Copyright (c) 2011-2015 Calinou and contributors.
|
Copyright (c) 2011-2018 Hugo Locurcio and contributors.
|
||||||
Licensed under the zlib license. See LICENSE.md for more information.
|
Licensed under the zlib license. See LICENSE.md for more information.
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
@ -20,109 +20,25 @@ function register_micro(modname, subname, recipeitem, groups, images, descriptio
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
function stairsplus:register_micro(modname, subname, recipeitem, fields)
|
function stairsplus:register_micro_alias(modname_old, subname_old, modname_new, subname_new)
|
||||||
local defs = {
|
local defs = table.copy(stairsplus.defs["micro"])
|
||||||
[""] = {
|
|
||||||
node_box = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {-0.5, -0.5, 0, 0, 0, 0.5},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["_1"] = {
|
|
||||||
node_box = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {-0.5, -0.5, 0, 0, -0.4375, 0.5},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["_2"] = {legacy = "_1"},
|
|
||||||
["_4"] = {legacy = ""},
|
|
||||||
["_12"] = {
|
|
||||||
node_box = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {-0.5, -0.5, 0, 0, 0.25, 0.5},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["_14"] = {legacy = "_15"},
|
|
||||||
["_15"] = {
|
|
||||||
node_box = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {-0.5, -0.5, 0, 0, 0.4375, 0.5},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
local desc = S("%s Microblock"):format(fields.description)
|
|
||||||
for alternate, def in pairs(defs) do
|
for alternate, def in pairs(defs) do
|
||||||
if def.legacy then
|
minetest.register_alias(modname_old .. ":micro_" .. subname_old .. alternate, modname_new .. ":micro_" .. subname_new .. alternate)
|
||||||
minetest.register_alias(modname .. ":micro_" .. subname .. alternate,
|
|
||||||
modname .. ":micro_" .. subname .. def.legacy)
|
|
||||||
else
|
|
||||||
for k, v in pairs(fields) do
|
|
||||||
def[k] = v
|
|
||||||
end
|
end
|
||||||
def.drawtype = "nodebox"
|
end
|
||||||
def.paramtype = "light"
|
|
||||||
def.paramtype2 = "facedir"
|
function stairsplus:register_micro_alias_force(modname_old, subname_old, modname_new, subname_new)
|
||||||
def.on_place = minetest.rotate_node
|
local defs = table.copy(stairsplus.defs["micro"])
|
||||||
def.groups = stairsplus:prepare_groups(fields.groups)
|
for alternate, def in pairs(defs) do
|
||||||
def.description = desc
|
minetest.register_alias_force(modname_old .. ":micro_" .. subname_old .. alternate, modname_new .. ":micro_" .. subname_new .. alternate)
|
||||||
if fields.drop then
|
|
||||||
def.drop = modname.. ":micro_" ..fields.drop..alternate
|
|
||||||
end
|
end
|
||||||
minetest.register_node(":" ..modname.. ":micro_" ..subname..alternate, def)
|
end
|
||||||
|
|
||||||
|
function stairsplus:register_micro(modname, subname, recipeitem, fields)
|
||||||
|
local defs = table.copy(stairsplus.defs["micro"])
|
||||||
|
for alternate, def in pairs(defs) do
|
||||||
|
stairsplus.register_single("micro", alternate, def, modname, subname, recipeitem, fields)
|
||||||
end
|
end
|
||||||
end
|
|
||||||
minetest.register_alias(modname.. ":micro_" ..subname.. "_bottom", modname.. ":micro_" ..subname)
|
|
||||||
|
|
||||||
circular_saw.known_nodes[recipeitem] = {modname, subname}
|
circular_saw.known_nodes[recipeitem] = {modname, subname}
|
||||||
|
|
||||||
-- Some saw-less recipes:
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = modname .. ":micro_" .. subname .. " 7",
|
|
||||||
recipe = {modname .. ":stair_" .. subname .. "_inner"},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = modname .. ":micro_" .. subname .. " 6",
|
|
||||||
type = "shapeless",
|
|
||||||
recipe = {modname .. ":stair_" .. subname},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = modname .. ":micro_" .. subname .. " 5",
|
|
||||||
recipe = {modname .. ":stair_" .. subname .. "_outer"},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = modname .. ":micro_" .. subname .. " 4",
|
|
||||||
recipe = {modname .. ":slab_" .. subname},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = modname .. ":micro_" .. subname .. " 4",
|
|
||||||
recipe = {modname .. ":stair_" .. subname .. "_alt"},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = modname .. ":micro_" .. subname .. " 3",
|
|
||||||
recipe = {modname .. ":stair_" .. subname .. "_right_half"},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = modname .. ":micro_" .. subname .. " 2",
|
|
||||||
recipe = {modname .. ":panel_" .. subname},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = recipeitem,
|
|
||||||
recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname},
|
|
||||||
})
|
|
||||||
end
|
end
|
||||||
|
96
stairsplus/panels.lua
Executable file → Normal file
@ -1,7 +1,7 @@
|
|||||||
--[[
|
--[[
|
||||||
More Blocks: panel definitions
|
More Blocks: panel definitions
|
||||||
|
|
||||||
Copyright (c) 2011-2015 Calinou and contributors.
|
Copyright (c) 2011-2018 Hugo Locurcio and contributors.
|
||||||
Licensed under the zlib license. See LICENSE.md for more information.
|
Licensed under the zlib license. See LICENSE.md for more information.
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
@ -20,89 +20,25 @@ function register_panel(modname, subname, recipeitem, groups, images, descriptio
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
function stairsplus:register_panel(modname, subname, recipeitem, fields)
|
function stairsplus:register_panel_alias(modname_old, subname_old, modname_new, subname_new)
|
||||||
local defs = {
|
local defs = table.copy(stairsplus.defs["panel"])
|
||||||
[""] = {
|
|
||||||
node_box = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {-0.5, -0.5, 0, 0.5, 0, 0.5},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["_1"] = {
|
|
||||||
node_box = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {-0.5, -0.5, 0, 0.5, -0.4375, 0.5},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["_2"] = {legacy = "_1"},
|
|
||||||
["_4"] = {legacy = ""},
|
|
||||||
["_12"] = {
|
|
||||||
node_box = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {-0.5, -0.5, 0, 0.5, 0.25, 0.5},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["_14"] = {legacy = "_15"},
|
|
||||||
["_15"] = {
|
|
||||||
node_box = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {-0.5, -0.5, 0, 0.5, 0.4375, 0.5},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
local desc = S("%s Panel"):format(fields.description)
|
|
||||||
for alternate, def in pairs(defs) do
|
for alternate, def in pairs(defs) do
|
||||||
if def.legacy then
|
minetest.register_alias(modname_old .. ":panel_" .. subname_old .. alternate, modname_new .. ":panel_" .. subname_new .. alternate)
|
||||||
minetest.register_alias(modname .. ":panel_" .. subname .. alternate,
|
|
||||||
modname .. ":panel_" .. subname .. def.legacy)
|
|
||||||
else
|
|
||||||
for k, v in pairs(fields) do
|
|
||||||
def[k] = v
|
|
||||||
end
|
end
|
||||||
def.drawtype = "nodebox"
|
end
|
||||||
def.paramtype = "light"
|
|
||||||
def.paramtype2 = "facedir"
|
function stairsplus:register_panel_alias_force(modname_old, subname_old, modname_new, subname_new)
|
||||||
def.on_place = minetest.rotate_node
|
local defs = table.copy(stairsplus.defs["panel"])
|
||||||
def.description = desc
|
for alternate, def in pairs(defs) do
|
||||||
def.groups = stairsplus:prepare_groups(fields.groups)
|
minetest.register_alias_force(modname_old .. ":panel_" .. subname_old .. alternate, modname_new .. ":panel_" .. subname_new .. alternate)
|
||||||
if fields.drop then
|
|
||||||
def.drop = modname.. ":panel_" ..fields.drop..alternate
|
|
||||||
end
|
end
|
||||||
minetest.register_node(":" ..modname.. ":panel_" ..subname..alternate, def)
|
end
|
||||||
|
|
||||||
|
function stairsplus:register_panel(modname, subname, recipeitem, fields)
|
||||||
|
local defs = table.copy(stairsplus.defs["panel"])
|
||||||
|
for alternate, def in pairs(defs) do
|
||||||
|
stairsplus.register_single("panel", alternate, def, modname, subname, recipeitem, fields)
|
||||||
end
|
end
|
||||||
end
|
|
||||||
minetest.register_alias(modname.. ":panel_" ..subname.. "_bottom", modname.. ":panel_" ..subname)
|
|
||||||
|
|
||||||
circular_saw.known_nodes[recipeitem] = {modname, subname}
|
circular_saw.known_nodes[recipeitem] = {modname, subname}
|
||||||
|
|
||||||
-- Some saw-less recipes:
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = modname .. ":panel_" .. subname .. " 12",
|
|
||||||
recipe = {
|
|
||||||
{recipeitem, ""},
|
|
||||||
{recipeitem, recipeitem},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = modname .. ":panel_" .. subname .. " 12",
|
|
||||||
recipe = {
|
|
||||||
{"", recipeitem},
|
|
||||||
{recipeitem, recipeitem},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = modname .. ":panel_" .. subname,
|
|
||||||
recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = recipeitem,
|
|
||||||
recipe = {modname .. ":panel_" .. subname, modname .. ":panel_" .. subname, modname .. ":panel_" .. subname, modname .. ":panel_" .. subname},
|
|
||||||
})
|
|
||||||
end
|
end
|
||||||
|
443
stairsplus/recipes.lua
Normal file
@ -0,0 +1,443 @@
|
|||||||
|
--[[
|
||||||
|
More Blocks: Stairs+
|
||||||
|
|
||||||
|
Copyright (c) 2011-2018 Hugo Locurcio and contributors.
|
||||||
|
Licensed under the zlib license. See LICENSE.md for more information.
|
||||||
|
--]]
|
||||||
|
|
||||||
|
|
||||||
|
stairsplus.register_recipes = function(category, alternate, modname, subname, recipeitem)
|
||||||
|
if category == "micro" and alternate == "" then
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = modname .. ":micro_" .. subname .. " 7",
|
||||||
|
recipe = {modname .. ":stair_" .. subname .. "_inner"},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = modname .. ":micro_" .. subname .. " 6",
|
||||||
|
recipe = {modname .. ":stair_" .. subname},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = modname .. ":micro_" .. subname .. " 5",
|
||||||
|
recipe = {modname .. ":stair_" .. subname .. "_outer"},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = modname .. ":micro_" .. subname .. " 4",
|
||||||
|
recipe = {modname .. ":slab_" .. subname},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = modname .. ":micro_" .. subname .. " 4",
|
||||||
|
recipe = {modname .. ":stair_" .. subname .. "_alt"},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = modname .. ":micro_" .. subname .. " 3",
|
||||||
|
recipe = {modname .. ":stair_" .. subname .. "_right_half"},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = modname .. ":micro_" .. subname .. " 2",
|
||||||
|
recipe = {modname .. ":panel_" .. subname},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = recipeitem,
|
||||||
|
recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_alias(modname .. ":micro_" .. subname .. "_bottom", modname .. ":micro_" .. subname)
|
||||||
|
elseif category == "panel" and alternate == "" then
|
||||||
|
minetest.register_craft({
|
||||||
|
output = modname .. ":panel_" .. subname .. " 12",
|
||||||
|
recipe = {
|
||||||
|
{recipeitem, ""},
|
||||||
|
{recipeitem, recipeitem},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = modname .. ":panel_" .. subname .. " 12",
|
||||||
|
recipe = {
|
||||||
|
{"", recipeitem},
|
||||||
|
{recipeitem, recipeitem},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = modname .. ":panel_" .. subname,
|
||||||
|
recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = recipeitem,
|
||||||
|
recipe = {modname .. ":panel_" .. subname, modname .. ":panel_" .. subname, modname .. ":panel_" .. subname, modname .. ":panel_" .. subname},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_alias(modname.. ":panel_" ..subname.. "_bottom", modname.. ":panel_" ..subname)
|
||||||
|
elseif category == "slab" then
|
||||||
|
if alternate == "" then
|
||||||
|
minetest.register_craft({
|
||||||
|
output = modname .. ":slab_" .. subname .. " 6",
|
||||||
|
recipe = {{recipeitem, recipeitem, recipeitem}},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = modname .. ":slab_" .. subname,
|
||||||
|
recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname},
|
||||||
|
})
|
||||||
|
|
||||||
|
-- uncomment this rule when conflict is no longer likely to happen
|
||||||
|
-- https://github.com/minetest/minetest/issues/2881
|
||||||
|
-- minetest.register_craft({
|
||||||
|
-- type = "shapeless",
|
||||||
|
-- output = modname .. ":slab_" .. subname,
|
||||||
|
-- recipe = {modname .. ":panel_" .. subname, modname .. ":panel_" .. subname},
|
||||||
|
-- })
|
||||||
|
|
||||||
|
-- then remove these two
|
||||||
|
minetest.register_craft({
|
||||||
|
output = modname .. ":slab_" .. subname,
|
||||||
|
recipe = {{modname .. ":panel_" .. subname, modname .. ":panel_" .. subname}},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = modname .. ":slab_" .. subname,
|
||||||
|
recipe = {
|
||||||
|
{modname .. ":panel_" .. subname},
|
||||||
|
{modname .. ":panel_" .. subname},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
------------------------------
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = recipeitem,
|
||||||
|
recipe = {modname .. ":slab_" .. subname, modname .. ":slab_" .. subname},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = modname .. ":slab_" .. subname .. " 3",
|
||||||
|
recipe = {modname .. ":stair_" .. subname, modname .. ":stair_" .. subname},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = modname .. ":slab_" .. subname,
|
||||||
|
recipe = {modname .. ":slab_" .. subname .. "_quarter", modname .. ":slab_" .. subname .. "_quarter"},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = modname .. ":slab_" .. subname,
|
||||||
|
recipe = {modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2"},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = modname .. ":slab_" .. subname,
|
||||||
|
recipe = {modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1"},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = modname .. ":slab_" .. subname,
|
||||||
|
recipe = {modname .. ":slope_" .. subname .. "_half", modname .. ":slope_" .. subname .. "_half"},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = modname .. ":slab_" .. subname,
|
||||||
|
recipe = {modname .. ":slope_" .. subname .. "_outer_half", modname .. ":slope_" .. subname .. "_inner_half"},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = modname .. ":slab_" .. subname,
|
||||||
|
recipe = {modname .. ":slope_" .. subname .. "_outer_cut_half", modname .. ":slope_" .. subname .. "_inner_cut_half"},
|
||||||
|
})
|
||||||
|
elseif alternate == "_quarter" then
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = recipeitem,
|
||||||
|
recipe = {modname .. ":slab_" .. subname .. "_quarter", modname .. ":slab_" .. subname .. "_quarter", modname .. ":slab_" .. subname .. "_quarter", modname .. ":slab_" .. subname .. "_quarter"},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = recipeitem,
|
||||||
|
recipe = {modname .. ":slab_" .. subname .. "_three_quarter", modname .. ":slab_" .. subname .. "_quarter"},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = modname .. ":slab_" .. subname .. "_quarter",
|
||||||
|
recipe = {modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2"},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = modname .. ":slab_" .. subname .. "_quarter",
|
||||||
|
recipe = {modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1"},
|
||||||
|
})
|
||||||
|
elseif alternate == "_three_quarter" then
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = modname .. ":slab_" .. subname .. "_three_quarter",
|
||||||
|
recipe = {modname .. ":slab_" .. subname, modname .. ":slab_" .. subname .. "_quarter"},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = modname .. ":slab_" .. subname .. "_three_quarter",
|
||||||
|
recipe = {modname .. ":slab_" .. subname .. "_quarter", modname .. ":slab_" .. subname .. "_quarter", modname .. ":slab_" .. subname .. "_quarter"},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = modname .. ":slab_" .. subname .. "_three_quarter",
|
||||||
|
recipe = {modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2"},
|
||||||
|
})
|
||||||
|
elseif alternate == "_2" then
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = recipeitem,
|
||||||
|
recipe = {modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2"},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = recipeitem,
|
||||||
|
recipe = {modname .. ":slab_" .. subname .. "_14", modname .. ":slab_" .. subname .. "_2"},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = modname .. ":slab_" .. subname .. "_2",
|
||||||
|
recipe = {modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1"},
|
||||||
|
})
|
||||||
|
elseif alternate == "_14" then
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = modname .. ":slab_" .. subname .. "_14",
|
||||||
|
recipe = {modname .. ":slab_" .. subname .. "_three_quarter", modname .. ":slab_" .. subname .. "_2"},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = modname .. ":slab_" .. subname .. "_14",
|
||||||
|
recipe = {modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2"},
|
||||||
|
})
|
||||||
|
elseif alternate == "_15" then
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = recipeitem,
|
||||||
|
recipe = {modname .. ":slab_" .. subname .. "_15", modname .. ":slab_" .. subname .. "_1"},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = modname .. ":slab_" .. subname .. "_15",
|
||||||
|
recipe = {modname .. ":slab_" .. subname .. "_14", modname .. ":slab_" .. subname .. "_1"},
|
||||||
|
})
|
||||||
|
end
|
||||||
|
elseif category == "slope" then
|
||||||
|
if alternate == "" then
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = recipeitem,
|
||||||
|
recipe = {modname .. ":slope_" .. subname, modname .. ":slope_" .. subname},
|
||||||
|
})
|
||||||
|
elseif alternate == "_half" then
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = recipeitem,
|
||||||
|
recipe = {modname .. ":slope_" .. subname .. "_half", modname .. ":slope_" .. subname .. "_half_raised"},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = recipeitem,
|
||||||
|
recipe = {modname .. ":slope_" .. subname .. "_half", modname .. ":slope_" .. subname .. "_half",
|
||||||
|
modname .. ":slope_" .. subname .. "_half", modname .. ":slope_" .. subname .. "_half"},
|
||||||
|
})
|
||||||
|
elseif alternate == "_outer" then
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = recipeitem,
|
||||||
|
recipe = {modname .. ":slope_" .. subname .. "_outer", modname .. ":slope_" .. subname .. "_inner"},
|
||||||
|
})
|
||||||
|
elseif alternate == "_outer_half" then
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = recipeitem,
|
||||||
|
recipe = {modname .. ":slope_" .. subname .. "_outer_half", modname .. ":slope_" .. subname .. "_inner_half_raised"},
|
||||||
|
})
|
||||||
|
elseif alternate == "_inner_half" then
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = recipeitem,
|
||||||
|
recipe = {modname .. ":slope_" .. subname .. "_outer_half_raised", modname .. ":slope_" .. subname .. "_inner_half"},
|
||||||
|
})
|
||||||
|
elseif alternate == "_outer_cut" then
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = recipeitem,
|
||||||
|
recipe = {modname .. ":slope_" .. subname .. "_outer_cut", modname .. ":slope_" .. subname .. "_inner_cut"},
|
||||||
|
})
|
||||||
|
elseif alternate == "_outer_cut_half" then
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = recipeitem,
|
||||||
|
recipe = {modname .. ":slope_" .. subname .. "_outer_cut_half", modname .. ":slope_" .. subname .. "_inner_cut_half_raised"},
|
||||||
|
})
|
||||||
|
elseif alternate == "_cut" then
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = recipeitem,
|
||||||
|
recipe = {modname .. ":slope_" .. subname .. "_cut", modname .. ":slope_" .. subname .. "_cut"},
|
||||||
|
})
|
||||||
|
elseif alternate == "_half_raised" then
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = modname .. ":slope_" .. subname .. "_half_raised",
|
||||||
|
recipe = {modname .. ":slope_" .. subname .. "_half", modname .. ":slope_" .. subname .. "_half",
|
||||||
|
modname .. ":slope_" .. subname .. "_half"},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = modname .. ":slope_" .. subname .. "_half_raised",
|
||||||
|
recipe = {modname .. ":slab_" .. subname, modname .. ":slope_" .. subname .. "_half"},
|
||||||
|
})
|
||||||
|
elseif alternate == "_inner_half_raised" then
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = modname .. ":slope_" .. subname .. "_inner_half_raised",
|
||||||
|
recipe = {modname .. ":slab_" .. subname, modname .. ":slope_" .. subname .. "_inner_half"},
|
||||||
|
})
|
||||||
|
elseif alternate == "_outer_half_raised" then
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = modname .. ":slope_" .. subname .. "_outer_half_raised",
|
||||||
|
recipe = {modname .. ":slab_" .. subname, modname .. ":slope_" .. subname .. "_outer_half"},
|
||||||
|
})
|
||||||
|
elseif alternate == "_inner_cut_half_raised" then
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = modname .. ":slope_" .. subname .. "_inner_cut_half_raised",
|
||||||
|
recipe = {modname .. ":slab_" .. subname, modname .. ":slope_" .. subname .. "_inner_cut_half"},
|
||||||
|
})
|
||||||
|
end
|
||||||
|
elseif category == "stair" then
|
||||||
|
if alternate == "" then
|
||||||
|
minetest.register_craft({
|
||||||
|
output = modname .. ":stair_" .. subname .. " 8",
|
||||||
|
recipe = {
|
||||||
|
{recipeitem, "", ""},
|
||||||
|
{recipeitem, recipeitem, ""},
|
||||||
|
{recipeitem, recipeitem, recipeitem},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = modname .. ":stair_" .. subname .. " 8",
|
||||||
|
recipe = {
|
||||||
|
{"", "", recipeitem},
|
||||||
|
{"", recipeitem, recipeitem},
|
||||||
|
{recipeitem, recipeitem, recipeitem},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = modname .. ":stair_" .. subname,
|
||||||
|
recipe = {modname .. ":panel_" .. subname, modname .. ":slab_" .. subname},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = modname .. ":stair_" .. subname,
|
||||||
|
recipe = {modname .. ":panel_" .. subname, modname .. ":panel_" .. subname, modname .. ":panel_" .. subname},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = modname .. ":stair_" .. subname,
|
||||||
|
recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = modname .. ":stair_" .. subname,
|
||||||
|
recipe = {modname .. ":panel_" .. subname, modname .. ":panel_" .. subname, modname .. ":panel_" .. subname},
|
||||||
|
})
|
||||||
|
elseif alternate == "_inner" then
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = modname .. ":stair_" .. subname .. "_inner",
|
||||||
|
recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname},
|
||||||
|
})
|
||||||
|
elseif alternate == "_outer" then
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = modname .. ":stair_" .. subname .. "_outer",
|
||||||
|
recipe = {modname .. ":micro_" .. subname, modname .. ":slab_" .. subname},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = modname .. ":stair_" .. subname .. "_outer",
|
||||||
|
recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname},
|
||||||
|
})
|
||||||
|
elseif alternate == "_half" then
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = modname .. ":stair_" .. subname .. "_half",
|
||||||
|
recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = modname .. ":stair_" .. subname .. "_half",
|
||||||
|
recipe = {modname .. ":panel_" .. subname, modname .. ":micro_" .. subname},
|
||||||
|
})
|
||||||
|
elseif alternate == "_right_half" then
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = modname .. ":stair_" .. subname .. "_right_half",
|
||||||
|
recipe = {modname .. ":stair_" .. subname .. "_half"},
|
||||||
|
})
|
||||||
|
elseif alternate == "_alt" then
|
||||||
|
minetest.register_craft({ -- See mirrored variation of the recipe below.
|
||||||
|
output = modname .. ":stair_" .. subname .. "_alt",
|
||||||
|
recipe = {
|
||||||
|
{modname .. ":panel_" .. subname, ""},
|
||||||
|
{"" , modname .. ":panel_" .. subname},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({ -- Mirrored variation of the recipe above.
|
||||||
|
output = modname .. ":stair_" .. subname .. "_alt",
|
||||||
|
recipe = {
|
||||||
|
{"" , modname .. ":panel_" .. subname},
|
||||||
|
{modname .. ":panel_" .. subname, ""},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
140
stairsplus/registrations.lua
Executable file → Normal file
@ -1,12 +1,14 @@
|
|||||||
--[[
|
--[[
|
||||||
More Blocks: registrations
|
More Blocks: registrations
|
||||||
|
|
||||||
Copyright (c) 2011-2015 Calinou and contributors.
|
Copyright (c) 2011-2018 Hugo Locurcio and contributors.
|
||||||
Licensed under the zlib license. See LICENSE.md for more information.
|
Licensed under the zlib license. See LICENSE.md for more information.
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
|
-- default registrations
|
||||||
local default_nodes = { -- Default stairs/slabs/panels/microblocks:
|
local default_nodes = { -- Default stairs/slabs/panels/microblocks:
|
||||||
"stone",
|
"stone",
|
||||||
|
"stone_block",
|
||||||
"cobble",
|
"cobble",
|
||||||
"mossycobble",
|
"mossycobble",
|
||||||
"brick",
|
"brick",
|
||||||
@ -16,7 +18,9 @@ local default_nodes = { -- Default stairs/slabs/panels/microblocks:
|
|||||||
"copperblock",
|
"copperblock",
|
||||||
"bronzeblock",
|
"bronzeblock",
|
||||||
"diamondblock",
|
"diamondblock",
|
||||||
|
"tinblock",
|
||||||
"desert_stone",
|
"desert_stone",
|
||||||
|
"desert_stone_block",
|
||||||
"desert_cobble",
|
"desert_cobble",
|
||||||
"meselamp",
|
"meselamp",
|
||||||
"glass",
|
"glass",
|
||||||
@ -26,40 +30,134 @@ local default_nodes = { -- Default stairs/slabs/panels/microblocks:
|
|||||||
"junglewood",
|
"junglewood",
|
||||||
"pine_tree",
|
"pine_tree",
|
||||||
"pine_wood",
|
"pine_wood",
|
||||||
"cherry_tree",
|
|
||||||
"cherry_plank",
|
|
||||||
"acacia_tree",
|
"acacia_tree",
|
||||||
"acacia_wood",
|
"acacia_wood",
|
||||||
|
"aspen_tree",
|
||||||
|
"aspen_wood",
|
||||||
"obsidian",
|
"obsidian",
|
||||||
|
"obsidian_block",
|
||||||
|
"obsidianbrick",
|
||||||
"obsidian_glass",
|
"obsidian_glass",
|
||||||
"stonebrick",
|
"stonebrick",
|
||||||
"desert_stonebrick",
|
"desert_stonebrick",
|
||||||
"sandstonebrick",
|
"sandstonebrick",
|
||||||
"obsidianbrick",
|
"silver_sandstone",
|
||||||
|
"silver_sandstone_brick",
|
||||||
|
"silver_sandstone_block",
|
||||||
|
"desert_sandstone",
|
||||||
|
"desert_sandstone_brick",
|
||||||
|
"desert_sandstone_block",
|
||||||
|
"sandstone_block",
|
||||||
|
"coral_skeleton",
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, name in pairs(default_nodes) do
|
for _, name in pairs(default_nodes) do
|
||||||
local nodename = "default:" .. name
|
local mod = "default"
|
||||||
local ndef = minetest.registered_nodes[nodename]
|
local nodename = mod .. ":" .. name
|
||||||
if ndef then
|
local ndef = table.copy(minetest.registered_nodes[nodename])
|
||||||
local drop
|
ndef.sunlight_propagates = true
|
||||||
|
|
||||||
|
-- Stone and desert_stone drop cobble and desert_cobble respectively.
|
||||||
if type(ndef.drop) == "string" then
|
if type(ndef.drop) == "string" then
|
||||||
drop = ndef.drop:split(" ")[1]:sub(9)
|
ndef.drop = ndef.drop:gsub(".+:", "")
|
||||||
end
|
end
|
||||||
|
|
||||||
local tiles = ndef.tiles
|
-- Use the primary tile for all sides of cut glasslike nodes and disregard paramtype2.
|
||||||
if #ndef.tiles > 1 and ndef.drawtype:find("glass") then
|
if #ndef.tiles > 1 and ndef.drawtype and ndef.drawtype:find("glass") then
|
||||||
tiles = { ndef.tiles[1] }
|
ndef.tiles = {ndef.tiles[1]}
|
||||||
|
ndef.paramtype2 = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
stairsplus:register_all("moreblocks", name, nodename, {
|
mod = "moreblocks"
|
||||||
description = ndef.description,
|
stairsplus:register_all(mod, name, nodename, ndef)
|
||||||
drop = drop,
|
minetest.register_alias_force("stairs:stair_" .. name, mod .. ":stair_" .. name)
|
||||||
groups = ndef.groups,
|
minetest.register_alias_force("stairs:stair_outer_" .. name, mod .. ":stair_" .. name .. "_outer")
|
||||||
sounds = ndef.sounds,
|
minetest.register_alias_force("stairs:stair_inner_" .. name, mod .. ":stair_" .. name .. "_inner")
|
||||||
tiles = tiles,
|
minetest.register_alias_force("stairs:slab_" .. name, mod .. ":slab_" .. name)
|
||||||
sunlight_propagates = true,
|
end
|
||||||
light_source = ndef.light_source
|
|
||||||
})
|
-- farming registrations
|
||||||
|
if minetest.get_modpath("farming") then
|
||||||
|
local farming_nodes = {"straw"}
|
||||||
|
for _, name in pairs(farming_nodes) do
|
||||||
|
local mod = "farming"
|
||||||
|
local nodename = mod .. ":" .. name
|
||||||
|
local ndef = table.copy(minetest.registered_nodes[nodename])
|
||||||
|
ndef.sunlight_propagates = true
|
||||||
|
|
||||||
|
mod = "moreblocks"
|
||||||
|
stairsplus:register_all(mod, name, nodename, ndef)
|
||||||
|
minetest.register_alias_force("stairs:stair_" .. name, mod .. ":stair_" .. name)
|
||||||
|
minetest.register_alias_force("stairs:stair_outer_" .. name, mod .. ":stair_" .. name .. "_outer")
|
||||||
|
minetest.register_alias_force("stairs:stair_inner_" .. name, mod .. ":stair_" .. name .. "_inner")
|
||||||
|
minetest.register_alias_force("stairs:slab_" .. name, mod .. ":slab_" .. name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- wool registrations
|
||||||
|
if minetest.get_modpath("wool") then
|
||||||
|
local dyes = {"white", "grey", "black", "red", "yellow", "green", "cyan",
|
||||||
|
"blue", "magenta", "orange", "violet", "brown", "pink",
|
||||||
|
"dark_grey", "dark_green"}
|
||||||
|
for _, name in pairs(dyes) do
|
||||||
|
local mod = "wool"
|
||||||
|
local nodename = mod .. ":" .. name
|
||||||
|
local ndef = table.copy(minetest.registered_nodes[nodename])
|
||||||
|
ndef.sunlight_propagates = true
|
||||||
|
|
||||||
|
-- Prevent dye+cut wool recipy from creating a full wool block.
|
||||||
|
ndef.groups.wool = nil
|
||||||
|
|
||||||
|
stairsplus:register_all(mod, name, nodename, ndef)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
-- basic_materials, keeping the original other-mod-oriented names
|
||||||
|
-- for backwards compatibility
|
||||||
|
|
||||||
|
if minetest.get_modpath("basic_materials") then
|
||||||
|
stairsplus:register_all("technic","concrete","basic_materials:concrete_block",{
|
||||||
|
description = "Concrete",
|
||||||
|
tiles = {"basic_materials_concrete_block.png",},
|
||||||
|
groups = {cracky=1, level=2, concrete=1},
|
||||||
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_alias("prefab:concrete_stair","technic:stair_concrete")
|
||||||
|
minetest.register_alias("prefab:concrete_slab","technic:slab_concrete")
|
||||||
|
|
||||||
|
stairsplus:register_all("gloopblocks", "cement", "basic_materials:cement_block", {
|
||||||
|
description = "Cement",
|
||||||
|
tiles = {"basic_materials_cement_block.png"},
|
||||||
|
groups = {cracky=2, not_in_creative_inventory=1},
|
||||||
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
sunlight_propagates = true,
|
||||||
|
})
|
||||||
|
|
||||||
|
stairsplus:register_all("technic", "brass_block", "basic_materials:brass_block", {
|
||||||
|
description="Brass Block",
|
||||||
|
groups={cracky=1, not_in_creative_inventory=1},
|
||||||
|
tiles={"basic_materials_brass_block.png"},
|
||||||
|
})
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Alias cuts of split_stone_tile_alt which was renamed checker_stone_tile.
|
||||||
|
stairsplus:register_alias_all("moreblocks", "split_stone_tile_alt", "moreblocks", "checker_stone_tile")
|
||||||
|
|
||||||
|
-- The following LBM is necessary because the name stair_split_stone_tile_alt
|
||||||
|
-- conflicts with another node and so the alias for that specific node gets
|
||||||
|
-- ignored.
|
||||||
|
minetest.register_lbm({
|
||||||
|
name = "moreblocks:fix_split_stone_tile_alt_name_collision",
|
||||||
|
nodenames = {"moreblocks:stair_split_stone_tile_alt"},
|
||||||
|
action = function(pos, node)
|
||||||
|
minetest.set_node(pos, {
|
||||||
|
name = "moreblocks:stair_checker_stone_tile",
|
||||||
|
param2 = minetest.get_node(pos).param2
|
||||||
|
|
||||||
|
})
|
||||||
|
minetest.log('action', "LBM replaced " .. node.name ..
|
||||||
|
" at " .. minetest.pos_to_string(pos))
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
205
stairsplus/slabs.lua
Executable file → Normal file
@ -1,7 +1,7 @@
|
|||||||
--[[
|
--[[
|
||||||
More Blocks: slab definitions
|
More Blocks: slab definitions
|
||||||
|
|
||||||
Copyright (c) 2011-2015 Calinou and contributors.
|
Copyright (c) 2011-2018 Hugo Locurcio and contributors.
|
||||||
Licensed under the zlib license. See LICENSE.md for more information.
|
Licensed under the zlib license. See LICENSE.md for more information.
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
@ -20,195 +20,26 @@ function register_slab(modname, subname, recipeitem, groups, images, description
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
function stairsplus:register_slab(modname, subname, recipeitem, fields)
|
function stairsplus:register_slab_alias(modname_old, subname_old, modname_new, subname_new)
|
||||||
local defs = {
|
local defs = table.copy(stairsplus.defs["slab"])
|
||||||
[""] = 8,
|
for alternate, def in pairs(defs) do
|
||||||
["_quarter"] = 4,
|
minetest.register_alias(modname_old .. ":slab_" .. subname_old .. alternate, modname_new .. ":slab_" .. subname_new .. alternate)
|
||||||
["_three_quarter"] = 12,
|
end
|
||||||
["_1"] = 1,
|
end
|
||||||
["_2"] = "_1",
|
|
||||||
["_14"] = "_three_quarter",
|
|
||||||
["_15"] = 15,
|
|
||||||
}
|
|
||||||
|
|
||||||
|
function stairsplus:register_slab_alias_force(modname_old, subname_old, modname_new, subname_new)
|
||||||
|
local defs = table.copy(stairsplus.defs["slab"])
|
||||||
|
for alternate, def in pairs(defs) do
|
||||||
|
minetest.register_alias_force(modname_old .. ":slab_" .. subname_old .. alternate, modname_new .. ":slab_" .. subname_new .. alternate)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function stairsplus:register_slab(modname, subname, recipeitem, fields)
|
||||||
|
local defs = table.copy(stairsplus.defs["slab"])
|
||||||
local desc_base = S("%s Slab"):format(fields.description)
|
local desc_base = S("%s Slab"):format(fields.description)
|
||||||
for alternate, num in pairs(defs) do
|
for alternate, shape in pairs(defs) do
|
||||||
if type(num) == type("moo") then
|
stairsplus.register_single("slab", alternate, shape, modname, subname, recipeitem, fields)
|
||||||
minetest.register_alias(modname .. ":slab_" .. subname .. alternate,
|
|
||||||
modname .. ":slab_" .. subname .. num)
|
|
||||||
else
|
|
||||||
local def = {
|
|
||||||
node_box = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {-0.5, -0.5, -0.5, 0.5, (num/16)-0.5, 0.5},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
for k, v in pairs(fields) do
|
|
||||||
def[k] = v
|
|
||||||
end
|
end
|
||||||
def.drawtype = "nodebox"
|
|
||||||
def.paramtype = "light"
|
|
||||||
def.paramtype2 = "facedir"
|
|
||||||
def.on_place = minetest.rotate_node
|
|
||||||
def.description = ("%s (%d/16)"):format(desc_base, num)
|
|
||||||
def.groups = stairsplus:prepare_groups(fields.groups)
|
|
||||||
if fields.drop then
|
|
||||||
def.drop = modname.. ":slab_" .. fields.drop .. alternate
|
|
||||||
end
|
|
||||||
minetest.register_node(":" .. modname .. ":slab_" .. subname .. alternate, def)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
minetest.register_alias("stairs:slab_" .. subname, modname .. ":slab_" .. subname)
|
|
||||||
|
|
||||||
circular_saw.known_nodes[recipeitem] = {modname, subname}
|
circular_saw.known_nodes[recipeitem] = {modname, subname}
|
||||||
|
|
||||||
-- Some saw-less recipes:
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = modname .. ":slab_" .. subname .. " 6",
|
|
||||||
recipe = {{recipeitem, recipeitem, recipeitem}},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = modname .. ":slab_" .. subname,
|
|
||||||
recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname},
|
|
||||||
})
|
|
||||||
|
|
||||||
-- uncomment this rule when conflict is no longer likely to happen
|
|
||||||
-- https://github.com/minetest/minetest/issues/2881
|
|
||||||
-- minetest.register_craft({
|
|
||||||
-- type = "shapeless",
|
|
||||||
-- output = modname .. ":slab_" .. subname,
|
|
||||||
-- recipe = {modname .. ":panel_" .. subname, modname .. ":panel_" .. subname},
|
|
||||||
-- })
|
|
||||||
|
|
||||||
-- then remove these two
|
|
||||||
minetest.register_craft({
|
|
||||||
output = modname .. ":slab_" .. subname,
|
|
||||||
recipe = {{modname .. ":panel_" .. subname, modname .. ":panel_" .. subname}},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = modname .. ":slab_" .. subname,
|
|
||||||
recipe = {
|
|
||||||
{modname .. ":panel_" .. subname},
|
|
||||||
{modname .. ":panel_" .. subname},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
------------------------------
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = recipeitem,
|
|
||||||
recipe = {modname .. ":slab_" .. subname, modname .. ":slab_" .. subname},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = recipeitem,
|
|
||||||
recipe = {modname .. ":slab_" .. subname .. "_quarter", modname .. ":slab_" .. subname .. "_quarter", modname .. ":slab_" .. subname .. "_quarter", modname .. ":slab_" .. subname .. "_quarter"},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = recipeitem,
|
|
||||||
recipe = {modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2"},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = recipeitem,
|
|
||||||
recipe = {modname .. ":slab_" .. subname .. "_three_quarter", modname .. ":slab_" .. subname .. "_quarter"},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = recipeitem,
|
|
||||||
recipe = {modname .. ":slab_" .. subname .. "_14", modname .. ":slab_" .. subname .. "_2"},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = recipeitem,
|
|
||||||
recipe = {modname .. ":slab_" .. subname .. "_15", modname .. ":slab_" .. subname .. "_1"},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = modname .. ":slab_" .. subname,
|
|
||||||
recipe = {modname .. ":slab_" .. subname .. "_quarter", modname .. ":slab_" .. subname .. "_quarter"},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = modname .. ":slab_" .. subname,
|
|
||||||
recipe = {modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2"},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = modname .. ":slab_" .. subname,
|
|
||||||
recipe = {modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1"},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = modname .. ":slab_" .. subname .. "_quarter",
|
|
||||||
recipe = {modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2"},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = modname .. ":slab_" .. subname .. "_quarter",
|
|
||||||
recipe = {modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1"},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = modname .. ":slab_" .. subname .. "_2",
|
|
||||||
recipe = {modname .. ":slab_" .. subname .. "_1", modname .. ":slab_" .. subname .. "_1"},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = modname .. ":slab_" .. subname .. "_three_quarter",
|
|
||||||
recipe = {modname .. ":slab_" .. subname, modname .. ":slab_" .. subname .. "_quarter"},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = modname .. ":slab_" .. subname .. "_three_quarter",
|
|
||||||
recipe = {modname .. ":slab_" .. subname .. "_quarter", modname .. ":slab_" .. subname .. "_quarter", modname .. ":slab_" .. subname .. "_quarter"},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = modname .. ":slab_" .. subname .. "_three_quarter",
|
|
||||||
recipe = {modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2"},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = modname .. ":slab_" .. subname .. "_14",
|
|
||||||
recipe = {modname .. ":slab_" .. subname .. "_three_quarter", modname .. ":slab_" .. subname .. "_2"},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = modname .. ":slab_" .. subname .. "_14",
|
|
||||||
recipe = {modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2", modname .. ":slab_" .. subname .. "_2"},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = modname .. ":slab_" .. subname .. "_15",
|
|
||||||
recipe = {modname .. ":slab_" .. subname .. "_14", modname .. ":slab_" .. subname .. "_1"},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = modname .. ":slab_" .. subname .. " 3",
|
|
||||||
recipe = {modname .. ":stair_" .. subname, modname .. ":stair_" .. subname},
|
|
||||||
})
|
|
||||||
end
|
end
|
||||||
|
335
stairsplus/slopes.lua
Executable file → Normal file
@ -1,115 +1,12 @@
|
|||||||
--[[
|
--[[
|
||||||
More Blocks: slope definitions
|
More Blocks: slope definitions
|
||||||
|
|
||||||
Copyright (c) 2011-2015 Calinou and contributors.
|
Copyright (c) 2011-2018 Hugo Locurcio and contributors.
|
||||||
Licensed under the zlib license. See LICENSE.md for more information.
|
Licensed under the zlib license. See LICENSE.md for more information.
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
local S = moreblocks.intllib
|
local S = moreblocks.intllib
|
||||||
|
|
||||||
local box_slope = {
|
|
||||||
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 box_slope_half = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {
|
|
||||||
{-0.5, -0.5, -0.5, 0.5, -0.375, 0.5},
|
|
||||||
{-0.5, -0.375, -0.25, 0.5, -0.25, 0.5},
|
|
||||||
{-0.5, -0.25, 0, 0.5, -0.125, 0.5},
|
|
||||||
{-0.5, -0.125, 0.25, 0.5, 0, 0.5},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
local box_slope_half_raised = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {
|
|
||||||
{-0.5, -0.5, -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 box_slope_inner = {
|
|
||||||
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 box_slope_inner_half = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {
|
|
||||||
{-0.5, -0.5, -0.5, 0.5, -0.375, 0.5},
|
|
||||||
{-0.5, -0.375, -0.25, 0.5, -0.25, 0.5},
|
|
||||||
{-0.5, -0.375, -0.5, 0.25, -0.25, 0.5},
|
|
||||||
{-0.5, -0.25, -0.5, 0, -0.125, 0.5},
|
|
||||||
{-0.5, -0.25, 0, 0.5, -0.125, 0.5},
|
|
||||||
{-0.5, -0.125, 0.25, 0.5, 0, 0.5},
|
|
||||||
{-0.5, -0.125, -0.5, -0.25, 0, 0.5},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
local box_slope_inner_half_raised = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {
|
|
||||||
{-0.5, -0.5, -0.5, 0.5, 0.125, 0.5},
|
|
||||||
{-0.5, 0.125, -0.25, 0.5, 0.25, 0.5},
|
|
||||||
{-0.5, 0.125, -0.5, 0.25, 0.25, 0.5},
|
|
||||||
{-0.5, 0.25, -0.5, 0, 0.375, 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},
|
|
||||||
{-0.5, 0.375, -0.5, -0.25, 0.5, 0.5},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
--==============================================================
|
|
||||||
|
|
||||||
local box_slope_outer = {
|
|
||||||
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 box_slope_outer_half = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {
|
|
||||||
{-0.5, -0.5, -0.5, 0.5, -0.375, 0.5},
|
|
||||||
{-0.5, -0.375, -0.25, 0.25, -0.25, 0.5},
|
|
||||||
{-0.5, -0.25, 0, 0, -0.125, 0.5},
|
|
||||||
{-0.5, -0.125, 0.25, -0.25, 0, 0.5}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
local box_slope_outer_half_raised = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {
|
|
||||||
{-0.5, -0.5, -0.5, 0.5, 0.125, 0.5},
|
|
||||||
{-0.5, 0.125, -0.25, 0.25, 0.25, 0.5},
|
|
||||||
{-0.5, 0.25, 0, 0, 0.375, 0.5},
|
|
||||||
{-0.5, 0.375, 0.25, -0.25, 0.5, 0.5}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
-- Node will be called <modname>:slope_<subname>
|
-- Node will be called <modname>:slope_<subname>
|
||||||
|
|
||||||
function register_slope(modname, subname, recipeitem, groups, images, description, drop, light)
|
function register_slope(modname, subname, recipeitem, groups, images, description, drop, light)
|
||||||
@ -123,225 +20,25 @@ function register_slope(modname, subname, recipeitem, groups, images, descriptio
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
function stairsplus:register_slope(modname, subname, recipeitem, fields)
|
function stairsplus:register_slope_alias(modname_old, subname_old, modname_new, subname_new)
|
||||||
local defs = {
|
local defs = table.copy(stairsplus.defs["slope"])
|
||||||
[""] = {
|
|
||||||
mesh = "moreblocks_slope.obj",
|
|
||||||
collision_box = box_slope,
|
|
||||||
selection_box = box_slope,
|
|
||||||
|
|
||||||
},
|
|
||||||
["_half"] = {
|
|
||||||
mesh = "moreblocks_slope_half.obj",
|
|
||||||
collision_box = box_slope_half,
|
|
||||||
selection_box = box_slope_half,
|
|
||||||
},
|
|
||||||
["_half_raised"] = {
|
|
||||||
mesh = "moreblocks_slope_half_raised.obj",
|
|
||||||
collision_box = box_slope_half_raised,
|
|
||||||
selection_box = box_slope_half_raised,
|
|
||||||
},
|
|
||||||
|
|
||||||
--==============================================================
|
|
||||||
|
|
||||||
["_inner"] = {
|
|
||||||
mesh = "moreblocks_slope_inner.obj",
|
|
||||||
collision_box = box_slope_inner,
|
|
||||||
selection_box = box_slope_inner,
|
|
||||||
},
|
|
||||||
["_inner_half"] = {
|
|
||||||
mesh = "moreblocks_slope_inner_half.obj",
|
|
||||||
collision_box = box_slope_inner_half,
|
|
||||||
selection_box = box_slope_inner_half,
|
|
||||||
},
|
|
||||||
["_inner_half_raised"] = {
|
|
||||||
mesh = "moreblocks_slope_inner_half_raised.obj",
|
|
||||||
collision_box = box_slope_inner_half_raised,
|
|
||||||
selection_box = box_slope_inner_half_raised,
|
|
||||||
},
|
|
||||||
|
|
||||||
--==============================================================
|
|
||||||
|
|
||||||
["_inner_cut"] = {
|
|
||||||
mesh = "moreblocks_slope_inner_cut.obj",
|
|
||||||
collision_box = box_slope_inner,
|
|
||||||
selection_box = box_slope_inner,
|
|
||||||
},
|
|
||||||
["_inner_cut_half"] = {
|
|
||||||
mesh = "moreblocks_slope_inner_cut_half.obj",
|
|
||||||
collision_box = box_slope_inner_half,
|
|
||||||
selection_box = box_slope_inner_half,
|
|
||||||
},
|
|
||||||
["_inner_cut_half_raised"] = {
|
|
||||||
mesh = "moreblocks_slope_inner_cut_half_raised.obj",
|
|
||||||
collision_box = box_slope_inner_half_raised,
|
|
||||||
selection_box = box_slope_inner_half_raised,
|
|
||||||
},
|
|
||||||
|
|
||||||
--==============================================================
|
|
||||||
|
|
||||||
["_outer"] = {
|
|
||||||
mesh = "moreblocks_slope_outer.obj",
|
|
||||||
collision_box = box_slope_outer,
|
|
||||||
selection_box = box_slope_outer,
|
|
||||||
},
|
|
||||||
["_outer_half"] = {
|
|
||||||
mesh = "moreblocks_slope_outer_half.obj",
|
|
||||||
collision_box = box_slope_outer_half,
|
|
||||||
selection_box = box_slope_outer_half,
|
|
||||||
},
|
|
||||||
["_outer_half_raised"] = {
|
|
||||||
mesh = "moreblocks_slope_outer_half_raised.obj",
|
|
||||||
collision_box = box_slope_outer_half_raised,
|
|
||||||
selection_box = box_slope_outer_half_raised,
|
|
||||||
},
|
|
||||||
|
|
||||||
--==============================================================
|
|
||||||
|
|
||||||
["_outer_cut"] = {
|
|
||||||
mesh = "moreblocks_slope_outer_cut.obj",
|
|
||||||
collision_box = box_slope_outer,
|
|
||||||
selection_box = box_slope_outer,
|
|
||||||
},
|
|
||||||
["_outer_cut_half"] = {
|
|
||||||
mesh = "moreblocks_slope_outer_cut_half.obj",
|
|
||||||
collision_box = box_slope_outer_half,
|
|
||||||
selection_box = box_slope_outer_half,
|
|
||||||
},
|
|
||||||
["_outer_cut_half_raised"] = {
|
|
||||||
mesh = "moreblocks_slope_outer_cut_half_raised.obj",
|
|
||||||
collision_box = box_slope_outer_half_raised,
|
|
||||||
selection_box = box_slope_outer_half_raised,
|
|
||||||
},
|
|
||||||
["_cut"] = {
|
|
||||||
mesh = "moreblocks_slope_cut.obj",
|
|
||||||
collision_box = box_slope_outer,
|
|
||||||
selection_box = box_slope_outer,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
local desc = S("%s Slope"):format(fields.description)
|
|
||||||
for alternate, def in pairs(defs) do
|
for alternate, def in pairs(defs) do
|
||||||
for k, v in pairs(fields) do
|
minetest.register_alias(modname_old .. ":slope_" .. subname_old .. alternate, modname_new .. ":slope_" .. subname_new .. alternate)
|
||||||
def[k] = v
|
|
||||||
end
|
end
|
||||||
def.drawtype = "mesh"
|
end
|
||||||
def.paramtype = "light"
|
|
||||||
def.paramtype2 = "facedir"
|
function stairsplus:register_slope_alias_force(modname_old, subname_old, modname_new, subname_new)
|
||||||
def.on_place = minetest.rotate_node
|
local defs = table.copy(stairsplus.defs["slope"])
|
||||||
def.description = desc
|
for alternate, def in pairs(defs) do
|
||||||
def.groups = stairsplus:prepare_groups(fields.groups)
|
minetest.register_alias_force(modname_old .. ":slope_" .. subname_old .. alternate, modname_new .. ":slope_" .. subname_new .. alternate)
|
||||||
if fields.drop then
|
|
||||||
def.drop = modname.. ":slope_" ..fields.drop..alternate
|
|
||||||
end
|
end
|
||||||
minetest.register_node(":" ..modname.. ":slope_" ..subname..alternate, def)
|
end
|
||||||
|
|
||||||
|
function stairsplus:register_slope(modname, subname, recipeitem, fields)
|
||||||
|
local defs = table.copy(stairsplus.defs["slope"])
|
||||||
|
for alternate, def in pairs(defs) do
|
||||||
|
stairsplus.register_single("slope", alternate, def, modname, subname, recipeitem, fields)
|
||||||
end
|
end
|
||||||
|
|
||||||
circular_saw.known_nodes[recipeitem] = {modname, subname}
|
circular_saw.known_nodes[recipeitem] = {modname, subname}
|
||||||
|
|
||||||
-- Some saw-less recipes:
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = recipeitem,
|
|
||||||
recipe = {modname .. ":slope_" .. subname, modname .. ":slope_" .. subname},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = recipeitem,
|
|
||||||
recipe = {modname .. ":slope_" .. subname .. "_half", modname .. ":slope_" .. subname .. "_half_raised"},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = recipeitem,
|
|
||||||
recipe = {modname .. ":slope_" .. subname .. "_half", modname .. ":slope_" .. subname .. "_half",
|
|
||||||
modname .. ":slope_" .. subname .. "_half", modname .. ":slope_" .. subname .. "_half"},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = recipeitem,
|
|
||||||
recipe = {modname .. ":slope_" .. subname .. "_outer", modname .. ":slope_" .. subname .. "_inner"},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = recipeitem,
|
|
||||||
recipe = {modname .. ":slope_" .. subname .. "_outer_half", modname .. ":slope_" .. subname .. "_inner_half_raised"},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = recipeitem,
|
|
||||||
recipe = {modname .. ":slope_" .. subname .. "_outer_half_raised", modname .. ":slope_" .. subname .. "_inner_half"},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = recipeitem,
|
|
||||||
recipe = {modname .. ":slope_" .. subname .. "_outer_cut", modname .. ":slope_" .. subname .. "_inner_cut"},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = recipeitem,
|
|
||||||
recipe = {modname .. ":slope_" .. subname .. "_outer_cut_half", modname .. ":slope_" .. subname .. "_inner_cut_half_raised"},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = recipeitem,
|
|
||||||
recipe = {modname .. ":slope_" .. subname .. "_cut", modname .. ":slope_" .. subname .. "_cut"},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = modname .. ":slab_" .. subname,
|
|
||||||
recipe = {modname .. ":slope_" .. subname .. "_half", modname .. ":slope_" .. subname .. "_half"},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = modname .. ":slab_" .. subname,
|
|
||||||
recipe = {modname .. ":slope_" .. subname .. "_outer_half", modname .. ":slope_" .. subname .. "_inner_half"},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = modname .. ":slab_" .. subname,
|
|
||||||
recipe = {modname .. ":slope_" .. subname .. "_outer_cut_half", modname .. ":slope_" .. subname .. "_inner_cut_half"},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = modname .. ":slope_" .. subname .. "_half_raised",
|
|
||||||
recipe = {modname .. ":slope_" .. subname .. "_half", modname .. ":slope_" .. subname .. "_half",
|
|
||||||
modname .. ":slope_" .. subname .. "_half"},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = modname .. ":slope_" .. subname .. "_half_raised",
|
|
||||||
recipe = {modname .. ":slab_" .. subname, modname .. ":slope_" .. subname .. "_half"},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = modname .. ":slope_" .. subname .. "_inner_half_raised",
|
|
||||||
recipe = {modname .. ":slab_" .. subname, modname .. ":slope_" .. subname .. "_inner_half"},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = modname .. ":slope_" .. subname .. "_outer_half_raised",
|
|
||||||
recipe = {modname .. ":slab_" .. subname, modname .. ":slope_" .. subname .. "_outer_half"},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = modname .. ":slope_" .. subname .. "_inner_cut_half_raised",
|
|
||||||
recipe = {modname .. ":slab_" .. subname, modname .. ":slope_" .. subname .. "_inner_cut_half"},
|
|
||||||
})
|
|
||||||
end
|
end
|
||||||
|
209
stairsplus/stairs.lua
Executable file → Normal file
@ -1,7 +1,7 @@
|
|||||||
--[[
|
--[[
|
||||||
More Blocks: stair definitions
|
More Blocks: stair definitions
|
||||||
|
|
||||||
Copyright (c) 2011-2015 Calinou and contributors.
|
Copyright (c) 2011-2018 Hugo Locurcio and contributors.
|
||||||
Licensed under the zlib license. See LICENSE.md for more information.
|
Licensed under the zlib license. See LICENSE.md for more information.
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
@ -20,202 +20,25 @@ function register_stair(modname, subname, recipeitem, groups, images, descriptio
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
function stairsplus:register_stair(modname, subname, recipeitem, fields)
|
function stairsplus:register_stair_alias(modname_old, subname_old, modname_new, subname_new)
|
||||||
local defs = {
|
local defs = table.copy(stairsplus.defs["stair"])
|
||||||
[""] = {
|
|
||||||
node_box = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {
|
|
||||||
{-0.5, -0.5, -0.5, 0.5, 0, 0.5},
|
|
||||||
{-0.5, 0, 0, 0.5, 0.5, 0.5},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["_half"] = {
|
|
||||||
node_box = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {
|
|
||||||
{-0.5, -0.5, -0.5, 0, 0, 0.5},
|
|
||||||
{-0.5, 0, 0, 0, 0.5, 0.5},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["_right_half" ]= {
|
|
||||||
node_box = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {
|
|
||||||
{0, -0.5, -0.5, 0.5, 0, 0.5},
|
|
||||||
{0, 0, 0, 0.5, 0.5, 0.5},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["_inner"] = {
|
|
||||||
node_box = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {
|
|
||||||
{-0.5, -0.5, -0.5, 0.5, 0, 0.5},
|
|
||||||
{-0.5, 0, 0, 0.5, 0.5, 0.5},
|
|
||||||
{-0.5, 0, -0.5, 0, 0.5, 0},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["_outer"] = {
|
|
||||||
node_box = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {
|
|
||||||
{-0.5, -0.5, -0.5, 0.5, 0, 0.5},
|
|
||||||
{-0.5, 0, 0, 0, 0.5, 0.5},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["_alt"] = {
|
|
||||||
node_box = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {
|
|
||||||
{-0.5, -0.5, -0.5, 0.5, 0, 0},
|
|
||||||
{-0.5, 0, 0, 0.5, 0.5, 0.5},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["_alt_1"] = {
|
|
||||||
node_box = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {
|
|
||||||
{-0.5, -0.0625, -0.5, 0.5, 0, 0},
|
|
||||||
{-0.5, 0.4375, 0, 0.5, 0.5, 0.5},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["_alt_2"] = {legacy = "_alt_1"},
|
|
||||||
["_alt_4"] = {
|
|
||||||
node_box = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {
|
|
||||||
{-0.5, -0.25, -0.5, 0.5, 0, 0},
|
|
||||||
{-0.5, 0.25, 0, 0.5, 0.5, 0.5},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
local desc = S("%s Stairs"):format(fields.description)
|
|
||||||
for alternate, def in pairs(defs) do
|
for alternate, def in pairs(defs) do
|
||||||
if def.legacy then
|
minetest.register_alias(modname_old .. ":stair_" .. subname_old .. alternate, modname_new .. ":stair_" .. subname_new .. alternate)
|
||||||
minetest.register_alias(modname .. ":stair_" .. subname .. alternate,
|
|
||||||
modname .. ":stair_" .. subname .. def.legacy)
|
|
||||||
else
|
|
||||||
for k, v in pairs(fields) do
|
|
||||||
def[k] = v
|
|
||||||
end
|
end
|
||||||
def.drawtype = "nodebox"
|
end
|
||||||
def.paramtype = "light"
|
|
||||||
def.paramtype2 = "facedir"
|
function stairsplus:register_stair_alias_force(modname_old, subname_old, modname_new, subname_new)
|
||||||
def.on_place = minetest.rotate_node
|
local defs = table.copy(stairsplus.defs["stair"])
|
||||||
def.description = desc
|
for alternate, def in pairs(defs) do
|
||||||
def.groups = stairsplus:prepare_groups(fields.groups)
|
minetest.register_alias_force(modname_old .. ":stair_" .. subname_old .. alternate, modname_new .. ":stair_" .. subname_new .. alternate)
|
||||||
if fields.drop then
|
|
||||||
def.drop = modname .. ":stair_" .. fields.drop .. alternate
|
|
||||||
end
|
end
|
||||||
minetest.register_node(":" .. modname .. ":stair_" .. subname .. alternate, def)
|
end
|
||||||
|
|
||||||
|
function stairsplus:register_stair(modname, subname, recipeitem, fields)
|
||||||
|
local defs = table.copy(stairsplus.defs["stair"])
|
||||||
|
for alternate, def in pairs(defs) do
|
||||||
|
stairsplus.register_single("stair", alternate, def, modname, subname, recipeitem, fields)
|
||||||
end
|
end
|
||||||
end
|
|
||||||
minetest.register_alias("stairs:stair_" .. subname, modname .. ":stair_" .. subname)
|
|
||||||
|
|
||||||
circular_saw.known_nodes[recipeitem] = {modname, subname}
|
circular_saw.known_nodes[recipeitem] = {modname, subname}
|
||||||
|
|
||||||
-- Some saw-less recipes:
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = modname .. ":stair_" .. subname .. " 6",
|
|
||||||
recipe = {
|
|
||||||
{recipeitem, "", ""},
|
|
||||||
{recipeitem, recipeitem, ""},
|
|
||||||
{recipeitem, recipeitem, recipeitem},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = modname .. ":stair_" .. subname .. " 6",
|
|
||||||
recipe = {
|
|
||||||
{"", "", recipeitem},
|
|
||||||
{"", recipeitem, recipeitem},
|
|
||||||
{recipeitem, recipeitem, recipeitem},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = modname .. ":stair_" .. subname,
|
|
||||||
recipe = {modname .. ":panel_" .. subname, modname .. ":slab_" .. subname},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = modname .. ":stair_" .. subname,
|
|
||||||
recipe = {modname .. ":panel_" .. subname, modname .. ":panel_" .. subname, modname .. ":panel_" .. subname},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = modname .. ":stair_" .. subname .. "_outer",
|
|
||||||
recipe = {modname .. ":micro_" .. subname, modname .. ":slab_" .. subname},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = modname .. ":stair_" .. subname .. "_half",
|
|
||||||
recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = modname .. ":stair_" .. subname .. "_half",
|
|
||||||
recipe = {modname .. ":panel_" .. subname, modname .. ":micro_" .. subname},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = modname .. ":stair_" .. subname .. "_right_half",
|
|
||||||
recipe = {modname .. ":stair_" .. subname .. "_half"},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = modname .. ":stair_" .. subname,
|
|
||||||
recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = modname .. ":stair_" .. subname .. "_inner",
|
|
||||||
recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = modname .. ":stair_" .. subname .. "_outer",
|
|
||||||
recipe = {modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname, modname .. ":micro_" .. subname},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "shapeless",
|
|
||||||
output = modname .. ":stair_" .. subname,
|
|
||||||
recipe = {modname .. ":panel_" .. subname, modname .. ":panel_" .. subname, modname .. ":panel_" .. subname},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({ -- See mirrored variation of the recipe below.
|
|
||||||
output = modname .. ":stair_" .. subname .. "_alt",
|
|
||||||
recipe = {
|
|
||||||
{modname .. ":panel_" .. subname, ""},
|
|
||||||
{"" , modname .. ":panel_" .. subname},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({ -- Mirrored variation of the recipe above.
|
|
||||||
output = modname .. ":stair_" .. subname .. "_alt",
|
|
||||||
recipe = {
|
|
||||||
{"" , modname .. ":panel_" .. subname},
|
|
||||||
{modname .. ":panel_" .. subname, ""},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end
|
end
|
||||||
|
Before Width: | Height: | Size: 68 B |
0
textures/moreblocks_cactus_brick.png
Executable file → Normal file
Before Width: | Height: | Size: 718 B After Width: | Height: | Size: 718 B |
0
textures/moreblocks_cactus_checker.png
Executable file → Normal file
Before Width: | Height: | Size: 693 B After Width: | Height: | Size: 693 B |
0
textures/moreblocks_split_stone_tile_alt.png → textures/moreblocks_checker_stone_tile.png
Executable file → Normal file
Before Width: | Height: | Size: 306 B After Width: | Height: | Size: 306 B |
0
textures/moreblocks_circle_stone_bricks.png
Executable file → Normal file
Before Width: | Height: | Size: 448 B After Width: | Height: | Size: 448 B |
0
textures/moreblocks_circular_saw_bottom.png
Executable file → Normal file
Before Width: | Height: | Size: 579 B After Width: | Height: | Size: 579 B |
0
textures/moreblocks_circular_saw_side.png
Executable file → Normal file
Before Width: | Height: | Size: 478 B After Width: | Height: | Size: 478 B |
0
textures/moreblocks_circular_saw_top.png
Executable file → Normal file
Before Width: | Height: | Size: 441 B After Width: | Height: | Size: 441 B |
BIN
textures/moreblocks_clean_glass.png
Executable file → Normal file
Before Width: | Height: | Size: 170 B After Width: | Height: | Size: 177 B |
0
textures/moreblocks_clean_glass_detail.png
Executable file → Normal file
Before Width: | Height: | Size: 96 B After Width: | Height: | Size: 96 B |
0
textures/moreblocks_coal_checker.png
Executable file → Normal file
Before Width: | Height: | Size: 744 B After Width: | Height: | Size: 744 B |
Before Width: | Height: | Size: 155 B |
Before Width: | Height: | Size: 159 B |
0
textures/moreblocks_coal_glass_stairsplus.png
Executable file → Normal file
Before Width: | Height: | Size: 166 B After Width: | Height: | Size: 166 B |
0
textures/moreblocks_coal_stone.png
Executable file → Normal file
Before Width: | Height: | Size: 229 B After Width: | Height: | Size: 229 B |
0
textures/moreblocks_coal_stone_bricks.png
Executable file → Normal file
Before Width: | Height: | Size: 484 B After Width: | Height: | Size: 484 B |
0
textures/moreblocks_cobble_compressed.png
Executable file → Normal file
Before Width: | Height: | Size: 356 B After Width: | Height: | Size: 356 B |
BIN
textures/moreblocks_copperpatina.png
Normal file
After Width: | Height: | Size: 325 B |
BIN
textures/moreblocks_dirt_compressed.png
Normal file
After Width: | Height: | Size: 318 B |
Before Width: | Height: | Size: 210 B |
BIN
textures/moreblocks_empty_shelf.png
Normal file
After Width: | Height: | Size: 219 B |
Before Width: | Height: | Size: 187 B |
Before Width: | Height: | Size: 478 B |
Before Width: | Height: | Size: 204 B |
BIN
textures/moreblocks_glass_stairsplus.png
Executable file → Normal file
Before Width: | Height: | Size: 213 B After Width: | Height: | Size: 215 B |
Before Width: | Height: | Size: 157 B |
Before Width: | Height: | Size: 161 B |
0
textures/moreblocks_glow_glass_stairsplus.png
Executable file → Normal file
Before Width: | Height: | Size: 169 B After Width: | Height: | Size: 169 B |
0
textures/moreblocks_grey_bricks.png
Executable file → Normal file
Before Width: | Height: | Size: 725 B After Width: | Height: | Size: 725 B |
0
textures/moreblocks_iron_checker.png
Executable file → Normal file
Before Width: | Height: | Size: 850 B After Width: | Height: | Size: 850 B |
Before Width: | Height: | Size: 158 B |
Before Width: | Height: | Size: 163 B |
0
textures/moreblocks_iron_glass_stairsplus.png
Executable file → Normal file
Before Width: | Height: | Size: 169 B After Width: | Height: | Size: 169 B |
0
textures/moreblocks_iron_stone.png
Executable file → Normal file
Before Width: | Height: | Size: 230 B After Width: | Height: | Size: 230 B |
0
textures/moreblocks_iron_stone_bricks.png
Executable file → Normal file
Before Width: | Height: | Size: 485 B After Width: | Height: | Size: 485 B |
BIN
textures/moreblocks_junglestick.png
Executable file → Normal file
Before Width: | Height: | Size: 115 B After Width: | Height: | Size: 122 B |
0
textures/moreblocks_obsidian_glass_stairsplus.png
Executable file → Normal file
Before Width: | Height: | Size: 144 B After Width: | Height: | Size: 144 B |
0
textures/moreblocks_plankstone.png
Executable file → Normal file
Before Width: | Height: | Size: 335 B After Width: | Height: | Size: 335 B |
0
textures/moreblocks_plankstone_2.png
Executable file → Normal file
Before Width: | Height: | Size: 354 B After Width: | Height: | Size: 354 B |
0
textures/moreblocks_rope.png
Executable file → Normal file
Before Width: | Height: | Size: 356 B After Width: | Height: | Size: 356 B |
0
textures/moreblocks_split_stone_tile.png
Executable file → Normal file
Before Width: | Height: | Size: 273 B After Width: | Height: | Size: 273 B |
0
textures/moreblocks_split_stone_tile_top.png
Executable file → Normal file
Before Width: | Height: | Size: 279 B After Width: | Height: | Size: 279 B |
0
textures/moreblocks_stone_tile.png
Executable file → Normal file
Before Width: | Height: | Size: 271 B After Width: | Height: | Size: 271 B |
Before Width: | Height: | Size: 154 B |
Before Width: | Height: | Size: 156 B |
BIN
textures/moreblocks_super_glow_glass_stairsplus.png
Executable file → Normal file
Before Width: | Height: | Size: 168 B After Width: | Height: | Size: 171 B |
0
textures/moreblocks_sweeper.png
Executable file → Normal file
Before Width: | Height: | Size: 310 B After Width: | Height: | Size: 310 B |
0
textures/moreblocks_tar.png
Executable file → Normal file
Before Width: | Height: | Size: 270 B After Width: | Height: | Size: 270 B |
BIN
textures/moreblocks_trap_box.png
Normal file
After Width: | Height: | Size: 135 B |
BIN
textures/moreblocks_trap_box_glass.png
Normal file
After Width: | Height: | Size: 160 B |
Before Width: | Height: | Size: 164 B |