Added mod named "core"

included 3d player, creative, helper_functions, item_drop and seasons
This commit is contained in:
Kotolegokot 2012-12-01 22:57:51 +06:00
parent f6203c0ec9
commit 7aa70d16c8
18 changed files with 11 additions and 33 deletions

View File

@ -1,4 +1,3 @@
default
metals
helper_functions
instruments

View File

@ -1,2 +1 @@
default
helper_functions

View File

@ -1,5 +1,5 @@
table.contains = function(t, v)
for _, i in ipairs(t) do
function table:contains(v)
for _, i in ipairs(self) do
if i == v then
return true
end

7
mods/core/init.lua Normal file
View File

@ -0,0 +1,7 @@
realtest = {}
dofile(minetest.get_modpath("core").."/helper_functions.lua")
dofile(minetest.get_modpath("core").."/drop.lua")
dofile(minetest.get_modpath("core").."/seasons.lua")
dofile(minetest.get_modpath("core").."/creative.lua")
dofile(minetest.get_modpath("core").."/player.lua")

View File

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -1,22 +0,0 @@
Minetest 0.4 mod: creative
==========================
Implements creative mode.
Switch on by using the "creative_mode" setting.
Registered items that
- have a description, and
- do not have the group not_in_creative_inventory
are added to the creative inventory.
License of source code and media files:
---------------------------------------
Copyright (C) 2012 Perttu Ahola (celeron55) <celeron55@gmail.com>
This program is free software. It comes without any warranty, to
the extent permitted by applicable law. You can redistribute it
and/or modify it under the terms of the Do What The Fuck You Want
To Public License, Version 2, as published by Sam Hocevar. See
http://sam.zoy.org/wtfpl/COPYING for more details.

1
mods/default/depends.txt Normal file
View File

@ -0,0 +1 @@
core

View File

@ -10,10 +10,8 @@ LIGHT_MAX = 14
-- Definitions made by this mod that other mods can use too
default = {}
realtest = {}
-- Load other files
dofile(minetest.get_modpath("default").."/player.lua")
dofile(minetest.get_modpath("default").."/mapgen.lua")
--

View File

@ -1,2 +1 @@
default
helper_functions
default

View File

@ -1,4 +1,3 @@
default
metals
helper_functions
trees

View File

@ -1 +0,0 @@
default

View File

@ -1,3 +1,2 @@
default
helper_functions
metals