Unknown Node/de

From Minetest Wiki
< Unknown Node
Revision as of 17:55, 18 April 2018 by Chris (talk | contribs) (Created page with "{{Languages/de}} = '''Unbekannter Block''' = {{Block Data/de | image=Unknown Node.png | wherein=Minetest | block_name=Unbekannter Block | type = Intern benutzt...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Languages Sprache: English • Deutsch

Unbekannter Block

Unbekannter Block
Unknown Node.png
Ein Block im Minetest
Typ Intern benutzter Block
Gibt Unbekannter Gegenstand
Schwerkraft Nein
Leuchtet Nein
Verbrennbar Nein
Generiert Hoffentlich nicht!
Unendlich herstellbar Nein
Stapelbar nicht verfügbar
Technischer Bezeichner nicht verfügbar

Eine Unbekannter Block (anderer Name: CONTENT_UNKNOWN) ist ein Block, der intern von Minetest benutzt wird, um einen nicht definierten Block zu verkörpern. Diesen Block sollten Spieler nie in einem Spiel zu Gesicht bekommen, wenn doch ist das auf jeden Fall ein Fehler.

Verhalten

Der unbekannte Block ist ein fester undurchsichtiger Block, auf dessen Seiten “unknown node” geschrieben steht. Wenn er geschlagen wird, erscheint in dem technischen Bezeichner, des Blocks, den er tatsächlich verkörpert eine Fehlermeldung. Er kann mit der Hand in 0,5 Sekunden abgebaut werden, sogar, wenn der tatsächliche Block, den er verkörpert unzerstörbar ist. Er wirft einen Unbekannten Gegenstand mit demselben technischen Bezeichner ab.

Think carefully before destroying an unknown node as all information associated with the block (except the itemstring) will be gone for good. (It might have been the diamond-encrusted golden chest with the flaming longsword of overpower, after all! ;-) ). Try to do some troubleshooting first.

Unknown nodes are not items, can not be stored in inventories and have no itemstring.

Internal data

Internally, an unknown node always “knows” the real block it represents and stll contains all the internal data accociated with it (like an inventory) as long you don't destroy the block. So don't worry if a large portion of your world suddenly turns into unknown nodes, you might still fix this.

Troubleshooting

A common reason for this block to appear is when you have previously activated a mod which added some new blocks (e.g. a blue stone), then later deactivated said mod. Now all blocks from this mod will appear as an unknown node. In this case, you can solve this simply by enabling the missing mod again. Punch the block once to see the itemstring. The part before the column is the mod name.

Another source of this block is a bug in mods or games or just general developer clumsiness. Developers of a game may have made a mistake or removed blocks intentionally without any replacement. Complain to the game authors if this happens, as this is generally considered poor development practice. If unknown nodes occour without you using any mods, you can be certain it is a bug.

Technical background

Technically, an unknown node still tries it best to pretend like it would be a real node. If an unknown node is queried with a function like minetest.get_node, the itemstring of the node it actually represents is returned. To find out whether a node is unknown, do a lookup in minetest.registered_nodes. If the node does not occour in this table, it is unknown.

In the Minetest source code, this pseudo-node is also called “CONTENT_UNKNOWN”.

See also