Skip to content
Snippets Groups Projects
  • Auke Kok's avatar
    39a9e987
    Builtin/game/item: Add `place_param2` nodedef field · 39a9e987
    Auke Kok authored
    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.
    39a9e987
    History
    Builtin/game/item: Add `place_param2` nodedef field
    Auke Kok authored
    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.