1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-22 20:35:24 +02:00

Devtest: Add branding iron

Allows giving names to objects.
This commit is contained in:
Desour
2022-09-17 00:09:50 +02:00
committed by x2048
parent bb74da5903
commit 07624125ef
4 changed files with 61 additions and 0 deletions

View File

@@ -120,6 +120,17 @@ Usage:
* Punch entity to increase visual size
* Sneak+punch entity to decrease visual size
## Branding Iron
Give an object a temporary name.
Usage:
* Punch object: Brand the object
* Punch air: Brand yourself
* The name is valid until the object unloads.
* Devices that accept the returned name also accept "player:<playername>" for players.
Use `testtools.get_branded_object(name)` to get an ObjRef.
## Note Meta Privatizer
Sets the 'formspec' and 'infotext' metadata fields of a node
to private. This means that clients can no longer access these