mirror of
				https://github.com/D00Med/scifi_nodes.git
				synced 2025-11-04 07:45:30 +01:00 
			
		
		
		
	Compare commits
	
		
			2 Commits
		
	
	
		
			animated_l
			...
			bd58dbc48b
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| bd58dbc48b | |||
| 4eaba4f6e1 | 
@@ -4,7 +4,6 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||

 | 
					
 | 
				
			||||||

 | 
					
 | 
				
			||||||
[](https://content.minetest.net/packages/D00Med/scifi_nodes/)
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
Minetest mod that adds scifi themed blocks, doors, materials, plants and other assets.
 | 
					Minetest mod that adds scifi themed blocks, doors, materials, plants and other assets.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										20
									
								
								crafts.lua
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								crafts.lua
									
									
									
									
									
								
							@@ -767,16 +767,6 @@ minetest.register_craft({
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- 4 green light bar from 4 green metal, 2 green dye, 1 lightbar
 | 
					 | 
				
			||||||
minetest.register_craft({
 | 
					 | 
				
			||||||
    output = "scifi_nodes:greenbar_animated 4",
 | 
					 | 
				
			||||||
    recipe = {
 | 
					 | 
				
			||||||
        {"scifi_nodes:greenbar", "", "scifi_nodes:greenbar"},
 | 
					 | 
				
			||||||
        {"", "mesecons:wire_00000000_off", ""},
 | 
					 | 
				
			||||||
        {"scifi_nodes:greenbar", "", "scifi_nodes:greenbar"}
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-- 4 green metal block from 4 green metal
 | 
					-- 4 green metal block from 4 green metal
 | 
				
			||||||
minetest.register_craft({
 | 
					minetest.register_craft({
 | 
				
			||||||
    output = "scifi_nodes:green_square 4",
 | 
					    output = "scifi_nodes:green_square 4",
 | 
				
			||||||
@@ -1292,13 +1282,10 @@ minetest.register_craft({
 | 
				
			|||||||
})
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- https://forum.minetest.net/viewtopic.php?f=10&t=13125&p=261481#p261481
 | 
					-- https://forum.minetest.net/viewtopic.php?f=10&t=13125&p=261481#p261481
 | 
				
			||||||
-- with modified recipe
 | 
					 | 
				
			||||||
minetest.register_craft({
 | 
					minetest.register_craft({
 | 
				
			||||||
    output = 'scifi_nodes:windowpanel',
 | 
					    output = 'scifi_nodes:windowpanel 4',
 | 
				
			||||||
    recipe = {
 | 
					    recipe = {
 | 
				
			||||||
        {"scifi_nodes:glass_pane","scifi_nodes:glass_pane",""},
 | 
					        {"scifi_nodes:glass","",""}
 | 
				
			||||||
        {"scifi_nodes:glass_pane","scifi_nodes:glass_pane",""},
 | 
					 | 
				
			||||||
        {"","",""}
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -1693,7 +1680,7 @@ minetest.register_craft({
 | 
				
			|||||||
minetest.register_craft({
 | 
					minetest.register_craft({
 | 
				
			||||||
    output = 'scifi_nodes:stripes2top 3',
 | 
					    output = 'scifi_nodes:stripes2top 3',
 | 
				
			||||||
    recipe = {
 | 
					    recipe = {
 | 
				
			||||||
        {"scifi_nodes:black","scifi_nodes:black","scifi_nodes:black"},
 | 
					        {"scifi_nodes:black","scifi_noedes:black","scifi_nodes:black"},
 | 
				
			||||||
        {"default:silver_sand","default:silver_sand","default:silver_sand"}
 | 
					        {"default:silver_sand","default:silver_sand","default:silver_sand"}
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
@@ -1705,3 +1692,4 @@ minetest.register_craft({
 | 
				
			|||||||
        {"scifi_nodes:stripes"}
 | 
					        {"scifi_nodes:stripes"}
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										4
									
								
								init.lua
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								init.lua
									
									
									
									
									
								
							@@ -20,5 +20,7 @@ dofile(MP.."/nodeboxes.lua")
 | 
				
			|||||||
dofile(MP.."/palm_scanner.lua")
 | 
					dofile(MP.."/palm_scanner.lua")
 | 
				
			||||||
dofile(MP.."/digicode.lua")
 | 
					dofile(MP.."/digicode.lua")
 | 
				
			||||||
dofile(MP.."/models.lua")
 | 
					dofile(MP.."/models.lua")
 | 
				
			||||||
dofile(MP.."/octagon_panes.lua")
 | 
					 | 
				
			||||||
dofile(MP.."/crafts.lua")
 | 
					dofile(MP.."/crafts.lua")
 | 
				
			||||||
 | 
					dofile(MP.."/octagon_panes.lua")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					minetest.log("action", "[scifi_nodes] loaded.")
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -475,12 +475,6 @@ minetest.register_node("scifi_nodes:light_dynamic", {
 | 
				
			|||||||
		type = "wallmounted",
 | 
							type = "wallmounted",
 | 
				
			||||||
		fixed = {-0.5, -0.5, -0.5, -0.45, 0.5, 0.5}
 | 
							fixed = {-0.5, -0.5, -0.5, -0.45, 0.5, 0.5}
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
	node_box = {
 | 
					 | 
				
			||||||
		type = "fixed",
 | 
					 | 
				
			||||||
		fixed = {
 | 
					 | 
				
			||||||
			fixed = {-0.5, -0.5, -0.5, -0.45, 0.5, 0.5}
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
	},
 | 
					 | 
				
			||||||
	paramtype2 = "wallmounted",
 | 
						paramtype2 = "wallmounted",
 | 
				
			||||||
	light_source = default.LIGHT_MAX,
 | 
						light_source = default.LIGHT_MAX,
 | 
				
			||||||
	groups = {cracky=1, oddly_breakable_by_hand=1},
 | 
						groups = {cracky=1, oddly_breakable_by_hand=1},
 | 
				
			||||||
@@ -1086,9 +1080,10 @@ minetest.register_node("scifi_nodes:itemholder", {
 | 
				
			|||||||
		local meta = minetest.get_meta(pos)
 | 
							local meta = minetest.get_meta(pos)
 | 
				
			||||||
		if name == meta:get_string("owner") or
 | 
							if name == meta:get_string("owner") or
 | 
				
			||||||
				minetest.check_player_privs(name, "protection_bypass") then
 | 
									minetest.check_player_privs(name, "protection_bypass") then
 | 
				
			||||||
 | 
								local wield_item = clicker:get_wielded_item():get_name()
 | 
				
			||||||
			local taken = item:take_item()
 | 
								local taken = item:take_item()
 | 
				
			||||||
			if taken and not taken:is_empty() then
 | 
								if taken and not taken:is_empty() then
 | 
				
			||||||
				minetest.add_item(pos, taken:to_string())
 | 
									minetest.add_item(pos, wield_item)
 | 
				
			||||||
				return item
 | 
									return item
 | 
				
			||||||
			end
 | 
								end
 | 
				
			||||||
		end
 | 
							end
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										17
									
								
								nodes.lua
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								nodes.lua
									
									
									
									
									
								
							@@ -182,23 +182,6 @@ minetest.register_node("scifi_nodes:disc", {
 | 
				
			|||||||
	groups = {cracky=1}
 | 
						groups = {cracky=1}
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
minetest.register_node("scifi_nodes:greenbar_animated", {
 | 
					 | 
				
			||||||
	description = "animated green light bar",
 | 
					 | 
				
			||||||
	sunlight_propagates = false,
 | 
					 | 
				
			||||||
	tiles = {
 | 
					 | 
				
			||||||
		"scifi_nodes_greenbar.png",
 | 
					 | 
				
			||||||
		"scifi_nodes_greenbar.png", {
 | 
					 | 
				
			||||||
			name="scifi_nodes_greenbar_animated.png",
 | 
					 | 
				
			||||||
			animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=1.00},
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
	},
 | 
					 | 
				
			||||||
	paramtype = "light",
 | 
					 | 
				
			||||||
	paramtype2 = "facedir",
 | 
					 | 
				
			||||||
	groups = {cracky=1},
 | 
					 | 
				
			||||||
	light_source = 10,
 | 
					 | 
				
			||||||
	sounds = default.node_sound_glass_defaults(),
 | 
					 | 
				
			||||||
	on_place = minetest.rotate_node
 | 
					 | 
				
			||||||
})
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
minetest.register_node("scifi_nodes:blink", {
 | 
					minetest.register_node("scifi_nodes:blink", {
 | 
				
			||||||
	description = "blinking light",
 | 
						description = "blinking light",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -44,7 +44,7 @@ local function register(basename, description, texture)
 | 
				
			|||||||
    is_ground_content = false,
 | 
					    is_ground_content = false,
 | 
				
			||||||
    node_box = {
 | 
					    node_box = {
 | 
				
			||||||
      type = "fixed",
 | 
					      type = "fixed",
 | 
				
			||||||
      fixed = {{-0.5, -0.5, -0.03125, 0.5, 1.5, 0.03125}},
 | 
					      fixed = {{-0.5, -0.5, 0, 0.5, 1.5, 0}},
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    selection_box = {
 | 
					    selection_box = {
 | 
				
			||||||
      type = "fixed",
 | 
					      type = "fixed",
 | 
				
			||||||
@@ -69,7 +69,7 @@ local function register(basename, description, texture)
 | 
				
			|||||||
    is_ground_content = false,
 | 
					    is_ground_content = false,
 | 
				
			||||||
    node_box = {
 | 
					    node_box = {
 | 
				
			||||||
      type = "fixed",
 | 
					      type = "fixed",
 | 
				
			||||||
      fixed = {{-0.5, -0.5, 0.96875, 0.5, 0.5, 1.03125}},
 | 
					      fixed = {{-0.5, -0.5, 1, 0.5, 0.5, 1}},
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    selection_box = {
 | 
					    selection_box = {
 | 
				
			||||||
      type = "fixed",
 | 
					      type = "fixed",
 | 
				
			||||||
 
 | 
				
			|||||||
										
											Binary file not shown.
										
									
								
							| 
		 Before Width: | Height: | Size: 278 B  | 
		Reference in New Issue
	
	Block a user