-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update docs, add workflow badges (#38)
* Some luatool, tubetool and sharetool docs * Update main README.md file * Workflow badges Co-authored-by: SX <sx@minetest>
- Loading branch information
Showing
4 changed files
with
172 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
## Luatool basics | ||
|
||
Luatool is made available for copying code from one node to another. | ||
For example it can be used to copy code from one luacontroller to another. | ||
|
||
#### Copy configuration from pipeworks node | ||
|
||
Hold tool in your hand and point node that you want to copy code from, hold special or sneak button and left click on node to copy code. | ||
Chat will display confirmation message when code is copied into tool memory. | ||
|
||
#### Apply copied configuration to pipeworks node | ||
|
||
Hold tool containing desired code in you hand and point node that you want apply code to. | ||
Left click with tool to apply new settings, chat will display confirmation message when code is applied to pointed node. | ||
|
||
## Nodes compatible with luatool | ||
|
||
* mesecons_luacontroller:luacontroller | ||
* mesecons_microcontroller:microcontroller | ||
* pipeworks:lua_tube | ||
|
||
## Minetest protection checks (default settings) | ||
|
||
Protection checks are done automatically for all tool uses, node registration does not need any protection checks. | ||
Tool can be used to read code from protected nodes but it cannot be used to write code to protected nodes. | ||
|
||
## Configuration | ||
|
||
Luatool configuration keys with default values: | ||
|
||
``` | ||
metatool:luatool:nodes:luacontroller:protection_bypass_read = interact | ||
metatool:luatool:nodes:microcontroller:protection_bypass_read = interact | ||
metatool:luatool:nodes:luatube:protection_bypass_read = interact | ||
``` | ||
|
||
Luatool configuration keys without any default values: | ||
|
||
``` | ||
metatool:luatool:privs | ||
metatool:luatool:nodes:luacontroller:protection_bypass_write | ||
metatool:luatool:nodes:microcontroller:protection_bypass_write | ||
metatool:luatool:nodes:luatube:protection_bypass_write | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
## Sharetool basics | ||
|
||
Sharetool is moderator tool that can be used to claim ownership of various nodes and | ||
then transfer ownership to sppecial shared user account. | ||
|
||
For example it can be used to take ownership of book, then change text in book and | ||
return book to shared account allowing multiple users to write into same book. | ||
|
||
Another use is to manage shared travelnet networks without full travelnet admin privileges, | ||
place and configure travelnet and then transfer ownership to shared account. | ||
|
||
#### How to get sharetool | ||
|
||
Sharetool is not craftable and using it requires selected privileges. | ||
Anyone who does have privileges to use sharetool can also get sharetool with chat command: | ||
|
||
`/metatool:give metatool:sharetool` | ||
|
||
#### Claim ownership | ||
|
||
Hold tool in your hand and point node that you want to claim, hold special or sneak button and left click on node to claim ownership. | ||
Chat will display confirmation message when node ownership is transfered to your account. | ||
|
||
#### Return ownership to shared account | ||
|
||
Hold tool in your hand and point node that you want to be owned by shared account. | ||
Left click with tool, chat will display confirmation message when pointed node owner is changed. | ||
Pointed node is now owned by shared account and node is marked as shared. | ||
|
||
## Nodes compatible with sharetool | ||
|
||
* homedecor:book | ||
* travelnet:elevator | ||
* travelnet:travelnet | ||
* travelnet:travelnet_private | ||
* locked_travelnet:travelnet | ||
|
||
Planned but not yet added (https://github.com/S-S-X/metatool/issues/16): | ||
|
||
* Mission block | ||
* Mapserver POI | ||
* Mapserver markers | ||
|
||
## Minetest protection checks (default settings) | ||
|
||
Tool cannot be used without ban privilege. | ||
Tool uses special customized protection checks and can bypass protections if node is marked as shared or is owned by shared account. | ||
|
||
## Configuration | ||
|
||
Sharetool configuration keys with default values: | ||
|
||
``` | ||
metatool:sharetool:privs = ban | ||
metatool:sharetool:shared_account = shared | ||
``` | ||
|
||
Sharetool configuration keys without any default values: | ||
|
||
``` | ||
metatool:sharetool:nodes:travelnet:protection_bypass_read | ||
metatool:sharetool:nodes:travelnet:protection_bypass_write | ||
metatool:sharetool:nodes:book:protection_bypass_read | ||
metatool:sharetool:nodes:book:protection_bypass_write | ||
metatool:sharetool:nodes:poi:protection_bypass_read | ||
metatool:sharetool:nodes:poi:protection_bypass_write | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
## How to use metatool:tubetool | ||
|
||
Tubetool is made available for cloning pipeworks node configurations like sorting tube configuration. | ||
Other registered metatool tools might work in similar way allowing to copy data from one node to another. | ||
|
||
#### Copy configuration from pipeworks node | ||
|
||
Hold wand in your hand and point node that you want to copy configuration from, hold special or sneak button and left click on node to copy settings. | ||
Chat will display confirmation message when configuration is copied to wand. | ||
|
||
#### Apply copied configuration to pipeworks node | ||
|
||
Hold wand containing desired configuation in you hand and point node that you want apply settings to. | ||
Left click with wand to apply new settings, chat will display confirmation message when settings are applied to pointed node. | ||
|
||
## Registered nodes included with tubetool | ||
|
||
In nodes subdirectory there is few predefined pipeworks components. | ||
|
||
## Minetest protection checks | ||
|
||
Protection checks are done automatically for all wand uses. |