voxel-food

eat food to heal player (voxel.js plugin)

Usage no npm install needed!

<script type="module">
  import voxelFood from 'https://cdn.skypack.dev/voxel-food';
</script>

README

voxel-food

Adds food you can eat to improve your health (voxel.js plugin)

Integrates with voxel-health and voxel-use.

Shown below with voxel-health-bar and voxel-inventory-hotbar, with a cookie item selected:

screenshot

right-clicking consumes the cookie and increases your health:

screenshot

The food is only consumed if you aren't full.

License

MIT