Go to file
Nathaniel Freeman 021052f434
Add Spanish translation (#2)
Co-authored-by: PsycoJaker <psycojaker@tutanota.com>
2021-04-05 19:03:52 +02:00
locale Add Spanish translation (#2) 2021-04-05 19:03:52 +02:00
textures initial commit 2020-02-04 01:59:17 -07:00
.gitattributes Initial commit 2020-02-03 18:30:55 -07:00
.gitignore Initial commit 2020-02-03 18:30:55 -07:00
LICENSE Initial commit 2020-02-03 18:30:55 -07:00
i18n.py add ability to open via chat command (disabled by default) 2020-11-22 19:55:07 -07:00
init.lua fix undeclared local 2020-11-27 22:56:43 -07:00
mod.conf basic mineclone2 compatibility 2020-07-15 21:49:19 -06:00
readme.md add an API for other mods to add new entries with 2020-11-27 22:38:27 -07:00
screenshot.png refactor to make import/export of entries more generic, for future expansion of options 2020-02-04 21:00:38 -07:00
settingtypes.txt add ability to open via chat command (disabled by default) 2020-11-22 19:55:07 -07:00

readme.md

Personal Logs

This mod adds a "Personal Logs" feature to the Unified Inventory or the SFInv Minetest interfaces. There's also an option (disabled by default) to add a craftable item players can use to access the log screen, if that's preferred or if this mod is being used with an unsupported inventory interface.

Personal logs are private notes that players can keep for themselves. There's also the ability to export or import them to and from the default mod's "book" items, allowing players to share their notes with others if they want.

Logs can be entered into three different categories:

  • Locations
  • Events
  • General

Location logs will automatically have the player's coordinates saved with them when they're created. If the ccompass mod is installed there will be an interface that allows players to set a compass to track the location of one of these entries. Players can also read and write maps belonging to the compassgps mod. If a player has the teleport privilege they will also be presented with a "teleport" button for locations they've logged.

Event logs automatically have the current date saved with them when they're created. They're intended to allow a player to keep a diary of sorts, tracking the story of their game over time.

General logs have a free-form text field for their topic, players can use these to record any other sort of general information they desire.

There's no limit to how many logs a player can write.

Chat command access

Chat command access is disabled by default. If personal_log_chat_command is set to true then the /log chat command can be used to open the personal log.

If you want to enable this for administrators but require players to craft an item, setting personal_log_chat_command_priviledge to true will create the personal_log privilege to control use of that chat command. Admins will have this privilege it by default.

API

Other mods can automatically add log entries to players' personal logs using the following functions:

personal_log.add_location_entry(player_name, content, pos) -- Content is a string. If pos is not provided it defaults to the player's position.

personal_log.add_event_entry(player_name, content, event_date) -- Content is a string. Date should be in the format "%Y-%m-%d", if it is not provided it will default to the current date.

personal_log.add_general_entry(player_name, content, general_topic) -- Both content and general_topic are strings.