minetest.register_node("castle:light",{ drawtype = "glasslike", description = "Light Block", sunlight_propagates = true, light_source = 12, tiles = {"castle_street_light.png"}, groups = {cracky = 2, oddly_breakable_by_hand = 3}, sounds = default.node_sound_glass_defaults(), paramtype = "light" }) minetest.register_craft({ output = "castle:light", recipe = { {"default:stick", "default:glass", "default:stick"}, {"default:glass", "default:torch", "default:glass"}, {"default:stick", "default:glass", "default:stick"} } }) minetest.register_node("castle:dungeon_stone", { description = "Dungeon Stone", drawtype = "normal", tiles = {"castle_dungeon_stone.png"}, groups = {cracky = 2}, paramtype = "light", sounds = default.node_sound_stone_defaults() }) minetest.register_craft({ --type = "shapeless", output = "castle:dungeon_stone", recipe = {{"default:stonebrick", "default:obsidian"}} }) minetest.register_node("castle:crate", { description = "Crate", drawtype = "normal", tiles = { "castle_crate_top.png", "castle_crate_top.png", "castle_crate.png", "castle_crate.png", "castle_crate.png", "castle_crate.png" }, groups = {choppy = 3}, paramtype = "light", sounds = default.node_sound_wood_defaults(), on_construct = function(pos) local meta = minetest.get_meta(pos) meta:set_string("formspec", "size[8,9]" .. default.gui_bg .. default.gui_bg_img .. default.gui_slots .. "list[current_name;main;0,1;8,4;]" .. "list[current_player;main;0,5;8,4;]" .. "listring[]") meta:set_string("infotext", "Crate") local inv = meta:get_inventory() inv:set_size("main", 8 * 3) end, can_dig = function(pos,player) local meta = minetest.get_meta(pos) local inv = meta:get_inventory() return inv:is_empty("main") end }) minetest.register_craft({ output = "castle:crate", recipe = { {"group:wood", "group:wood", "group:wood"}, {"group:wood", "default:steel_ingot", "group:wood"} } }) minetest.register_node("castle:ropes",{ description = "Rope", drawtype = "nodebox", sunlight_propagates = true, tiles = {"castle_ropes.png"}, groups = {choppy = 3, snappy = 3, oddly_breakable_by_hand = 3,flammable = 1}, paramtype = "light", use_texture_alpha = "clip", paramtype2 = "facedir", climbable = true, walkable = false, node_box = { type = "fixed", fixed = {{-1/16, -8/16, -1/16, 1/16, 8/16, 1/16}} }, selection_box = { type = "fixed", fixed = {{-1/16, -8/16, -1/16, 1/16, 8/16, 1/16}} } }) minetest.register_craft({ output = "castle:ropes", recipe = { {"farming:string"}, {"farming:string"}, {"farming:string"} } })