Builtin/game/item: Add `place_param2` nodedef field
authorAuke Kok <sofar@foo-projects.org>
Mon, 30 May 2016 22:07:09 +0000 (15:07 -0700)
committerparamat <mat.gregory@virginmedia.com>
Fri, 17 Jun 2016 03:41:20 +0000 (04:41 +0100)
commit39a9e9874ee739aea91acf36c6f81fc38bce7363
tree71141b53e953660320ac428660f7b273027d25ff
parent1b8dbf072ad042542b6bfb29eaed81b8a21ac38c
Builtin/game/item: Add `place_param2` nodedef field

This allows a nodedef to specify a fixed value for param2 to be
used for all normal placements.

There are several uses for this:

- nodes that require param2 to be set to a non-zero value for
  internal mod use. E.g. leafdecay could use this to detect that
  leaves are played by players.
- force wallmounted or facedir value at placement at placement

This overrides any player look direction or other on-the-fly
param2 setting during placement.
builtin/game/item.lua
doc/lua_api.txt