Update all core mods
This commit is contained in:
@@ -283,7 +283,11 @@ function circular_saw.on_metadata_inventory_put(
|
||||
elseif listname == "recycle" then
|
||||
-- Lets look which shape this represents:
|
||||
local cost = circular_saw:get_cost(inv, stackname)
|
||||
circular_saw:update_inventory(pos, cost * count)
|
||||
local input_stack = inv:get_stack("input", 1)
|
||||
-- check if this would not exceed input itemstack max_stacks
|
||||
if input_stack:get_count() + ((cost * count) / 8) <= input_stack:get_stack_max() then
|
||||
circular_saw:update_inventory(pos, cost * count)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
1
moreblocks/description.txt
Normal file
1
moreblocks/description.txt
Normal file
@@ -0,0 +1 @@
|
||||
Adds various miscellaneous blocks to the game.
|
1
moreblocks/mod.conf
Normal file
1
moreblocks/mod.conf
Normal file
@@ -0,0 +1 @@
|
||||
name = moreblocks
|
@@ -18,7 +18,7 @@ and minetest.setting_getbool("creative_mode") then
|
||||
end
|
||||
|
||||
function stairsplus:prepare_groups(groups)
|
||||
result = {}
|
||||
local result = {}
|
||||
if groups then
|
||||
for k, v in pairs(groups) do
|
||||
if k ~= "wood" and k ~= "stone" then
|
||||
|
@@ -44,12 +44,18 @@ for _, name in pairs(default_nodes) do
|
||||
if type(ndef.drop) == "string" then
|
||||
drop = ndef.drop:sub(9)
|
||||
end
|
||||
|
||||
local tiles = ndef.tiles
|
||||
if #ndef.tiles > 1 and ndef.drawtype:find("glass") then
|
||||
tiles = { ndef.tiles[1] }
|
||||
end
|
||||
|
||||
stairsplus:register_all("moreblocks", name, nodename, {
|
||||
description = ndef.description,
|
||||
drop = drop,
|
||||
groups = ndef.groups,
|
||||
sounds = ndef.sounds,
|
||||
tiles = ndef.tiles,
|
||||
tiles = tiles,
|
||||
sunlight_propagates = true,
|
||||
light_source = ndef.light_source
|
||||
})
|
||||
|
Reference in New Issue
Block a user