WIP
This commit is contained in:
parent
a13e033c89
commit
051e7d1c58
|
@ -20,3 +20,9 @@ dofile(minetest.get_modpath("default").."/trees.lua")
|
|||
dofile(minetest.get_modpath("default").."/aliases.lua")
|
||||
dofile(minetest.get_modpath("default").."/furnace.lua")
|
||||
dofile(minetest.get_modpath("default").."/workbench.lua")
|
||||
|
||||
minetest.register_on_newplayer(function (player)
|
||||
player:get_inventory():add_item('main', 'default:sword_steel')
|
||||
player:get_inventory():add_item('main', 'default:torch 8')
|
||||
player:get_inventory():add_item('main', 'default:wood 64')
|
||||
end)
|
|
@ -1,3 +0,0 @@
|
|||
Minetest DroponDie Mod
|
||||
|
||||
Drops contents of inventory and crafting grid when player dies
|
|
@ -1 +0,0 @@
|
|||
default
|
|
@ -1,13 +1,5 @@
|
|||
local remi = minetest.setting_getbool("remove_items") or false
|
||||
local crea = minetest.setting_getbool("creative_mode")
|
||||
|
||||
local drop = function(pos, itemstack)
|
||||
|
||||
-- is remove_items enabled?
|
||||
if remi == true then
|
||||
return
|
||||
end
|
||||
|
||||
local obj = core.add_item(pos, itemstack:take_item(itemstack:get_count()))
|
||||
|
||||
if obj then
|
||||
|
@ -24,7 +16,7 @@ end
|
|||
minetest.register_on_dieplayer(function(player)
|
||||
|
||||
-- are we in creative?
|
||||
if crea then
|
||||
if minetest.setting_getbool("creative_mode") then
|
||||
return
|
||||
end
|
||||
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
MultiCraft Drops mod.
|
||||
by PilzAdam
|
||||
modified by Jordan4ibanez
|
||||
|
||||
Introduction:
|
||||
This mod adds drop/pick up of items.
|
||||
|
||||
License:
|
||||
Sourcecode: WTFP
|
||||
Sound: WTFPL
|
|
@ -1,7 +1,6 @@
|
|||
local age = 1 --how old an item has to be before collecting
|
||||
local radius_magnet = 2.5 --radius of item magnet
|
||||
local player_collect_height = 1.3 --added to their pos y value
|
||||
local adjuster_collect = 0.01 --Delay before collecting to visualize moveme
|
||||
local age = 1 --How old an item has to be before collecting
|
||||
local radius_magnet = 2 --Radius of item magnet
|
||||
local player_collect_height = 1.3 --Added to their pos y value
|
||||
|
||||
--Item collection
|
||||
minetest.register_globalstep(function(dtime)
|
||||
|
@ -17,7 +16,7 @@ minetest.register_globalstep(function(dtime)
|
|||
if object:get_luaentity().age > age then
|
||||
if inv and inv:room_for_item("main", ItemStack(object:get_luaentity().itemstring)) then
|
||||
--collect
|
||||
if object:get_luaentity().collectioner == true and object:get_luaentity().age > age and object:get_luaentity().age > object:get_luaentity().age_stamp + adjuster_collect then
|
||||
if object:get_luaentity().collectioner == true and object:get_luaentity().age > age and object:get_luaentity().age > object:get_luaentity().age_stamp then
|
||||
if object:get_luaentity().itemstring ~= "" then
|
||||
inv:add_item("main", ItemStack(object:get_luaentity().itemstring))
|
||||
minetest.sound_play("item_drop_pickup", {
|
|
@ -1,5 +0,0 @@
|
|||
minetest.register_on_newplayer(function (player)
|
||||
player:get_inventory():add_item('main', 'default:sword_steel')
|
||||
player:get_inventory():add_item('main', 'default:torch 8')
|
||||
player:get_inventory():add_item('main', 'default:wood 64')
|
||||
end)
|
|
@ -1,43 +0,0 @@
|
|||
===ITEM_DROP MOD Reloaded for MINETEST-C55===
|
||||
by PilzAdam
|
||||
modified by Jordan4ibanez
|
||||
|
||||
Introduction:
|
||||
This mod adds Minecraft like drop/pick up of items to Minetest.
|
||||
|
||||
How to install:
|
||||
Unzip the archive an place it in minetest-base-directory/mods/minetest/
|
||||
if you have a windows client or a linux run-in-place client. If you have
|
||||
a linux system-wide instalation place it in ~/.minetest/mods/minetest/.
|
||||
If you want to install this mod only in one world create the folder
|
||||
worldmods/ in your worlddirectory.
|
||||
For further information or help see:
|
||||
http://wiki.minetest.com/wiki/Installing_Mods
|
||||
|
||||
How to use the mod:
|
||||
Just install it an everything works.
|
||||
|
||||
For developers:
|
||||
You dont have to use get_drops() anymore because of changes in the
|
||||
builtin files of minetest.
|
||||
|
||||
License:
|
||||
Sourcecode: WTFPL (see below)
|
||||
Sound: WTFPL (see below)
|
||||
|
||||
See also:
|
||||
http://minetest.net/
|
||||
|
||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||
Version 2, December 2004
|
||||
|
||||
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim or modified
|
||||
copies of this license document, and changing it is allowed as long
|
||||
as the name is changed.
|
||||
|
||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. You just DO WHAT THE FUCK YOU WANT TO.
|
|
@ -383,7 +383,6 @@ set(common_SRCS
|
|||
database-leveldb.cpp
|
||||
database-postgresql.cpp
|
||||
database-redis.cpp
|
||||
database-sqlite3.cpp
|
||||
database.cpp
|
||||
debug.cpp
|
||||
defaultsettings.cpp
|
||||
|
@ -463,6 +462,7 @@ set(common_SRCS
|
|||
|
||||
# This gives us the icon and file version information
|
||||
if(WIN32)
|
||||
set(common_SRCS ${common_SRCS} database-sqlite3.cpp)
|
||||
set(WINRESOURCE_FILE "${CMAKE_CURRENT_SOURCE_DIR}/../misc/winresource.rc")
|
||||
set(MINETEST_EXE_MANIFEST_FILE "${CMAKE_CURRENT_SOURCE_DIR}/../misc/minetest.exe.manifest")
|
||||
if(MINGW)
|
||||
|
|
|
@ -2290,8 +2290,10 @@ MapDatabase *ServerMap::createDatabase(
|
|||
const std::string &savedir,
|
||||
Settings &conf)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
if (name == "sqlite3")
|
||||
return new MapDatabaseSQLite3(savedir);
|
||||
#endif
|
||||
if (name == "dummy")
|
||||
return new Database_Dummy();
|
||||
#if USE_LEVELDB
|
||||
|
|
|
@ -2170,10 +2170,12 @@ bool ServerEnvironment::saveStaticToBlock(
|
|||
PlayerDatabase *ServerEnvironment::openPlayerDatabase(const std::string &name,
|
||||
const std::string &savedir, const Settings &conf)
|
||||
{
|
||||
|
||||
#ifdef _WIN32
|
||||
if (name == "sqlite3")
|
||||
return new PlayerDatabaseSQLite3(savedir);
|
||||
else if (name == "dummy")
|
||||
else
|
||||
#endif
|
||||
if (name == "dummy")
|
||||
return new Database_Dummy();
|
||||
#if USE_POSTGRESQL
|
||||
else if (name == "postgresql") {
|
||||
|
|
Loading…
Reference in New Issue