Commit Graph

18 Commits

Author SHA1 Message Date
bri cassa 19da4d0919 Replace deprecated method 2021-04-04 23:57:31 +02:00
Montandalar b2d71bf105
Fix errors under 5.x and allow selecting warps from a dropdown (#5)
- Loading would previously fail if there was both no data in mod_storage "warps" and no warps.txt
- A wrong variable used while adding the warp queue was causing crashes when attempting to warp
- Don't even attempt to teleport to a warp spot that doesn't exit
- Allow selecting warps from a dropdown for ease of use, but still allow text input as warps might be created later than the warp crystals are created (negotiable, invalid input could be dropped and only the combobox allowed if others object).
2021-02-16 22:07:09 +01:00
Auke Kok 81c3bd5bd9 Remove debug info. 2019-02-02 22:15:26 -08:00
Auke Kok 0a6451608d Set the node to non-diggable, to prevent accidental digging by admin. 2019-02-02 21:13:19 -08:00
Auke Kok c8e4942e41 Convert warps to mod_storage. 2019-02-02 21:11:53 -08:00
Auke Kok b7fd67c431 Support send_mapblock when we can. 2019-02-02 20:47:23 -08:00
James Alexander Stevenson 493e23d3a8 Use fixed horizontal/vertical functions. (#3)
Replaces deprecates yaw/pitch functions.
2017-10-03 09:05:12 -07:00
SmallJoker 928c997e0b Tidy up code (#1)
- Break too long lines
- Use vector helper functions
- Round warp positions (less data to save)
- Disallow from setting warp ""
2016-06-27 13:09:27 -07:00
Auke Kok 74e68db79c Attempt to emerge/mapgen areas before teleporting to them.
The client will still have to actually load the mapblocks, but the
server should safely teleport a player to the location, even if
it wasn't even generated.
2016-04-06 11:43:27 -07:00
Auke Kok ded6fd1195 Allow admins to travel without waiting when using the /warp cmd. 2016-01-03 23:18:23 -08:00
James Stevenson 7d36e4b3c0 Remove odd chars from warp name 2015-09-09 11:04:03 -04:00
James Stevenson aa772124b3 Update init.lua
Check if the player exists before doing warp queue.
2015-09-09 07:41:11 -04:00
Auke Kok 0f2900fa55 Bugfix: orientation 2015-04-30 00:30:25 -07:00
Auke Kok 37dc9db8b8 Add sounds.
- woosh sound at warp start. Gets cancelled if you move.
- plop sound at warp success.

freesounds.org sounds, license/attribution included.
2015-04-28 21:15:56 -07:00
Auke Kok 65c800e641 Make warps delayed by 5 seconds, handled by a queue worked. 2015-04-28 00:47:58 -07:00
Auke Kok b39c36d931 Fix some handling issues and picking up/removal 2015-04-27 23:45:18 -07:00
Auke Kok ba6ade74b3 Warpstones. 2015-04-27 22:08:26 -07:00
Auke Kok b1861b6a2f Initial checking.
"Warps" a simple warp mod for minetest.

/setwarp [name]
/delwarp [name]
/warp [name]
/listwarps

priv: warp_admin - set/change/delete warps
priv: warp_user  - list, and use warps
2015-04-24 22:01:40 -07:00