Commit Graph

85 Commits

Author SHA1 Message Date
codexp
8e8078e74b
Refactor common.lua to simplify code and make locale strings searchable 2019-03-20 21:30:35 +01:00
Hugo Locurcio
e622c692e1
Make some Stairs+ functions local and add Luacheck ignores
Those functions are used in various places in the mod,
so they aren't unused.
2019-03-09 01:58:51 +01:00
Hugo Locurcio
76a00a5365
Update intllib support to avoid using deprecated functions 2019-03-03 20:02:40 +01:00
Hugo Locurcio
0e885283c0
Update copyright statements to 2019 2019-02-25 12:13:55 +01:00
Hugo Locurcio
b0cb1d325a
Fix Stairs+ node rotation on placement
This closes #123.
2019-02-25 10:47:51 +01:00
JDiaz
b6f6bc8c71 Activate translation for stairplus descriptions 2019-02-25 10:30:24 +01:00
Hugo Locurcio
95155a3bc6
Add pre-commit hooks
See https://pre-commit.com/ for more information.
2019-02-21 23:10:58 +01:00
Hugo Locurcio
1649f91156
Tweak the Luacheck configuration file and fix many warnings 2019-02-20 23:39:01 +01:00
Hugo Locurcio
26f59baba0
Update copyright year range for 2018 2018-11-24 17:36:04 +01:00
Vanessa Dannenberg
ca45478761 brass block stairs/slabs/etc (#135) 2018-11-24 17:27:16 +01:00
Vanessa Dannenberg
1482a7810f make stairs from cement too. 2018-11-24 17:06:16 +01:00
Vanessa Dannenberg
01ec8290f6 basic_materials stairs/slopes/et. al
(keeping original technic item names)
2018-11-24 17:06:16 +01:00
fozolo
846214993f Add aliases for MTG corner stairs (#117) 2018-07-19 19:24:30 +02:00
Thomas--S
8ff1cb598f Update documentation 2018-03-26 19:09:44 +02:00
Thomas--S
7d701da5b9 Move recipe definitions to a separate file and function. 2018-03-26 19:09:44 +02:00
Thomas--S
d5edcb2a10 Add a register_custom_subset function 2018-03-26 19:09:44 +02:00
Thomas--S
c711946453 Move node registrations to a separate file 2018-03-26 19:09:44 +02:00
Thomas--S
4d2a7ab6fe Move definitions to a separate file
Make definitions table global
Replace stairsplus.copytable() function with table.copy()
2018-03-26 19:09:44 +02:00
Foz
f6e0db21b2 Finish aliasing split_stone_tile_alt
to checker_stone_tile.
2017-12-31 12:51:25 -08:00
Foz
2b76b077f0 Drop paramtype2 from glass before registering.
Fix minetest-mods/moreblocks#98

Caused by cf1b054a99, 6a996eb86a and minetest/minetest_game@2f46103ff8.

For some unknown reason `default:glass` and `obsidian:glass` have `paramtype2 = "glasslikeliquidlevel"`.  After the refactor of `stairsplus/registrations.lua`, all of the source node's defs are passed along to `stairsplus:register_all()`.  Prior to cf1b054a99 the paramtype2 setting was discarded.
2017-12-28 20:00:14 -08:00
Foz
d91da8b442 Fix slab descriptions.
A regression caused the description of slabs to revert to the source block's description.  This commit fixes the regression and adds descriptions which were missing for the recently added slabs (two_sides, three_sides, and three_sides_u).

Closes minetest-mods/moreblocks#96
2017-12-28 19:59:38 -08:00
DS-Minetest
4c767ad7ff add stair and slab groups 2017-12-28 19:54:45 -08:00
Foz
780df105ea Stop assuming stair and slab aliases are required.
Only make aliases automatically for stairs and slabs from MTG stairs mod. Let other mods worry about aliasing themselves.  Fixes minetest-mods/moreblocks#45
2017-12-28 18:00:07 -08:00
John Cole
6a996eb86a Refactor stairsplus registrations (#93)
* Refactor stairsplus registrations

 - Reorganize and remove redundant code.
 - Remove sunlight_propagates=true and default to paramtype="light".
    This causes cut blocks to have a shadow but not completely block light.
 - Fix several bugs (#90, #91, #92).

* Readd sunlight_propagates=true for compatibility.
2017-12-19 23:42:45 +01:00
AntumDeluge
7347b05e3e Replace deprecated methods:
- 'setting_get' with 'settings:get'
- 'setting_getbool' with 'settings:get_bool'
2017-08-12 14:08:24 -07:00
lemon-melon
fc3c5f4738 Support tin and silver/sandstone blocks (#79)
Allows tin blocks and silver/desert sandstone blocks to be used in the circular saw.
2017-08-12 14:07:33 -07:00
Fixer
fbfb079f54 Make wool sawable (#72)
* Make wool sawable

Based on my simple research https://github.com/minetest-mods/moreblocks/issues/71 enabling wool should not cause major slowdowns.

Code pasted from gloopblocks

* List wool as optional dependancy

* Added check for wool dependancy

* Make life easier for translators
2017-03-14 22:13:16 -07:00
Vanessa Ezekowitz
e9c6cef4dd build a list of all of the stairsplus slab/stair/etc... shapes (#70)
for other mods to reference.
2017-02-23 17:12:36 +01:00
Vanessa Ezekowitz
f4b68fbfd7 add some 0.4.15 default nodes to table saw, including farming:straw (#69)
* add some 0.4.15 default nodes to table saw
including farming:straw

* fix hard-coded drop
2017-02-23 17:08:22 +01:00
Vanessa Ezekowitz
0569ff9683 add a few new shapes to the table saw: (#67)
* 1/16 slab, L-shaped (two sides)
* 1/16 slab, corner-shaped (three sides)
* 1/16 slab, U-shaped (three sides)
2017-02-21 22:58:40 +01:00
Hugo Locurcio
831bbb2b27 Prepare for v1.0.0 release 2017-02-19 13:35:16 +01:00
Vanessa Ezekowitz
cf1b054a99 allow passing paramtype2 to the nodes being created (#65) 2017-01-26 22:11:45 +01:00
Auke Kok
81f77ae97e Prevent creating a global 2016-12-31 12:33:09 -08:00
Auke Kok
5500c9906c Run cleanfile on all files, fixing whitespace issues. 2016-12-31 12:33:09 -08:00
Thomas--S
7f06db2200 Add Alias Functions (#54)
* register_alias
* register_alias_force
2016-10-03 12:14:34 +02:00
John Cole
26a5273dd6 Fix drop logic. (#49)
The code

		not type(fields.drop) == "table"

was always false because it compares a boolean with a string,

		not (type(fields.drop) == "table")

is the intended logic.
2016-07-12 12:49:43 -07:00
Thomas--S
db93277a98 Add support for the alternative drop syntax (#46)
Until now, when the moreblocks node for a node with the alternative drop syntax were registered, the game crashed.
2016-06-17 12:15:02 -07:00
Luka Vandervelden
30fba0ea40 Aspen tree registration in stairsplus. (#44) 2016-06-10 10:47:18 -07:00
Auke Kok
f92a938d75 Prevent glass slabs from becoming transparent on sides/bottom.
For all glasslike drawtype nodes, the tiles contain up to 2
textures. The second texture is for "connected" glass, but that
likely is a transparent texture. If we use the `tiles` def without
modification, we will make all those slabs/slopes transparent on all
sides except the top.

To fix, we remove the tiles[2] from the tiledef in case the node is
a glasslike drawtype.
2016-02-19 13:35:36 -08:00
Auke Kok
cdc50bc069 Fix warning
Fixes #25
2016-01-26 12:52:55 -08:00
Pierre-Yves Rollo
54a7102291 Make stairplus:register_* functions work without using register_all. 2015-11-01 17:54:29 +01:00
Calinou
f02a871c30 Add acacia tree and wood, modify pine tree and wood names 2015-08-24 19:37:20 +02:00
Calinou
4cde2fd66b Merge pull request #17 from beyondlimits/master
Additional crafting recipes for slabs
2015-07-16 11:17:12 +02:00
jp
896af95703 Save light_source in saw's output for glowing default nodes 2015-07-05 10:15:25 +02:00
Marcin
4c5e408126 Additional crafting recipes for slabs 2015-07-04 18:44:42 +02:00
Calinou
4799368e5b Merge pull request #16 from beyondlimits/master
Add recipe for splitting alternative stairs into 4 microblocks
2015-07-04 17:49:28 +02:00
Marcin
bc15b6e14b Added recipe for splitting alternative stairs into 4 microblocks. 2015-07-04 16:19:17 +02:00
Calinou
7d9a882512 Merge pull request #15 from beyondlimits/master
Correct recipes for slopes
2015-07-02 10:40:09 +02:00
Marcin
5fad16743c Removed shaped and added new shapeless crafting recipes for slopes. 2015-07-01 21:12:01 +02:00
Calinou
9efa7a3b5b Merge pull request #14 from beyondlimits/master
Add circular crafting rule to 3-microblock stairs
2015-06-28 18:45:12 +02:00