develop #40
9 changed files with 26 additions and 2 deletions
|
@ -118,7 +118,7 @@ end
|
|||
-- by ChillCode, available under the MIT license.
|
||||
local function deserialize_workaround(content)
|
||||
local nodes
|
||||
if not jit then
|
||||
if not minetest.global_exists("jit") then
|
||||
nodes = minetest.deserialize(content, true)
|
||||
else
|
||||
-- XXX: This is a filthy hack that works surprisingly well
|
||||
|
|
3
mods/skinsdb/meta/character_2119.txt
Normal file
3
mods/skinsdb/meta/character_2119.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
Steven
|
||||
Tim7
|
||||
CC BY-SA 3.0
|
3
mods/skinsdb/meta/character_2120.txt
Normal file
3
mods/skinsdb/meta/character_2120.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
Mal
|
||||
TheMalaysianDude
|
||||
CC BY-SA 3.0
|
3
mods/skinsdb/meta/character_2121.txt
Normal file
3
mods/skinsdb/meta/character_2121.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
Paintball Gun Pixel 3D Zombie
|
||||
Mercenary S. Double 1.8W
|
||||
CC BY-SA 4.0
|
BIN
mods/skinsdb/textures/character_2119.png
Normal file
BIN
mods/skinsdb/textures/character_2119.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.5 KiB |
BIN
mods/skinsdb/textures/character_2120.png
Normal file
BIN
mods/skinsdb/textures/character_2120.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.1 KiB |
BIN
mods/skinsdb/textures/character_2121.png
Normal file
BIN
mods/skinsdb/textures/character_2121.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 580 B |
|
@ -14,6 +14,18 @@
|
|||
|
||||
]]--
|
||||
|
||||
local function is_source(pos,meta, item)
|
||||
local inv = minetest.get_inventory({type="node", pos=pos})
|
||||
local name = item:get_name()
|
||||
if meta:get_string("src_item") == name then
|
||||
return true
|
||||
elseif inv:get_stack("src", 1):get_name() == name then
|
||||
meta:set_string("src_item", name)
|
||||
return true
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
tubelib.register_node("default:chest", {"default:chest_open"}, {
|
||||
on_pull_item = function(pos, side)
|
||||
local meta = minetest.get_meta(pos)
|
||||
|
@ -65,7 +77,9 @@ tubelib.register_node("default:furnace", {"default:furnace_active"}, {
|
|||
on_push_item = function(pos, side, item)
|
||||
local meta = minetest.get_meta(pos)
|
||||
minetest.get_node_timer(pos):start(1.0)
|
||||
if minetest.get_craft_result({method="fuel", width=1, items={item}}).time ~= 0 then
|
||||
if is_source(pos, meta, item) then
|
||||
return tubelib.put_item(meta, "src", item)
|
||||
elseif minetest.get_craft_result({method="fuel", width=1, items={item}}).time ~= 0 then
|
||||
return tubelib.put_item(meta, "fuel", item)
|
||||
else
|
||||
return tubelib.put_item(meta, "src", item)
|
||||
|
|
|
@ -163,6 +163,7 @@ fn("ethereal:bamboo_leaves")
|
|||
fn("ethereal:banana")
|
||||
fn("ethereal:orange")
|
||||
fn("ethereal:coconut")
|
||||
fn("ethereal:golden_apple")
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
-- Default Ground
|
||||
|
|
Loading…
Reference in a new issue