diff --git a/README.txt b/README.txt old mode 100644 new mode 100755 diff --git a/depends.txt b/depends.txt old mode 100644 new mode 100755 index 309189f..ba5dc54 --- a/depends.txt +++ b/depends.txt @@ -1 +1,2 @@ +soundset mana? diff --git a/description.txt b/description.txt old mode 100644 new mode 100755 diff --git a/init.lua b/init.lua old mode 100644 new mode 100755 index 45fd682..b8ccca0 --- a/init.lua +++ b/init.lua @@ -30,7 +30,7 @@ returnmirror.mana_check = function(player, cost) end minetest.register_tool("returnmirror:mirror_inactive", { - description = "Mirror of Returning", + description = "Mirror of Returning/Portal mirror", inventory_image = "returnmirror_mirror_inactive.png", wield_image = "returnmirror_mirror_inactive.png", tool_capabilities = {}, @@ -39,14 +39,20 @@ minetest.register_tool("returnmirror:mirror_inactive", { local pos = placer:getpos() local newitem = ItemStack("returnmirror:mirror_active") newitem:set_metadata(minetest.pos_to_string(pos)) - minetest.sound_play( {name="returnmirror_set", gain=1}, {pos=pos, max_hear_distance=12}) + minetest.sound_play({name="returnmirror_set", gain=0.5}, {pos=pos, max_hear_distance=12}) return newitem end end, }) +minetest.register_craftitem("returnmirror:mirror_glass", { + description = "Mirror glass", + inventory_image = "returnmirror_mirror_glass.png", + wield_image = "returnmirror_mirror_glass.png", +}) + minetest.register_tool("returnmirror:mirror_active", { - description = "Mirror of Returning", + description = "Mirror of Returning/Portal mirror", stack_max = 1, inventory_image = "returnmirror_mirror_active.png", wield_image = "returnmirror_mirror_active.png", @@ -101,3 +107,23 @@ minetest.register_tool("returnmirror:mirror_active", { }) minetest.register_alias("returnmirror:mirror_inactive", "returnmirror:returnmirror") + +minetest.register_craft({ + output = "returnmirror:mirror_glass", + recipe = { + {"default:diamondblock","default:mese","default:diamondblock"}, + {"default:mese","doors:door_obsidian_glass","default:mese"}, + {"default:diamondblock","default:mese","default:diamondblock"}, + }, +}) + +minetest.register_craft({ + output = "returnmirror:mirror_inactive", + recipe = { + {"default:diamondblock", "default:nyancat", "default:diamondblock"}, + {"default:nyancat", "returnmirror:mirror_glass", "default:nyancat"}, + {"default:diamondblock", "default:nyancat", "default:diamondblock"}, + }, +}) + +minetest.register_alias("returnmirror:portal","returnmirror:mirror_inactive") diff --git a/sounds/returnmirror_set.ogg b/sounds/returnmirror_set.ogg old mode 100644 new mode 100755 index 0335350..f7448c1 Binary files a/sounds/returnmirror_set.ogg and b/sounds/returnmirror_set.ogg differ diff --git a/sounds/returnmirror_teleport.ogg b/sounds/returnmirror_teleport.ogg old mode 100644 new mode 100755 index 4886853..a3a4cba Binary files a/sounds/returnmirror_teleport.ogg and b/sounds/returnmirror_teleport.ogg differ diff --git a/textures/returnmirror_mirror_active.png b/textures/returnmirror_mirror_active.png old mode 100644 new mode 100755 diff --git a/textures/returnmirror_mirror_glass.png b/textures/returnmirror_mirror_glass.png new file mode 100755 index 0000000..6595f37 Binary files /dev/null and b/textures/returnmirror_mirror_glass.png differ diff --git a/textures/returnmirror_mirror_inactive.png b/textures/returnmirror_mirror_inactive.png old mode 100644 new mode 100755 diff --git a/textures/returnmirror_particle_arrival.png b/textures/returnmirror_particle_arrival.png old mode 100644 new mode 100755 index 2997b86..3a45d15 Binary files a/textures/returnmirror_particle_arrival.png and b/textures/returnmirror_particle_arrival.png differ diff --git a/textures/returnmirror_particle_departure.png b/textures/returnmirror_particle_departure.png old mode 100644 new mode 100755 index 26c1dcd..285977b Binary files a/textures/returnmirror_particle_departure.png and b/textures/returnmirror_particle_departure.png differ