1
0
Fork 0
MineClone2/mods/PLAYER/playerplus
Wuzzy 632ebd6389 Fix no swim exhaustion when wading through water 2017-05-23 00:45:31 +02:00
..
README.md Organize mods into modpacks for better overview 2017-02-16 01:45:21 +01:00
depends.txt Move bubble particle spawner to playerplus 2017-05-22 22:43:25 +02:00
description.txt Organize mods into modpacks for better overview 2017-02-16 01:45:21 +01:00
init.lua Fix no swim exhaustion when wading through water 2017-05-23 00:45:31 +02:00
license.txt Organize mods into modpacks for better overview 2017-02-16 01:45:21 +01:00

README.md

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)

Suffocation not dealt to player with the noclip privilege.

Notes

This mod is based on PlayerPlus [playerplus] by TenPlus1. It behaves a bit differently than the original, but the API is fully compatible.

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:

  • playerplus[name].nod_stand
  • playerplus[name].nod_foot
  • playerplus[name].nod_head

Setting the group disable_suffocation=1 disables suffocation for nodes which would otherwise deal suffocation damage.

License

WTFPL.