Commit Graph

92 Commits

Author SHA1 Message Date
a7777d588b Improved placement for slabs etc
Stairs+ nodes now check which side of the face (top/bottom for
horizontal, left/right for vertical placement) is being clicked to
decide on the orientation of the placed node. The aux key can be used
to place the node as if from the opposite side.

When the under node and placed node are the same category (e.g. slab to
slab) then by default the orientation of the under node is copied,
flippingit if placing above or below an upright or upside-down node. The
aux key can be used to place node according to the general (no aux, no
same-cat) rules.

(And yes, this means that it's not possible to place a stair+ node
against another stair+ node as if it were from the other side. Sorry, we
don't have enough special keys.)
2020-12-12 09:52:33 +01:00
b67028a417 Fix use_texture_alpha warnings since 5.4.0-dev 2020-08-16 10:14:18 +02:00
bbfd782300 Remove legacy Stairs+ conversion code
It was only required to import worlds last edited before Q3 2013.
2020-01-03 11:34:13 +01:00
917a46014f Update copyright statements to 2020 2020-01-01 04:09:24 +01:00
5cab63c675 Add ice as a Stairs+ node
This closes #109.
2019-10-17 22:25:44 +02:00
72a6ee6032 Make Stairs+ nodes emit slightly less light compared to full nodes
This makes up for their smaller visual size.
2019-05-08 20:00:57 +02:00
e09d2fab01 Fix several typos in comments 2019-04-21 16:57:42 +02:00
8e8078e74b Refactor common.lua to simplify code and make locale strings searchable 2019-03-20 21:30:35 +01:00
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
76a00a5365 Update intllib support to avoid using deprecated functions 2019-03-03 20:02:40 +01:00
0e885283c0 Update copyright statements to 2019 2019-02-25 12:13:55 +01:00
b0cb1d325a Fix Stairs+ node rotation on placement
This closes #123.
2019-02-25 10:47:51 +01:00
b6f6bc8c71 Activate translation for stairplus descriptions 2019-02-25 10:30:24 +01:00
95155a3bc6 Add pre-commit hooks
See https://pre-commit.com/ for more information.
2019-02-21 23:10:58 +01:00
1649f91156 Tweak the Luacheck configuration file and fix many warnings 2019-02-20 23:39:01 +01:00
26f59baba0 Update copyright year range for 2018 2018-11-24 17:36:04 +01:00
ca45478761 brass block stairs/slabs/etc (#135) 2018-11-24 17:27:16 +01:00
1482a7810f make stairs from cement too. 2018-11-24 17:06:16 +01:00
01ec8290f6 basic_materials stairs/slopes/et. al
(keeping original technic item names)
2018-11-24 17:06:16 +01:00
846214993f Add aliases for MTG corner stairs (#117) 2018-07-19 19:24:30 +02:00
8ff1cb598f Update documentation 2018-03-26 19:09:44 +02:00
7d701da5b9 Move recipe definitions to a separate file and function. 2018-03-26 19:09:44 +02:00
d5edcb2a10 Add a register_custom_subset function 2018-03-26 19:09:44 +02:00
c711946453 Move node registrations to a separate file 2018-03-26 19:09:44 +02:00
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
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
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
7347b05e3e Replace deprecated methods:
- 'setting_get' with 'settings:get'
- 'setting_getbool' with 'settings:get_bool'
2017-08-12 14:08:24 -07:00
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
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
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
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
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
831bbb2b27 Prepare for v1.0.0 release 2017-02-19 13:35:16 +01:00
cf1b054a99 allow passing paramtype2 to the nodes being created (#65) 2017-01-26 22:11:45 +01:00
81f77ae97e Prevent creating a global 2016-12-31 12:33:09 -08:00
5500c9906c Run cleanfile on all files, fixing whitespace issues. 2016-12-31 12:33:09 -08:00
7f06db2200 Add Alias Functions (#54)
* register_alias
* register_alias_force
2016-10-03 12:14:34 +02:00
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
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
30fba0ea40 Aspen tree registration in stairsplus. (#44) 2016-06-10 10:47:18 -07:00
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
cdc50bc069 Fix warning
Fixes #25
2016-01-26 12:52:55 -08:00
54a7102291 Make stairplus:register_* functions work without using register_all. 2015-11-01 17:54:29 +01:00
f02a871c30 Add acacia tree and wood, modify pine tree and wood names 2015-08-24 19:37:20 +02:00
4cde2fd66b Merge pull request #17 from beyondlimits/master
Additional crafting recipes for slabs
2015-07-16 11:17:12 +02:00