79 Commits

Author SHA1 Message Date
Auke Kok
49c331f74e When placing a breakable node, call nodeupdate. 2017-04-23 16:01:10 -07:00
Auke Kok
07e8706acd Use airlike instead for barrier. 2017-04-15 20:10:01 -07:00
Ekdohibs
a79a117e32 Add nodes that can't be pushed by pistons, use them for box walls. 2017-04-12 03:40:25 +02:00
Auke Kok
b695325267 Make falling on a barrier node deadly. 2017-04-08 23:36:26 -07:00
Auke Kok
da3383e79f Remove debugging print I left behind. 2017-04-02 00:39:59 -07:00
Auke Kok
19c21e00b9 Carpet: allow placing on walls, pass through light. 2017-04-02 00:34:38 -07:00
Auke Kok
f64f07d5b2 Add carpets, and fix all wool texture escapes.
Also adds cloth sounds.
2017-04-02 00:28:10 -07:00
Auke Kok
ad8ce0baf6 Fix nodes being diggable. 2017-04-01 20:57:06 -07:00
Auke Kok
2fa786f21b Propagate 'stone' group where needed for walls. 2017-03-31 22:47:17 -07:00
Auke Kok
88c49311c0 Connect walls to stone nodes everywhere. 2017-03-29 22:24:39 -07:00
Auke Kok
98d79c984b Make fences connect to wood stuff only. 2017-03-29 22:22:30 -07:00
Auke Kok
003cc38c21 Sounds: move them into sounds mod, add electric humm for mech.
Most of the active mech nodes now make the humming sound, which
is very low key but still audible.
2017-03-28 21:35:24 -07:00
Auke Kok
d5e8df72ec Mushrooms. 2017-03-28 20:38:09 -07:00
Auke Kok
a480db099e Better lily placement code. 2017-03-23 22:45:48 -07:00
Auke Kok
3e2625b562 Section for wool for separation. 2017-03-23 22:12:11 -07:00
Auke Kok
f80e7a6a74 Make torches and some other stuff flood, buildable_to. 2017-03-23 22:11:50 -07:00
Auke Kok
1579a34711 luacheck cleanups. 2017-03-23 11:15:46 -07:00
Auke Kok
ef96af9a02 Rustling leaf sounds for trees. 2017-03-23 00:24:59 -07:00
Auke Kok
33f138578f Flowing water sounds.
Works like the fire node sounds.
2017-03-23 00:11:42 -07:00
Auke Kok
9a5483da70 Prevent torches from impeding any liquid.
This also prevents torches placed adjacent to liquids, but it's
cheap this way.
2017-03-22 21:31:23 -07:00
Auke Kok
39232b69ea Fire sounds.
Attempts to make a lightweight abm that avoids placing fires for
every single node, while still making lots of fire sounds.

Seems to work relatively well thus far.
2017-03-10 23:03:08 -08:00
Auke Kok
443b3c5543 Lava bubbles and smoke particles for torch/flame nodes. 2017-03-10 21:59:13 -08:00
Auke Kok
df05d18488 Lava cooling ABM. Adds obsidian.
Obsidian forms when water splashes on top of a lava source,
all other ways only breakable(!) cobble is formed. Water must
be directly adjacent (not diagonal!) to the lava node.
2017-03-08 23:38:27 -08:00
Auke Kok
0ed7ebdf99 Handle param2 for facedir/wallmounted of breakable nodes on place. 2017-03-07 13:15:39 -08:00
Auke Kok
cb328bba79 Un-local second meta get. 2017-02-27 22:51:51 -08:00
Auke Kok
94bd1a1d35 Preserve placeable info on dig & place.
Allows players to always re-dig and re-place any node they
can obtain in a box, at any location that was valid before.
2017-02-27 21:36:10 -08:00
Auke Kok
7eaad2b84d Simplify breakable node markers.
The player particles work as well for builders.
2017-02-27 19:20:53 -08:00
Auke Kok
4867d1e403 Make wall accessories (button/lamp/switch) unwalkable. 2017-02-27 14:24:14 -08:00
Auke Kok
14ce2107ff Fix leaves. 2017-02-26 17:48:37 -08:00
Auke Kok
9e60127666 Consolidate tree nodes into one loop. 2017-02-26 16:40:49 -08:00
Auke Kok
fce10abef2 Cleanup: unused var. 2017-02-26 00:10:03 -08:00
Auke Kok
fba0bd41dc Show markers for players in boxes.
These markers update relatively fast, 2/s. But they only
show when the player is wielding the correct placeable
item.

Exposes bug: placing a breakable node and then digging it
again prevents you from ever placing at the same spot
again, potentially forcing the player to abandon a box.
2017-02-25 23:51:16 -08:00
Auke Kok
ca94df6897 Disable placement prediction for breakable nodes.
This prevents jump-placing on nodes and is likely to be
needed to prevent confusion with players.
2017-02-25 16:34:33 -08:00
Auke Kok
2615ce8ae2 Allow placing breakable nodes in item frames. 2017-02-25 16:29:00 -08:00
Auke Kok
fcb66648bd Allow placing of breakable nodes.
In editing mode, you can mark places where specific
breakable nodes can be placed by placing a breakable
node. A particle appears where the node will be allowed.

In playing mode, any breakable node that can be placed
at the position can then be placed in the exact location. For
obvious reasons, it can also be digged up again with the
right tools

This does break putting things in itemframes right now, so
I do need to pass on the on_rightclick to the itemframe
still.
2017-02-25 15:12:18 -08:00
Auke Kok
4426931c0c Make itemframes contain breakable nodes only.
This allows me to more easily later on allow looting and
placement of player-obtainable nodes.
2017-02-25 12:38:26 -08:00
Auke Kok
5709ef8357 Fix leaves being black on mobile. 2017-02-20 09:56:55 -08:00
Auke Kok
f4859be41e Make chest triggers work.
This makes the chests trigger a 1sec pulse, and then
untrigger, similar to the button.
2017-02-17 01:14:40 -08:00
Auke Kok
931bece381 Make pedestals and all boxes a trigger.
Allows any mech to be triggered with a pedestal or by
opening a box!
2017-02-17 00:31:25 -08:00
Auke Kok
48530c5583 Make sand and gravel falling nodes. 2017-02-11 22:07:44 -08:00
Auke Kok
d693bffb9e Add fern, reeds, waterlily. 2017-02-11 20:02:35 -08:00
Ekdohibs
0330a10ca4 Fix players being able to move through barriers. 2017-02-11 14:03:45 +01:00
Ekdohibs
4e681e8d6e Lamps: provide on_trigger & on_untrigger to avoid being broken. 2017-02-10 12:52:53 +01:00
Auke Kok
02bfac7260 Wield hand: special edit hand.
The hand is equipped in the editor, and for admins at all
times. It still doesn't work properly yet.

Also, stuff that captures punch events can't be dug with it.
2017-02-10 00:09:32 -08:00
Auke Kok
deb365b8cf Start with soundscape. 2017-02-09 21:48:32 -08:00
Auke Kok
dd16d2617e Dirt with grass/snow tops. (I was really missing these). 2017-02-08 00:13:20 -08:00
Auke Kok
cbe34ad0d9 Emerald.
Usable for a new category teleport pressure plate.
2017-02-06 23:16:46 -08:00
Auke Kok
04543a9265 Add wool stair/slab nodes. 2017-02-05 20:56:23 -08:00
Auke Kok
6fab524b63 Add many more frames.
This also adds tools, allowing box designs to "hide" tools into
frames that the player can or needs to use.
2017-02-04 13:48:59 -08:00
Auke Kok
b61c85d477 Add frame mod: item frames.
Purely deco blocks. Only non-breakable versions.
2017-02-04 12:06:04 -08:00