1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-26 02:30:38 +01:00
server-nalc/mods/returnmirror
LeMagnesium e17ef3dbf6 Added minetest.register alias on mirror and fixed seawrecks' crash
- Created alias from returmirror:mirror_inactive to returnmirror:portal so the
  players will be able to find this item in unified_inventory's search menu by
  typing "portal"
- Fixed a very strange and unhandled crash in seawrecks, caused apparently by
  minetest.add_node. Used minetest.set_node instead and everything is fine
2015-03-16 19:52:46 +01:00
..
sounds Added cloned returnmirror 2015-03-01 11:41:32 +01:00
textures Add new mirror texture 2015-03-03 22:39:38 +01:00
depends.txt Added cloned returnmirror 2015-03-01 11:41:32 +01:00
description.txt Added cloned returnmirror 2015-03-01 11:41:32 +01:00
init.lua Added minetest.register alias on mirror and fixed seawrecks' crash 2015-03-16 19:52:46 +01:00
README.txt Added cloned returnmirror 2015-03-01 11:41:32 +01:00

Mirror of Return
================
Version 0.1.0

## Description
This mod adds a magical item, the Mirror of Returning. This item teleports the user back to a previously
set location, at the cost of some mana (if applicable).

## Usage
Rightclick with the item onto a node to set the mirror's teleport location.
Leftclick while holding the mirror to immediately teleport back to the mirror's teleport location.
Each mirror has is own teleport location and “remembers” it throughout the game, until a new
teleport location has been set.

Initially, a mirror has no teleport location set, so you have to set it before the first teleportation.

If the Mana mod [mana] is present, setting and teleporting costs mana. The default cost are:

* Setting: 20
* Teleporting back to set position: 200

## Configuration
You can change the mana costs via minetest.conf. The following settings are used:

* `returnmirror_cost_set`: Mana cost for setting (number)
* `returnmirror_cost_teleport`: Mana cost for teleporting (number)

If a setting is not present, the default cost is used.