Adjust stack sizes of many items

This commit is contained in:
Wuzzy 2017-01-16 23:34:40 +01:00
parent b6575ab192
commit b73ba9b270
9 changed files with 13 additions and 16 deletions

@ -53,7 +53,7 @@ minetest.register_node("beds:bed_bottom", {
tiles = {"beds_bed_top_bottom.png^[transformR90", "default_wood.png", "beds_bed_side_bottom_r.png", "beds_bed_side_bottom_r.png^[transformfx", "beds_bed_leer.png", "beds_bed_side_bottom.png"}, tiles = {"beds_bed_top_bottom.png^[transformR90", "default_wood.png", "beds_bed_side_bottom_r.png", "beds_bed_side_bottom_r.png^[transformfx", "beds_bed_leer.png", "beds_bed_side_bottom.png"},
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
stack_max = 64, stack_max = 1,
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3}, groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
node_box = { node_box = {

@ -18,6 +18,8 @@ minetest.register_craft({
bucket = {} bucket = {}
bucket.liquids = {} bucket.liquids = {}
-- FIXME: Make buckets stack up to 16
-- Register a new liquid -- Register a new liquid
-- source = name of the source node -- source = name of the source node
-- flowing = name of the flowing node -- flowing = name of the flowing node

@ -48,7 +48,7 @@ function doors:register_door(name, def)
minetest.register_craftitem(name, { minetest.register_craftitem(name, {
description = def.description, description = def.description,
inventory_image = def.inventory_image, inventory_image = def.inventory_image,
stack_max = 1, stack_max = 64,
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
if not pointed_thing.type == "node" then if not pointed_thing.type == "node" then
return itemstack return itemstack
@ -298,7 +298,6 @@ end
doors:register_door("doors:door_wood", { doors:register_door("doors:door_wood", {
description = "Oak Door", description = "Oak Door",
inventory_image = "door_wood.png", inventory_image = "door_wood.png",
stack_max = 16,
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,door=1}, groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,door=1},
tiles_bottom = {"door_wood_b.png", "door_brown.png"}, tiles_bottom = {"door_wood_b.png", "door_brown.png"},
tiles_top = {"door_wood_a.png", "door_brown.png"}, tiles_top = {"door_wood_a.png", "door_brown.png"},
@ -318,7 +317,6 @@ minetest.register_craft({
doors:register_door("doors:door_acacia", { doors:register_door("doors:door_acacia", {
description = "Acacia Door", description = "Acacia Door",
inventory_image = "door_acacia.png", inventory_image = "door_acacia.png",
stack_max = 16,
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,door=1}, groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,door=1},
tiles_bottom = {"door_acacia_b.png", "door_brown.png"}, tiles_bottom = {"door_acacia_b.png", "door_brown.png"},
tiles_top = {"door_acacia_a.png", "door_brown.png"}, tiles_top = {"door_acacia_a.png", "door_brown.png"},
@ -337,7 +335,6 @@ minetest.register_craft({
--- birch Door -- --- birch Door --
doors:register_door("doors:door_birch", { doors:register_door("doors:door_birch", {
description = "Birch Door", description = "Birch Door",
stack_max = 16,
inventory_image = "door_birch.png", inventory_image = "door_birch.png",
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,door=1}, groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,door=1},
tiles_bottom = {"door_birch_b.png", "door_brown.png"}, tiles_bottom = {"door_birch_b.png", "door_brown.png"},
@ -358,7 +355,6 @@ minetest.register_craft({
doors:register_door("doors:door_dark_oak", { doors:register_door("doors:door_dark_oak", {
description = "Dark Oak Door", description = "Dark Oak Door",
inventory_image = "door_dark_oak.png", inventory_image = "door_dark_oak.png",
stack_max = 16,
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,door=1}, groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,door=1},
tiles_bottom = {"door_dark_oak_b.png", "door_brown.png"}, tiles_bottom = {"door_dark_oak_b.png", "door_brown.png"},
tiles_top = {"door_dark_oak_a.png", "door_brown.png"}, tiles_top = {"door_dark_oak_a.png", "door_brown.png"},
@ -377,7 +373,6 @@ minetest.register_craft({
--- jungle Door -- --- jungle Door --
doors:register_door("doors:door_jungle", { doors:register_door("doors:door_jungle", {
description = "Jungle Door", description = "Jungle Door",
stack_max = 16,
inventory_image = "door_jungle.png", inventory_image = "door_jungle.png",
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,door=1}, groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,door=1},
tiles_bottom = {"door_jungle_b.png", "door_brown.png"}, tiles_bottom = {"door_jungle_b.png", "door_brown.png"},
@ -397,7 +392,6 @@ minetest.register_craft({
--- spruce Door -- --- spruce Door --
doors:register_door("doors:door_spruce", { doors:register_door("doors:door_spruce", {
description = "Spruce Door", description = "Spruce Door",
stack_max = 16,
inventory_image = "door_spruce.png", inventory_image = "door_spruce.png",
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,door=1}, groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,door=1},
tiles_bottom = {"door_spruce_b.png", "door_brown.png"}, tiles_bottom = {"door_spruce_b.png", "door_brown.png"},
@ -448,7 +442,6 @@ minetest.register_craft({
--- Door in Iron --- --- Door in Iron ---
doors:register_door("doors:door_steel", { doors:register_door("doors:door_steel", {
description = "Iron Door", description = "Iron Door",
stack_max = 16,
inventory_image = "door_steel.png", inventory_image = "door_steel.png",
groups = {snappy=1,cracky=1,level=2,door=1,mesecon_effector_on=1}, groups = {snappy=1,cracky=1,level=2,door=1,mesecon_effector_on=1},
tiles_bottom = {"door_steel_b.png", "door_grey.png"}, tiles_bottom = {"door_steel_b.png", "door_grey.png"},
@ -508,7 +501,7 @@ minetest.register_node("doors:trapdoor", {
tiles = {"door_trapdoor.png", "door_trapdoor.png", "default_wood.png", "default_wood.png", "default_wood.png", "default_wood.png"}, tiles = {"door_trapdoor.png", "door_trapdoor.png", "default_wood.png", "default_wood.png", "default_wood.png", "default_wood.png"},
is_ground_content = false, is_ground_content = false,
paramtype = "light", paramtype = "light",
stack_max = 16, stack_max = 64,
paramtype2 = "facedir", paramtype2 = "facedir",
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,mesecon_effector_on=1,flammable=2,door=1}, groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,mesecon_effector_on=1,flammable=2,door=1},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
@ -556,7 +549,6 @@ minetest.register_node("doors:trapdoor_open", {
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
pointable = true, pointable = true,
stack_max = 0,
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,mesecon_effector_on=1,flammable=2,door=1}, groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,mesecon_effector_on=1,flammable=2,door=1},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
drop = "doors:trapdoor", drop = "doors:trapdoor",
@ -633,7 +625,7 @@ minetest.register_node("doors:iron_trapdoor", {
tiles = {"iron_trapdoor.png", "iron_trapdoor.png", "default_steel_block.png", "default_steel_block.png", "default_steel_block.png", "default_steel_block.png"}, tiles = {"iron_trapdoor.png", "iron_trapdoor.png", "default_steel_block.png", "default_steel_block.png", "default_steel_block.png", "default_steel_block.png"},
paramtype = "light", paramtype = "light",
is_ground_content = false, is_ground_content = false,
stack_max = 16, stack_max = 64,
paramtype2 = "facedir", paramtype2 = "facedir",
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,mesecon_effector_on=1,flammable=0,door=1}, groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,mesecon_effector_on=1,flammable=0,door=1},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
@ -678,7 +670,6 @@ minetest.register_node("doors:iron_trapdoor_open", {
paramtype2 = "facedir", paramtype2 = "facedir",
is_ground_content = false, is_ground_content = false,
pointable = true, pointable = true,
stack_max = 0,
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=0,door=1,mesecon_effector_on=1}, groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=0,door=1,mesecon_effector_on=1},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
drop = "doors:iron_trapdoor", drop = "doors:iron_trapdoor",

@ -38,7 +38,7 @@ minetest.register_craftitem("farming:mushroom_stew", {
inventory_image = "farming_mushroom_stew.png", inventory_image = "farming_mushroom_stew.png",
on_use = minetest.item_eat(6), on_use = minetest.item_eat(6),
groups = { food = 2, eatable = 6 }, groups = { food = 2, eatable = 6 },
stack_max = 64, stack_max = 1,
}) })
minetest.register_craft({ minetest.register_craft({

@ -146,7 +146,7 @@ for w=1, #woods do
inventory_image = "mcl_boats_inventory.png", inventory_image = "mcl_boats_inventory.png",
liquids_pointable = true, liquids_pointable = true,
groups = { boat = 1, }, groups = { boat = 1, },
stack_max = 1,
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
if pointed_thing.type ~= "node" then if pointed_thing.type ~= "node" then
return return

@ -2,6 +2,6 @@ minetest.register_craftitem("mcl_ender_pearl:ender_pearl", {
description = "Ender Pearl", description = "Ender Pearl",
wield_image = "mcl_ender_pearl_ender_pearl.png", wield_image = "mcl_ender_pearl_ender_pearl.png",
inventory_image = "mcl_ender_pearl_ender_pearl.png", inventory_image = "mcl_ender_pearl_ender_pearl.png",
stack_max = 64, stack_max = 16,
}) })

@ -262,6 +262,7 @@ minetest.register_craftitem("mcl_minecarts:minecart", {
description = "Minecart", description = "Minecart",
inventory_image = minetest.inventorycube("cart_top.png", "cart_side.png", "cart_side.png"), inventory_image = minetest.inventorycube("cart_top.png", "cart_side.png", "cart_side.png"),
wield_image = "cart_side.png", wield_image = "cart_side.png",
stack_max = 1,
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
if not pointed_thing.type == "node" then if not pointed_thing.type == "node" then
return return

@ -89,6 +89,7 @@ minetest.register_node("3d_armor_stand:armor_stand", {
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
walkable = false, walkable = false,
stack_max = 16,
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = {-0.5,-0.5,-0.5, 0.5,1.4,0.5} fixed = {-0.5,-0.5,-0.5, 0.5,1.4,0.5}

@ -96,6 +96,7 @@ minetest.register_node("signs:sign_wall", {
selection_box = {type = "fixed", fixed = {-0.45, -0.15, 0.4, 0.45, 0.45, 0.498}}, selection_box = {type = "fixed", fixed = {-0.45, -0.15, 0.4, 0.45, 0.45, 0.498}},
tiles = {"signs_top.png", "signs_bottom.png", "signs_side.png", "signs_side.png", "signs_back.png", "signs_front.png"}, tiles = {"signs_top.png", "signs_bottom.png", "signs_side.png", "signs_side.png", "signs_back.png", "signs_front.png"},
groups = sign_groups, groups = sign_groups,
stack_max = 16,
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
local above = pointed_thing.above local above = pointed_thing.above
@ -168,6 +169,7 @@ minetest.register_node("signs:sign_yard", {
tiles = {"signs_top.png", "signs_bottom.png", "signs_side.png", "signs_side.png", "signs_back.png", "signs_front.png"}, tiles = {"signs_top.png", "signs_bottom.png", "signs_side.png", "signs_side.png", "signs_back.png", "signs_front.png"},
groups = {choppy=2, dig_immediate=2}, groups = {choppy=2, dig_immediate=2},
drop = "signs:sign_wall", drop = "signs:sign_wall",
stack_max = 16,
on_construct = function(pos) on_construct = function(pos)
construct_sign(pos) construct_sign(pos)