initial commit

master
ademant 2019-02-01 09:49:26 +01:00
commit 7acf9551dc
7 changed files with 57 additions and 0 deletions

15
README.txt Normal file
View File

@ -0,0 +1,15 @@
Minetest Game mod: Treasures
==========================
See license.txt for license information.
Outsource of treasure nodes from minerdream.
Authors of source code
----------------------
davieddoesminetest (MIT)
ademant (MIT)
Authors of media (textures)
---------------------------
Created by ademant (CC BY 3.0):

0
api.lua Normal file
View File

19
init.lua Normal file
View File

@ -0,0 +1,19 @@
treasure = {}
treasure.path = minetest.get_modpath("treasure")
treasure.modname=minetest.get_current_modname()
treasure.mod_storage=minetest.get_mod_storage()
treasure.store_table={}
treasure.attributes={}
minetest.log("action", "[MOD]"..minetest.get_current_modname().." -- start loading from "..minetest.get_modpath(minetest.get_current_modname()))
-- Load files
-- import settingtypes.txt
basic_functions.import_settingtype(treasure.path .. "/settingtypes.txt")
dofile(treasure.path .. "/api.lua") -- API
dofile(treasure.path .. "/treasures.lua") -- API
minetest.log("action", "[MOD]"..minetest.get_current_modname().." -- loaded ")

15
license.txt Normal file
View File

@ -0,0 +1,15 @@
License of source code
----------------------
The MIT License (MIT)
Copyright 2019 ademant
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-license.php

7
mod.conf Normal file
View File

@ -0,0 +1,7 @@
name = treasures
title = treasures
author = ademant
description = Treasure nodes with usefull items
depends = default,basic_functions
license = MIT
version = 1.0.0

1
settingtypes.txt Normal file
View File

@ -0,0 +1 @@
treasures.prefix (Prefix for variable name) string "treasure"

0
treasures.lua Normal file
View File