forked from mtcontrib/scifi_nodes
		
	Compare commits
	
		
			5 Commits
		
	
	
		
			eb231d7ca7
			...
			pkarcs-com
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					48a933fca8 | ||
| 
						 | 
					4fc833bb00 | ||
| 
						 | 
					5788062fac | ||
| 
						 | 
					1c8024401f | ||
| 
						 | 
					1273b627c2 | 
@@ -20,6 +20,7 @@ read_globals = {
 | 
			
		||||
	"screwdriver",
 | 
			
		||||
	"minetest",
 | 
			
		||||
	"mesecon",
 | 
			
		||||
	"unifieddyes"
 | 
			
		||||
	"unifieddyes",
 | 
			
		||||
	"pkarcs"
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -55,3 +55,4 @@ CC0
 | 
			
		||||
* OgelGames https://github.com/OgelGames
 | 
			
		||||
* leftshift https://github.com/leftshift
 | 
			
		||||
* fluxionary https://github.com/fluxionary
 | 
			
		||||
* Niles Corder https://github.com/ncorder
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										14
									
								
								crafts.lua
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								crafts.lua
									
									
									
									
									
								
							@@ -10,8 +10,22 @@ if minetest.get_modpath("basic_materials") then
 | 
			
		||||
            {"homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting"}
 | 
			
		||||
        }
 | 
			
		||||
    })
 | 
			
		||||
 | 
			
		||||
    if minetest.settings:get_bool("scifi_nodes.teleporter_enable_crafting", false) then
 | 
			
		||||
        -- enable the teleporter pad crafting recipe only if the setting is enabled
 | 
			
		||||
        minetest.register_craft({
 | 
			
		||||
            output = "scifi_nodes:pad",
 | 
			
		||||
            recipe = {
 | 
			
		||||
                {"homedecor:plastic_sheeting", "quartz:block", "homedecor:plastic_sheeting"},
 | 
			
		||||
                {"default:mese_crystal", "quartz:block", "default:mese_crystal"},
 | 
			
		||||
                {"homedecor:plastic_sheeting", "quartz:block", "homedecor:plastic_sheeting"}
 | 
			
		||||
            }
 | 
			
		||||
        })
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
if not minetest.get_modpath("default") or not minetest.get_modpath("dye") then
 | 
			
		||||
    -- the default and dye mod are required for most of the recipes
 | 
			
		||||
    -- if either of them is missing (because we are not in the default game)
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										6
									
								
								init.lua
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								init.lua
									
									
									
									
									
								
							@@ -31,4 +31,8 @@ dofile(MP.."/digicode.lua")
 | 
			
		||||
dofile(MP.."/models.lua")
 | 
			
		||||
dofile(MP.."/octagon_panes.lua")
 | 
			
		||||
dofile(MP.."/crafts.lua")
 | 
			
		||||
minetest.log("action", "[scifi_nodes] loaded.")
 | 
			
		||||
 | 
			
		||||
if minetest.get_modpath("pkarcs") then
 | 
			
		||||
	-- register some nodes in the pkarcs mod
 | 
			
		||||
	dofile(MP.."/pkarcs.lua")
 | 
			
		||||
end
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										3
									
								
								mod.conf
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								mod.conf
									
									
									
									
									
								
							@@ -11,5 +11,6 @@ mesecons_torch,
 | 
			
		||||
mesecons_receiver,
 | 
			
		||||
basic_materials,
 | 
			
		||||
dye,
 | 
			
		||||
unifieddyes
 | 
			
		||||
unifieddyes,
 | 
			
		||||
pkarcs
 | 
			
		||||
"""
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										4
									
								
								pkarcs.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								pkarcs.lua
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
			
		||||
pkarcs.register_node("scifi_nodes:whitetile")
 | 
			
		||||
pkarcs.register_node("scifi_nodes:whiteoct")
 | 
			
		||||
pkarcs.register_node("scifi_nodes:white")
 | 
			
		||||
pkarcs.register_node("scifi_nodes:lighttop")
 | 
			
		||||
@@ -1,2 +1,5 @@
 | 
			
		||||
# Doors can only be opened by mesecon signal
 | 
			
		||||
scifi_nodes.doors_open_with_mesecon_only (disables right click on doors) bool true
 | 
			
		||||
scifi_nodes.doors_open_with_mesecon_only (disables right click on doors) bool false
 | 
			
		||||
 | 
			
		||||
# Teleporter recipe flag
 | 
			
		||||
scifi_nodes.teleporter_enable_crafting (enables the teleporter recipe) bool false
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user