diff --git a/mods/beds/init.lua b/mods/beds/init.lua index 99d12ae92f..60359887c4 100644 --- a/mods/beds/init.lua +++ b/mods/beds/init.lua @@ -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"}, paramtype = "light", paramtype2 = "facedir", - stack_max = 64, + stack_max = 1, groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3}, sounds = default.node_sound_wood_defaults(), node_box = { diff --git a/mods/bucket/init.lua b/mods/bucket/init.lua index a58dbb1a00..9d92512f49 100644 --- a/mods/bucket/init.lua +++ b/mods/bucket/init.lua @@ -18,6 +18,8 @@ minetest.register_craft({ bucket = {} bucket.liquids = {} +-- FIXME: Make buckets stack up to 16 + -- Register a new liquid -- source = name of the source node -- flowing = name of the flowing node diff --git a/mods/doors/init.lua b/mods/doors/init.lua index d106c61890..190d774f84 100644 --- a/mods/doors/init.lua +++ b/mods/doors/init.lua @@ -48,7 +48,7 @@ function doors:register_door(name, def) minetest.register_craftitem(name, { description = def.description, inventory_image = def.inventory_image, - stack_max = 1, + stack_max = 64, on_place = function(itemstack, placer, pointed_thing) if not pointed_thing.type == "node" then return itemstack @@ -298,7 +298,6 @@ end doors:register_door("doors:door_wood", { description = "Oak Door", inventory_image = "door_wood.png", - stack_max = 16, groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,door=1}, tiles_bottom = {"door_wood_b.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", { description = "Acacia Door", inventory_image = "door_acacia.png", - stack_max = 16, groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,door=1}, tiles_bottom = {"door_acacia_b.png", "door_brown.png"}, tiles_top = {"door_acacia_a.png", "door_brown.png"}, @@ -337,7 +335,6 @@ minetest.register_craft({ --- birch Door -- doors:register_door("doors:door_birch", { description = "Birch Door", - stack_max = 16, inventory_image = "door_birch.png", groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,door=1}, tiles_bottom = {"door_birch_b.png", "door_brown.png"}, @@ -358,7 +355,6 @@ minetest.register_craft({ doors:register_door("doors:door_dark_oak", { description = "Dark Oak Door", inventory_image = "door_dark_oak.png", - stack_max = 16, 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_top = {"door_dark_oak_a.png", "door_brown.png"}, @@ -377,7 +373,6 @@ minetest.register_craft({ --- jungle Door -- doors:register_door("doors:door_jungle", { description = "Jungle Door", - stack_max = 16, inventory_image = "door_jungle.png", groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,door=1}, tiles_bottom = {"door_jungle_b.png", "door_brown.png"}, @@ -397,7 +392,6 @@ minetest.register_craft({ --- spruce Door -- doors:register_door("doors:door_spruce", { description = "Spruce Door", - stack_max = 16, inventory_image = "door_spruce.png", groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2,door=1}, tiles_bottom = {"door_spruce_b.png", "door_brown.png"}, @@ -448,7 +442,6 @@ minetest.register_craft({ --- Door in Iron --- doors:register_door("doors:door_steel", { description = "Iron Door", - stack_max = 16, inventory_image = "door_steel.png", groups = {snappy=1,cracky=1,level=2,door=1,mesecon_effector_on=1}, 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"}, is_ground_content = false, paramtype = "light", - stack_max = 16, + stack_max = 64, paramtype2 = "facedir", groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,mesecon_effector_on=1,flammable=2,door=1}, sounds = default.node_sound_wood_defaults(), @@ -556,7 +549,6 @@ minetest.register_node("doors:trapdoor_open", { paramtype = "light", paramtype2 = "facedir", pointable = true, - stack_max = 0, groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,mesecon_effector_on=1,flammable=2,door=1}, sounds = default.node_sound_wood_defaults(), 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"}, paramtype = "light", is_ground_content = false, - stack_max = 16, + stack_max = 64, paramtype2 = "facedir", groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,mesecon_effector_on=1,flammable=0,door=1}, sounds = default.node_sound_wood_defaults(), @@ -678,7 +670,6 @@ minetest.register_node("doors:iron_trapdoor_open", { paramtype2 = "facedir", is_ground_content = false, pointable = true, - stack_max = 0, groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=0,door=1,mesecon_effector_on=1}, sounds = default.node_sound_wood_defaults(), drop = "doors:iron_trapdoor", diff --git a/mods/farming/mushrooms.lua b/mods/farming/mushrooms.lua index 4f7861ec70..414ace3a7d 100644 --- a/mods/farming/mushrooms.lua +++ b/mods/farming/mushrooms.lua @@ -38,7 +38,7 @@ minetest.register_craftitem("farming:mushroom_stew", { inventory_image = "farming_mushroom_stew.png", on_use = minetest.item_eat(6), groups = { food = 2, eatable = 6 }, - stack_max = 64, + stack_max = 1, }) minetest.register_craft({ diff --git a/mods/mcl_boats/init.lua b/mods/mcl_boats/init.lua index 90bc950d9e..7f48368b1b 100644 --- a/mods/mcl_boats/init.lua +++ b/mods/mcl_boats/init.lua @@ -146,7 +146,7 @@ for w=1, #woods do inventory_image = "mcl_boats_inventory.png", liquids_pointable = true, groups = { boat = 1, }, - + stack_max = 1, on_place = function(itemstack, placer, pointed_thing) if pointed_thing.type ~= "node" then return diff --git a/mods/mcl_ender_pearl/init.lua b/mods/mcl_ender_pearl/init.lua index f2f6b394e6..98aa27b52e 100644 --- a/mods/mcl_ender_pearl/init.lua +++ b/mods/mcl_ender_pearl/init.lua @@ -2,6 +2,6 @@ minetest.register_craftitem("mcl_ender_pearl:ender_pearl", { description = "Ender Pearl", wield_image = "mcl_ender_pearl_ender_pearl.png", inventory_image = "mcl_ender_pearl_ender_pearl.png", - stack_max = 64, + stack_max = 16, }) diff --git a/mods/mcl_minecarts/init.lua b/mods/mcl_minecarts/init.lua index 41570271d8..7e24d24ab7 100644 --- a/mods/mcl_minecarts/init.lua +++ b/mods/mcl_minecarts/init.lua @@ -262,6 +262,7 @@ minetest.register_craftitem("mcl_minecarts:minecart", { description = "Minecart", inventory_image = minetest.inventorycube("cart_top.png", "cart_side.png", "cart_side.png"), wield_image = "cart_side.png", + stack_max = 1, on_place = function(itemstack, placer, pointed_thing) if not pointed_thing.type == "node" then return diff --git a/mods/minetest-3d_armor/3d_armor_stand/init.lua b/mods/minetest-3d_armor/3d_armor_stand/init.lua index f78fdb2870..702da0f38d 100644 --- a/mods/minetest-3d_armor/3d_armor_stand/init.lua +++ b/mods/minetest-3d_armor/3d_armor_stand/init.lua @@ -89,6 +89,7 @@ minetest.register_node("3d_armor_stand:armor_stand", { paramtype = "light", paramtype2 = "facedir", walkable = false, + stack_max = 16, selection_box = { type = "fixed", fixed = {-0.5,-0.5,-0.5, 0.5,1.4,0.5} diff --git a/mods/signs/init.lua b/mods/signs/init.lua index 70e75502c2..7e19533e77 100644 --- a/mods/signs/init.lua +++ b/mods/signs/init.lua @@ -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}}, tiles = {"signs_top.png", "signs_bottom.png", "signs_side.png", "signs_side.png", "signs_back.png", "signs_front.png"}, groups = sign_groups, + stack_max = 16, on_place = function(itemstack, placer, pointed_thing) 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"}, groups = {choppy=2, dig_immediate=2}, drop = "signs:sign_wall", + stack_max = 16, on_construct = function(pos) construct_sign(pos)