Difference between revisions of "Ignore"

From Luanti Wiki
Jump to navigation Jump to search
m (→‎Technical background: remove code links)
(Replaced content with "[https://dev.luanti.org/nodes/#ignore This page has moved to the Luanti Developer Wiki!]")
Tag: Replaced
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Languages}}
+
[https://dev.luanti.org/nodes/#ignore This page has moved to the Luanti Developer Wiki!]
{{Block Data
 
| image=Air.png
 
| wherein=[[Minetest]]
 
| block_name=Ignore
 
| type = Internally-used block
 
| physics = No
 
| flammable = No
 
| luminance=No
 
| generated=No
 
| renewable=No
 
| itemstring=ignore
 
| 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.
 
 
 
== 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. It can not be [[Mining|mined]], [[Placing|placed]], or obtained in normal gameplay, [[Creative Mode]] or even the <code>/giveme</code> [[Server commands|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 server or computer. Another possibility is that you reached one of the [[world boundaries]].
 
 
 
== 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 <code>minetest.get_node_or_nil</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>”.
 
 
 
=== 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
 

Latest revision as of 22:51, 20 December 2024