1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-11-16 07:10:35 +01:00
Commit Graph

24 Commits

Author SHA1 Message Date
Vanessa Ezekowitz
48be7ddef1 brain-o in banister placement. fixes #388
there was no reason to explicitly check whether to place a horizontal
next to another horizontal after all the other checks were done.
2017-09-25 23:53:18 -04:00
Vanessa Ezekowitz
f03e71397a get rid of last vestages of "infinite stacks" special handling
just checks for creative mode/priv directly instead, as needed.
2017-08-12 17:52:29 -04:00
Vanessa Ezekowitz
459c02548e don't crash if placing bed on top of bed when not in auto-color mode. 2017-06-25 03:11:05 -04:00
Vanessa Ezekowitz
1eb1e87f08 use unified dyes auto-colorization feature
also fixed some bugs in bed handling
also got rid of the old, obsolete "placeholder" node, aliased it to air.
2017-06-25 03:10:59 -04:00
Diego Martínez
2df6dbcad9 Fix warnings issued by luacheck. 2017-02-15 23:53:52 -03:00
Diego Martínez
9e2ebe373a Add missing translations. 2017-02-11 04:29:37 -03:00
Vanessa Ezekowitz
2ce071ec16 fix crash in stack_sideways (typo) 2017-02-02 10:25:29 -05:00
Vanessa Ezekowitz
7623b39a33 fix crash in door placement (copy&paste error) 2017-01-31 11:52:11 -05:00
Vanessa Ezekowitz
f6aa12aef9 convert beds to param2 colorization
as a side effect, this also fixes the bug where you couldn't
stack beds to form "bunk" beds.

Place a bed, right-click it with dye to color it.

Place two beds side by side and they'll form a king-size bed, which
you can right right-click with dye to color.

Place a regular bed, then right-click it while wielding another
regular bed (i.e. as if you were trying to place it) and, if there
is room above the first bed, the second will be placed on top and
the bedposts on the bottom one will extend to reach it.  Color
either of the two by right-clicking with dye.

Shift-right-click forces placement of a regular bed without trying
to stack it into bunks.

Right-click while NOT wielding a bed or dye will attempt to let you
sleep (via default beds code).
2017-01-30 23:22:47 -05:00
Vanessa Ezekowitz
4ae16c294e always pass pointed_thing along to on_rightclick 2017-01-29 12:15:14 -05:00
Auke Kok
923198a2dd Fix most luacheck issues.
There are 3 false positives remaining after this patch, so
the bulk of the issues are fixed now.
2016-12-31 12:33:46 -08:00
Auke Kok
138e078f1b Whitespace damage fixes.
This is cleaned up by `cleanfile` (from the linux kernel tree
tool set).
2016-12-31 12:33:46 -08:00
Tim
aa0519b13b let is_buildable_to take any number of positions 2015-09-08 17:29:17 +02:00
Tim
2896f48ed1 let selection and buildable_to checks test for content_ignore; also fixes some border cases for banisters and replacing of unknown nodes 2015-09-08 16:52:52 +02:00
Tim
d5fbfbf305 fix right click oddities of expansion nodes and make sure to always return the leftover itemstack 2015-09-08 16:24:15 +02:00
Tim
fb1b620316 add placeholders as not-buildable_to nodes, that can be set to prevent other nodes to build or expanded into expansions
this fixes #292
2015-09-08 09:26:40 +02:00
Tim
b6512b3add let the custom on_place of the expansion code call after_place_node to make sure infotexts and owners of locked nodes are being set 2015-08-19 20:20:58 +02:00
Vanessa Ezekowitz
01b55f1a9a better prediction for placing diagonals at the top of the stack
better prediction for placing horizontals at the top and bottom of the
stack, particularly if they're placed within 1 node of the correct spot.
2015-05-11 20:14:02 -04:00
Vanessa Ezekowitz
10b859ba59 add a horizontal banister, rename the diagonals (+alias)
includes just enough code to try to auto-route them as they're placed.

the "root" node is now the horizontal one - if you have diagonals and
they don't place right, they should after you dig them and place again.
2015-05-11 18:03:21 -04:00
Vanessa Ezekowitz
c8633be1dc add banisters, placed on side of blocks
when placing, code will try to determine if the bannister should be
left- or right-sided.  Defaults to left-sided; hold shift while placing
to force right-sided.
2015-04-27 03:09:37 -04:00
Vanessa Ezekowitz
67d4da05f6 make king size placement work right-first as well as left-first 2015-04-22 04:50:49 -04:00
Vanessa Ezekowitz
5cb73ffa7e Add king-sized bed model
create it by placing two twins of the same color side by side, left first

also moved the bed extension functions into handlers/expansion.lua,
renamed them, and made a few other minor tweaks to that file accordingly.
2015-04-22 00:43:22 -04:00
Tim
db703e555d add sanity check to avoid cases in which expanded items would be placed against unknown nodes into other unknown nodes as pointed_think.above node
this resolves #205
2015-03-03 18:53:02 +01:00
Tim
5fb4bff628 move handlers into subdirectory to split them apart from the actual game content 2015-01-23 22:53:57 +01:00