Go to file
Yves Quemener 18cb3bd58c - Removed obsolete "ids" mechanics
- Added check for authorized move and take in the priviledge inventory
- Fixed the way register_on_player_inventory_action and register_allow_player_inventory_action are called
- Fixed a bad inventory size that could crash the server
2019-08-31 03:54:51 +09:00
textures Added the content 2019-08-18 09:32:34 +09:00
LICENSE Initial commit 2019-08-18 09:25:25 +09:00
README.md Bugfix 2019-08-24 15:24:06 +09:00
init.lua - Removed obsolete "ids" mechanics 2019-08-31 03:54:51 +09:00
mod.conf Added the content 2019-08-18 09:32:34 +09:00
sc.png Added the content 2019-08-18 09:32:34 +09:00

README.md

Chest whose content can only be taken from and that offers the same content to each player once. I wrote this because I made a treasure hunting game. I wanted each player to receive a reward once for finding the chest, not have a first-arrived-takes-all.

Players are only able to take from it, not put things in, a bit similar to the way bones work.

To fill it, open it with a user who has the 'protection_bypass' privilege. This user will access the default inventory of the chest.

Just a chest, really

The way this works under the hood is that each chest has an inventory that is only shown to admins with 'protection_bypass'. All others are shown a an inventory page that is actually attached to their player and that is initialized with the content of the default inventory.

Inspired by Megaf's more_chest wifi chest: https://github.com/minetest-mods/more_chests

I'd love to remove the default dependency but that would require that issue to be fixed first https://github.com/minetest/minetest/issues/7068