mirror of
				https://github.com/mt-mods/plantlife_modpack.git
				synced 2025-10-31 05:45:24 +01:00 
			
		
		
		
	Compare commits
	
		
			2 Commits
		
	
	
		
			2020-02-16
			...
			2021-01-30
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 622016713e | ||
|  | 9963e588d6 | 
							
								
								
									
										1
									
								
								modpack.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								modpack.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| min_minetest_version = 5.2.0 | ||||
| @@ -42,6 +42,14 @@ for i in pairs(NoDe) do | ||||
| 		liquids_pointable = true, | ||||
| 		on_place = function(itemstack, placer, pointed_thing) | ||||
| 			local pt = pointed_thing | ||||
|  | ||||
| 			if not placer then return end | ||||
| 			local playername = placer:get_player_name() | ||||
| 			if minetest.is_protected(pt.above, playername) then  | ||||
| 				minetest.record_protection_violation(pt.above, playername) | ||||
| 				return | ||||
| 			end | ||||
|  | ||||
| 			local direction = minetest.dir_to_facedir(placer:get_look_dir()) | ||||
| 			if minetest.get_node(pt.above).name=="air" then | ||||
| 				minetest.swap_node(pt.above, {name="trunks:twig_"..math.random(1,4), param2=direction}) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user