Compare commits
	
		
			59 Commits
		
	
	
		
			2019-05-28
			...
			2020-06-04
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					5aecf5f2c7 | ||
| 
						 | 
					9be79ec6d0 | ||
| 
						 | 
					4c0f068909 | ||
| 
						 | 
					ce3c77564c | ||
| 
						 | 
					43333687bd | ||
| 
						 | 
					9ec3eab6f4 | ||
| 
						 | 
					9f5cc15e62 | ||
| 
						 | 
					ed41161554 | ||
| 
						 | 
					77933d9dc3 | ||
| 
						 | 
					c118b43711 | ||
| 
						 | 
					f6da0f7329 | ||
| 
						 | 
					e84a184946 | ||
| 
						 | 
					0c9d883f28 | ||
| 
						 | 
					97e7a31830 | ||
| 
						 | 
					d897e6d97c | ||
| 
						 | 
					8532dee8ed | ||
| 
						 | 
					356f872327 | ||
| 
						 | 
					6c07a31857 | ||
| 
						 | 
					daef49a255 | ||
| 
						 | 
					1072598701 | ||
| 
						 | 
					60be4a6320 | ||
| 
						 | 
					67f2065408 | ||
| 
						 | 
					f90834ff06 | ||
| 
						 | 
					c871e0d388 | ||
| 
						 | 
					d17ec1d978 | ||
| 
						 | 
					9dcc6c2b4d | ||
| 
						 | 
					80352d69e1 | ||
| 
						 | 
					1d59c2258d | ||
| 
						 | 
					11e6b5d92a | ||
| 
						 | 
					7e7b2bcabb | ||
| 
						 | 
					b28f1314da | ||
| 
						 | 
					17ea2040e2 | ||
| 
						 | 
					ed9fb6a34d | ||
| 
						 | 
					13862c1a48 | ||
| 
						 | 
					e289e79aea | ||
| 
						 | 
					80ab12710b | ||
| 
						 | 
					1b94c940d7 | ||
| 
						 | 
					df44dd3dad | ||
| 
						 | 
					bff90189fc | ||
| 
						 | 
					b407f06dc4 | ||
| 
						 | 
					e6dc2c5508 | ||
| 
						 | 
					bde2bf2bf6 | ||
| 
						 | 
					ea160a6519 | ||
| 
						 | 
					631813bb2d | ||
| 
						 | 
					f33636d473 | ||
| 
						 | 
					cbb41f7d98 | ||
| 
						 | 
					c98ec41ba7 | ||
| 
						 | 
					84c3933fd4 | ||
| 
						 | 
					968cdfd549 | ||
| 
						 | 
					c457874d03 | ||
| 
						 | 
					67acbd6d59 | ||
| 
						 | 
					fdb37bdaf5 | ||
| 
						 | 
					ab8bf5586f | ||
| 
						 | 
					2f3c12eb2a | ||
| 
						 | 
					4174737a1a | ||
| 
						 | 
					11771e12cb | ||
| 
						 | 
					b3337921a1 | ||
| 
						 | 
					301ae2ee1d | ||
| 
						 | 
					9b77ba1c28 | 
@@ -258,33 +258,6 @@ minetest.register_node("computer:tower", {
 | 
			
		||||
 | 
			
		||||
minetest.register_alias("computer:tower_on", "computer:tower")
 | 
			
		||||
 | 
			
		||||
-- Printer/scaner combo
 | 
			
		||||
minetest.register_node("computer:printer", {
 | 
			
		||||
	description = S("Printer-Scanner Combo"),
 | 
			
		||||
	inventory_image = "computer_printer_inv.png",
 | 
			
		||||
	tiles = {"computer_printer_t.png","computer_printer_bt.png","computer_printer_l.png",
 | 
			
		||||
			"computer_printer_r.png","computer_printer_b.png","computer_printer_f.png"},
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	paramtype2 = "facedir",
 | 
			
		||||
	walkable = true,
 | 
			
		||||
	groups = {snappy=3},
 | 
			
		||||
	sound = default.node_sound_wood_defaults(),
 | 
			
		||||
	drawtype = "nodebox",
 | 
			
		||||
	node_box = {
 | 
			
		||||
		type = "fixed",
 | 
			
		||||
		fixed = {
 | 
			
		||||
			{-0.4375, -0.3125, -0.125, 0.4375, -0.0625, 0.375},
 | 
			
		||||
			{-0.4375, -0.5, -0.125, 0.4375, -0.4375, 0.375},
 | 
			
		||||
			{-0.4375, -0.5, -0.125, -0.25, -0.0625, 0.375},
 | 
			
		||||
			{0.25, -0.5, -0.125, 0.4375, -0.0625, 0.375},
 | 
			
		||||
			{-0.4375, -0.5, -0.0625, 0.4375, -0.0625, 0.375},
 | 
			
		||||
			{-0.375, -0.4375, 0.25, 0.375, -0.0625, 0.4375},
 | 
			
		||||
			{-0.25, -0.25, 0.4375, 0.25, 0.0625, 0.5},
 | 
			
		||||
			{-0.25, -0.481132, -0.3125, 0.25, -0.4375, 0}
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
--Rack Server
 | 
			
		||||
minetest.register_node("computer:server", {
 | 
			
		||||
	drawtype = "nodebox",
 | 
			
		||||
 
 | 
			
		||||
@@ -1,2 +1,4 @@
 | 
			
		||||
default
 | 
			
		||||
homedecor_common
 | 
			
		||||
basic_materials
 | 
			
		||||
unifieddyes
 | 
			
		||||
 
 | 
			
		||||
@@ -94,6 +94,6 @@ end
 | 
			
		||||
 | 
			
		||||
local MODPATH = minetest.get_modpath("computer")
 | 
			
		||||
dofile(MODPATH.."/computers.lua")
 | 
			
		||||
dofile(MODPATH.."/miscitems.lua")
 | 
			
		||||
dofile(MODPATH.."/printers.lua")
 | 
			
		||||
dofile(MODPATH.."/recipes.lua")
 | 
			
		||||
dofile(MODPATH.."/tetris.lua")
 | 
			
		||||
 
 | 
			
		||||
@@ -1,68 +0,0 @@
 | 
			
		||||
-- Copyright (C) 2012-2013 Diego Martínez <kaeza@users.sf.net>
 | 
			
		||||
 | 
			
		||||
-- This file defines some items in order to not have to depend on other mods.
 | 
			
		||||
 | 
			
		||||
local S = homedecor.gettext
 | 
			
		||||
 | 
			
		||||
if (not minetest.get_modpath("homedecor")) then
 | 
			
		||||
 | 
			
		||||
	minetest.register_craftitem(":basic_materials:plastic_sheet", {
 | 
			
		||||
		description = S("Plastic sheet"),
 | 
			
		||||
		inventory_image = "homedecor_plastic_sheeting.png",
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craftitem(":homedecor:plastic_base", {
 | 
			
		||||
		description = S("Unprocessed Plastic base"),
 | 
			
		||||
		wield_image = "homedecor_plastic_base.png",
 | 
			
		||||
		inventory_image = "homedecor_plastic_base_inv.png",
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "shapeless",
 | 
			
		||||
		output = 'homedecor:plastic_base 6',
 | 
			
		||||
		recipe = { "default:junglegrass",
 | 
			
		||||
		   "default:junglegrass",
 | 
			
		||||
		   "default:junglegrass"
 | 
			
		||||
		}
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "shapeless",
 | 
			
		||||
		output = 'homedecor:plastic_base 3',
 | 
			
		||||
		recipe = { "default:dry_shrub",
 | 
			
		||||
		   "default:dry_shrub",
 | 
			
		||||
		   "default:dry_shrub"
 | 
			
		||||
		},
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "shapeless",
 | 
			
		||||
		output = 'homedecor:plastic_base 4',
 | 
			
		||||
		recipe = { "default:leaves",
 | 
			
		||||
			   "default:leaves",
 | 
			
		||||
			   "default:leaves",
 | 
			
		||||
			   "default:leaves",
 | 
			
		||||
			   "default:leaves",
 | 
			
		||||
			   "default:leaves"
 | 
			
		||||
		}
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = "cooking",
 | 
			
		||||
		output = "basic_materials:plastic_sheet",
 | 
			
		||||
		recipe = "homedecor:plastic_base",
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = 'fuel',
 | 
			
		||||
		recipe = 'homedecor:plastic_base',
 | 
			
		||||
		burntime = 30,
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craft({
 | 
			
		||||
		type = 'fuel',
 | 
			
		||||
		recipe = 'basic_materials:plastic_sheet',
 | 
			
		||||
		burntime = 30,
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
end -- not homedecor
 | 
			
		||||
							
								
								
									
										9835
									
								
								computer/models/computer_3dprinter_bedflinger.obj
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										61
									
								
								computer/printers.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,61 @@
 | 
			
		||||
-- Printers of some kind or another
 | 
			
		||||
 | 
			
		||||
local S = homedecor.gettext
 | 
			
		||||
 | 
			
		||||
minetest.register_node("computer:printer", {
 | 
			
		||||
	description = S("Printer-Scanner Combo"),
 | 
			
		||||
	inventory_image = "computer_printer_inv.png",
 | 
			
		||||
	tiles = {"computer_printer_t.png","computer_printer_bt.png","computer_printer_l.png",
 | 
			
		||||
			"computer_printer_r.png","computer_printer_b.png","computer_printer_f.png"},
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	paramtype2 = "facedir",
 | 
			
		||||
	walkable = true,
 | 
			
		||||
	groups = {snappy=3},
 | 
			
		||||
	sound = default.node_sound_wood_defaults(),
 | 
			
		||||
	drawtype = "nodebox",
 | 
			
		||||
	node_box = {
 | 
			
		||||
		type = "fixed",
 | 
			
		||||
		fixed = {
 | 
			
		||||
			{-0.4375, -0.3125, -0.125, 0.4375, -0.0625, 0.375},
 | 
			
		||||
			{-0.4375, -0.5, -0.125, 0.4375, -0.4375, 0.375},
 | 
			
		||||
			{-0.4375, -0.5, -0.125, -0.25, -0.0625, 0.375},
 | 
			
		||||
			{0.25, -0.5, -0.125, 0.4375, -0.0625, 0.375},
 | 
			
		||||
			{-0.4375, -0.5, -0.0625, 0.4375, -0.0625, 0.375},
 | 
			
		||||
			{-0.375, -0.4375, 0.25, 0.375, -0.0625, 0.4375},
 | 
			
		||||
			{-0.25, -0.25, 0.4375, 0.25, 0.0625, 0.5},
 | 
			
		||||
			{-0.25, -0.481132, -0.3125, 0.25, -0.4375, 0}
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- "bedflinger" style 3D Printer (Prusa i3 or equivalent)
 | 
			
		||||
 | 
			
		||||
local cbox = {
 | 
			
		||||
	type = "fixed",
 | 
			
		||||
	fixed = {-0.25, -0.25, -0.5, 0.3, 0.3, 0.25 }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
minetest.register_node("computer:3dprinter_bedflinger", {
 | 
			
		||||
	description = S('3D Printer ("bedflinger")'),
 | 
			
		||||
	inventory_image = "computer_3dprinter_bedflinger_inv.png",
 | 
			
		||||
	tiles = {
 | 
			
		||||
		{ name = "computer_3dprinter_bedflinger.png", color = 0xffffffff },
 | 
			
		||||
		"computer_3dprinter_filament.png"
 | 
			
		||||
	},
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	walkable = true,
 | 
			
		||||
	groups = {snappy=3, ud_param2_colorable = 1},
 | 
			
		||||
	sound = default.node_sound_wood_defaults(),
 | 
			
		||||
	drawtype = "mesh",
 | 
			
		||||
	mesh = "computer_3dprinter_bedflinger.obj",
 | 
			
		||||
	paramtype2 = "colorwallmounted",
 | 
			
		||||
	palette = "unifieddyes_palette_colorwallmounted.png",
 | 
			
		||||
	selection_box = cbox,
 | 
			
		||||
	collision_box = cbox,
 | 
			
		||||
	after_place_node = function(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
		unifieddyes.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
	end,
 | 
			
		||||
	on_dig = unifieddyes.on_dig,
 | 
			
		||||
	on_rotate = unifieddyes.fix_after_screwdriver_nsew,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
@@ -1,4 +1,3 @@
 | 
			
		||||
 | 
			
		||||
local S = homedecor.gettext
 | 
			
		||||
 | 
			
		||||
local shapes = {
 | 
			
		||||
@@ -220,10 +219,10 @@ local function step(pos, fields)
 | 
			
		||||
	if fields then
 | 
			
		||||
		if fields.new then
 | 
			
		||||
			new_game(pos)
 | 
			
		||||
		else
 | 
			
		||||
		elseif t then
 | 
			
		||||
			key(fields)
 | 
			
		||||
		end
 | 
			
		||||
	else
 | 
			
		||||
	elseif t then
 | 
			
		||||
		run = tick()
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								computer/textures/computer_3dprinter_bedflinger.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 3.5 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								computer/textures/computer_3dprinter_bedflinger_inv.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 3.8 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								computer/textures/computer_3dprinter_filament.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 216 B  | 
@@ -3,7 +3,80 @@ local S = homedecor.gettext
 | 
			
		||||
 | 
			
		||||
screwdriver = screwdriver or {}
 | 
			
		||||
 | 
			
		||||
local function start_smoke(pos, node, clicker, chimney)
 | 
			
		||||
local function fire_particles_on(pos) -- 3 layers of fire
 | 
			
		||||
	local meta = minetest.get_meta(pos)
 | 
			
		||||
	local id = minetest.add_particlespawner({ -- 1 layer big particles fire
 | 
			
		||||
		amount = 9,
 | 
			
		||||
		time = 0,
 | 
			
		||||
		minpos = {x = pos.x - 0.2, y = pos.y - 0.4, z = pos.z - 0.2},
 | 
			
		||||
		maxpos = {x = pos.x + 0.2, y = pos.y - 0.1, z = pos.z + 0.2},
 | 
			
		||||
		minvel = {x= 0, y= 0, z= 0},
 | 
			
		||||
		maxvel = {x= 0, y= 0.1, z= 0},
 | 
			
		||||
		minacc = {x= 0, y= 0, z= 0},
 | 
			
		||||
		maxacc = {x= 0, y= 0.7, z= 0},
 | 
			
		||||
		minexptime = 0.5,
 | 
			
		||||
		maxexptime = 0.7,
 | 
			
		||||
		minsize = 2,
 | 
			
		||||
		maxsize = 5,
 | 
			
		||||
		collisiondetection = false,
 | 
			
		||||
		vertical = true,
 | 
			
		||||
		texture = "fake_fire_particle_anim_fire.png",
 | 
			
		||||
		animation = {type="vertical_frames", aspect_w=16, aspect_h=16, length = 0.8,},
 | 
			
		||||
	})
 | 
			
		||||
	meta:set_int("layer_1", id)
 | 
			
		||||
 | 
			
		||||
	local id = minetest.add_particlespawner({ -- 2 layer smol particles fire
 | 
			
		||||
		amount = 1,
 | 
			
		||||
		time = 0,
 | 
			
		||||
		minpos = {x = pos.x - 0.1, y = pos.y, z = pos.z - 0.1},
 | 
			
		||||
		maxpos = {x = pos.x + 0.1, y = pos.y + 0.4, z = pos.z + 0.1},
 | 
			
		||||
		minvel = {x= 0, y= 0, z= 0},
 | 
			
		||||
		maxvel = {x= 0, y= 0.1, z= 0},
 | 
			
		||||
		minacc = {x= 0, y= 0, z= 0},
 | 
			
		||||
		maxacc = {x= 0, y= 1, z= 0},
 | 
			
		||||
		minexptime = 0.4,
 | 
			
		||||
		maxexptime = 0.6,
 | 
			
		||||
		minsize = 0.5,
 | 
			
		||||
		maxsize = 0.7,
 | 
			
		||||
		collisiondetection = false,
 | 
			
		||||
		vertical = true,
 | 
			
		||||
		texture = "fake_fire_particle_anim_fire.png",
 | 
			
		||||
		animation = {type="vertical_frames", aspect_w=16, aspect_h=16, length = 0.7,},
 | 
			
		||||
	})
 | 
			
		||||
	meta:set_int("layer_2", id)
 | 
			
		||||
 | 
			
		||||
	local id = minetest.add_particlespawner({ --3 layer smoke
 | 
			
		||||
		amount = 1,
 | 
			
		||||
		time = 0,
 | 
			
		||||
		minpos = {x = pos.x - 0.1, y = pos.y - 0.2, z = pos.z - 0.1},
 | 
			
		||||
		maxpos = {x = pos.x + 0.2, y = pos.y + 0.4, z = pos.z + 0.2},
 | 
			
		||||
		minvel = {x= 0, y= 0, z= 0},
 | 
			
		||||
		maxvel = {x= 0, y= 0.1, z= 0},
 | 
			
		||||
		minacc = {x= 0, y= 0, z= 0},
 | 
			
		||||
		maxacc = {x= 0, y= 1, z= 0},
 | 
			
		||||
		minexptime = 0.6,
 | 
			
		||||
		maxexptime = 0.8,
 | 
			
		||||
		minsize = 2,
 | 
			
		||||
		maxsize = 4,
 | 
			
		||||
		collisiondetection = true,
 | 
			
		||||
		vertical = true,
 | 
			
		||||
		texture = "fake_fire_particle_anim_smoke.png",
 | 
			
		||||
		animation = {type="vertical_frames", aspect_w=16, aspect_h=16, length = 0.9,},
 | 
			
		||||
	})
 | 
			
		||||
	meta:set_int("layer_3", id)
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
local function fire_particles_off(pos)
 | 
			
		||||
	local meta = minetest.get_meta(pos)
 | 
			
		||||
	local id_1 = meta:get_int("layer_1");
 | 
			
		||||
	local id_2 = meta:get_int("layer_2");
 | 
			
		||||
	local id_3 = meta:get_int("layer_3");
 | 
			
		||||
	minetest.delete_particlespawner(id_1)
 | 
			
		||||
	minetest.delete_particlespawner(id_2)
 | 
			
		||||
	minetest.delete_particlespawner(id_3)
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
local function start_fire_effects(pos, node, clicker, chimney)
 | 
			
		||||
	local this_spawner_meta = minetest.get_meta(pos)
 | 
			
		||||
	local id = this_spawner_meta:get_int("smoky")
 | 
			
		||||
	local s_handle = this_spawner_meta:get_int("sound")
 | 
			
		||||
@@ -41,7 +114,7 @@ local function start_smoke(pos, node, clicker, chimney)
 | 
			
		||||
				max_hear_distance = 5,
 | 
			
		||||
				loop = true
 | 
			
		||||
			})
 | 
			
		||||
			this_spawner_meta:set_int("smoky", id)
 | 
			
		||||
			fire_particles_on(pos)
 | 
			
		||||
			this_spawner_meta:set_int("sound", s_handle)
 | 
			
		||||
		end
 | 
			
		||||
	end
 | 
			
		||||
@@ -83,7 +156,7 @@ minetest.register_node("fake_fire:ice_fire", {
 | 
			
		||||
		aspect_w=16, aspect_h=16, length=1.5}},
 | 
			
		||||
	},
 | 
			
		||||
	on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
 | 
			
		||||
		start_smoke(pos, node, clicker)
 | 
			
		||||
		start_fire_effects(pos, node, clicker)
 | 
			
		||||
		return itemstack
 | 
			
		||||
	end,
 | 
			
		||||
	on_destruct = function (pos)
 | 
			
		||||
@@ -97,42 +170,54 @@ minetest.register_node("fake_fire:ice_fire", {
 | 
			
		||||
 | 
			
		||||
minetest.register_alias("fake_fire:fake_fire", "fire:permanent_flame")
 | 
			
		||||
 | 
			
		||||
local sbox = {
 | 
			
		||||
	type = 'fixed',
 | 
			
		||||
	fixed = { -8/16, -8/16, -8/16, 8/16, -6/16, 8/16},
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
minetest.register_node("fake_fire:fancy_fire", {
 | 
			
		||||
		inventory_image = "fancy_fire_inv.png",
 | 
			
		||||
		description = S("Fancy Fire"),
 | 
			
		||||
		drawtype = "mesh",
 | 
			
		||||
		mesh = "fancy_fire.obj",
 | 
			
		||||
		paramtype = "light",
 | 
			
		||||
		paramtype2 = "facedir",
 | 
			
		||||
		groups = {dig_immediate=3},
 | 
			
		||||
		sunlight_propagates = true,
 | 
			
		||||
		light_source = 14,
 | 
			
		||||
		walkable = false,
 | 
			
		||||
		damage_per_second = 4,
 | 
			
		||||
		on_rotate = screwdriver.rotate_simple,
 | 
			
		||||
		tiles = {
 | 
			
		||||
		{name="fake_fire_animated.png",
 | 
			
		||||
		animation={type='vertical_frames', aspect_w=16, aspect_h=16, length=1}}, {name='fake_fire_logs.png'}},
 | 
			
		||||
		on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
 | 
			
		||||
			start_smoke(pos, node, clicker)
 | 
			
		||||
			return itemstack
 | 
			
		||||
		end,
 | 
			
		||||
		on_destruct = function (pos)
 | 
			
		||||
			stop_smoke(pos)
 | 
			
		||||
			minetest.sound_play("fire_extinguish", {
 | 
			
		||||
				pos = pos, max_hear_distance = 5
 | 
			
		||||
			})
 | 
			
		||||
		end,
 | 
			
		||||
		drop = {
 | 
			
		||||
			max_items = 3,
 | 
			
		||||
			items = {
 | 
			
		||||
				{
 | 
			
		||||
					items = { "default:torch", "default:torch", "building_blocks:sticks" },
 | 
			
		||||
					rarity = 1,
 | 
			
		||||
				}
 | 
			
		||||
	inventory_image = "fancy_fire_inv.png",
 | 
			
		||||
	description = S("Fancy Fire"),
 | 
			
		||||
	drawtype = "mesh",
 | 
			
		||||
	mesh = "fancy_fire.obj",
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	paramtype2 = "facedir",
 | 
			
		||||
	groups = {oddly_breakable_by_hand=3, flammable=0},
 | 
			
		||||
	sunlight_propagates = true,
 | 
			
		||||
	light_source = 13,
 | 
			
		||||
	walkable = false,
 | 
			
		||||
	buildable_to = false,
 | 
			
		||||
	damage_per_second = 3,
 | 
			
		||||
	selection_box = sbox,
 | 
			
		||||
	tiles = {
 | 
			
		||||
		"basic_materials_concrete_block.png",
 | 
			
		||||
		"default_junglewood.png",
 | 
			
		||||
		"fake_fire_empty_tile.png"
 | 
			
		||||
	},
 | 
			
		||||
	on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
 | 
			
		||||
		fire_particles_on(pos)
 | 
			
		||||
		return itemstack
 | 
			
		||||
	end,
 | 
			
		||||
	on_construct = function(pos)
 | 
			
		||||
		local meta = minetest.get_meta(pos)
 | 
			
		||||
		fire_particles_on(pos)
 | 
			
		||||
	end,
 | 
			
		||||
	on_destruct = function(pos, oldnode, oldmetadata, digger)
 | 
			
		||||
		fire_particles_off(pos)
 | 
			
		||||
		minetest.sound_play("fire_extinguish", {
 | 
			
		||||
			pos = pos, max_hear_distance = 5
 | 
			
		||||
		})
 | 
			
		||||
	end,
 | 
			
		||||
	drop = {
 | 
			
		||||
		max_items = 3,
 | 
			
		||||
		items = {
 | 
			
		||||
			{
 | 
			
		||||
				items = { "default:torch", "default:torch", "building_blocks:sticks" },
 | 
			
		||||
				rarity = 1,
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	})
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- EMBERS
 | 
			
		||||
minetest.register_node("fake_fire:embers", {
 | 
			
		||||
@@ -168,7 +253,7 @@ for _, mat in ipairs(materials) do
 | 
			
		||||
		},
 | 
			
		||||
		on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
 | 
			
		||||
			local chimney = 1
 | 
			
		||||
			start_smoke(pos, node, clicker, chimney)
 | 
			
		||||
			start_fire_effects(pos, node, clicker, chimney)
 | 
			
		||||
			return itemstack
 | 
			
		||||
		end,
 | 
			
		||||
		on_destruct = function (pos)
 | 
			
		||||
@@ -209,8 +294,22 @@ minetest.register_craft({
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- ALIASES
 | 
			
		||||
 | 
			
		||||
minetest.register_alias("fake_fire:smokeless_fire", "fake_fire:fake_fire")
 | 
			
		||||
minetest.register_alias("fake_fire:smokeless_ice_fire", "fake_fire:ice_fire")
 | 
			
		||||
minetest.register_alias("fake_fire:smokeless_chimney_top_stone", "fake_fire:chimney_top_stone")
 | 
			
		||||
minetest.register_alias("fake_fire:smokeless_chimney_top_sandstone", "fake_fire:chimney_top_sandstone")
 | 
			
		||||
minetest.register_alias("fake_fire:flint", "fake_fire:flint_and_steel")
 | 
			
		||||
 | 
			
		||||
-- OTHER
 | 
			
		||||
 | 
			
		||||
minetest.register_lbm({
 | 
			
		||||
	name = "fake_fire:reload_particles",
 | 
			
		||||
	label = "restart fire particles on reload",
 | 
			
		||||
	nodenames = {"fake_fire:fancy_fire"},
 | 
			
		||||
	run_at_every_load = true,
 | 
			
		||||
	action = function(pos, node)
 | 
			
		||||
		fire_particles_off(pos)
 | 
			
		||||
		fire_particles_on(pos)
 | 
			
		||||
	end
 | 
			
		||||
})
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								fake_fire/textures/fake_fire_empty_tile.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 68 B  | 
| 
		 Before Width: | Height: | Size: 2.0 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								fake_fire/textures/fake_fire_particle_anim_fire.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 251 B  | 
							
								
								
									
										
											BIN
										
									
								
								fake_fire/textures/fake_fire_particle_anim_smoke.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 275 B  | 
@@ -89,28 +89,19 @@ end
 | 
			
		||||
-- 3d-ify default mtg wood and steel doors and trap doors
 | 
			
		||||
 | 
			
		||||
if minetest.get_modpath("doors") then
 | 
			
		||||
	local function clone_node(name)
 | 
			
		||||
		local node2 = {}
 | 
			
		||||
		local node = minetest.registered_nodes[name]
 | 
			
		||||
		for k,v in pairs(node) do
 | 
			
		||||
			node2[k]=v
 | 
			
		||||
		end
 | 
			
		||||
		return node2
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	local def
 | 
			
		||||
	for _,mat in ipairs({"wood", "steel"}) do
 | 
			
		||||
		def = clone_node("doors:door_"..mat.."_a")
 | 
			
		||||
		def = table.copy(minetest.registered_nodes["doors:door_"..mat.."_a"])
 | 
			
		||||
			def.mesh = "homedecor_3d_door_"..mat.."_a.obj"
 | 
			
		||||
			minetest.register_node(":doors:door_"..mat.."_a", def)
 | 
			
		||||
 | 
			
		||||
		def = clone_node("doors:door_"..mat.."_b")
 | 
			
		||||
		def = table.copy(minetest.registered_nodes["doors:door_"..mat.."_b"])
 | 
			
		||||
			def.mesh = "homedecor_3d_door_"..mat.."_b.obj"
 | 
			
		||||
			minetest.register_node(":doors:door_"..mat.."_b", def)
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	for _,mat in ipairs({"", "_steel"}) do
 | 
			
		||||
		def = clone_node("doors:trapdoor"..mat)
 | 
			
		||||
		def = table.copy(minetest.registered_nodes["doors:trapdoor"..mat])
 | 
			
		||||
			def.drawtype = "mesh"
 | 
			
		||||
			def.mesh = "homedecor_3d_trapdoor"..mat..".obj"
 | 
			
		||||
			def.tiles = {
 | 
			
		||||
@@ -119,7 +110,7 @@ if minetest.get_modpath("doors") then
 | 
			
		||||
			}
 | 
			
		||||
			minetest.register_node(":doors:trapdoor"..mat, def)
 | 
			
		||||
 | 
			
		||||
		def = clone_node("doors:trapdoor"..mat.."_open")
 | 
			
		||||
		def = table.copy(minetest.registered_nodes["doors:trapdoor"..mat.."_open"])
 | 
			
		||||
			def.mesh = "homedecor_3d_trapdoor"..mat.."_open.obj"
 | 
			
		||||
			def.drawtype = "mesh"
 | 
			
		||||
			def.tiles = {
 | 
			
		||||
 
 | 
			
		||||
@@ -293,12 +293,12 @@ vt 0.000000 0.062500
 | 
			
		||||
vt 0.000000 0.000000
 | 
			
		||||
vt 0.421053 0.000000
 | 
			
		||||
vt 0.421053 0.000000
 | 
			
		||||
vt 0.052632 0.937500
 | 
			
		||||
vt 0.368421 0.937500
 | 
			
		||||
vt 0.052632 0.921875
 | 
			
		||||
vt 0.368421 0.921875
 | 
			
		||||
vt 0.368421 0.906250
 | 
			
		||||
vt 0.052632 0.906250
 | 
			
		||||
vt 0.473684 0.937500
 | 
			
		||||
vt 0.789474 0.937500
 | 
			
		||||
vt 0.473684 0.921875
 | 
			
		||||
vt 0.789474 0.921875
 | 
			
		||||
vt 0.789474 0.906250
 | 
			
		||||
vt 0.473684 0.906250
 | 
			
		||||
vt 0.842105 0.937500
 | 
			
		||||
@@ -339,12 +339,12 @@ vt 0.973684 0.062500
 | 
			
		||||
vt 0.960526 0.062500
 | 
			
		||||
vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.906250
 | 
			
		||||
vt 0.368421 0.906250
 | 
			
		||||
vt 0.052632 0.890625
 | 
			
		||||
vt 0.368421 0.890625
 | 
			
		||||
vt 0.368421 0.875000
 | 
			
		||||
vt 0.052632 0.875000
 | 
			
		||||
vt 0.473684 0.906250
 | 
			
		||||
vt 0.789474 0.906250
 | 
			
		||||
vt 0.473684 0.890625
 | 
			
		||||
vt 0.789474 0.890625
 | 
			
		||||
vt 0.789474 0.875000
 | 
			
		||||
vt 0.473684 0.875000
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
@@ -355,12 +355,12 @@ vt 0.973684 0.062500
 | 
			
		||||
vt 0.960526 0.062500
 | 
			
		||||
vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.875000
 | 
			
		||||
vt 0.368421 0.875000
 | 
			
		||||
vt 0.052632 0.859375
 | 
			
		||||
vt 0.368421 0.859375
 | 
			
		||||
vt 0.368421 0.843750
 | 
			
		||||
vt 0.052632 0.843750
 | 
			
		||||
vt 0.473684 0.875000
 | 
			
		||||
vt 0.789474 0.875000
 | 
			
		||||
vt 0.473684 0.859375
 | 
			
		||||
vt 0.789474 0.859375
 | 
			
		||||
vt 0.789474 0.843750
 | 
			
		||||
vt 0.473684 0.843750
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
@@ -371,12 +371,12 @@ vt 0.973684 0.062500
 | 
			
		||||
vt 0.960526 0.062500
 | 
			
		||||
vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.843750
 | 
			
		||||
vt 0.368421 0.843750
 | 
			
		||||
vt 0.052632 0.828125
 | 
			
		||||
vt 0.368421 0.828125
 | 
			
		||||
vt 0.368421 0.812500
 | 
			
		||||
vt 0.052632 0.812500
 | 
			
		||||
vt 0.473684 0.843750
 | 
			
		||||
vt 0.789474 0.843750
 | 
			
		||||
vt 0.473684 0.828125
 | 
			
		||||
vt 0.789474 0.828125
 | 
			
		||||
vt 0.789474 0.812500
 | 
			
		||||
vt 0.473684 0.812500
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
@@ -387,12 +387,12 @@ vt 0.973684 0.062500
 | 
			
		||||
vt 0.960526 0.062500
 | 
			
		||||
vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.812500
 | 
			
		||||
vt 0.368421 0.812500
 | 
			
		||||
vt 0.052632 0.796875
 | 
			
		||||
vt 0.368421 0.796875
 | 
			
		||||
vt 0.368421 0.781250
 | 
			
		||||
vt 0.052632 0.781250
 | 
			
		||||
vt 0.473684 0.812500
 | 
			
		||||
vt 0.789474 0.812500
 | 
			
		||||
vt 0.473684 0.796875
 | 
			
		||||
vt 0.789474 0.796875
 | 
			
		||||
vt 0.789474 0.781250
 | 
			
		||||
vt 0.473684 0.781250
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
@@ -403,12 +403,12 @@ vt 0.973684 0.062500
 | 
			
		||||
vt 0.960526 0.062500
 | 
			
		||||
vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.781250
 | 
			
		||||
vt 0.368421 0.781250
 | 
			
		||||
vt 0.052632 0.765625
 | 
			
		||||
vt 0.368421 0.765625
 | 
			
		||||
vt 0.368421 0.750000
 | 
			
		||||
vt 0.052632 0.750000
 | 
			
		||||
vt 0.473684 0.781250
 | 
			
		||||
vt 0.789474 0.781250
 | 
			
		||||
vt 0.473684 0.765625
 | 
			
		||||
vt 0.789474 0.765625
 | 
			
		||||
vt 0.789474 0.750000
 | 
			
		||||
vt 0.473684 0.750000
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
@@ -419,12 +419,12 @@ vt 0.973684 0.062500
 | 
			
		||||
vt 0.960526 0.062500
 | 
			
		||||
vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.718750
 | 
			
		||||
vt 0.368421 0.718750
 | 
			
		||||
vt 0.052632 0.703125
 | 
			
		||||
vt 0.368421 0.703125
 | 
			
		||||
vt 0.368421 0.687500
 | 
			
		||||
vt 0.052632 0.687500
 | 
			
		||||
vt 0.473684 0.718750
 | 
			
		||||
vt 0.789474 0.718750
 | 
			
		||||
vt 0.473684 0.703125
 | 
			
		||||
vt 0.789474 0.703125
 | 
			
		||||
vt 0.789474 0.687500
 | 
			
		||||
vt 0.473684 0.687500
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
@@ -435,12 +435,12 @@ vt 0.973684 0.062500
 | 
			
		||||
vt 0.960526 0.062500
 | 
			
		||||
vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.750000
 | 
			
		||||
vt 0.368421 0.750000
 | 
			
		||||
vt 0.052632 0.734375
 | 
			
		||||
vt 0.368421 0.734375
 | 
			
		||||
vt 0.368421 0.718750
 | 
			
		||||
vt 0.052632 0.718750
 | 
			
		||||
vt 0.473684 0.750000
 | 
			
		||||
vt 0.789474 0.750000
 | 
			
		||||
vt 0.473684 0.734375
 | 
			
		||||
vt 0.789474 0.734375
 | 
			
		||||
vt 0.789474 0.718750
 | 
			
		||||
vt 0.473684 0.718750
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
@@ -451,12 +451,12 @@ vt 0.973684 0.062500
 | 
			
		||||
vt 0.960526 0.062500
 | 
			
		||||
vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.687500
 | 
			
		||||
vt 0.368421 0.687500
 | 
			
		||||
vt 0.052632 0.671875
 | 
			
		||||
vt 0.368421 0.671875
 | 
			
		||||
vt 0.368421 0.656250
 | 
			
		||||
vt 0.052632 0.656250
 | 
			
		||||
vt 0.473684 0.687500
 | 
			
		||||
vt 0.789474 0.687500
 | 
			
		||||
vt 0.473684 0.671875
 | 
			
		||||
vt 0.789474 0.671875
 | 
			
		||||
vt 0.789474 0.656250
 | 
			
		||||
vt 0.473684 0.656250
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
@@ -467,12 +467,12 @@ vt 0.973684 0.062500
 | 
			
		||||
vt 0.960526 0.062500
 | 
			
		||||
vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.656250
 | 
			
		||||
vt 0.368421 0.656250
 | 
			
		||||
vt 0.052632 0.640625
 | 
			
		||||
vt 0.368421 0.640625
 | 
			
		||||
vt 0.368421 0.625000
 | 
			
		||||
vt 0.052632 0.625000
 | 
			
		||||
vt 0.473684 0.656250
 | 
			
		||||
vt 0.789474 0.656250
 | 
			
		||||
vt 0.473684 0.640625
 | 
			
		||||
vt 0.789474 0.640625
 | 
			
		||||
vt 0.789474 0.625000
 | 
			
		||||
vt 0.473684 0.625000
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
@@ -483,12 +483,12 @@ vt 0.973684 0.062500
 | 
			
		||||
vt 0.960526 0.062500
 | 
			
		||||
vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.625000
 | 
			
		||||
vt 0.368421 0.625000
 | 
			
		||||
vt 0.052632 0.609375
 | 
			
		||||
vt 0.368421 0.609375
 | 
			
		||||
vt 0.368421 0.593750
 | 
			
		||||
vt 0.052632 0.593750
 | 
			
		||||
vt 0.473684 0.625000
 | 
			
		||||
vt 0.789474 0.625000
 | 
			
		||||
vt 0.473684 0.609375
 | 
			
		||||
vt 0.789474 0.609375
 | 
			
		||||
vt 0.789474 0.593750
 | 
			
		||||
vt 0.473684 0.593750
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
@@ -499,12 +499,12 @@ vt 0.973684 0.062500
 | 
			
		||||
vt 0.960526 0.062500
 | 
			
		||||
vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.593750
 | 
			
		||||
vt 0.368421 0.593750
 | 
			
		||||
vt 0.052632 0.578125
 | 
			
		||||
vt 0.368421 0.578125
 | 
			
		||||
vt 0.368421 0.562500
 | 
			
		||||
vt 0.052632 0.562500
 | 
			
		||||
vt 0.473684 0.593750
 | 
			
		||||
vt 0.789474 0.593750
 | 
			
		||||
vt 0.473684 0.578125
 | 
			
		||||
vt 0.789474 0.578125
 | 
			
		||||
vt 0.789474 0.562500
 | 
			
		||||
vt 0.473684 0.562500
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
@@ -515,12 +515,12 @@ vt 0.973684 0.062500
 | 
			
		||||
vt 0.960526 0.062500
 | 
			
		||||
vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.562500
 | 
			
		||||
vt 0.368421 0.562500
 | 
			
		||||
vt 0.052632 0.546875
 | 
			
		||||
vt 0.368421 0.546875
 | 
			
		||||
vt 0.368421 0.531250
 | 
			
		||||
vt 0.052632 0.531250
 | 
			
		||||
vt 0.473684 0.562500
 | 
			
		||||
vt 0.789474 0.562500
 | 
			
		||||
vt 0.473684 0.546875
 | 
			
		||||
vt 0.789474 0.546875
 | 
			
		||||
vt 0.789474 0.531250
 | 
			
		||||
vt 0.473684 0.531250
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
@@ -533,12 +533,12 @@ vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.468750
 | 
			
		||||
vt 0.368421 0.468750
 | 
			
		||||
vt 0.368421 0.437500
 | 
			
		||||
vt 0.052632 0.437500
 | 
			
		||||
vt 0.368421 0.453125
 | 
			
		||||
vt 0.052632 0.453125
 | 
			
		||||
vt 0.473684 0.468750
 | 
			
		||||
vt 0.789474 0.468750
 | 
			
		||||
vt 0.789474 0.437500
 | 
			
		||||
vt 0.473684 0.437500
 | 
			
		||||
vt 0.789474 0.453125
 | 
			
		||||
vt 0.473684 0.453125
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
vt 0.973684 0.562500
 | 
			
		||||
vt 0.973684 0.937500
 | 
			
		||||
@@ -549,12 +549,12 @@ vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.437500
 | 
			
		||||
vt 0.368421 0.437500
 | 
			
		||||
vt 0.368421 0.406250
 | 
			
		||||
vt 0.052632 0.406250
 | 
			
		||||
vt 0.368421 0.421875
 | 
			
		||||
vt 0.052632 0.421875
 | 
			
		||||
vt 0.473684 0.437500
 | 
			
		||||
vt 0.789474 0.437500
 | 
			
		||||
vt 0.789474 0.406250
 | 
			
		||||
vt 0.473684 0.406250
 | 
			
		||||
vt 0.789474 0.421875
 | 
			
		||||
vt 0.473684 0.421875
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
vt 0.973684 0.562500
 | 
			
		||||
vt 0.973684 0.937500
 | 
			
		||||
@@ -565,12 +565,12 @@ vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.406250
 | 
			
		||||
vt 0.368421 0.406250
 | 
			
		||||
vt 0.368421 0.375000
 | 
			
		||||
vt 0.052632 0.375000
 | 
			
		||||
vt 0.368421 0.390625
 | 
			
		||||
vt 0.052632 0.390625
 | 
			
		||||
vt 0.473684 0.406250
 | 
			
		||||
vt 0.789474 0.406250
 | 
			
		||||
vt 0.789474 0.375000
 | 
			
		||||
vt 0.473684 0.375000
 | 
			
		||||
vt 0.789474 0.390625
 | 
			
		||||
vt 0.473684 0.390625
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
vt 0.973684 0.562500
 | 
			
		||||
vt 0.973684 0.937500
 | 
			
		||||
@@ -581,12 +581,12 @@ vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.375000
 | 
			
		||||
vt 0.368421 0.375000
 | 
			
		||||
vt 0.368421 0.343750
 | 
			
		||||
vt 0.052632 0.343750
 | 
			
		||||
vt 0.368421 0.359375
 | 
			
		||||
vt 0.052632 0.359375
 | 
			
		||||
vt 0.473684 0.375000
 | 
			
		||||
vt 0.789474 0.375000
 | 
			
		||||
vt 0.789474 0.343750
 | 
			
		||||
vt 0.473684 0.343750
 | 
			
		||||
vt 0.789474 0.359375
 | 
			
		||||
vt 0.473684 0.359375
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
vt 0.973684 0.562500
 | 
			
		||||
vt 0.973684 0.937500
 | 
			
		||||
@@ -597,12 +597,12 @@ vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.343750
 | 
			
		||||
vt 0.368421 0.343750
 | 
			
		||||
vt 0.368421 0.312500
 | 
			
		||||
vt 0.052632 0.312500
 | 
			
		||||
vt 0.368421 0.328125
 | 
			
		||||
vt 0.052632 0.328125
 | 
			
		||||
vt 0.473684 0.343750
 | 
			
		||||
vt 0.789474 0.343750
 | 
			
		||||
vt 0.789474 0.312500
 | 
			
		||||
vt 0.473684 0.312500
 | 
			
		||||
vt 0.789474 0.328125
 | 
			
		||||
vt 0.473684 0.328125
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
vt 0.973684 0.562500
 | 
			
		||||
vt 0.973684 0.937500
 | 
			
		||||
@@ -613,12 +613,12 @@ vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.312500
 | 
			
		||||
vt 0.368421 0.312500
 | 
			
		||||
vt 0.368421 0.281250
 | 
			
		||||
vt 0.052632 0.281250
 | 
			
		||||
vt 0.368421 0.296875
 | 
			
		||||
vt 0.052632 0.296875
 | 
			
		||||
vt 0.473684 0.312500
 | 
			
		||||
vt 0.789474 0.312500
 | 
			
		||||
vt 0.789474 0.281250
 | 
			
		||||
vt 0.473684 0.281250
 | 
			
		||||
vt 0.789474 0.296875
 | 
			
		||||
vt 0.473684 0.296875
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
vt 0.973684 0.562500
 | 
			
		||||
vt 0.973684 0.937500
 | 
			
		||||
@@ -629,12 +629,12 @@ vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.250000
 | 
			
		||||
vt 0.368421 0.250000
 | 
			
		||||
vt 0.368421 0.218750
 | 
			
		||||
vt 0.052632 0.218750
 | 
			
		||||
vt 0.368421 0.234375
 | 
			
		||||
vt 0.052632 0.234375
 | 
			
		||||
vt 0.473684 0.250000
 | 
			
		||||
vt 0.789474 0.250000
 | 
			
		||||
vt 0.789474 0.218750
 | 
			
		||||
vt 0.473684 0.218750
 | 
			
		||||
vt 0.789474 0.234375
 | 
			
		||||
vt 0.473684 0.234375
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
vt 0.973684 0.562500
 | 
			
		||||
vt 0.973684 0.937500
 | 
			
		||||
@@ -645,12 +645,12 @@ vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.281250
 | 
			
		||||
vt 0.368421 0.281250
 | 
			
		||||
vt 0.368421 0.250000
 | 
			
		||||
vt 0.052632 0.250000
 | 
			
		||||
vt 0.368421 0.265625
 | 
			
		||||
vt 0.052632 0.265625
 | 
			
		||||
vt 0.473684 0.281250
 | 
			
		||||
vt 0.789474 0.281250
 | 
			
		||||
vt 0.789474 0.250000
 | 
			
		||||
vt 0.473684 0.250000
 | 
			
		||||
vt 0.789474 0.265625
 | 
			
		||||
vt 0.473684 0.265625
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
vt 0.973684 0.562500
 | 
			
		||||
vt 0.973684 0.937500
 | 
			
		||||
@@ -661,12 +661,12 @@ vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.218750
 | 
			
		||||
vt 0.368421 0.218750
 | 
			
		||||
vt 0.368421 0.187500
 | 
			
		||||
vt 0.052632 0.187500
 | 
			
		||||
vt 0.368421 0.203125
 | 
			
		||||
vt 0.052632 0.203125
 | 
			
		||||
vt 0.473684 0.218750
 | 
			
		||||
vt 0.789474 0.218750
 | 
			
		||||
vt 0.789474 0.187500
 | 
			
		||||
vt 0.473684 0.187500
 | 
			
		||||
vt 0.789474 0.203125
 | 
			
		||||
vt 0.473684 0.203125
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
vt 0.973684 0.562500
 | 
			
		||||
vt 0.973684 0.937500
 | 
			
		||||
@@ -677,12 +677,12 @@ vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.187500
 | 
			
		||||
vt 0.368421 0.187500
 | 
			
		||||
vt 0.368421 0.156250
 | 
			
		||||
vt 0.052632 0.156250
 | 
			
		||||
vt 0.368421 0.171875
 | 
			
		||||
vt 0.052632 0.171875
 | 
			
		||||
vt 0.473684 0.187500
 | 
			
		||||
vt 0.789474 0.187500
 | 
			
		||||
vt 0.789474 0.156250
 | 
			
		||||
vt 0.473684 0.156250
 | 
			
		||||
vt 0.789474 0.171875
 | 
			
		||||
vt 0.473684 0.171875
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
vt 0.973684 0.562500
 | 
			
		||||
vt 0.973684 0.937500
 | 
			
		||||
@@ -693,12 +693,12 @@ vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.156250
 | 
			
		||||
vt 0.368421 0.156250
 | 
			
		||||
vt 0.368421 0.125000
 | 
			
		||||
vt 0.052632 0.125000
 | 
			
		||||
vt 0.368421 0.140625
 | 
			
		||||
vt 0.052632 0.140625
 | 
			
		||||
vt 0.473684 0.156250
 | 
			
		||||
vt 0.789474 0.156250
 | 
			
		||||
vt 0.789474 0.125000
 | 
			
		||||
vt 0.473684 0.125000
 | 
			
		||||
vt 0.789474 0.140625
 | 
			
		||||
vt 0.473684 0.140625
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
vt 0.973684 0.562500
 | 
			
		||||
vt 0.973684 0.937500
 | 
			
		||||
@@ -709,12 +709,12 @@ vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.125000
 | 
			
		||||
vt 0.368421 0.125000
 | 
			
		||||
vt 0.368421 0.093750
 | 
			
		||||
vt 0.052632 0.093750
 | 
			
		||||
vt 0.368421 0.109375
 | 
			
		||||
vt 0.052632 0.109375
 | 
			
		||||
vt 0.473684 0.125000
 | 
			
		||||
vt 0.789474 0.125000
 | 
			
		||||
vt 0.789474 0.093750
 | 
			
		||||
vt 0.473684 0.093750
 | 
			
		||||
vt 0.789474 0.109375
 | 
			
		||||
vt 0.473684 0.109375
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
vt 0.973684 0.562500
 | 
			
		||||
vt 0.973684 0.937500
 | 
			
		||||
@@ -725,12 +725,12 @@ vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.093750
 | 
			
		||||
vt 0.368421 0.093750
 | 
			
		||||
vt 0.368421 0.062500
 | 
			
		||||
vt 0.052632 0.062500
 | 
			
		||||
vt 0.368421 0.078125
 | 
			
		||||
vt 0.052632 0.078125
 | 
			
		||||
vt 0.473684 0.093750
 | 
			
		||||
vt 0.789474 0.093750
 | 
			
		||||
vt 0.789474 0.062500
 | 
			
		||||
vt 0.473684 0.062500
 | 
			
		||||
vt 0.789474 0.078125
 | 
			
		||||
vt 0.473684 0.078125
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
vt 0.973684 0.562500
 | 
			
		||||
vt 0.973684 0.937500
 | 
			
		||||
@@ -293,12 +293,12 @@ vt 0.000000 0.062500
 | 
			
		||||
vt 0.000000 0.000000
 | 
			
		||||
vt 0.421053 0.000000
 | 
			
		||||
vt 0.421053 0.000000
 | 
			
		||||
vt 0.052632 0.937500
 | 
			
		||||
vt 0.368421 0.937500
 | 
			
		||||
vt 0.052632 0.921875
 | 
			
		||||
vt 0.368421 0.921875
 | 
			
		||||
vt 0.368421 0.906250
 | 
			
		||||
vt 0.052632 0.906250
 | 
			
		||||
vt 0.473684 0.937500
 | 
			
		||||
vt 0.789474 0.937500
 | 
			
		||||
vt 0.473684 0.921875
 | 
			
		||||
vt 0.789474 0.921875
 | 
			
		||||
vt 0.789474 0.906250
 | 
			
		||||
vt 0.473684 0.906250
 | 
			
		||||
vt 0.842105 0.937500
 | 
			
		||||
@@ -339,12 +339,12 @@ vt 0.973684 0.062500
 | 
			
		||||
vt 0.960526 0.062500
 | 
			
		||||
vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.906250
 | 
			
		||||
vt 0.368421 0.906250
 | 
			
		||||
vt 0.052632 0.890625
 | 
			
		||||
vt 0.368421 0.890625
 | 
			
		||||
vt 0.368421 0.875000
 | 
			
		||||
vt 0.052632 0.875000
 | 
			
		||||
vt 0.473684 0.906250
 | 
			
		||||
vt 0.789474 0.906250
 | 
			
		||||
vt 0.473684 0.890625
 | 
			
		||||
vt 0.789474 0.890625
 | 
			
		||||
vt 0.789474 0.875000
 | 
			
		||||
vt 0.473684 0.875000
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
@@ -355,12 +355,12 @@ vt 0.973684 0.062500
 | 
			
		||||
vt 0.960526 0.062500
 | 
			
		||||
vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.875000
 | 
			
		||||
vt 0.368421 0.875000
 | 
			
		||||
vt 0.052632 0.859375
 | 
			
		||||
vt 0.368421 0.859375
 | 
			
		||||
vt 0.368421 0.843750
 | 
			
		||||
vt 0.052632 0.843750
 | 
			
		||||
vt 0.473684 0.875000
 | 
			
		||||
vt 0.789474 0.875000
 | 
			
		||||
vt 0.473684 0.859375
 | 
			
		||||
vt 0.789474 0.859375
 | 
			
		||||
vt 0.789474 0.843750
 | 
			
		||||
vt 0.473684 0.843750
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
@@ -371,12 +371,12 @@ vt 0.973684 0.062500
 | 
			
		||||
vt 0.960526 0.062500
 | 
			
		||||
vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.843750
 | 
			
		||||
vt 0.368421 0.843750
 | 
			
		||||
vt 0.052632 0.828125
 | 
			
		||||
vt 0.368421 0.828125
 | 
			
		||||
vt 0.368421 0.812500
 | 
			
		||||
vt 0.052632 0.812500
 | 
			
		||||
vt 0.473684 0.843750
 | 
			
		||||
vt 0.789474 0.843750
 | 
			
		||||
vt 0.473684 0.828125
 | 
			
		||||
vt 0.789474 0.828125
 | 
			
		||||
vt 0.789474 0.812500
 | 
			
		||||
vt 0.473684 0.812500
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
@@ -387,12 +387,12 @@ vt 0.973684 0.062500
 | 
			
		||||
vt 0.960526 0.062500
 | 
			
		||||
vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.812500
 | 
			
		||||
vt 0.368421 0.812500
 | 
			
		||||
vt 0.052632 0.796875
 | 
			
		||||
vt 0.368421 0.796875
 | 
			
		||||
vt 0.368421 0.781250
 | 
			
		||||
vt 0.052632 0.781250
 | 
			
		||||
vt 0.473684 0.812500
 | 
			
		||||
vt 0.789474 0.812500
 | 
			
		||||
vt 0.473684 0.796875
 | 
			
		||||
vt 0.789474 0.796875
 | 
			
		||||
vt 0.789474 0.781250
 | 
			
		||||
vt 0.473684 0.781250
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
@@ -403,12 +403,12 @@ vt 0.973684 0.062500
 | 
			
		||||
vt 0.960526 0.062500
 | 
			
		||||
vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.781250
 | 
			
		||||
vt 0.368421 0.781250
 | 
			
		||||
vt 0.052632 0.765625
 | 
			
		||||
vt 0.368421 0.765625
 | 
			
		||||
vt 0.368421 0.750000
 | 
			
		||||
vt 0.052632 0.750000
 | 
			
		||||
vt 0.473684 0.781250
 | 
			
		||||
vt 0.789474 0.781250
 | 
			
		||||
vt 0.473684 0.765625
 | 
			
		||||
vt 0.789474 0.765625
 | 
			
		||||
vt 0.789474 0.750000
 | 
			
		||||
vt 0.473684 0.750000
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
@@ -419,12 +419,12 @@ vt 0.973684 0.062500
 | 
			
		||||
vt 0.960526 0.062500
 | 
			
		||||
vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.718750
 | 
			
		||||
vt 0.368421 0.718750
 | 
			
		||||
vt 0.052632 0.703125
 | 
			
		||||
vt 0.368421 0.703125
 | 
			
		||||
vt 0.368421 0.687500
 | 
			
		||||
vt 0.052632 0.687500
 | 
			
		||||
vt 0.473684 0.718750
 | 
			
		||||
vt 0.789474 0.718750
 | 
			
		||||
vt 0.473684 0.703125
 | 
			
		||||
vt 0.789474 0.703125
 | 
			
		||||
vt 0.789474 0.687500
 | 
			
		||||
vt 0.473684 0.687500
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
@@ -435,12 +435,12 @@ vt 0.973684 0.062500
 | 
			
		||||
vt 0.960526 0.062500
 | 
			
		||||
vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.750000
 | 
			
		||||
vt 0.368421 0.750000
 | 
			
		||||
vt 0.052632 0.734375
 | 
			
		||||
vt 0.368421 0.734375
 | 
			
		||||
vt 0.368421 0.718750
 | 
			
		||||
vt 0.052632 0.718750
 | 
			
		||||
vt 0.473684 0.750000
 | 
			
		||||
vt 0.789474 0.750000
 | 
			
		||||
vt 0.473684 0.734375
 | 
			
		||||
vt 0.789474 0.734375
 | 
			
		||||
vt 0.789474 0.718750
 | 
			
		||||
vt 0.473684 0.718750
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
@@ -451,12 +451,12 @@ vt 0.973684 0.062500
 | 
			
		||||
vt 0.960526 0.062500
 | 
			
		||||
vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.687500
 | 
			
		||||
vt 0.368421 0.687500
 | 
			
		||||
vt 0.052632 0.671875
 | 
			
		||||
vt 0.368421 0.671875
 | 
			
		||||
vt 0.368421 0.656250
 | 
			
		||||
vt 0.052632 0.656250
 | 
			
		||||
vt 0.473684 0.687500
 | 
			
		||||
vt 0.789474 0.687500
 | 
			
		||||
vt 0.473684 0.671875
 | 
			
		||||
vt 0.789474 0.671875
 | 
			
		||||
vt 0.789474 0.656250
 | 
			
		||||
vt 0.473684 0.656250
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
@@ -467,12 +467,12 @@ vt 0.973684 0.062500
 | 
			
		||||
vt 0.960526 0.062500
 | 
			
		||||
vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.656250
 | 
			
		||||
vt 0.368421 0.656250
 | 
			
		||||
vt 0.052632 0.640625
 | 
			
		||||
vt 0.368421 0.640625
 | 
			
		||||
vt 0.368421 0.625000
 | 
			
		||||
vt 0.052632 0.625000
 | 
			
		||||
vt 0.473684 0.656250
 | 
			
		||||
vt 0.789474 0.656250
 | 
			
		||||
vt 0.473684 0.640625
 | 
			
		||||
vt 0.789474 0.640625
 | 
			
		||||
vt 0.789474 0.625000
 | 
			
		||||
vt 0.473684 0.625000
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
@@ -483,12 +483,12 @@ vt 0.973684 0.062500
 | 
			
		||||
vt 0.960526 0.062500
 | 
			
		||||
vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.625000
 | 
			
		||||
vt 0.368421 0.625000
 | 
			
		||||
vt 0.052632 0.609375
 | 
			
		||||
vt 0.368421 0.609375
 | 
			
		||||
vt 0.368421 0.593750
 | 
			
		||||
vt 0.052632 0.593750
 | 
			
		||||
vt 0.473684 0.625000
 | 
			
		||||
vt 0.789474 0.625000
 | 
			
		||||
vt 0.473684 0.609375
 | 
			
		||||
vt 0.789474 0.609375
 | 
			
		||||
vt 0.789474 0.593750
 | 
			
		||||
vt 0.473684 0.593750
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
@@ -499,12 +499,12 @@ vt 0.973684 0.062500
 | 
			
		||||
vt 0.960526 0.062500
 | 
			
		||||
vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.593750
 | 
			
		||||
vt 0.368421 0.593750
 | 
			
		||||
vt 0.052632 0.578125
 | 
			
		||||
vt 0.368421 0.578125
 | 
			
		||||
vt 0.368421 0.562500
 | 
			
		||||
vt 0.052632 0.562500
 | 
			
		||||
vt 0.473684 0.593750
 | 
			
		||||
vt 0.789474 0.593750
 | 
			
		||||
vt 0.473684 0.578125
 | 
			
		||||
vt 0.789474 0.578125
 | 
			
		||||
vt 0.789474 0.562500
 | 
			
		||||
vt 0.473684 0.562500
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
@@ -515,12 +515,12 @@ vt 0.973684 0.062500
 | 
			
		||||
vt 0.960526 0.062500
 | 
			
		||||
vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.562500
 | 
			
		||||
vt 0.368421 0.562500
 | 
			
		||||
vt 0.052632 0.546875
 | 
			
		||||
vt 0.368421 0.546875
 | 
			
		||||
vt 0.368421 0.531250
 | 
			
		||||
vt 0.052632 0.531250
 | 
			
		||||
vt 0.473684 0.562500
 | 
			
		||||
vt 0.789474 0.562500
 | 
			
		||||
vt 0.473684 0.546875
 | 
			
		||||
vt 0.789474 0.546875
 | 
			
		||||
vt 0.789474 0.531250
 | 
			
		||||
vt 0.473684 0.531250
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
@@ -533,12 +533,12 @@ vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.468750
 | 
			
		||||
vt 0.368421 0.468750
 | 
			
		||||
vt 0.368421 0.437500
 | 
			
		||||
vt 0.052632 0.437500
 | 
			
		||||
vt 0.368421 0.453125
 | 
			
		||||
vt 0.052632 0.453125
 | 
			
		||||
vt 0.473684 0.468750
 | 
			
		||||
vt 0.789474 0.468750
 | 
			
		||||
vt 0.789474 0.437500
 | 
			
		||||
vt 0.473684 0.437500
 | 
			
		||||
vt 0.789474 0.453125
 | 
			
		||||
vt 0.473684 0.453125
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
vt 0.973684 0.562500
 | 
			
		||||
vt 0.973684 0.937500
 | 
			
		||||
@@ -549,12 +549,12 @@ vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.437500
 | 
			
		||||
vt 0.368421 0.437500
 | 
			
		||||
vt 0.368421 0.406250
 | 
			
		||||
vt 0.052632 0.406250
 | 
			
		||||
vt 0.368421 0.421875
 | 
			
		||||
vt 0.052632 0.421875
 | 
			
		||||
vt 0.473684 0.437500
 | 
			
		||||
vt 0.789474 0.437500
 | 
			
		||||
vt 0.789474 0.406250
 | 
			
		||||
vt 0.473684 0.406250
 | 
			
		||||
vt 0.789474 0.421875
 | 
			
		||||
vt 0.473684 0.421875
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
vt 0.973684 0.562500
 | 
			
		||||
vt 0.973684 0.937500
 | 
			
		||||
@@ -565,12 +565,12 @@ vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.406250
 | 
			
		||||
vt 0.368421 0.406250
 | 
			
		||||
vt 0.368421 0.375000
 | 
			
		||||
vt 0.052632 0.375000
 | 
			
		||||
vt 0.368421 0.390625
 | 
			
		||||
vt 0.052632 0.390625
 | 
			
		||||
vt 0.473684 0.406250
 | 
			
		||||
vt 0.789474 0.406250
 | 
			
		||||
vt 0.789474 0.375000
 | 
			
		||||
vt 0.473684 0.375000
 | 
			
		||||
vt 0.789474 0.390625
 | 
			
		||||
vt 0.473684 0.390625
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
vt 0.973684 0.562500
 | 
			
		||||
vt 0.973684 0.937500
 | 
			
		||||
@@ -581,12 +581,12 @@ vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.375000
 | 
			
		||||
vt 0.368421 0.375000
 | 
			
		||||
vt 0.368421 0.343750
 | 
			
		||||
vt 0.052632 0.343750
 | 
			
		||||
vt 0.368421 0.359375
 | 
			
		||||
vt 0.052632 0.359375
 | 
			
		||||
vt 0.473684 0.375000
 | 
			
		||||
vt 0.789474 0.375000
 | 
			
		||||
vt 0.789474 0.343750
 | 
			
		||||
vt 0.473684 0.343750
 | 
			
		||||
vt 0.789474 0.359375
 | 
			
		||||
vt 0.473684 0.359375
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
vt 0.973684 0.562500
 | 
			
		||||
vt 0.973684 0.937500
 | 
			
		||||
@@ -597,12 +597,12 @@ vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.343750
 | 
			
		||||
vt 0.368421 0.343750
 | 
			
		||||
vt 0.368421 0.312500
 | 
			
		||||
vt 0.052632 0.312500
 | 
			
		||||
vt 0.368421 0.328125
 | 
			
		||||
vt 0.052632 0.328125
 | 
			
		||||
vt 0.473684 0.343750
 | 
			
		||||
vt 0.789474 0.343750
 | 
			
		||||
vt 0.789474 0.312500
 | 
			
		||||
vt 0.473684 0.312500
 | 
			
		||||
vt 0.789474 0.328125
 | 
			
		||||
vt 0.473684 0.328125
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
vt 0.973684 0.562500
 | 
			
		||||
vt 0.973684 0.937500
 | 
			
		||||
@@ -613,12 +613,12 @@ vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.312500
 | 
			
		||||
vt 0.368421 0.312500
 | 
			
		||||
vt 0.368421 0.281250
 | 
			
		||||
vt 0.052632 0.281250
 | 
			
		||||
vt 0.368421 0.296875
 | 
			
		||||
vt 0.052632 0.296875
 | 
			
		||||
vt 0.473684 0.312500
 | 
			
		||||
vt 0.789474 0.312500
 | 
			
		||||
vt 0.789474 0.281250
 | 
			
		||||
vt 0.473684 0.281250
 | 
			
		||||
vt 0.789474 0.296875
 | 
			
		||||
vt 0.473684 0.296875
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
vt 0.973684 0.562500
 | 
			
		||||
vt 0.973684 0.937500
 | 
			
		||||
@@ -629,12 +629,12 @@ vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.250000
 | 
			
		||||
vt 0.368421 0.250000
 | 
			
		||||
vt 0.368421 0.218750
 | 
			
		||||
vt 0.052632 0.218750
 | 
			
		||||
vt 0.368421 0.234375
 | 
			
		||||
vt 0.052632 0.234375
 | 
			
		||||
vt 0.473684 0.250000
 | 
			
		||||
vt 0.789474 0.250000
 | 
			
		||||
vt 0.789474 0.218750
 | 
			
		||||
vt 0.473684 0.218750
 | 
			
		||||
vt 0.789474 0.234375
 | 
			
		||||
vt 0.473684 0.234375
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
vt 0.973684 0.562500
 | 
			
		||||
vt 0.973684 0.937500
 | 
			
		||||
@@ -645,12 +645,12 @@ vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.281250
 | 
			
		||||
vt 0.368421 0.281250
 | 
			
		||||
vt 0.368421 0.250000
 | 
			
		||||
vt 0.052632 0.250000
 | 
			
		||||
vt 0.368421 0.265625
 | 
			
		||||
vt 0.052632 0.265625
 | 
			
		||||
vt 0.473684 0.281250
 | 
			
		||||
vt 0.789474 0.281250
 | 
			
		||||
vt 0.789474 0.250000
 | 
			
		||||
vt 0.473684 0.250000
 | 
			
		||||
vt 0.789474 0.265625
 | 
			
		||||
vt 0.473684 0.265625
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
vt 0.973684 0.562500
 | 
			
		||||
vt 0.973684 0.937500
 | 
			
		||||
@@ -661,12 +661,12 @@ vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.218750
 | 
			
		||||
vt 0.368421 0.218750
 | 
			
		||||
vt 0.368421 0.187500
 | 
			
		||||
vt 0.052632 0.187500
 | 
			
		||||
vt 0.368421 0.203125
 | 
			
		||||
vt 0.052632 0.203125
 | 
			
		||||
vt 0.473684 0.218750
 | 
			
		||||
vt 0.789474 0.218750
 | 
			
		||||
vt 0.789474 0.187500
 | 
			
		||||
vt 0.473684 0.187500
 | 
			
		||||
vt 0.789474 0.203125
 | 
			
		||||
vt 0.473684 0.203125
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
vt 0.973684 0.562500
 | 
			
		||||
vt 0.973684 0.937500
 | 
			
		||||
@@ -677,12 +677,12 @@ vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.187500
 | 
			
		||||
vt 0.368421 0.187500
 | 
			
		||||
vt 0.368421 0.156250
 | 
			
		||||
vt 0.052632 0.156250
 | 
			
		||||
vt 0.368421 0.171875
 | 
			
		||||
vt 0.052632 0.171875
 | 
			
		||||
vt 0.473684 0.187500
 | 
			
		||||
vt 0.789474 0.187500
 | 
			
		||||
vt 0.789474 0.156250
 | 
			
		||||
vt 0.473684 0.156250
 | 
			
		||||
vt 0.789474 0.171875
 | 
			
		||||
vt 0.473684 0.171875
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
vt 0.973684 0.562500
 | 
			
		||||
vt 0.973684 0.937500
 | 
			
		||||
@@ -693,12 +693,12 @@ vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.156250
 | 
			
		||||
vt 0.368421 0.156250
 | 
			
		||||
vt 0.368421 0.125000
 | 
			
		||||
vt 0.052632 0.125000
 | 
			
		||||
vt 0.368421 0.140625
 | 
			
		||||
vt 0.052632 0.140625
 | 
			
		||||
vt 0.473684 0.156250
 | 
			
		||||
vt 0.789474 0.156250
 | 
			
		||||
vt 0.789474 0.125000
 | 
			
		||||
vt 0.473684 0.125000
 | 
			
		||||
vt 0.789474 0.140625
 | 
			
		||||
vt 0.473684 0.140625
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
vt 0.973684 0.562500
 | 
			
		||||
vt 0.973684 0.937500
 | 
			
		||||
@@ -709,12 +709,12 @@ vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.125000
 | 
			
		||||
vt 0.368421 0.125000
 | 
			
		||||
vt 0.368421 0.093750
 | 
			
		||||
vt 0.052632 0.093750
 | 
			
		||||
vt 0.368421 0.109375
 | 
			
		||||
vt 0.052632 0.109375
 | 
			
		||||
vt 0.473684 0.125000
 | 
			
		||||
vt 0.789474 0.125000
 | 
			
		||||
vt 0.789474 0.093750
 | 
			
		||||
vt 0.473684 0.093750
 | 
			
		||||
vt 0.789474 0.109375
 | 
			
		||||
vt 0.473684 0.109375
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
vt 0.973684 0.562500
 | 
			
		||||
vt 0.973684 0.937500
 | 
			
		||||
@@ -725,12 +725,12 @@ vt 0.960526 0.437500
 | 
			
		||||
vt 0.973684 0.437500
 | 
			
		||||
vt 0.052632 0.093750
 | 
			
		||||
vt 0.368421 0.093750
 | 
			
		||||
vt 0.368421 0.062500
 | 
			
		||||
vt 0.052632 0.062500
 | 
			
		||||
vt 0.368421 0.078125
 | 
			
		||||
vt 0.052632 0.078125
 | 
			
		||||
vt 0.473684 0.093750
 | 
			
		||||
vt 0.789474 0.093750
 | 
			
		||||
vt 0.789474 0.062500
 | 
			
		||||
vt 0.473684 0.062500
 | 
			
		||||
vt 0.789474 0.078125
 | 
			
		||||
vt 0.473684 0.078125
 | 
			
		||||
vt 0.986842 0.562500
 | 
			
		||||
vt 0.973684 0.562500
 | 
			
		||||
vt 0.973684 0.937500
 | 
			
		||||
@@ -15,6 +15,7 @@ minetest.register_node(":homedecor:bathroom_tiles_dark", {
 | 
			
		||||
	groups = {cracky=3, ud_param2_colorable = 1},
 | 
			
		||||
	sounds = default.node_sound_stone_defaults(),
 | 
			
		||||
	on_construct = unifieddyes.on_construct,
 | 
			
		||||
	on_dig = unifieddyes.on_dig,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_node(":homedecor:bathroom_tiles_medium", {
 | 
			
		||||
@@ -31,6 +32,7 @@ minetest.register_node(":homedecor:bathroom_tiles_medium", {
 | 
			
		||||
	groups = {cracky=3, ud_param2_colorable = 1},
 | 
			
		||||
	sounds = default.node_sound_stone_defaults(),
 | 
			
		||||
	on_construct = unifieddyes.on_construct,
 | 
			
		||||
	on_dig = unifieddyes.on_dig,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_node(":homedecor:bathroom_tiles_light", {
 | 
			
		||||
@@ -47,6 +49,7 @@ minetest.register_node(":homedecor:bathroom_tiles_light", {
 | 
			
		||||
	groups = {cracky=3, ud_param2_colorable = 1},
 | 
			
		||||
	sounds = default.node_sound_stone_defaults(),
 | 
			
		||||
	on_construct = unifieddyes.on_construct,
 | 
			
		||||
	on_dig = unifieddyes.on_dig,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
local tr_cbox = {
 | 
			
		||||
 
 | 
			
		||||
@@ -59,6 +59,7 @@ homedecor.register("bed_regular", {
 | 
			
		||||
	after_dig_node = function(pos, oldnode, oldmetadata, digger)
 | 
			
		||||
		homedecor.unextend_bed(pos)
 | 
			
		||||
	end,
 | 
			
		||||
	on_dig = unifieddyes.on_dig,
 | 
			
		||||
	on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
 | 
			
		||||
		local itemname = itemstack:get_name()
 | 
			
		||||
		if itemname == "homedecor:bed_regular" then
 | 
			
		||||
@@ -92,6 +93,7 @@ homedecor.register("bed_extended", {
 | 
			
		||||
	after_dig_node = function(pos, oldnode, oldmetadata, digger)
 | 
			
		||||
		homedecor.unextend_bed(pos)
 | 
			
		||||
	end,
 | 
			
		||||
	on_dig = unifieddyes.on_dig,
 | 
			
		||||
--	on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
 | 
			
		||||
--		homedecor.beds_on_rightclick(pos, node, clicker)
 | 
			
		||||
--		return itemstack
 | 
			
		||||
@@ -128,6 +130,7 @@ homedecor.register("bed_kingsize", {
 | 
			
		||||
			inv:add_item("main", "homedecor:bed_regular 2")
 | 
			
		||||
		end
 | 
			
		||||
	end,
 | 
			
		||||
	on_dig = unifieddyes.on_dig,
 | 
			
		||||
--	on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
 | 
			
		||||
--		homedecor.beds_on_rightclick(pos, node, clicker)
 | 
			
		||||
--		return itemstack
 | 
			
		||||
 
 | 
			
		||||
@@ -25,7 +25,7 @@ minetest.register_node(":homedecor:cobweb_corner", {
 | 
			
		||||
	end
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_node(":Lhomedecor:cobweb_centered", {
 | 
			
		||||
minetest.register_node(":homedecor:cobweb_centered", {
 | 
			
		||||
	description = S("Cobweb"),
 | 
			
		||||
	drawtype = "nodebox",
 | 
			
		||||
	tiles = { "homedecor_cobweb.png" },
 | 
			
		||||
 
 | 
			
		||||
@@ -1,3 +1,3 @@
 | 
			
		||||
default
 | 
			
		||||
creative
 | 
			
		||||
 | 
			
		||||
intllib?
 | 
			
		||||
 
 | 
			
		||||
@@ -80,7 +80,7 @@ local furnace_can_dig = function(pos,player)
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
function homedecor.register_furnace(name, furnacedef)
 | 
			
		||||
	furnacedef.fire_fg = furnacedef.fire_bg or "default_furnace_fire_fg.png"
 | 
			
		||||
	furnacedef.fire_fg = furnacedef.fire_fg or "default_furnace_fire_fg.png"
 | 
			
		||||
	furnacedef.fire_bg = furnacedef.fire_bg or "default_furnace_fire_bg.png"
 | 
			
		||||
 | 
			
		||||
	furnacedef.output_slots = furnacedef.output_slots or 4
 | 
			
		||||
 
 | 
			
		||||
| 
		 Before Width: | Height: | Size: 591 B After Width: | Height: | Size: 591 B  | 
							
								
								
									
										0
									
								
								homedecor_common/tools/updatepo.sh
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							
							
						
						@@ -1,5 +1,6 @@
 | 
			
		||||
homedecor_common
 | 
			
		||||
homedecor_misc?
 | 
			
		||||
homedecor_3d_extras?
 | 
			
		||||
default
 | 
			
		||||
basic_materials
 | 
			
		||||
dye
 | 
			
		||||
 
 | 
			
		||||
@@ -3,17 +3,6 @@
 | 
			
		||||
local S = homedecor.gettext
 | 
			
		||||
local mesecons_mp = minetest.get_modpath("mesecons")
 | 
			
		||||
 | 
			
		||||
-- clone node
 | 
			
		||||
 | 
			
		||||
function hd_doors_clone_node(name)
 | 
			
		||||
	local node2 = {}
 | 
			
		||||
	local node = minetest.registered_nodes[name]
 | 
			
		||||
	for k,v in pairs(node) do
 | 
			
		||||
		node2[k]=v
 | 
			
		||||
	end
 | 
			
		||||
	return node2
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
-- new doors using minetest_game doors API
 | 
			
		||||
 | 
			
		||||
local door_list = {
 | 
			
		||||
@@ -40,41 +29,41 @@ local door_list = {
 | 
			
		||||
		custom_model = "homedecor_door_fancy"
 | 
			
		||||
	},
 | 
			
		||||
 | 
			
		||||
	{	name = "wood_glass_oak",
 | 
			
		||||
		description = "Glass and Wood, Oak-colored",
 | 
			
		||||
	{	name = "french_oak",
 | 
			
		||||
		description = "French door, Oak-colored",
 | 
			
		||||
		groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
 | 
			
		||||
		sounds = {
 | 
			
		||||
			main = default.node_sound_glass_defaults(),
 | 
			
		||||
		},
 | 
			
		||||
		backface = true,
 | 
			
		||||
		alpha = true,
 | 
			
		||||
		custom_model = "homedecor_door_wood_glass"
 | 
			
		||||
		custom_model = "homedecor_door_french"
 | 
			
		||||
	},
 | 
			
		||||
 | 
			
		||||
	{	name = "wood_glass_mahogany",
 | 
			
		||||
		description = "Glass and Wood, Mahogany-colored",
 | 
			
		||||
	{	name = "french_mahogany",
 | 
			
		||||
		description = "French door, Mahogany-colored",
 | 
			
		||||
		groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
 | 
			
		||||
		sounds = {
 | 
			
		||||
			main = default.node_sound_glass_defaults(),
 | 
			
		||||
		},
 | 
			
		||||
		backface = true,
 | 
			
		||||
		alpha = true,
 | 
			
		||||
		custom_model = "homedecor_door_wood_glass"
 | 
			
		||||
		custom_model = "homedecor_door_french"
 | 
			
		||||
	},
 | 
			
		||||
 | 
			
		||||
	{	name = "wood_glass_white",
 | 
			
		||||
		description = "Glass and Wood, White",
 | 
			
		||||
	{	name = "french_white",
 | 
			
		||||
		description = "French door, White",
 | 
			
		||||
		groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
 | 
			
		||||
		sounds = {
 | 
			
		||||
			main = default.node_sound_glass_defaults(),
 | 
			
		||||
		},
 | 
			
		||||
		backface = true,
 | 
			
		||||
		alpha = true,
 | 
			
		||||
		custom_model = "homedecor_door_wood_glass"
 | 
			
		||||
		custom_model = "homedecor_door_french"
 | 
			
		||||
	},
 | 
			
		||||
 | 
			
		||||
	{	name = "bedroom",
 | 
			
		||||
		description = "White Bedroom Door",
 | 
			
		||||
	{	name = "basic_panel",
 | 
			
		||||
		description = "Basic white panel Door",
 | 
			
		||||
		groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
 | 
			
		||||
		sounds = {
 | 
			
		||||
			main = default.node_sound_wood_defaults(),
 | 
			
		||||
@@ -95,8 +84,8 @@ local door_list = {
 | 
			
		||||
		custom_model = "homedecor_door_wrought_iron"
 | 
			
		||||
	},
 | 
			
		||||
 | 
			
		||||
	{	name = "woodglass2",
 | 
			
		||||
		description = "Wooden door with glass insert, type 2",
 | 
			
		||||
	{	name = "carolina",
 | 
			
		||||
		description = "Wooden Carolina door",
 | 
			
		||||
		groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
 | 
			
		||||
		sounds = {
 | 
			
		||||
			main = default.node_sound_wood_defaults(),
 | 
			
		||||
@@ -163,8 +152,10 @@ if mesecons_mp then
 | 
			
		||||
	}
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
local hd_3d = minetest.get_modpath("homedecor_3d_extras")
 | 
			
		||||
 | 
			
		||||
for _, door in ipairs(door_list) do
 | 
			
		||||
	doors.register(door.name, {
 | 
			
		||||
	doors.register("homedecor_"..door.name, {
 | 
			
		||||
			tiles = {{ name = "homedecor_door_"..door.name..".png", backface_culling = door.backface }},
 | 
			
		||||
			description = door.description,
 | 
			
		||||
			inventory_image = "homedecor_door_"..door.name.."_inv.png",
 | 
			
		||||
@@ -175,33 +166,35 @@ for _, door in ipairs(door_list) do
 | 
			
		||||
			mesecons = mesecons
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	local nn_a = "doors:"..door.name.."_a"
 | 
			
		||||
	local nn_b = "doors:"..door.name.."_b"
 | 
			
		||||
 | 
			
		||||
	local nn_a = "doors:homedecor_"..door.name.."_a"
 | 
			
		||||
	local nn_b = "doors:homedecor_"..door.name.."_b"
 | 
			
		||||
 | 
			
		||||
	if door.alpha then
 | 
			
		||||
		local def = hd_doors_clone_node(nn_a)
 | 
			
		||||
		local def = table.copy(minetest.registered_nodes[nn_a])
 | 
			
		||||
			def.use_texture_alpha = true
 | 
			
		||||
			def.mesh = "door_a.obj"                -- leaving this out will break the _a model
 | 
			
		||||
			minetest.register_node(":"..nn_a, def) -- assignment when the override takes place
 | 
			
		||||
 | 
			
		||||
		def = hd_doors_clone_node(nn_b)
 | 
			
		||||
		def = table.copy(minetest.registered_nodes[nn_b])
 | 
			
		||||
			def.use_texture_alpha = true
 | 
			
		||||
			minetest.register_node(":"..nn_b, def)
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	if door.custom_model then
 | 
			
		||||
		def = hd_doors_clone_node(nn_a)
 | 
			
		||||
	if door.custom_model and hd_3d then
 | 
			
		||||
		def = table.copy(minetest.registered_nodes[nn_a])
 | 
			
		||||
			def.mesh = door.custom_model.."_a.obj"
 | 
			
		||||
			minetest.register_node(":"..nn_a, def)
 | 
			
		||||
 | 
			
		||||
		def = hd_doors_clone_node(nn_b)
 | 
			
		||||
		def = table.copy(minetest.registered_nodes[nn_b])
 | 
			
		||||
			def.mesh = door.custom_model.."_b.obj"
 | 
			
		||||
			minetest.register_node(":"..nn_b, def)
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	old_doors[#old_doors + 1] = "homedecor:door_"..door.name.."_left"
 | 
			
		||||
	old_doors[#old_doors + 1] = "homedecor:door_"..door.name.."_right"
 | 
			
		||||
 | 
			
		||||
	minetest.register_alias("doors:"..door.name.."_a", "doors:homedecor_"..door.name.."_a")
 | 
			
		||||
	minetest.register_alias("doors:"..door.name.."_b", "doors:homedecor_"..door.name.."_b")
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
-- Gates
 | 
			
		||||
@@ -464,8 +457,8 @@ minetest.register_craft( {
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	output = "homedecor:gate_half_door_closed 4",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		"homedecor:door_wood_plain_a",
 | 
			
		||||
		"homedecor:door_wood_plain_a"
 | 
			
		||||
		"doors:homedecor_wood_plain_a",
 | 
			
		||||
		"doors:homedecor_wood_plain_a"
 | 
			
		||||
	},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
@@ -473,8 +466,8 @@ minetest.register_craft( {
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	output = "homedecor:gate_half_door_white_closed 4",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		"homedecor:door_bedroom_a",
 | 
			
		||||
		"homedecor:door_bedroom_a"
 | 
			
		||||
		"doors:homedecor_bedroom_a",
 | 
			
		||||
		"doors:homedecor_bedroom_a"
 | 
			
		||||
	},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
@@ -549,7 +542,7 @@ minetest.register_craft( {
 | 
			
		||||
-- plain wood, non-windowed
 | 
			
		||||
 | 
			
		||||
minetest.register_craft( {
 | 
			
		||||
        output = "homedecor:door_wood_plain_a 2",
 | 
			
		||||
        output = "doors:homedecor_wood_plain 2",
 | 
			
		||||
        recipe = {
 | 
			
		||||
			{ "group:wood", "group:wood", "" },
 | 
			
		||||
			{ "group:wood", "group:wood", "default:steel_ingot" },
 | 
			
		||||
@@ -560,7 +553,7 @@ minetest.register_craft( {
 | 
			
		||||
-- fancy exterior
 | 
			
		||||
 | 
			
		||||
minetest.register_craft( {
 | 
			
		||||
        output = "homedecor:door_exterior_fancy_a 2",
 | 
			
		||||
        output = "doors:homedecor_exterior_fancy 2",
 | 
			
		||||
        recipe = {
 | 
			
		||||
			{ "group:wood", "default:glass" },
 | 
			
		||||
			{ "group:wood", "group:wood" },
 | 
			
		||||
@@ -568,12 +561,10 @@ minetest.register_craft( {
 | 
			
		||||
        },
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- wood and glass (grid style)
 | 
			
		||||
 | 
			
		||||
-- bare
 | 
			
		||||
-- French style wood/glass
 | 
			
		||||
 | 
			
		||||
minetest.register_craft( {
 | 
			
		||||
        output = "homedecor:door_wood_glass_oak_a 2",
 | 
			
		||||
        output = "doors:homedecor_french_oak 2",
 | 
			
		||||
        recipe = {
 | 
			
		||||
			{ "default:glass", "group:wood" },
 | 
			
		||||
			{ "group:wood", "default:glass" },
 | 
			
		||||
@@ -582,7 +573,7 @@ minetest.register_craft( {
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft( {
 | 
			
		||||
        output = "homedecor:door_wood_glass_oak_a 2",
 | 
			
		||||
        output = "doors:homedecor_french_oak 2",
 | 
			
		||||
        recipe = {
 | 
			
		||||
			{ "group:wood", "default:glass" },
 | 
			
		||||
			{ "default:glass", "group:wood" },
 | 
			
		||||
@@ -590,27 +581,23 @@ minetest.register_craft( {
 | 
			
		||||
        },
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- mahogany
 | 
			
		||||
 | 
			
		||||
minetest.register_craft( {
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
        output = "homedecor:door_wood_glass_mahogany_a 2",
 | 
			
		||||
        output = "doors:homedecor_french_mahogany 2",
 | 
			
		||||
        recipe = {
 | 
			
		||||
			"dye:brown",
 | 
			
		||||
			"homedecor:door_wood_glass_oak_a",
 | 
			
		||||
			"homedecor:door_wood_glass_oak_a"
 | 
			
		||||
			"doors:homedecor_french_oak",
 | 
			
		||||
			"doors:homedecor_french_oak"
 | 
			
		||||
        },
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- white
 | 
			
		||||
 | 
			
		||||
minetest.register_craft( {
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
        output = "homedecor:door_wood_glass_white_a 2",
 | 
			
		||||
        output = "doors:homedecor_french_white 2",
 | 
			
		||||
        recipe = {
 | 
			
		||||
			"dye:white",
 | 
			
		||||
			"homedecor:door_wood_glass_oak_a",
 | 
			
		||||
			"homedecor:door_wood_glass_oak_a"
 | 
			
		||||
			"doors:homedecor_french_oak",
 | 
			
		||||
			"doors:homedecor_french_oak"
 | 
			
		||||
        },
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
@@ -619,7 +606,7 @@ minetest.register_craft( {
 | 
			
		||||
-- oak
 | 
			
		||||
 | 
			
		||||
minetest.register_craft( {
 | 
			
		||||
        output = "homedecor:door_closet_oak_a 2",
 | 
			
		||||
        output = "doors:homedecor_closet_oak 2",
 | 
			
		||||
        recipe = {
 | 
			
		||||
			{ "", "group:stick", "group:stick" },
 | 
			
		||||
			{ "default:steel_ingot", "group:stick", "group:stick" },
 | 
			
		||||
@@ -631,18 +618,18 @@ minetest.register_craft( {
 | 
			
		||||
 | 
			
		||||
minetest.register_craft( {
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
        output = "homedecor:door_closet_mahogany_a 2",
 | 
			
		||||
        output = "doors:homedecor_closet_mahogany 2",
 | 
			
		||||
        recipe = {
 | 
			
		||||
			"homedecor:door_closet_oak_a",
 | 
			
		||||
			"homedecor:door_closet_oak_a",
 | 
			
		||||
			"doors:homedecor_closet_oak",
 | 
			
		||||
			"doors:homedecor_closet_oak",
 | 
			
		||||
			"dye:brown"
 | 
			
		||||
        },
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- wrought fence-like door
 | 
			
		||||
-- wrought iron fence-like door
 | 
			
		||||
 | 
			
		||||
minetest.register_craft( {
 | 
			
		||||
        output = "homedecor:door_wrought_iron_a 2",
 | 
			
		||||
        output = "doors:homedecor_wrought_iron 2",
 | 
			
		||||
        recipe = {
 | 
			
		||||
			{ "homedecor:pole_wrought_iron", "default:iron_lump" },
 | 
			
		||||
			{ "homedecor:pole_wrought_iron", "default:iron_lump" },
 | 
			
		||||
@@ -650,21 +637,21 @@ minetest.register_craft( {
 | 
			
		||||
        },
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- bedroom door
 | 
			
		||||
-- bedroom/panel door
 | 
			
		||||
 | 
			
		||||
minetest.register_craft( {
 | 
			
		||||
	output = "homedecor:door_bedroom_a",
 | 
			
		||||
	output = "doors:homedecor_basic_panel",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{ "dye:white", "dye:white", "" },
 | 
			
		||||
		{ "homedecor:door_wood_plain_a", "basic_materials:brass_ingot", "" },
 | 
			
		||||
		{ "doors:homedecor_wood_plain", "basic_materials:brass_ingot", "" },
 | 
			
		||||
		{ "", "", "" },
 | 
			
		||||
	},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- woodglass door
 | 
			
		||||
-- basic wood/glass single-lite door
 | 
			
		||||
 | 
			
		||||
minetest.register_craft( {
 | 
			
		||||
	output = "homedecor:door_woodglass_a",
 | 
			
		||||
	output = "doors:homedecor_woodglass",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{ "group:wood", "default:glass", "" },
 | 
			
		||||
		{ "group:wood", "default:glass", "basic_materials:brass_ingot" },
 | 
			
		||||
@@ -672,10 +659,10 @@ minetest.register_craft( {
 | 
			
		||||
	},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- woodglass door type 2
 | 
			
		||||
-- "Carolina" door
 | 
			
		||||
 | 
			
		||||
minetest.register_craft( {
 | 
			
		||||
	output = "homedecor:door_woodglass2_a",
 | 
			
		||||
	output = "doors:homedecor_carolina",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{ "default:glass", "default:glass", "" },
 | 
			
		||||
		{ "group:wood", "group:wood", "default:iron_lump" },
 | 
			
		||||
@@ -694,19 +681,64 @@ minetest.register_craft({
 | 
			
		||||
 | 
			
		||||
-- aliases
 | 
			
		||||
 | 
			
		||||
minetest.register_alias("homedecor:jpn_door_top", "air")
 | 
			
		||||
minetest.register_alias("homedecor:jpn_door_bottom", "homedecor:door_japanese_closed")
 | 
			
		||||
minetest.register_alias("homedecor:jpn_door_top",               "air")
 | 
			
		||||
minetest.register_alias("homedecor:jpn_door_top_open",          "air")
 | 
			
		||||
 | 
			
		||||
minetest.register_alias("homedecor:jpn_door_top_open", "air")
 | 
			
		||||
minetest.register_alias("homedecor:jpn_door_bottom_open", "homedecor:door_japanese_open")
 | 
			
		||||
minetest.register_alias("homedecor:jpn_door_bottom",            "homedecor:door_japanese_closed")
 | 
			
		||||
minetest.register_alias("homedecor:jpn_door_bottom_open",       "homedecor:door_japanese_open")
 | 
			
		||||
 | 
			
		||||
minetest.register_alias("homedecor:door_glass_right", "doors:door_glass_b")
 | 
			
		||||
minetest.register_alias("homedecor:door_glass_left", "doors:door_glass_a")
 | 
			
		||||
minetest.register_alias("homedecor:door_glass_right",           "doors:door_glass_b")
 | 
			
		||||
minetest.register_alias("homedecor:door_glass_left",            "doors:door_glass_a")
 | 
			
		||||
 | 
			
		||||
minetest.register_alias("doors:wood_glass_oak_a",               "doors:homedecor_french_oak_a")
 | 
			
		||||
minetest.register_alias("doors:wood_glass_oak_b",               "doors:homedecor_french_oak_b")
 | 
			
		||||
 | 
			
		||||
minetest.register_alias("doors:wood_glass_white_a",             "doors:homedecor_french_white_a")
 | 
			
		||||
minetest.register_alias("doors:wood_glass_white_b",             "doors:homedecor_french_white_b")
 | 
			
		||||
 | 
			
		||||
minetest.register_alias("doors:wood_glass_mahogany_a",          "doors:homedecor_french_mahogany_a")
 | 
			
		||||
minetest.register_alias("doors:wood_glass_mahogany_b",          "doors:homedecor_french_mahogany_b")
 | 
			
		||||
 | 
			
		||||
minetest.register_alias("doors:homedecor_wood_glass_oak_a",     "doors:homedecor_french_oak_a")
 | 
			
		||||
minetest.register_alias("doors:homedecor_wood_glass_oak_b",     "doors:homedecor_french_oak_b")
 | 
			
		||||
 | 
			
		||||
minetest.register_alias("doors:homedecor_wood_glass_white_a",   "doors:homedecor_french_white_a")
 | 
			
		||||
minetest.register_alias("doors:homedecor_wood_glass_white_b",   "doors:homedecor_french_white_b")
 | 
			
		||||
 | 
			
		||||
minetest.register_alias("doors:homedecor_wood_glass_mahogany_a", "doors:homedecor_french_mahogany_a")
 | 
			
		||||
minetest.register_alias("doors:homedecor_wood_glass_mahogany_b", "doors:homedecor_french_mahogany_b")
 | 
			
		||||
 | 
			
		||||
minetest.register_alias("doors:homedecor_woodglass2_a",         "doors:homedecor_carolina_a")
 | 
			
		||||
minetest.register_alias("doors:homedecor_woodglass2_b",         "doors:homedecor_carolina_b")
 | 
			
		||||
 | 
			
		||||
minetest.register_alias("doors:woodglass2_a",                   "doors:homedecor_carolina_a")
 | 
			
		||||
minetest.register_alias("doors:woodglass2_b",                   "doors:homedecor_carolina_b")
 | 
			
		||||
 | 
			
		||||
minetest.register_alias("doors:homedecor_bedroom_a",            "doors:homedecor_basic_panel_a")
 | 
			
		||||
minetest.register_alias("doors:homedecor_bedroom_b",            "doors:homedecor_basic_panel_b")
 | 
			
		||||
 | 
			
		||||
minetest.register_alias("doors:bedroom_a",                      "doors:homedecor_basic_panel_a")
 | 
			
		||||
minetest.register_alias("doors:bedroom_b",                      "doors:homedecor_basic_panel_b")
 | 
			
		||||
 | 
			
		||||
-- flip old homedecor doors around, since they use minetest_game doors API now
 | 
			
		||||
 | 
			
		||||
old_doors[#old_doors + 1] = "homedecor:door_wood_glass_oak_left"
 | 
			
		||||
old_doors[#old_doors + 1] = "homedecor:door_wood_glass_oak_right"
 | 
			
		||||
 | 
			
		||||
old_doors[#old_doors + 1] = "homedecor:door_wood_glass_white_left"
 | 
			
		||||
old_doors[#old_doors + 1] = "homedecor:door_wood_glass_white_right"
 | 
			
		||||
 | 
			
		||||
old_doors[#old_doors + 1] = "homedecor:door_wood_glass_mahogany_left"
 | 
			
		||||
old_doors[#old_doors + 1] = "homedecor:door_wood_glass_mahogany_right"
 | 
			
		||||
 | 
			
		||||
old_doors[#old_doors + 1] = "homedecor:door_woodglass2_left"
 | 
			
		||||
old_doors[#old_doors + 1] = "homedecor:door_woodglass2_right"
 | 
			
		||||
 | 
			
		||||
old_doors[#old_doors + 1] = "homedecor:door_bedroom_left"
 | 
			
		||||
old_doors[#old_doors + 1] = "homedecor:door_bedroom_right"
 | 
			
		||||
 | 
			
		||||
minetest.register_lbm({
 | 
			
		||||
	name = ":homedecor:convert_doors",
 | 
			
		||||
	name = ":homedecor:convert_doors_3",
 | 
			
		||||
	label = "Convert Homedecor doors to mtg doors API",
 | 
			
		||||
	nodenames = old_doors,
 | 
			
		||||
	run_at_every_load = false,
 | 
			
		||||
@@ -715,10 +747,12 @@ minetest.register_lbm({
 | 
			
		||||
		local newparam2 = (node.param2 + 2) % 4
 | 
			
		||||
		local e = string.find(node.name, "_", -7)
 | 
			
		||||
		local dir = string.sub(node.name, e+1)
 | 
			
		||||
		local newname = "doors:"..string.sub(node.name, 16, e-1)
 | 
			
		||||
		local newname = "doors:homedecor_"..string.sub(node.name, 16, e-1)
 | 
			
		||||
		if dir == "right" then
 | 
			
		||||
			print("Want to replace "..node.name.." with "..newname.."_a")
 | 
			
		||||
			minetest.set_node(pos, {name = newname.."_a", param2 = newparam2 })
 | 
			
		||||
		else
 | 
			
		||||
			print("Want to replace "..node.name.." with "..newname.."_b")
 | 
			
		||||
			minetest.set_node(pos, {name = newname.."_b", param2 = newparam2 })
 | 
			
		||||
		end
 | 
			
		||||
		minetest.set_node({x=pos.x, y=pos.y+1, z=pos.z}, {name = "doors:hidden"})
 | 
			
		||||
 
 | 
			
		||||
| 
		 Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB  | 
| 
		 Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB  | 
| 
		 Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB  | 
| 
		 Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB  | 
| 
		 Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.8 KiB  | 
| 
		 Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.9 KiB  | 
| 
		 Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 7.5 KiB  | 
| 
		 Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB  | 
| 
		 Before Width: | Height: | Size: 7.8 KiB After Width: | Height: | Size: 7.8 KiB  | 
| 
		 Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB  | 
| 
		 Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB  | 
| 
		 Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB  | 
@@ -2,9 +2,10 @@
 | 
			
		||||
local S = homedecor.gettext
 | 
			
		||||
 | 
			
		||||
function homedecor.toggle_switch(pos, node, clicker, itemstack, pointed_thing)
 | 
			
		||||
	if minetest.is_protected(pos, clicker:get_player_name()) then
 | 
			
		||||
		minetest.record_protection_violation(pos,
 | 
			
		||||
		sender:get_player_name())
 | 
			
		||||
	if not clicker then return false end
 | 
			
		||||
	local playername = clicker:get_player_name()
 | 
			
		||||
	if minetest.is_protected(pos, playername) then
 | 
			
		||||
		minetest.record_protection_violation(pos, playername)
 | 
			
		||||
		return false
 | 
			
		||||
	end
 | 
			
		||||
	local sep = string.find(node.name, "_o", -5)
 | 
			
		||||
@@ -15,8 +16,6 @@ function homedecor.toggle_switch(pos, node, clicker, itemstack, pointed_thing)
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
local on_rc
 | 
			
		||||
local switch_receptor
 | 
			
		||||
 | 
			
		||||
if minetest.get_modpath("mesecons") then
 | 
			
		||||
	on_rc = function(pos, node, clicker, itemstack, pointed_thing)
 | 
			
		||||
		local t = homedecor.toggle_switch(pos, node, clicker, itemstack, pointed_thing)
 | 
			
		||||
@@ -27,12 +26,6 @@ if minetest.get_modpath("mesecons") then
 | 
			
		||||
			mesecon.receptor_on(pos, mesecon.rules.buttonlike_get(node))
 | 
			
		||||
		end
 | 
			
		||||
	end
 | 
			
		||||
	switch_receptor = {
 | 
			
		||||
		receptor = {
 | 
			
		||||
			state = mesecon.state[onoff],
 | 
			
		||||
			rules = mesecon.rules.buttonlike_get
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
homedecor.register("power_outlet", {
 | 
			
		||||
@@ -64,6 +57,16 @@ homedecor.register("power_outlet", {
 | 
			
		||||
 | 
			
		||||
for _, onoff in ipairs ({"on", "off"}) do
 | 
			
		||||
 | 
			
		||||
	local switch_receptor
 | 
			
		||||
	if minetest.get_modpath("mesecons") then
 | 
			
		||||
		switch_receptor = {
 | 
			
		||||
			receptor = {
 | 
			
		||||
				state = mesecon.state[onoff],
 | 
			
		||||
				rules = mesecon.rules.buttonlike_get
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	local model = {
 | 
			
		||||
		{ -0.125,   -0.1875, 0.4375,  0.125,   0.125,  0.5 },
 | 
			
		||||
		{ -0.03125,  0,      0.40625, 0.03125, 0.0625, 0.5 },
 | 
			
		||||
 
 | 
			
		||||
@@ -2,6 +2,7 @@ homedecor_common
 | 
			
		||||
default
 | 
			
		||||
dye
 | 
			
		||||
creative
 | 
			
		||||
basic_materials
 | 
			
		||||
moreblocks?
 | 
			
		||||
building_blocks?
 | 
			
		||||
bucket?
 | 
			
		||||
 
 | 
			
		||||
@@ -349,7 +349,7 @@ minetest.register_craft({
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{ "","homedecor:fence_chainlink","" },
 | 
			
		||||
		{ "default:steel_ingot","fake_fire:embers","default:steel_ingot" },
 | 
			
		||||
		{ "homedecor:pole_wrought_iron","default:steel_ingot","homedecor:pole_wrought_iron" }
 | 
			
		||||
		{ "basic_materials:steel_bar","default:steel_ingot","basic_materials:steel_bar" }
 | 
			
		||||
	},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,19 +1,5 @@
 | 
			
		||||
-- This file adds fences of various types
 | 
			
		||||
 | 
			
		||||
local signs_modpath = minetest.get_modpath("signs_lib")
 | 
			
		||||
 | 
			
		||||
local sign_post_model = {
 | 
			
		||||
	type = "fixed",
 | 
			
		||||
	fixed = {
 | 
			
		||||
			{-0.4375, -0.25, -0.1875, 0.4375, 0.375, -0.125},
 | 
			
		||||
			{-0.125, -0.5, -0.125, 0.125, 0.5, 0.125},
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
if signs_modpath then
 | 
			
		||||
	sign_post_model = signs_lib.sign_post_model.nodebox
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
local S = homedecor.gettext
 | 
			
		||||
 | 
			
		||||
local materials = {
 | 
			
		||||
@@ -23,43 +9,17 @@ local materials = {
 | 
			
		||||
 | 
			
		||||
for _, m in ipairs(materials) do
 | 
			
		||||
 | 
			
		||||
local desc, name = unpack(m)
 | 
			
		||||
	local desc, name = unpack(m)
 | 
			
		||||
 | 
			
		||||
homedecor.register("fence_"..name, {
 | 
			
		||||
	description = S("Fence/railing (@1)", desc),
 | 
			
		||||
	drawtype = "fencelike",
 | 
			
		||||
	tiles = {"homedecor_generic_metal_"..name..".png"},
 | 
			
		||||
	inventory_image = "homedecor_fence_"..name..".png",
 | 
			
		||||
	selection_box = homedecor.nodebox.bar_y(1/7),
 | 
			
		||||
	groups = {snappy=3},
 | 
			
		||||
	sounds = default.node_sound_wood_defaults(),
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- brass/wrought iron with signs:
 | 
			
		||||
 | 
			
		||||
homedecor.register("fence_"..name.."_with_sign", {
 | 
			
		||||
	description = S("Fence/railing with sign (@1)", desc),
 | 
			
		||||
	tiles = {
 | 
			
		||||
		"homedecor_sign_"..name.."_post_top.png",
 | 
			
		||||
		"homedecor_sign_"..name.."_post_bottom.png",
 | 
			
		||||
		"homedecor_sign_"..name.."_post_side.png",
 | 
			
		||||
		"homedecor_sign_"..name.."_post_side.png",
 | 
			
		||||
		"homedecor_sign_"..name.."_post_back.png",
 | 
			
		||||
		"homedecor_sign_"..name.."_post_front.png",
 | 
			
		||||
	},
 | 
			
		||||
	wield_image = "homedecor_sign_"..name.."_post.png",
 | 
			
		||||
	node_box = sign_post_model,
 | 
			
		||||
	groups = {snappy=3,not_in_creative_inventory=1},
 | 
			
		||||
	sounds = default.node_sound_wood_defaults(),
 | 
			
		||||
	sunlight_propagates = true,
 | 
			
		||||
	drop = {
 | 
			
		||||
		max_items = 2,
 | 
			
		||||
		items = {
 | 
			
		||||
			{ items = { "default:sign_wall" }},
 | 
			
		||||
			{ items = { "homedecor:fence_"..name }},
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
})
 | 
			
		||||
	homedecor.register("fence_"..name, {
 | 
			
		||||
		description = S("Fence/railing (@1)", desc),
 | 
			
		||||
		drawtype = "fencelike",
 | 
			
		||||
		tiles = {"homedecor_generic_metal_"..name..".png"},
 | 
			
		||||
		inventory_image = "homedecor_fence_"..name..".png",
 | 
			
		||||
		selection_box = homedecor.nodebox.bar_y(1/7),
 | 
			
		||||
		groups = {snappy=3},
 | 
			
		||||
		sounds = default.node_sound_wood_defaults(),
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
@@ -303,9 +263,15 @@ homedecor.register("fence_wrought_iron_2_corner", {
 | 
			
		||||
	},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
if signs_modpath then
 | 
			
		||||
	signs_lib.register_fence_with_sign("homedecor:fence_brass", "homedecor:fence_brass_with_sign")
 | 
			
		||||
	signs_lib.register_fence_with_sign("homedecor:fence_wrought_iron", "homedecor:fence_wrought_iron_with_sign")
 | 
			
		||||
-- insert the old wood signs-on-metal-fences into signs_lib's conversion LBM
 | 
			
		||||
if minetest.get_modpath("signs_lib") then
 | 
			
		||||
	table.insert(signs_lib.old_fenceposts_with_signs, "homedecor:fence_brass_with_sign")
 | 
			
		||||
	signs_lib.old_fenceposts["homedecor:fence_brass_with_sign"] = "homedecor:fence_brass"
 | 
			
		||||
	signs_lib.old_fenceposts_replacement_signs["homedecor:fence_brass_with_sign"] = "default:sign_wall_wood_onpole"
 | 
			
		||||
 | 
			
		||||
	table.insert(signs_lib.old_fenceposts_with_signs, "homedecor:fence_wrought_iron_with_sign")
 | 
			
		||||
	signs_lib.old_fenceposts["homedecor:fence_wrought_iron_with_sign"] = "homedecor:fence_wrought_iron"
 | 
			
		||||
	signs_lib.old_fenceposts_replacement_signs["homedecor:fence_wrought_iron_with_sign"] = "default:sign_wall_wood_onpole"
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
-- crafting
 | 
			
		||||
 
 | 
			
		||||
@@ -58,61 +58,10 @@ homedecor.register("chains", {
 | 
			
		||||
	sounds = default.node_sound_stone_defaults(),
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
homedecor.register("torch_wall", {
 | 
			
		||||
	description = S("Wall Torch"),
 | 
			
		||||
	mesh = "forniture_torch.obj",
 | 
			
		||||
	tiles = {
 | 
			
		||||
		{
 | 
			
		||||
			name="forniture_torch_flame.png",
 | 
			
		||||
			animation={
 | 
			
		||||
				type="vertical_frames",
 | 
			
		||||
				aspect_w=40,
 | 
			
		||||
				aspect_h=40,
 | 
			
		||||
				length=1.0,
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
		{ name = "homedecor_generic_metal.png", color = homedecor.color_black },
 | 
			
		||||
		{ name = "homedecor_generic_metal.png", color = homedecor.color_med_grey },
 | 
			
		||||
		"forniture_coal.png",
 | 
			
		||||
	},
 | 
			
		||||
	inventory_image="forniture_torch_inv.png",
 | 
			
		||||
	walkable = false,
 | 
			
		||||
	light_source = 14,
 | 
			
		||||
	selection_box = {
 | 
			
		||||
		type = "fixed",
 | 
			
		||||
		fixed = { -0.15, -0.45, 0.15, 0.15,0.35, 0.5 },
 | 
			
		||||
	},
 | 
			
		||||
	groups = {cracky=3},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
local wl_cbox = {
 | 
			
		||||
	type = "fixed",
 | 
			
		||||
	fixed = { -0.2, -0.5, 0, 0.2, 0.5, 0.5 },
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
homedecor.register("wall_lamp", {
 | 
			
		||||
	description = S("Wall Lamp"),
 | 
			
		||||
	mesh = "homedecor_wall_lamp.obj",
 | 
			
		||||
	tiles = {
 | 
			
		||||
		{ name = "homedecor_generic_metal.png", color = homedecor.color_med_grey },
 | 
			
		||||
		homedecor.lux_wood,
 | 
			
		||||
		"homedecor_light.png",
 | 
			
		||||
		"homedecor_generic_metal_wrought_iron.png"
 | 
			
		||||
	},
 | 
			
		||||
	use_texture_alpha = true,
 | 
			
		||||
	inventory_image = "homedecor_wall_lamp_inv.png",
 | 
			
		||||
	groups = {snappy=3},
 | 
			
		||||
	light_source = 11,
 | 
			
		||||
	selection_box = wl_cbox,
 | 
			
		||||
	walkable = false
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_alias("3dforniture:bars", "homedecor:bars")
 | 
			
		||||
minetest.register_alias("3dforniture:L_binding_bars", "homedecor:L_binding_bars")
 | 
			
		||||
minetest.register_alias("3dforniture:chains", "homedecor:chains")
 | 
			
		||||
minetest.register_alias("3dforniture:torch_wall", "homedecor:torch_wall")
 | 
			
		||||
 | 
			
		||||
minetest.register_alias('bars', 'homedecor:bars')
 | 
			
		||||
minetest.register_alias('binding_bars', 'homedecor:L_binding_bars')
 | 
			
		||||
minetest.register_alias('chains', 'homedecor:chains')
 | 
			
		||||
minetest.register_alias('torch_wall', 'homedecor:torch_wall')
 | 
			
		||||
 
 | 
			
		||||
@@ -164,18 +164,7 @@ homedecor.register("beer_mug", {
 | 
			
		||||
	on_use = function(itemstack, user, pointed_thing)
 | 
			
		||||
		local inv = user:get_inventory()
 | 
			
		||||
		if not creative.is_enabled_for(user:get_player_name()) then
 | 
			
		||||
			if inv:room_for_item("main", "vessels:drinking_glass 1") then
 | 
			
		||||
				inv:add_item("main", "vessels:drinking_glass 1")
 | 
			
		||||
			else
 | 
			
		||||
				local pos = user:get_pos()
 | 
			
		||||
				local dir = user:get_look_dir()
 | 
			
		||||
				local fdir = minetest.dir_to_facedir(dir)
 | 
			
		||||
				local pos_fwd = {	x = pos.x + homedecor.fdir_to_fwd[fdir+1][1],
 | 
			
		||||
									y = pos.y + 1,
 | 
			
		||||
									z = pos.z + homedecor.fdir_to_fwd[fdir+1][2] }
 | 
			
		||||
				minetest.add_item(pos_fwd, "vessels:drinking_glass 1")
 | 
			
		||||
			end
 | 
			
		||||
			minetest.do_item_eat(2, nil, itemstack, user, pointed_thing)
 | 
			
		||||
			minetest.do_item_eat(2, "vessels:drinking_glass 1", itemstack, user, pointed_thing)
 | 
			
		||||
			return itemstack
 | 
			
		||||
		end
 | 
			
		||||
	end
 | 
			
		||||
 
 | 
			
		||||
@@ -7,3 +7,4 @@ moreblocks?
 | 
			
		||||
building_blocks?
 | 
			
		||||
darkage?
 | 
			
		||||
mesecons?
 | 
			
		||||
digilines?
 | 
			
		||||
 
 | 
			
		||||
| 
		 Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 6.2 KiB  | 
| 
		 Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB  | 
| 
		 Before Width: | Height: | Size: 450 B After Width: | Height: | Size: 450 B  | 
| 
		 Before Width: | Height: | Size: 594 B After Width: | Height: | Size: 594 B  | 
| 
		 Before Width: | Height: | Size: 524 B After Width: | Height: | Size: 524 B  | 
| 
		 Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB  | 
@@ -5,3 +5,4 @@ unifieddyes
 | 
			
		||||
building_blocks?
 | 
			
		||||
technic?
 | 
			
		||||
bucket?
 | 
			
		||||
signs_lib?
 | 
			
		||||
 
 | 
			
		||||
@@ -130,21 +130,22 @@ for _, f in ipairs(flowers_list) do
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
homedecor.register("pole_brass", {
 | 
			
		||||
    description = S("Brass Pole"),
 | 
			
		||||
	description = S("Brass Pole"),
 | 
			
		||||
	mesh = "homedecor_round_pole.obj",
 | 
			
		||||
    tiles = {"homedecor_generic_metal_brass.png^homedecor_generic_metal_lines_overlay.png",},
 | 
			
		||||
    inventory_image = "homedecor_pole_brass_inv.png",
 | 
			
		||||
    wield_image = "homedecor_pole_brass_inv.png",
 | 
			
		||||
    selection_box = {
 | 
			
		||||
            type = "fixed",
 | 
			
		||||
            fixed = { -0.125, -0.5, -0.125, 0.125, 0.5, 0.125 },
 | 
			
		||||
    },
 | 
			
		||||
    collision_box = {
 | 
			
		||||
            type = "fixed",
 | 
			
		||||
            fixed = { -0.125, -0.5, -0.125, 0.125, 0.5, 0.125 },
 | 
			
		||||
    },
 | 
			
		||||
    groups = {snappy=3},
 | 
			
		||||
    sounds = default.node_sound_wood_defaults(),
 | 
			
		||||
	tiles = {"homedecor_generic_metal_brass.png^homedecor_generic_metal_lines_overlay.png",},
 | 
			
		||||
	inventory_image = "homedecor_pole_brass_inv.png",
 | 
			
		||||
	wield_image = "homedecor_pole_brass_inv.png",
 | 
			
		||||
	selection_box = {
 | 
			
		||||
		type = "fixed",
 | 
			
		||||
		fixed = { -0.125, -0.5, -0.125, 0.125, 0.5, 0.125 },
 | 
			
		||||
	},
 | 
			
		||||
	collision_box = {
 | 
			
		||||
		type = "fixed",
 | 
			
		||||
		fixed = { -0.125, -0.5, -0.125, 0.125, 0.5, 0.125 },
 | 
			
		||||
	},
 | 
			
		||||
	groups = {snappy=3},
 | 
			
		||||
	sounds = default.node_sound_wood_defaults(),
 | 
			
		||||
	check_for_pole = true
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
homedecor.register("pole_wrought_iron", {
 | 
			
		||||
@@ -478,6 +479,7 @@ for _, side in ipairs({"diagonal_left", "diagonal_right", "horizontal"}) do
 | 
			
		||||
			def.airbrush_replacement_node = "homedecor:banister_wood_"..side.."_grey"
 | 
			
		||||
			def.groups.ud_param2_colorable = 1
 | 
			
		||||
			def.paramtype2 = "colorfacedir"
 | 
			
		||||
			def.on_dig = unifieddyes.on_dig
 | 
			
		||||
		end
 | 
			
		||||
		homedecor.register(nodename, def)
 | 
			
		||||
 | 
			
		||||
@@ -918,7 +920,7 @@ minetest.register_craft({
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "homedecor:sportbench",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{ "stairs:slab_steelblock","homedecor:pole_wrought_iron","stairs:slab_steelblock" },
 | 
			
		||||
		{ "stairs:slab_steelblock","basic_materials:steel_bar","stairs:slab_steelblock" },
 | 
			
		||||
		{ "default:steel_ingot","wool:black","default:steel_ingot" },
 | 
			
		||||
		{ "default:steel_ingot","wool:black","default:steel_ingot" }
 | 
			
		||||
	},
 | 
			
		||||
 
 | 
			
		||||
@@ -26,6 +26,7 @@ minetest.register_node(":lrfurn:armchair", {
 | 
			
		||||
	after_place_node = function(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
		unifieddyes.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
	end,
 | 
			
		||||
	on_dig = unifieddyes.on_dig,
 | 
			
		||||
	on_rotate = unifieddyes.fix_after_screwdriver_nsew,
 | 
			
		||||
	on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
 | 
			
		||||
		if not clicker:is_player() then
 | 
			
		||||
@@ -51,10 +52,11 @@ homedecor.register("armchair", {
 | 
			
		||||
	palette = "unifieddyes_palette_colorwallmounted.png",
 | 
			
		||||
	groups = {snappy=3, ud_param2_colorable = 1},
 | 
			
		||||
	sounds = default.node_sound_wood_defaults(),
 | 
			
		||||
	node_box = ac_cbox,
 | 
			
		||||
	node_box = armchair_cbox,
 | 
			
		||||
	after_place_node = function(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
		unifieddyes.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
	end,
 | 
			
		||||
	on_dig = unifieddyes.on_dig,
 | 
			
		||||
	on_rotate = unifieddyes.fix_after_screwdriver_nsew,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -2,3 +2,4 @@ default
 | 
			
		||||
wool
 | 
			
		||||
homedecor_common
 | 
			
		||||
unifieddyes
 | 
			
		||||
basic_materials
 | 
			
		||||
 
 | 
			
		||||
@@ -41,6 +41,7 @@ minetest.register_node(":lrfurn:longsofa", {
 | 
			
		||||
		end
 | 
			
		||||
		return itemstack
 | 
			
		||||
	end,
 | 
			
		||||
	on_dig = unifieddyes.on_dig,
 | 
			
		||||
	on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
 | 
			
		||||
		if not clicker:is_player() then
 | 
			
		||||
			return itemstack
 | 
			
		||||
 
 | 
			
		||||
@@ -153,6 +153,7 @@ homedecor.register("kitchen_chair_padded", {
 | 
			
		||||
	after_place_node = function(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
		unifieddyes.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
	end,
 | 
			
		||||
	on_dig = unifieddyes.on_dig,
 | 
			
		||||
	on_rotate = unifieddyes.fix_after_screwdriver_nsew,
 | 
			
		||||
	on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
 | 
			
		||||
		pos.y = pos.y+0 -- where do I put my ass ?
 | 
			
		||||
@@ -211,7 +212,7 @@ minetest.register_craft( {
 | 
			
		||||
        recipe = {
 | 
			
		||||
			{ "group:wood", "group:wood", "group:wood" },
 | 
			
		||||
			{ "group:wood", "group:wood", "group:wood" },
 | 
			
		||||
			{ "homedecor:pole_wrought_iron", "", "homedecor:pole_wrought_iron" }
 | 
			
		||||
			{ "basic_materials:steel_bar", "", "basic_materials:steel_bar" }
 | 
			
		||||
        },
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
@@ -315,7 +316,7 @@ minetest.register_craft({
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{ "", "", "wool:black" },
 | 
			
		||||
		{ "", "wool:black", "default:steel_ingot" },
 | 
			
		||||
		{ "group:stick", "homedecor:pole_wrought_iron", "group:stick" }
 | 
			
		||||
		{ "group:stick", "basic_materials:steel_bar", "group:stick" }
 | 
			
		||||
	},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
@@ -324,7 +325,7 @@ minetest.register_craft({
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{ "dye:black", "building_blocks:sticks", "group:wool" },
 | 
			
		||||
		{ "basic_materials:plastic_sheet", "group:wool", "default:steel_ingot" },
 | 
			
		||||
		{ "building_blocks:sticks", "homedecor:pole_wrought_iron", "building_blocks:sticks" }
 | 
			
		||||
		{ "building_blocks:sticks", "basic_materials:steel_bar", "building_blocks:sticks" }
 | 
			
		||||
	},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -41,6 +41,7 @@ minetest.register_node(":lrfurn:sofa", {
 | 
			
		||||
		end
 | 
			
		||||
		return itemstack
 | 
			
		||||
	end,
 | 
			
		||||
	on_dig = unifieddyes.on_dig,
 | 
			
		||||
	on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
 | 
			
		||||
		if not clicker:is_player() then
 | 
			
		||||
			return itemstack
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,7 @@
 | 
			
		||||
homedecor_common
 | 
			
		||||
default
 | 
			
		||||
player_api
 | 
			
		||||
homedecor_kitchen?
 | 
			
		||||
homedecor_misc?
 | 
			
		||||
3d_armor?
 | 
			
		||||
skinsdb?
 | 
			
		||||
 
 | 
			
		||||
@@ -106,7 +106,7 @@ minetest.register_node(":homedecor:curtain_closed", {
 | 
			
		||||
	drawtype = 'signlike',
 | 
			
		||||
	use_texture_alpha = true,
 | 
			
		||||
	walkable = false,
 | 
			
		||||
	groups = { snappy = 3, ud_param2_colorable = 1 },
 | 
			
		||||
	groups = { snappy = 3, ud_param2_colorable = 1, not_in_creative_inventory=1 },
 | 
			
		||||
	sounds = default.node_sound_leaves_defaults(),
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	paramtype2 = "colorwallmounted",
 | 
			
		||||
@@ -115,13 +115,9 @@ minetest.register_node(":homedecor:curtain_closed", {
 | 
			
		||||
	after_place_node = function(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
		unifieddyes.fix_rotation(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
	end,
 | 
			
		||||
	on_dig = unifieddyes.on_dig,
 | 
			
		||||
	on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
 | 
			
		||||
		local topnode = minetest.get_node({x=pos.x, y=pos.y+1.0, z=pos.z})
 | 
			
		||||
		if string.find(topnode.name, "homedecor:curtainrod") then
 | 
			
		||||
			-- Open the curtains
 | 
			
		||||
			local fdir = node.param2
 | 
			
		||||
			minetest.set_node(pos, { name = "homedecor:curtain_open", param2 = fdir })
 | 
			
		||||
		end
 | 
			
		||||
		minetest.set_node(pos, { name = "homedecor:curtain_open", param2 = node.param2 })
 | 
			
		||||
		return itemstack
 | 
			
		||||
	end
 | 
			
		||||
})
 | 
			
		||||
@@ -142,13 +138,9 @@ minetest.register_node(":homedecor:curtain_open", {
 | 
			
		||||
	after_place_node = function(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
		unifieddyes.fix_rotation(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
	end,
 | 
			
		||||
	on_dig = unifieddyes.on_dig,
 | 
			
		||||
	on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
 | 
			
		||||
		local topnode = minetest.get_node({x=pos.x, y=pos.y+1.0, z=pos.z})
 | 
			
		||||
		if string.find(topnode.name, "homedecor:curtainrod") then
 | 
			
		||||
			-- Close the curtains
 | 
			
		||||
			local fdir = node.param2
 | 
			
		||||
			minetest.set_node(pos, { name = "homedecor:curtain_closed", param2 = fdir })
 | 
			
		||||
		end
 | 
			
		||||
		minetest.set_node(pos, { name = "homedecor:curtain_closed", param2 = node.param2 })
 | 
			
		||||
		return itemstack
 | 
			
		||||
	end
 | 
			
		||||
})
 | 
			
		||||
@@ -253,6 +245,7 @@ homedecor.register("shutter", {
 | 
			
		||||
	after_place_node = function(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
		unifieddyes.fix_rotation(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
	end,
 | 
			
		||||
	on_dig = unifieddyes.on_dig,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
homedecor.register("shutter_colored", {
 | 
			
		||||
@@ -270,6 +263,7 @@ homedecor.register("shutter_colored", {
 | 
			
		||||
	after_place_node = function(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
		unifieddyes.fix_rotation(pos, placer, itemstack, pointed_thing)
 | 
			
		||||
	end,
 | 
			
		||||
	on_dig = unifieddyes.on_dig,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_alias("homedecor:shutter_purple", "homedecor:shutter_violet")
 | 
			
		||||
@@ -390,7 +384,7 @@ minetest.register_craft({
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
minetest.register_craft( {
 | 
			
		||||
	output = "homedecor:curtain_closed 4",
 | 
			
		||||
	output = "homedecor:curtain_open 4",
 | 
			
		||||
		recipe = {
 | 
			
		||||
		{ "wool:white", "", ""},
 | 
			
		||||
		{ "wool:white", "", ""},
 | 
			
		||||
@@ -399,7 +393,7 @@ minetest.register_craft( {
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft( {
 | 
			
		||||
	output = "homedecor:curtain_closed 4",
 | 
			
		||||
	output = "homedecor:curtain_open 4",
 | 
			
		||||
		recipe = {
 | 
			
		||||
		{ "cottages:wool", "", ""},
 | 
			
		||||
		{ "cottages:wool", "", ""},
 | 
			
		||||
 
 | 
			
		||||
@@ -38,6 +38,7 @@ minetest.register_node("lavalamp:lavalamp", {
 | 
			
		||||
	groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3, ud_param2_colorable = 1},
 | 
			
		||||
	sounds = default.node_sound_glass_defaults(),
 | 
			
		||||
	on_construct = unifieddyes.on_construct,
 | 
			
		||||
	on_dig = unifieddyes.on_dig,
 | 
			
		||||
	on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
 | 
			
		||||
		node.name = "lavalamp:lavalamp_off"
 | 
			
		||||
		minetest.swap_node(pos, node)
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										1
									
								
								modpack.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1 @@
 | 
			
		||||
min_minetest_version = 5.2.0
 | 
			
		||||