Updated README, moved license, added screenshot

This commit is contained in:
Zenon Seth 2022-11-25 11:27:25 +00:00
parent 4e63572b7c
commit 6bb2458cac
4 changed files with 64 additions and 85 deletions

40
README.md Normal file
View File

@ -0,0 +1,40 @@
# Treasure Chest mod for Minetest
## What is it?
Treasure Chest is a small mod for the Minetest game that adds a kind of chest made for world designers.
The chest has no crafting recipe, so it has to be obtained by /giveme or other commands.
The intended use and original idea, comes from trying to design challenges in a survival world,
and having some way to automatically reward players who complete the challenges.
The rewards can be somewhat randomized, with a probability for each one, and can reset after
a specified time, on a per user basis, after being given out.
When the chest is used by someone without the `give` privilege, the chest will attempt to give
a copy of the items inside it (with some chance) to the user. The chest then records the last time
this user has tried to get the items, and the user will then have to wait for a timeout period to
expire before he/she can have a chance of obtaining the items again. This timeout period is per-user.
For someone with the `give` privilege, the chest will display a GUI that allows you to configure it.
- 1st input: Refresh Time: An integer value
- The number of minutes of gametime that must pass before the chest can give its items out again.
- This is on a per-user basis, so two users can always obtain the reward if they use the chest, but if the same user tries to use it before the refresh timeout, he will get nothing.
- 2nd line: Six input: Integer values
- Probabilities, ranging 0..100, of how likely a reward is to be given to a user. Randomly determined each time the chest is used. Associated with the inventory slot below each one
- 3rd line: Six inventory slots
- The items to be given out, as associated by the probabilities above them. Each slot can hold a regular item stack. Items stacks are given out as a whole, so the user will get either the whole item stack, or nothing from that slot. Item stacks in these slots are not taken by regular users using the chest, instead they get copied.
## License Info:
See [license.txt](license.txt).
## Dependencies
Minetest engine and Minetest game (see https://www.minetest.net)
## Bugs/contact info
Submit bugs on github: https://github.com/ZenonSeth/treasure_chest

View File

@ -1,85 +0,0 @@
== Treasure Chest mod for Minetest ==
01. What is it?
02. License Info
03. Current Version
04. Installation Instructions
05. Dependencies
06. Bugs/contact info
01. What is it?
===============
Treasure Chest is a small mod for the Minetest game that adds a kind of chest made for world designers.
The chest has no crafting recipe, so it has to be obtained by /giveme or other commands.
The intended use and original idea, comes from trying to design challenges in a survival world,
and having some way to automatically reward players who complete the challenges.
The rewards can be somewhat randomized, with a probability for each one,and can reset after
a specified time, on a per user basis, after being given out.
When the chest is used by someone without the "give" privilege, the chest will attempt to give
a copy of the items inside it (with some chance) to the user. The chest then records the last time
this user has tried to get the items, and the user will then have to wait for a timeout period to
expire before he/she can have a chance of obtaining the items again. This timeout period is per-user.
For someone with the "give" privilege, the chest will display a GUI that allows you to configure it.
- 1st input: Refresh Time: An integer value
The number of minutes of gametime that must pass before the chest can give its items out again.
This is on a per-user basis, so two users can always obtain the reward if they use the chest,
but if the same user tries to use it before the refresh timeout, he will get nothing.
- 2nd line: Six input: Integer values
Probabilities, ranging 0..100, of how likely a reward is to be given to a user. Randomly
determined each time the chest is used. Associated with the inventory slot below each one
- 3rd line: Six inventory slots
The items to be given out, as associated by the probabilities above them. Each slot can hold
a regular item stack. Items stacks are given out as a whole, so the user will get either the
whole item stack, or nothing from that slot. Item stacks in these slots are not taken by
regular users using the chest, instead they get copied.
02. License Info:
=================
License for Code
----------------
Copyright (C) 2017-2022 <Zenon.Seth@gmail.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
License for Textures, Models and Sounds
---------------------------------------
CC-BY-SA 3.0 UNPORTED. Created by Zenon Seth
03. Current Version
===================
v1.0 : Mod release
04. Installation Instructions
=============================
Copy the entire folder containing this file into your minetest/mods folder.
When running the game through GUI, configure world, select and enable the mod.
When running a server through command line, edit world.mt and mark this mod as 'true' to be loaded
05. Dependencies
================
Minetest engine and Minetest game (see https://www.minetest.net)
06. Bugs/contact info
=====================
Submit bugs on github: https://github.com/ZenonSeth/treasure_chest

24
license.txt Normal file
View File

@ -0,0 +1,24 @@
License of source code
----------------------
The MIT License (MIT)
Copyright (C) 2022-2022 ZenonSeth
Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the "Software"), to deal in the Software
without restriction, including without limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of the Software, and to permit
persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or
substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
For more details:
https://opensource.org/licenses/MIT

BIN
screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 772 KiB