forked from mtcontrib/locks
		
	Compare commits
	
		
			2 Commits
		
	
	
		
			bd6909326c
			...
			master
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | e789726fdf | ||
|  | 48103101ba | 
							
								
								
									
										2
									
								
								init.lua
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								init.lua
									
									
									
									
									
								
							| @@ -801,5 +801,3 @@ dofile(minetest.get_modpath("locks").."/shared_locked_chest.lua"); | ||||
| dofile(minetest.get_modpath("locks").."/shared_locked_sign_wall.lua"); | ||||
| dofile(minetest.get_modpath("locks").."/shared_locked_xdoors2.lua"); | ||||
| dofile(minetest.get_modpath("locks").."/shared_locked_furnace.lua"); | ||||
|  | ||||
| minetest.log("action", "[locks] loaded.") | ||||
|   | ||||
							
								
								
									
										4
									
								
								mod.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								mod.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| name = locks | ||||
| description = This Mod for Minetest adds objects that can be locked and shared. | ||||
| depends = default | ||||
| optional_depends = pipeworks | ||||
| @@ -138,7 +138,7 @@ minetest.register_node("locks:door", { | ||||
|     description = "Shared locked Wooden Door", | ||||
|     node_placement_prediction = "", | ||||
|     inventory_image = 'locks_xdoors2_door.png', | ||||
|     wield_image = 'locks_xdoors2_door.png', | ||||
|     wield_image = 'xdoors2_door.png', | ||||
|     stack_max = 1, | ||||
|     sunlight_propogates = true, | ||||
|     on_place = function(itemstack, placer, pointed_thing) | ||||
| @@ -157,11 +157,12 @@ minetest.register_node("locks:door", { | ||||
|             local fdir = 0 | ||||
|             local placer_pos = placer:get_pos() | ||||
|             if placer_pos then | ||||
|                 fdir = minetest.dir_to_facedir({ | ||||
|                 dir = { | ||||
|                     x = above.x - placer_pos.x, | ||||
|                     y = above.y - placer_pos.y, | ||||
|                     z = above.z - placer_pos.z | ||||
|                 }) | ||||
|                 } | ||||
|                 fdir = minetest.dir_to_facedir(dir) | ||||
|             end | ||||
|  | ||||
|             local t = 1 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user