added support for shift+click on chests, removed excesive logging

This commit is contained in:
juraj 2016-02-26 23:41:00 +01:00
parent 0314d4404b
commit 2621c14502
3 changed files with 17 additions and 7 deletions

View File

@ -80,9 +80,9 @@ minetest.register_entity("clams:whiteshell", {
phase = 0,
phasetimer = 0,
on_activate = function(self, staticdata)
minetest.log("whiteshell activated!")
end,
-- on_activate = function(self, staticdata)
-- minetest.log("whiteshell activated!")
-- end,
on_step = function(self, dtime)
self.phasetimer = self.phasetimer + dtime

View File

@ -32,7 +32,9 @@ minetest.register_node("seawrecks:woodshipchest", {
meta:set_string("formspec",
"size[8,9]"..
"list[current_name;main;0,0;8,4;]"..
"list[current_player;main;0,5;8,4;]")
"list[current_player;main;0,5;8,4;]" ..
"listring[current_name;main]" ..
"listring[current_player;main]")
meta:set_string("infotext", "Woodship chest")
local inv = meta:get_inventory()
inv:set_size("main", 8*4)
@ -41,7 +43,9 @@ meta:from_table({
main = {[1] = "default:tree 99", [2] = "default:jungletree 99", [3] = "default:wood 99", [4] = "default:junglewood 99", [5] = "default:sapling 99", [6] = "default:junglesapling 99", [7] = "default:grass_1 99", [8] = "default:junglegrass 99", [32] = ""}
},
fields = {
formspec = "size[8,9;]list[context;main;0,0;8,4;]list[current_player;main;0,5;8,4;]",
formspec = "size[8,9;]list[context;main;0,0;8,4;]list[current_player;main;0,5;8,4;]" ..
"listring[context;main]" ..
"listring[current_player;main]",
infotext = "Normal chest"
}
})
@ -80,7 +84,9 @@ minetest.register_node("seawrecks:ubootchest", {
meta:set_string("formspec",
"size[8,9]"..
"list[current_name;main;0,0;8,4;]"..
"list[current_player;main;0,5;8,4;]")
"list[current_player;main;0,5;8,4;]" ..
"listring[current_name;main]" ..
"listring[current_player;main]")
meta:set_string("infotext", "U-boot chest")
local inv = meta:get_inventory()
inv:set_size("main", 8*4)
@ -89,7 +95,9 @@ meta:from_table({
main = {[1] = "default:gold_ingot 99", [2] = "default:mese_crystal 99", [3] = "default:diamond 99", [32] = ""}
},
fields = {
formspec = "size[8,9;]list[context;main;0,0;8,4;]list[current_player;main;0,5;8,4;]",
formspec = "size[8,9;]list[context;main;0,0;8,4;]list[current_player;main;0,5;8,4;]" ..
"listring[context;main]" ..
"listring[current_player;main]",
infotext = "Normal chest"
}
})

View File

@ -80,3 +80,5 @@ end
minetest.register_alias("clams:whiteshell","whiteshell:whiteshell")
print("[Mod] Sea Loaded.")