Difference between revisions of "Ignore"

From Minetest Wiki
Jump to navigation Jump to search
(Fix categories)
(Clarify and improve wording in certain parts)
 
(8 intermediate revisions by 2 users not shown)
Line 13: Line 13:
 
| drops=''Nothing''
 
| drops=''Nothing''
 
}}
 
}}
 +
[[File:Ignore_icon.png|160px|thumb|Inventory icon of Ignore]]
  
'''Ignore''' (other names: '''<code>ignore</code>''' and '''<code>CONTENT_IGNORE</code>''') is a block which is internally used by Minetest to represent an unloaded area. Normal players can just ignore this.
+
'''Ignore''' (other names: '''<code>ignore</code>''' and '''<code>CONTENT_IGNORE</code>''') is a [[Nodes|block]] which is internally used by Minetest to represent an unloaded area. Normal players can just ignore this.
  
 
== Behaviour ==
 
== Behaviour ==
Ignore is invisible, not [[Pointing|pointable]] and fully transparent like [[air]] but it behaves like a solid block, so players and objects collide with it can walk on it. No fall damage is received for falling on it. This effect can be noticed when you fall very fast and hit an unloaded area ([https://github.com/minetest/minetest/issues/1442 issue 1442]). It can not be [[Mining|mined]], [[Placing|placed]], or obtained in normal gameplay or [[Creative Mode]]. If a player or a mod attempts to place it, an error message will be shown and nothing will be placed.
+
Ignore is invisible, fully transparent like [[air]] is, and isn't [[Pointing|pointable]] but it behaves like a solid block, so players and objects collide with it can walk on it. No fall damage is received for falling on it. It can not be [[Mining|mined]], [[Placing|placed]], or obtained in normal gameplay, nor can it be obtained through [[Creative Mode]] or even the <code>/giveme</code> [[Server commands|command]].
  
 
== Finding Ignore ==
 
== Finding Ignore ==
Normally, you won't be able to actually reach an Ignore block if Minetest loads the world reasonably fast. But if you can't walk or drop further, and the world seems to just “end” in a void, as if you hit an invisible wall, then you have probably found Ignore. This is likely when you play on a slow server or computer. Another possibility is that you reached one of the [[world boundaries]].
+
Normally, you won't be able to actually reach an Ignore block if Minetest loads the world reasonably fast. But if you can't walk or drop further, and the world seems to just “end” in a void, as if you hit an invisible wall, then you have probably found Ignore. This is likely when you play on a slow computer or on a server with high lag. Another possibility is that you reached one of the [[world boundaries]].
  
 
== Technical background ==
 
== Technical background ==
Ignore (itemstring: “<code>ignore</code>”) is a node that represents a node in a unloaded [http://dev.minetest.net/Terminology MapBlock]. If you try to access a block (with [http://dev.minetest.net/minetest.get_node_or_nil minetest.get_node_or_nil]) whose [http://dev.minetest.net/Terminology MapBlock] is unloaded, this is what you will get. You can use [http://dev.minetest.net/minetest.get_node_or_nil minetest.get_node_or_nil] to get <code>nil</code> instead of <code>"ignore"</code>.
+
Ignore (itemstring: “<code>ignore</code>”) is a node that represents a node in a unloaded [http://dev.minetest.net/Terminology MapBlock]. If you try to access a block (with <code>minetest.get_node</code>) whose [http://dev.minetest.net/Terminology MapBlock] is unloaded, this is what you will get. You can use <code>minetest.get_node_or_nil</code> to get <code>nil</code> instead of <code>"ignore"</code>.
  
 
In the Minetest source code, this node is also called “<code>CONTENT_IGNORE</code>”.
 
In the Minetest source code, this node is also called “<code>CONTENT_IGNORE</code>”.
  
 
=== Just for fun ===
 
=== Just for fun ===
Remove those lines and test what happens after placing ignore: https://github.com/minetest/minetest/blob/master/src/map.cpp#L226-L234
+
Remove those lines and test what happens after placing ignore: https://github.com/minetest/minetest/blob/6d7067fd37a8084aca139ecab552982e0ee99582/src/map.cpp#L181-L189
 
 
== Easter egg ==
 
If you try to obtain this block in your inventory (for example, with the [[Server commands|command]] “<code>/giveme ignore</code>”), there's a little joke insult in the item tooltip, which is “Ignore (you hacker you!)”.
 

Latest revision as of 23:06, 8 August 2023

Languages Language: English • Deutsch • français
Ignore
Air.png
A node in Minetest
Node Type Internally-used block
Drops Nothing
Physics No
Luminance No
Flammable No
Generated No
Renewable No
Stackable Yes (99)
Itemstring ignore
Inventory icon of Ignore

Ignore (other names: ignore and CONTENT_IGNORE) is a block which is internally used by Minetest to represent an unloaded area. Normal players can just ignore this.

Behaviour

Ignore is invisible, fully transparent like air is, and isn't pointable but it behaves like a solid block, so players and objects collide with it can walk on it. No fall damage is received for falling on it. It can not be mined, placed, or obtained in normal gameplay, nor can it be obtained through Creative Mode or even the /giveme command.

Finding Ignore

Normally, you won't be able to actually reach an Ignore block if Minetest loads the world reasonably fast. But if you can't walk or drop further, and the world seems to just “end” in a void, as if you hit an invisible wall, then you have probably found Ignore. This is likely when you play on a slow computer or on a server with high lag. Another possibility is that you reached one of the world boundaries.

Technical background

Ignore (itemstring: “ignore”) is a node that represents a node in a unloaded MapBlock. If you try to access a block (with minetest.get_node) whose MapBlock is unloaded, this is what you will get. You can use minetest.get_node_or_nil to get nil instead of "ignore".

In the Minetest source code, this node is also called “CONTENT_IGNORE”.

Just for fun

Remove those lines and test what happens after placing ignore: https://github.com/minetest/minetest/blob/6d7067fd37a8084aca139ecab552982e0ee99582/src/map.cpp#L181-L189