Commit Graph

30 Commits

Author SHA1 Message Date
poikilos
f9a64170fb Make a player clickable and list all known inventories, even those not in get_inv but encoded as Lua in metadata. 2024-01-02 19:20:45 -05:00
poikilos
1940aa1697 Clean up output. Remove extra newlines from YAML. 2022-04-27 22:27:29 -04:00
poikilos
b995b401e8 Use tabs consistently. 2022-04-27 21:49:17 -04:00
poikilos
170e397961 Represent objects as YAML for brevity. 2022-04-27 21:47:24 -04:00
poikilos
f802bf0888 Improve markdown. The license said I could do anything I want, and I wanted to change to a legally viable license. Replace the texture to remove the invasive and inappropriate invasive and inappropriate CC-BY-NC-SA license. Add a node metadata diagram that is legible above the sparse ASCII art table. Move "Rewrite the table stocking" to an issue: https://github.com/poikilos/metatools/issues/4 2022-04-16 23:44:51 -04:00
poikilos
2d51afef51 Show hp of the pointed_thing.ref object. 2022-04-13 15:18:44 -04:00
poikilos
3ada617230 Show the LuaEntity table for clicked entities! 2022-04-13 11:56:17 -04:00
poikilos
86b8c8ebb3 Try to serialize mobs (not working yet). Fix a crash on unknown node. 2021-11-28 19:03:22 -05:00
poikilos
7305724a95 Also show framed item when using the itemframes mod. 2021-04-13 19:26:27 -04:00
poikilos
c003d1a80a Show frame contents. Indent inventory output. 2021-04-13 19:13:27 -04:00
poikilos
2317dca231 Remove 1 redundant add 1 missing local. 2021-04-13 19:06:24 -04:00
poikilos
8f16640b66 avoid showing empty tables 2020-01-31 12:53:07 -05:00
poikilos
01efdd9877 show actual inventory slot number 2020-01-31 12:48:49 -05:00
poikilos
fa471185a7 If the node has an inventory, show it! 2020-01-30 23:23:25 -05:00
poikilos
2ece081cf8 stick shows light level (nearby if clicked opaque) 2019-06-06 16:27:29 -04:00
poikilos
14021606d5 add howlight command 2019-06-05 14:52:46 -04:00
LeMagnesium
c875a96af7
Add user alerts and check on node digging
- Bump to version 1.2.2
 - Add `metatools.alert_users` which sends the string passed as argument
   to all players currently operating on nodes
 - Register a dignode callback in which we alert users about players
   trying to dig operated nodes, or open nodes in general. Only node
   operated by a person different from the person digging are blocked
 - Add `metatools.get_context_from_pos`. It receives a table, but does
   no assertions (yet?)
 - Move `playerlocks` over to `metatools.playerlocks` for similar
   reasons to why we moved `nodelock`
 - Create field `success` for meta_exec, a function run when the command
   is successful; it receives the executed function's parameters and its
   output (status, msg) as arguments
 - Update /meta help's message
 - Fix instances of `contexts` not replaced by `metatools.contexts`
 - Assert that the context id is correct upon running `metatools.show`
2016-09-20 18:33:20 +02:00
LeMagnesium
73c80b1201
Move contexts over to the namespace to fix crash
- Move `contexts` into `metatools.contexts`, otherwise there is no way
   assertions.lua will be able to use it
2016-09-20 17:19:28 +02:00
LeMagnesium
0dfec122fe
Add meta prune to close all unoperated nodes
- Add informations and help in meta command for the prune subcommand
 - Add `metatools.prune` to prune from the API
2016-09-19 19:03:49 +02:00
LeMagnesium
cff85689d7
Rewrite calls of meta_exec with new structure
- Pass a table to meta_exec containing parameters, function to be
   called, scope string and requirements to check
 - Add basic ownership and contextid requirement checks in meta_exec
   when needed
 - Update README.md
 - Move assertion tools to assertions.lua
2016-09-19 18:59:08 +02:00
LeMagnesium
2a4a2b6bfc
Rewrite again to detach the API
- Rewrite the whole mod with a non-player-dependent approach
 - Store data in contexts rather than per-player registers
 - Make it look more like an actual API usable by mods, since now, it is
   one
2016-09-18 21:31:41 +02:00
LeMagnesium
ec2ae309da
New version. New code. Everything is rewritten.
- Keep a similar structure but separate fields and inventory
   manipulation
 - Remove itemstack read, show can do it
 - Add list (list init, list delete) to manipulate lists
 - Rewrite the whole code for a new structure to come, with an API
2016-09-17 21:18:36 +02:00
paly2
2ed6e41fcf Crashfix on /meta set <variable name> without new value 2016-09-16 17:35:12 +02:00
paly2
0585ad63d4 Add command /meta erase 2016-08-26 19:15:08 +02:00
LeMagnesium
fbbe641e08 Removed WIP about tables
- Tables cannot be added as tables into metadatas, removed wip work. I'm likely
   going to rewrite this with serialize but only when the parallel manipulation
   system is implemented (write, read)
2015-06-13 14:10:41 +02:00
LeMagnesium
e5f7423c71 Early implementation of table handler
- Added basic feature for tables. Might be removed later
 - Updated TodoList
2015-05-12 21:51:18 +02:00
LeMagnesium
58e462a485 Bumped version to 1.0
- Added check for stratum when meta::set
 - Updated README.md
 - Bumped version to 1.0
2015-05-08 14:51:48 +02:00
LeMagnesium
23b46dad8d Added itemstack handler
- Added itemstack handler (write,read,erase)
- Updated license
- Updated README.md with documentation
2015-04-18 13:47:21 +02:00
LeMagnesium
c4d9b8aef9 Added basic system to set metadata fields 2015-04-06 16:57:01 +02:00
LeMagnesium
8eee329adb Sent initial code 2015-04-05 22:13:32 +02:00