1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-12-23 08:20:21 +01:00
Commit Graph

62 Commits

Author SHA1 Message Date
Vanessa Dannenberg
eb6089a03e make wooden banister colorable via Unified Dyes 2018-09-12 20:34:11 -04:00
Vanessa Dannenberg
a8729575ab switch to colored itemstacks
with full crafting recipes
(requires Unified Dyes commit 2a816534 or later)

known issues:

standing lamp bypasses vertical stack check
bed expansion changes the color of the first-placed bed
to match the second when creating a king bed.
2018-08-22 05:09:55 -04:00
Vanessa Dannenberg
54ce73b616 fix the fix ;) 2018-06-07 10:57:19 -04:00
Vanessa Dannenberg
8a5bc0e038 fix #2 2018-06-07 10:22:52 -04:00
bell07
a4ca53cc05 fix players in bed count for multiplayer (#404) 2018-05-14 13:28:36 -04:00
Vanessa Ezekowitz
4eaf265e65 allow sleeping in beds!
fixed by using some code from mt_game, with changes
2017-09-29 01:03:05 -04:00
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
frodon1
d18bee7fa0 Fix calls to check_player_privs with player name instead of player userdata
Fixes #357
2017-02-27 21:56:16 +01: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
Diego Martínez
dc7b60c11f Split I18N stuff into its own submod. 2017-01-29 21:51:07 -03:00
Vanessa Ezekowitz
4ae16c294e always pass pointed_thing along to on_rightclick 2017-01-29 12:15:14 -05:00
Diego Martínez
0d3da0c328 Use new intllib API. 2017-01-25 00:09:18 -03:00
Foz
a14722eb98 Add support for protection_bypass priv.
Closes #330
2017-01-06 21:05:58 -08:00
Foz
bf0c918d4e Fix variable name.
Fixes #334.
2017-01-02 01:40:50 -03: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
placki
653f8f8b60 add shift-click support to ovens/microwaves 2016-09-29 12:45:34 +02:00
Tim
9e7ddd4a40 add listring support to homedecor inventories 2016-08-27 21:10:43 +02:00
Amaz
5d0c6c3515 Add name of item moved to all inventories. Fixes https://github.com/minetest-mods/homedecor_modpack/issues/307 2016-05-05 07:37:31 -07: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
26a874d919 set defaults for limiting rotations on expanded nodes 2015-09-08 09:10:25 +02:00
Tim
3dc94b67cc label abms for profiling purposes
see https://github.com/t4im/profiler/#labeling
2015-08-20 14:52:01 +02:00
Tim
d7c56bfcdb clean up furnace code a bit by removing duplicate or replacing obsolete code 2015-08-20 14:27:28 +02:00
Tim
fc8621da41 manage all handler inits in their own init file 2015-08-19 22:38:10 +02:00
Tim
908b408248 register the furnaces internally via homedecor.register as well, getting rid of the last dependency on deprecated lock-code 2015-08-19 22:30:27 +02:00
Tim
9773d63e8e only set main list size if size field is given, to allow using the locked/lockable features with different listnames 2015-08-19 22:02:04 +02:00
Tim
088269a85e streamline locked description/infotext setting; avoid double brackets "Node (Locked) (owned by .. )" 2015-08-19 20:28:47 +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
Tim
29f61bb899 spawn lockable nodes for "inventory = { lockable = true }", and migrate all lockable nodes to this mechanism, but the furnaces 2015-08-19 19:30:03 +02:00
Tim
cc79b5fc03 register a copy of the def instead of the passed def, this allows us later to spawn supporting nodes from the same original def 2015-08-19 18:48:50 +02:00
Tim
4d5975d407 allow inventories to be locked (not just have a locked version of it being spawned later, but be locked by registration)
the code will also be used later to replace locked.lua that spawns a locked version from an unlocked version
2015-08-19 18:00:45 +02:00
Tim
8a91865d82 allow chaining of on_construct instead of overwriting in registration function 2015-08-19 17:30:37 +02:00
Tim
2d433f9652 remove debug statements 2015-08-19 17:09:50 +02:00
Tim
2ed7ae6a56 move inventory registration functions into dedicated handler file 2015-08-19 16:14:17 +02:00
Tim
91092d99be introduce nodebox abstractions used by fences, like corner nodeboxes, and indirectly slab_x; update fences accordingly 2015-08-19 15:32:19 +02:00
Tim
7d087815c8 fix slab_z nodebox direction inconsistencies 2015-08-19 15:06:53 +02:00
Tim
faf6cefa99 use the default background for all automatic inventory formspecs 2015-08-16 19:06:44 +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
kilbith
3f16e7dbc0 Move sit function 2015-05-11 20:21:27 +02:00