Update all core mods

This commit is contained in:
Vanessa Ezekowitz
2016-04-01 22:10:20 -04:00
parent 888b0ebfec
commit 86ad3e7c6a
158 changed files with 2083 additions and 1581 deletions

View File

@@ -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

View File

@@ -0,0 +1 @@
Adds various miscellaneous blocks to the game.

1
moreblocks/mod.conf Normal file
View File

@@ -0,0 +1 @@
name = moreblocks

View File

@@ -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

View File

@@ -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
})