mirror of
				https://github.com/mt-mods/homedecor_modpack.git
				synced 2025-11-04 10:35:31 +01:00 
			
		
		
		
	Compare commits
	
		
			1 Commits
		
	
	
		
			2018-11-09
			...
			2018-11-09
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					bcf9238e47 | 
@@ -47,11 +47,6 @@ minetest.register_craftitem("homedecor:soda_can", {
 | 
				
			|||||||
	on_use = minetest.item_eat(2),
 | 
						on_use = minetest.item_eat(2),
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
minetest.register_craftitem("homedecor:coin", {
 | 
					 | 
				
			||||||
	description = S("Gold Coin (for soda vending machine)"),
 | 
					 | 
				
			||||||
	inventory_image = "homedecor_coin.png",
 | 
					 | 
				
			||||||
})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-- the actual crafts
 | 
					-- the actual crafts
 | 
				
			||||||
 | 
					
 | 
				
			||||||
minetest.register_craft( {
 | 
					minetest.register_craft( {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3,6 +3,7 @@ basic_materials
 | 
				
			|||||||
unifieddyes
 | 
					unifieddyes
 | 
				
			||||||
homedecor_i18n
 | 
					homedecor_i18n
 | 
				
			||||||
creative
 | 
					creative
 | 
				
			||||||
 | 
					currency
 | 
				
			||||||
building_blocks?
 | 
					building_blocks?
 | 
				
			||||||
signs_lib?
 | 
					signs_lib?
 | 
				
			||||||
moreblocks?
 | 
					moreblocks?
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -219,7 +219,7 @@ homedecor.register("soda_machine", {
 | 
				
			|||||||
		local fdir_to_fwd = { {0, -1}, {-1, 0}, {0, 1}, {1, 0} }
 | 
							local fdir_to_fwd = { {0, -1}, {-1, 0}, {0, 1}, {1, 0} }
 | 
				
			||||||
		local fdir = node.param2
 | 
							local fdir = node.param2
 | 
				
			||||||
		local pos_drop = { x=pos.x+fdir_to_fwd[fdir+1][1], y=pos.y, z=pos.z+fdir_to_fwd[fdir+1][2] }
 | 
							local pos_drop = { x=pos.x+fdir_to_fwd[fdir+1][1], y=pos.y, z=pos.z+fdir_to_fwd[fdir+1][2] }
 | 
				
			||||||
		if wieldname == "homedecor:coin" then
 | 
							if wieldname == "currency:minegeld_cent_25" then
 | 
				
			||||||
			minetest.spawn_item(pos_drop, "homedecor:soda_can")
 | 
								minetest.spawn_item(pos_drop, "homedecor:soda_can")
 | 
				
			||||||
			minetest.sound_play("insert_coin", {
 | 
								minetest.sound_play("insert_coin", {
 | 
				
			||||||
				pos=pos, max_hear_distance = 5
 | 
									pos=pos, max_hear_distance = 5
 | 
				
			||||||
@@ -234,3 +234,5 @@ homedecor.register("soda_machine", {
 | 
				
			|||||||
		end
 | 
							end
 | 
				
			||||||
	end
 | 
						end
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					minetest.register_alias("homedecor:coin", "currency:minegeld_cent_25")
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user