diff --git a/mods/homedecor_modpack/itemframes/init.lua b/mods/homedecor_modpack/itemframes/init.lua index 2ffd031b..6b4bd0b7 100644 --- a/mods/homedecor_modpack/itemframes/init.lua +++ b/mods/homedecor_modpack/itemframes/init.lua @@ -1,4 +1,5 @@ local tmp = {} +local itemframes = {} minetest.register_entity("itemframes:item",{ hp_max = 1, diff --git a/mods/inventorycheck/README.md b/mods/inventorycheck/README.md new file mode 100644 index 00000000..723638aa --- /dev/null +++ b/mods/inventorycheck/README.md @@ -0,0 +1 @@ +# inventorycheck diff --git a/mods/inventorycheck/depends.txt b/mods/inventorycheck/depends.txt new file mode 100644 index 00000000..4ad96d51 --- /dev/null +++ b/mods/inventorycheck/depends.txt @@ -0,0 +1 @@ +default diff --git a/mods/inventorycheck/init.lua b/mods/inventorycheck/init.lua new file mode 100644 index 00000000..79965e3e --- /dev/null +++ b/mods/inventorycheck/init.lua @@ -0,0 +1,35 @@ +-- Check Inventory + +minetest.register_privilege("inv", "Can use /inv") + +minetest.register_chatcommand("inv", { + params = "", + description = "Shows inventory of ", + func = function(name, param) + if not minetest.check_player_privs(name, {inv=true}) then + return false, "You don't have permission to check inventories" + end + local player = minetest.get_player_by_name(param) + if player == nil then + minetest.chat_send_player(name, param.." is not online right now") + return false + end + local player_inv = player:get_inventory() + local invlist = param.."'s inventory: " + for i=1,player_inv:get_size("main") do + local items = player_inv:get_stack("main", i) + items = items:to_string() + if items ~= "" then + invlist = invlist..items.." | " + end + end + for i=1,player_inv:get_size("craft") do + local items = player_inv:get_stack("craft", i) + items = items:to_string() + if items ~= "" then + invlist = invlist..items.." | " + end + end + minetest.chat_send_player(name, invlist) + end, +}) diff --git a/mods/maptools/.default_nodes.lua.swp b/mods/maptools/.default_nodes.lua.swp new file mode 100644 index 00000000..aa5e0938 Binary files /dev/null and b/mods/maptools/.default_nodes.lua.swp differ diff --git a/mods/maptools/default_nodes.lua b/mods/maptools/default_nodes.lua index e140aab5..9ae49706 100644 --- a/mods/maptools/default_nodes.lua +++ b/mods/maptools/default_nodes.lua @@ -390,7 +390,7 @@ minetest.register_node("maptools:desert_sand_soil_wet", { -- Fence: -minetest.register_node("default:fence_wood", { +minetest.register_node(":default:fence_wood", { description = S("Unbreakable Wooden Fence"), range = 12, stack_max = 10000, @@ -401,7 +401,7 @@ minetest.register_node("default:fence_wood", { }) -- carts: -minetest.register_node("carts:rail_copper", { +minetest.register_node(":carts:rail_copper", { description = "Unbreakable Copper Rail", drawtype = "raillike", tiles = {"carts_rail_copper.png", "carts_rail_copper_curved.png", "carts_rail_copper_t_junction.png", "carts_rail_copper_crossing.png"}, @@ -436,7 +436,7 @@ minetest.register_node("carts:rail_copper", { }, }) -minetest.register_node("carts:rail_power", { +minetest.register_node(":carts:rail_power", { description = "Unbreakable Powered Rail", drawtype = "raillike", tiles = {"carts_rail_pwr.png", "carts_rail_curved_pwr.png", "carts_rail_t_junction_pwr.png", "carts_rail_crossing_pwr.png"}, @@ -469,4 +469,4 @@ minetest.register_node("carts:rail_power", { end, }, }, -}) \ No newline at end of file +})