forked from mtcontrib/bitchange
		
	Add default tin conversion (#13)
This commit is contained in:
		| @@ -13,9 +13,9 @@ bitchange.enable_donationbox		= true | |||||||
| -- Tin		moreores | -- Tin		moreores | ||||||
| -- Zinc		technic_worldgen | -- Zinc		technic_worldgen | ||||||
| -- Quartz	quartz | -- Quartz	quartz | ||||||
| bitchange.use_moreores_tin		= false |  | ||||||
| bitchange.use_technic_zinc		= false | bitchange.use_technic_zinc		= false | ||||||
| bitchange.use_quartz			= false | bitchange.use_quartz			= false | ||||||
|  | bitchange.use_default_tin		= false | ||||||
|  |  | ||||||
| -- Pipeworks support | -- Pipeworks support | ||||||
| bitchange.exchangeshop_pipeworks	= false | bitchange.exchangeshop_pipeworks	= false | ||||||
|   | |||||||
							
								
								
									
										22
									
								
								moreores.lua
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								moreores.lua
									
									
									
									
									
								
							| @@ -1,16 +1,5 @@ | |||||||
| -- Conversion of other ores to money | -- Conversion of other ores to money | ||||||
|  |  | ||||||
| if bitchange.use_moreores_tin and minetest.get_modpath("moreores") then |  | ||||||
| 	minetest.register_craft({ |  | ||||||
| 		output = "bitchange:mineninth 18", |  | ||||||
| 		recipe = { |  | ||||||
| 			{"moreores:tin_block", "default:pick_diamond"}, |  | ||||||
| 			{"moreores:tin_block", ""} |  | ||||||
| 		}, |  | ||||||
| 		replacements = { {"default:pick_diamond", "default:pick_diamond"} } |  | ||||||
| 	}) |  | ||||||
| end |  | ||||||
|  |  | ||||||
| if bitchange.use_technic_zinc and minetest.get_modpath("technic_worldgen") then | if bitchange.use_technic_zinc and minetest.get_modpath("technic_worldgen") then | ||||||
| 	minetest.register_craft({ | 	minetest.register_craft({ | ||||||
| 		output = "bitchange:mineninth 8", | 		output = "bitchange:mineninth 8", | ||||||
| @@ -33,3 +22,14 @@ if bitchange.use_quartz and minetest.get_modpath("quartz") then | |||||||
| 		replacements = { {"default:pick_diamond", "default:pick_diamond"} } | 		replacements = { {"default:pick_diamond", "default:pick_diamond"} } | ||||||
| 	}) | 	}) | ||||||
| end | end | ||||||
|  |  | ||||||
|  | if bitchange.use_default_tin then | ||||||
|  | 	minetest.register_craft({ | ||||||
|  | 		output = "bitchange:mineninth 18", | ||||||
|  | 		recipe = { | ||||||
|  | 			{"default:tinblock", "default:pick_diamond"}, | ||||||
|  | 			{"default:tinblock", ""} | ||||||
|  | 		}, | ||||||
|  | 		replacements = { {"default:pick_diamond", "default:pick_diamond"} } | ||||||
|  | 	}) | ||||||
|  | end | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user