This commit is contained in:
root 2021-09-19 12:10:17 +02:00
parent 8054d2caf5
commit aa7ca03f95
9 changed files with 26 additions and 2 deletions

View file

@ -118,7 +118,7 @@ end
-- by ChillCode, available under the MIT license. -- by ChillCode, available under the MIT license.
local function deserialize_workaround(content) local function deserialize_workaround(content)
local nodes local nodes
if not jit then if not minetest.global_exists("jit") then
nodes = minetest.deserialize(content, true) nodes = minetest.deserialize(content, true)
else else
-- XXX: This is a filthy hack that works surprisingly well -- XXX: This is a filthy hack that works surprisingly well

View file

@ -0,0 +1,3 @@
Steven
Tim7
CC BY-SA 3.0

View file

@ -0,0 +1,3 @@
Mal
TheMalaysianDude
CC BY-SA 3.0

View file

@ -0,0 +1,3 @@
Paintball Gun Pixel 3D Zombie
Mercenary S. Double 1.8W
CC BY-SA 4.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 580 B

View file

@ -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"}, { tubelib.register_node("default:chest", {"default:chest_open"}, {
on_pull_item = function(pos, side) on_pull_item = function(pos, side)
local meta = minetest.get_meta(pos) 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) on_push_item = function(pos, side, item)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
minetest.get_node_timer(pos):start(1.0) 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) return tubelib.put_item(meta, "fuel", item)
else else
return tubelib.put_item(meta, "src", item) return tubelib.put_item(meta, "src", item)

View file

@ -163,6 +163,7 @@ fn("ethereal:bamboo_leaves")
fn("ethereal:banana") fn("ethereal:banana")
fn("ethereal:orange") fn("ethereal:orange")
fn("ethereal:coconut") fn("ethereal:coconut")
fn("ethereal:golden_apple")
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
-- Default Ground -- Default Ground