VoxeLibre/mods/PLAYER/mcl_playerinfo
WillConker 2ceeb1fdc8 Added documentation for mcl_playerinfo[name].head_submerged_in 2024-06-09 19:12:37 +01:00
..
README.md Added documentation for mcl_playerinfo[name].head_submerged_in 2024-06-09 19:12:37 +01:00
init.lua Removed bad code in mcl_playerplus in favour of new submerged checking, moved sumberged calculation from mcl_playerinfo to mcl_playerplus 2024-06-09 18:20:04 +01:00
license.txt Split mcl_playerplus to mcl_playerinfo for the node info 2017-08-04 19:23:06 +02:00
mod.conf Integrate death messages 2021-04-25 16:42:38 +02:00

README.md

PlayerInfo mod for VoxeLibre

This is a helper mod for other mod to query the nodes around the player.

Every half second the mod checks which node the player is standing on, which node is at foot and head level, and any liquid the player is in and stores inside a global table to be used by mods:

  • mcl_playerinfo[name].node_stand
  • mcl_playerinfo[name].node_stand_below
  • mcl_playerinfo[name].node_foot
  • mcl_playerinfo[name].node_head
  • mcl_playerinfo[name].head_submerged_in - liquid node name which the player's camera is at, or nil if not a liquid

License

MIT License