[Mod] Magic Compass [1.3.1] [magic_compass]

Post Reply
User avatar
Zughy
Member
Posts: 215
Joined: Thu Mar 26, 2020 18:23
GitHub: belongs_to_microsoft
In-game: Zughy
Location: Italy
Contact:

[Mod] Magic Compass [1.3.1] [magic_compass]

by Zughy » Post

Teleport system, all inside a compass

How to use it
Look for the "Magic Compass" item in your inventory, put it in your hand and left click it to open the locations menu

Customisation
Every icon in the menu is a location. Locations must be declared in a .txt document inside the locations folder like so:

Code: Select all

Red Forest                  -- the name you want to show in the menu when hovering the icon
magiccompass_redforest.png  -- the associated texture
-3.5, 5.0, -20.5            -- where the player will be teleported
5                           -- (optional) cooldown before being able to use it again. Leave empty or put -1 for none
interact, myrpg_lv10        -- (optional) privileges required in order to use it. Use ", " to separate them or it won't work
HIDE                        -- (optional) whether to hide the icon to players who don't have the required privileges
You can also use a few callbacks and customise the graphic aspect, as explained in the short documentation

License: GPL 3
Mod dependencies: ---
Known conflicts: ---

Download: https://gitlab.com/zughy-friends-minete ... v1.3.1.zip

ContentDB: https://content.minetest.net/packages/Z ... c_compass/
GitLab: https://gitlab.com/zughy-friends-minetest/magic-compass
Issue Tracker: https://gitlab.com/zughy-friends-minete ... s/-/issues

If you want to test it, join my server "FOSSa delle Papere" (minetest.eticadigitale.org, 30010; it's geolocalised, don't worry)

Image
Image
Last edited by Zughy on Mon Aug 10, 2020 19:30, edited 8 times in total.

Merak
Member
Posts: 88
Joined: Sat Nov 05, 2016 20:34

Re: [Mod] Magic Compass [1.0.0] [magic_compass]

by Merak » Post

So, it is like Compass GPS, except that Compass GPS lets you edit the name within the game?

User avatar
Zughy
Member
Posts: 215
Joined: Thu Mar 26, 2020 18:23
GitHub: belongs_to_microsoft
In-game: Zughy
Location: Italy
Contact:

Re: [Mod] Magic Compass [1.0.0] [magic_compass]

by Zughy » Post

Merak wrote:
Thu Jun 18, 2020 06:08
So, it is like Compass GPS, except that Compass GPS lets you edit the name within the game?
I didn't even notice it because on ContentDB it only appears in "more content from the forums" and it's tagged as old. But no, now that I've had a look at it, it's quite different: this is minimal and heavily inspired to what happens on Minecraft mini-games servers. The compass doesn't point to anything, it's just an item to open a GUI where to click the location you want to teleport at. Also there are no user-made bookmarks (only admins can create them via config files) , there are no maps and there is not even a recipe to craft it.

In short, it's more of an utility mod than a real compass. Furthermore, 1.1.0 will implement things such as cooldowns and privileges checks, so that it can be used even, idk, in an RPG server/game where after a certain level a player unlocks the teleport to a new city

User avatar
Zughy
Member
Posts: 215
Joined: Thu Mar 26, 2020 18:23
GitHub: belongs_to_microsoft
In-game: Zughy
Location: Italy
Contact:

Re: [Mod] Magic Compass [11.0] [magic_compass]

by Zughy » Post

UPDATE - MAGIC COMPASS 1.1.0

What's new
  • Optional cooldown per location added
  • Privileges check per location added
  • Option to hide a location icon when a player doesn't have the required privileges
  • Locations can now be displaced with empty slots in between
  • Locations descriptions now accept spaces
  • Locations descriptions can now be translated

User avatar
Zughy
Member
Posts: 215
Joined: Thu Mar 26, 2020 18:23
GitHub: belongs_to_microsoft
In-game: Zughy
Location: Italy
Contact:

Re: [Mod] Magic Compass [1.2.0] [magic_compass]

by Zughy » Post

UPDATE - MAGIC COMPASS 1.2.0

What's new
  • Custom menu backgrounds and buttons implemented
  • Background image can change according to the number of rows
  • Menu title implemented
  • Sounds implemented: both when teleporting and when an action can't be performed
  • If a row contains only hidden locations, both that row and the previous empty ones won't be showed to that specific player
Bugfixes
  • CRASHFIX: clicking on locations IDs with more than one digit made the game crash

User avatar
Zughy
Member
Posts: 215
Joined: Thu Mar 26, 2020 18:23
GitHub: belongs_to_microsoft
In-game: Zughy
Location: Italy
Contact:

Re: [Mod] Magic Compass [1.3.0] [magic_compass]

by Zughy » Post

UPDATE - MAGIC COMPASS 1.3.0

In short
Do you want to add some extra behaviour after the player has been teleported, or run a few additional checks which might cancel the teleport completely? Well, now you can :D

What's new
  • Callbacks implemented


--------------------
The mod is pretty much complete, I can't think off the top of my head of new essential features. So... *sighs*, yey, looks like I'm done here :)

User avatar
Zughy
Member
Posts: 215
Joined: Thu Mar 26, 2020 18:23
GitHub: belongs_to_microsoft
In-game: Zughy
Location: Italy
Contact:

Re: [Mod] Magic Compass [1.3.0] [magic_compass]

by Zughy » Post

UPDATE - MAGIC COMPASS 1.3.1

I simply forgot to remove a few debug messages in the log, so now they're gone~

Post Reply

Who is online

Users browsing this forum: ElCeejo, Steamed_Punk, thminer and 9 guests