mirror of
				https://codeberg.org/tenplus1/bonemeal.git
				synced 2025-11-04 06:45:30 +01:00 
			
		
		
		
	added lucky blocks
This commit is contained in:
		@@ -25,3 +25,5 @@ Changelog:
 | 
				
			|||||||
- 0.3 - Added strength to on_use global for new items (mulch and fertiliser).
 | 
					- 0.3 - Added strength to on_use global for new items (mulch and fertiliser).
 | 
				
			||||||
- 0.4 - Added Intllib support and fr.txt file
 | 
					- 0.4 - Added Intllib support and fr.txt file
 | 
				
			||||||
- 0.5 - Added support for default bush and acacia bush saplings
 | 
					- 0.5 - Added support for default bush and acacia bush saplings
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Lucky Blocks: 2
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,3 +4,4 @@ farming?
 | 
				
			|||||||
ethereal?
 | 
					ethereal?
 | 
				
			||||||
moretrees?
 | 
					moretrees?
 | 
				
			||||||
technic_worldgen?
 | 
					technic_worldgen?
 | 
				
			||||||
 | 
					lucky_block?
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										4
									
								
								init.lua
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								init.lua
									
									
									
									
									
								
							@@ -479,6 +479,8 @@ minetest.override_item("default:dirt", {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- add support for other mods
 | 
					-- add support for other mods
 | 
				
			||||||
dofile(minetest.get_modpath("bonemeal") .. "/mods.lua")
 | 
					local path = minetest.get_modpath("bonemeal")
 | 
				
			||||||
 | 
					dofile(path .. "/mods.lua")
 | 
				
			||||||
 | 
					dofile(path .. "/lucky_block.lua")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
print (S("[bonemeal] loaded"))
 | 
					print (S("[bonemeal] loaded"))
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										11
									
								
								lucky_block.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								lucky_block.lua
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					-- add lucky blocks
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if minetest.get_modpath("lucky_block") then
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					lucky_block:add_blocks({
 | 
				
			||||||
 | 
						{"lig"},
 | 
				
			||||||
 | 
						{"dro", {"bonemeal:mulch", "bonemeal:bonemeal", "bonemeal:fertiliser"}, 10},
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					end -- END IF
 | 
				
			||||||
		Reference in New Issue
	
	Block a user