2017-01-16 11:36:30 +01:00
|
|
|
# PlayerPlus mod for MineClone 2
|
|
|
|
|
|
|
|
## Features
|
|
|
|
|
|
|
|
- Hurt players touching cacti (0.5 hearts / 0.5s)
|
|
|
|
- Suffocation: Hurt players who have their head inside a solid block (0.5 hearts / 0.5s)
|
2017-05-23 00:52:31 +02:00
|
|
|
- Exhaustion for swimming and jumping
|
|
|
|
- Particle effects
|
2017-01-16 11:36:30 +01:00
|
|
|
|
|
|
|
Suffocation *not* dealt to player with the `noclip` privilege.
|
|
|
|
|
|
|
|
## Notes
|
2017-05-23 00:52:31 +02:00
|
|
|
This mod is based on PlayerPlus [`playerplus`] by TenPlus1. It is now
|
|
|
|
very different than the original, no compability is intended.
|
2017-01-16 11:36:30 +01:00
|
|
|
|
|
|
|
## API
|
|
|
|
|
|
|
|
Every half second the mod checks which node the player is standing on, which
|
|
|
|
node is at foot and head level and stores inside a global table to be used by mods:
|
|
|
|
|
2017-05-23 00:52:31 +02:00
|
|
|
- `mcl_playerplus[name].node_stand`
|
|
|
|
- `mcl_playerplus[name].node_stand_below`
|
|
|
|
- `mcl_playerplus[name].node_foot`
|
|
|
|
- `mcl_playerplus[name].node_head`
|
2017-01-16 11:36:30 +01:00
|
|
|
|
|
|
|
Setting the group `disable_suffocation=1` disables suffocation for nodes which
|
|
|
|
would otherwise deal suffocation damage.
|
|
|
|
|
|
|
|
## License
|
|
|
|
WTFPL.
|
|
|
|
|