forkattu lähteestä nalc/homedecor_modpack
		
	use Unified Dyes colorwallmounted mode
so that the spool of filament can be colorized.
This commit is contained in:
		| @@ -1,3 +1,4 @@ | |||||||
| default | default | ||||||
| homedecor_common | homedecor_common | ||||||
| basic_materials | basic_materials | ||||||
|  | unifieddyes | ||||||
|   | |||||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @@ -32,21 +32,30 @@ minetest.register_node("computer:printer", { | |||||||
|  |  | ||||||
| local cbox = { | local cbox = { | ||||||
| 	type = "fixed", | 	type = "fixed", | ||||||
| 	fixed = {-0.25, -0.5, -0.25, 0.3, 0.25, 0.3 } | 	fixed = {-0.25, -0.25, -0.5, 0.3, 0.3, 0.25 } | ||||||
| } | } | ||||||
|  |  | ||||||
| minetest.register_node("computer:3dprinter_bedflinger", { | minetest.register_node("computer:3dprinter_bedflinger", { | ||||||
| 	description = S('3D Printer ("bedflinger")'), | 	description = S('3D Printer ("bedflinger")'), | ||||||
| 	inventory_image = "computer_3dprinter_bedflinger_inv.png", | 	inventory_image = "computer_3dprinter_bedflinger_inv.png", | ||||||
| 	tiles = {"computer_3dprinter_bedflinger.png"}, | 	tiles = { | ||||||
|  | 		{ name = "computer_3dprinter_bedflinger.png", color = 0xffffffff }, | ||||||
|  | 		"computer_3dprinter_filament.png" | ||||||
|  | 	}, | ||||||
| 	paramtype = "light", | 	paramtype = "light", | ||||||
| 	paramtype2 = "facedir", |  | ||||||
| 	walkable = true, | 	walkable = true, | ||||||
| 	groups = {snappy=3}, | 	groups = {snappy=3, ud_param2_colorable = 1}, | ||||||
| 	sound = default.node_sound_wood_defaults(), | 	sound = default.node_sound_wood_defaults(), | ||||||
| 	drawtype = "mesh", | 	drawtype = "mesh", | ||||||
| 	mesh = "computer_3dprinter_bedflinger.obj", | 	mesh = "computer_3dprinter_bedflinger.obj", | ||||||
|  | 	paramtype2 = "colorwallmounted", | ||||||
|  | 	palette = "unifieddyes_palette_colorwallmounted.png", | ||||||
| 	selection_box = cbox, | 	selection_box = cbox, | ||||||
| 	collision_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, | ||||||
| }) | }) | ||||||
|  |  | ||||||
|   | |||||||
										
											Binary file not shown.
										
									
								
							| Before Leveys: | Korkeus: | Koko: 4.0 KiB After Leveys: | Korkeus: | Koko: 3.5 KiB | 
							
								
								
									
										
											BIN
										
									
								
								computer/textures/computer_3dprinter_filament.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								computer/textures/computer_3dprinter_filament.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Leveys: | Korkeus: | Koko: 216 B | 
		Viittaa uudesa ongelmassa
	
	Block a user