mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-10-30 23:15:32 +01:00 
			
		
		
		
	DevTest: Add food item to test food replacement (#10642)
This commit is contained in:
		| @@ -22,3 +22,10 @@ minetest.register_craftitem("testfood:bad5", { | ||||
| 	on_use = minetest.item_eat(-5), | ||||
| }) | ||||
|  | ||||
| minetest.register_craftitem("testfood:replace1", { | ||||
| 	description = S("Replacing Food (+1)").."\n".. | ||||
| 			S("Replaced with 'Good Food (+1)' when eaten"), | ||||
| 	inventory_image = "testfood_replace.png", | ||||
| 	on_use = minetest.item_eat(1, "testfood:good1"), | ||||
| }) | ||||
|  | ||||
|   | ||||
							
								
								
									
										
											BIN
										
									
								
								games/devtest/mods/testfood/textures/testfood_replace.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								games/devtest/mods/testfood/textures/testfood_replace.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 135 B | 
		Reference in New Issue
	
	Block a user