Version MFF.
0
README.txt
Normal file → Executable file
1
depends.txt
Normal file → Executable file
@ -1 +1,2 @@
|
||||
soundset
|
||||
mana?
|
||||
|
0
description.txt
Normal file → Executable file
32
init.lua
Normal file → Executable file
@ -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")
|
||||
|
BIN
sounds/returnmirror_set.ogg
Normal file → Executable file
BIN
sounds/returnmirror_teleport.ogg
Normal file → Executable file
0
textures/returnmirror_mirror_active.png
Normal file → Executable file
Before Width: | Height: | Size: 456 B After Width: | Height: | Size: 456 B |
BIN
textures/returnmirror_mirror_glass.png
Executable file
After Width: | Height: | Size: 173 B |
0
textures/returnmirror_mirror_inactive.png
Normal file → Executable file
Before Width: | Height: | Size: 298 B After Width: | Height: | Size: 298 B |
BIN
textures/returnmirror_particle_arrival.png
Normal file → Executable file
Before Width: | Height: | Size: 122 B After Width: | Height: | Size: 125 B |
BIN
textures/returnmirror_particle_departure.png
Normal file → Executable file
Before Width: | Height: | Size: 108 B After Width: | Height: | Size: 106 B |