Heavily re-balance inventories to allow shift clicking and consistency
parent
6624271dab
commit
8d8ea6e6e0
|
@ -29,8 +29,8 @@ function chest.get_chest_formspec(pos)
|
|||
local formspec =
|
||||
"size[8,9]" ..
|
||||
"list[nodemeta:" .. spos .. ";main;0,0.3;8,4;]" ..
|
||||
"list[current_player;main;0,4.85;8,1;]" ..
|
||||
"list[current_player;main;0,6.08;8,3;8]" ..
|
||||
"list[current_player;main;0,4.85;9,1;]" ..
|
||||
"list[current_player;main;0,6.08;9,3;9]" ..
|
||||
"listring[nodemeta:" .. spos .. ";main]" ..
|
||||
"listring[current_player;main]"
|
||||
return formspec
|
||||
|
|
|
@ -12,9 +12,9 @@ minetest.register_node("craft_table:craft_table", {
|
|||
player:get_inventory():set_size("craft", 9)
|
||||
|
||||
local form = "size[9,8.75]"..
|
||||
"background[-0.19,-0.25;9.41,9.49;crafting_formspec_bg.png^crafting_inventory_workbench.png]"..
|
||||
"list[current_player;main;0,4.5;9,3;9]"..
|
||||
"list[current_player;main;0,7.74;9,1;]"..
|
||||
--"background[-0.19,-0.25;9.41,9.49;crafting_formspec_bg.png^crafting_inventory_workbench.png]"..
|
||||
"list[current_player;main;0,4.85;9,1;]" ..
|
||||
"list[current_player;main;0,6.08;9,3;9]" ..
|
||||
"list[current_player;craft;1.75,0.5;3,3;]"..
|
||||
"list[current_player;craftpreview;6.1,1.5;1,1;]"..
|
||||
"listring[current_player;main]"..
|
||||
|
|
|
@ -6,11 +6,11 @@
|
|||
|
||||
local function active_formspec(fuel_percent, item_percent)
|
||||
return "size[9,8.75]"..
|
||||
"background[-0.19,-0.25;9.41,9.49;crafting_inventory_furnace.png]"..
|
||||
--"background[-0.19,-0.25;9.41,9.49;crafting_inventory_furnace.png]"..
|
||||
--mcl_vars.inventory_header..
|
||||
--"label[0,4;"..minetest.formspec_escape(minetest.colorize("#313131", S("Inventory"))).."]"..
|
||||
"list[current_player;main;0,4.5;9,3;9]"..
|
||||
"list[current_player;main;0,7.74;9,1;]"..
|
||||
"list[current_player;main;0,4.85;9,1;]" ..
|
||||
"list[current_player;main;0,6.08;9,3;9]" ..
|
||||
--"label[2.75,0;"..minetest.formspec_escape(minetest.colorize("#313131", S("Furnace"))).."]"..
|
||||
"list[current_name;src;2.75,0.5;1,1;]"..
|
||||
"list[current_name;fuel;2.75,2.5;1,1;]"..
|
||||
|
@ -29,11 +29,11 @@ local function active_formspec(fuel_percent, item_percent)
|
|||
end
|
||||
|
||||
local inactive_formspec = "size[9,8.75]"..
|
||||
"background[-0.19,-0.25;9.41,9.49;crafting_inventory_furnace.png]"..
|
||||
--"background[-0.19,-0.25;9.41,9.49;crafting_inventory_furnace.png]"..
|
||||
--mcl_vars.inventory_header..
|
||||
--"label[0,4;"..minetest.formspec_escape(minetest.colorize("#313131", S("Inventory"))).."]"..
|
||||
"list[current_player;main;0,4.5;9,3;9]"..
|
||||
"list[current_player;main;0,7.74;9,1;]"..
|
||||
"list[current_player;main;0,4.85;9,1;]" ..
|
||||
"list[current_player;main;0,6.08;9,3;9]" ..
|
||||
--"label[2.75,0;"..minetest.formspec_escape(minetest.colorize("#313131", S("Furnace"))).."]"..
|
||||
"list[current_name;src;2.75,0.5;1,1;]"..
|
||||
"list[current_name;fuel;2.75,2.5;1,1;]"..
|
||||
|
|
|
@ -13,10 +13,10 @@ minetest.register_on_joinplayer(function(player)
|
|||
--gui formspec
|
||||
local form = "size[9,8.75]"..
|
||||
--texture
|
||||
"background[-0.19,-0.25;9.41,9.49;crafting_formspec_bg.png]"..
|
||||
--"background[-0.19,-0.25;9.41,9.49;crafting_formspec_bg.png]"..
|
||||
-- main gui
|
||||
"list[current_player;main;0,4.5;9,3;9]"..
|
||||
"list[current_player;main;0,7.74;9,1;]"..
|
||||
"list[current_player;main;0,4.85;9,1;]" ..
|
||||
"list[current_player;main;0,6.08;9,3;9]" ..
|
||||
--craft gui
|
||||
"list[current_player;craft;4,1;2,2]"..
|
||||
"list[current_player;craftpreview;7,1.5;1,1;]"
|
||||
|
|
|
@ -293,7 +293,22 @@ minetest.register_node("nodes:leaves", {
|
|||
on_timer = function(pos, elapsed)
|
||||
leafdecay_on_timer(pos)
|
||||
end,
|
||||
drop = "items:apple",
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{
|
||||
-- player will get sapling with 1/20 chance
|
||||
items = {'items:apple'},
|
||||
rarity = 20,
|
||||
},
|
||||
{
|
||||
-- player will get leaves only if he get no saplings,
|
||||
-- this is because max_items is 1
|
||||
items = {'nodes:leaves'},
|
||||
rarity = 20,
|
||||
}
|
||||
}
|
||||
},
|
||||
sounds = sounds.leaves(),
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue