2015-04-05 22:18:14 +02:00
|
|
|
Minetest mod metatools
|
|
|
|
######################
|
|
|
|
|
|
|
|
A mod inspired by mgl512's itemframe issue
|
2015-05-08 14:50:47 +02:00
|
|
|
Version : 1.0
|
2015-04-05 22:18:14 +02:00
|
|
|
|
|
|
|
# Authors
|
|
|
|
- LeMagnesium / Mg / ElectronLibre : Source code writer
|
|
|
|
- Ataron : Texture creater
|
|
|
|
|
|
|
|
# Purpose
|
|
|
|
This mod's aim is to provide a way for admins to navigate through any (ok, not
|
|
|
|
ignores) nodes on the map, and see values of its metadatas at any of their
|
|
|
|
stratum.
|
|
|
|
|
|
|
|
# Media
|
|
|
|
"metatools_stick.png" by Ataron (CC-BY-NC-SA)
|
|
|
|
|
|
|
|
# Todo
|
2015-05-12 21:51:18 +02:00
|
|
|
- Rewrite the table stocking : a variable containing a copy of the global
|
|
|
|
table returned by :to_table(), on which we would work, and a save command to
|
|
|
|
apply it on the node
|
2015-04-05 22:18:14 +02:00
|
|
|
|
|
|
|
# Special thanks
|
|
|
|
- mgl512 (Le_Docteur) for its locked itemframe which gave me the idea of a tool
|
|
|
|
allowing to see/edit metadatas
|
|
|
|
- Ataron who created the stick's texture
|
2015-05-08 14:50:47 +02:00
|
|
|
- palige who agreed to test the mod for its first release
|
2015-04-18 13:47:21 +02:00
|
|
|
|
|
|
|
# Command tutorial
|
|
|
|
|
|
|
|
- help => Get help
|
2015-05-08 14:50:47 +02:00
|
|
|
- version => Get version
|
2015-04-18 13:47:21 +02:00
|
|
|
- open (x,y,z) => Open the node to manipulate at pos (x,y,z)
|
|
|
|
- show => Show fields/path list at actual position
|
2015-05-10 13:10:49 +02:00
|
|
|
- enter _path_ => Enter next stratum through _path_
|
2015-04-18 13:47:21 +02:00
|
|
|
- quit => Quit actual field and go back to previous stratum
|
2015-05-10 13:10:49 +02:00
|
|
|
- set _name_ _value_ => Set metadata _name_ to _value_ (create it if it doesn't exist)
|
2015-04-18 13:47:21 +02:00
|
|
|
- itemstack => Manipulate itemstacks in Node/inventory/*/
|
2015-05-10 13:10:49 +02:00
|
|
|
- read _name_ => Read itemstack at field name (itemstring and count)
|
|
|
|
- erase _name_ => Erase itemstack at field name
|
|
|
|
- write _name_ _itemstring_ [_count_] => Set itemstack in field _name_ with item _itemstring_ and count _count_. Default count is one, 0 not handled.
|
2015-04-18 13:47:21 +02:00
|
|
|
- close => Close node
|
|
|
|
|
|
|
|
Node metadatas look like this :
|
|
|
|
|
2015-05-10 13:10:49 +02:00
|
|
|
0 1 2 3 ...
|
|
|
|
Node/
|
2015-04-18 13:47:21 +02:00
|
|
|
|
|
2015-05-10 13:10:49 +02:00
|
|
|
+- fields
|
|
|
|
| |
|
|
|
|
| +- foo
|
|
|
|
| +- bar
|
|
|
|
| +- ...
|
|
|
|
+- inventory
|
|
|
|
|
|
|
|
|
+- main
|
|
|
|
| |
|
|
|
|
| +- 1
|
|
|
|
| +- 2
|
|
|
|
| +- 3
|
|
|
|
| +- ...
|
|
|
|
+- craft
|
|
|
|
| |
|
|
|
|
| +- 1
|
|
|
|
| +- 2
|
|
|
|
| +- 3
|
|
|
|
| +- ...
|
|
|
|
+- ...
|