Difference between revisions of "Falling Node"

From Minetest Wiki
Jump to navigation Jump to search
m (has object collision now)
(gsc moved to mtg; restructuring)
Line 1: Line 1:
{{Languages}}
+
{{Languages|nocate=1}}
 
{{Object Data
 
{{Object Data
 
|name=Falling Block
 
|name=Falling Block
Line 8: Line 8:
 
|health=∞
 
|health=∞
 
}}
 
}}
A '''falling block''' (or '''falling node''') is an [[Objects|object]] which appears when a block ''capable of falling'' (like [[sand]] or [[gravel]] in Minetest Game) starts to fall.
+
A '''falling block''' or '''falling node''' is an [[Objects|object]] which appears when a block ''capable of falling'' (like [[Sand]] or [[Gravel]] in Minetest Game) starts to fall.
 
We also call blocks capable of falling ''physical blocks'', while with “falling block”, we refer to the moving object which is ''actually'' falling.
 
We also call blocks capable of falling ''physical blocks'', while with “falling block”, we refer to the moving object which is ''actually'' falling.
  
 
== Triggering a fall ==
 
== Triggering a fall ==
Normally, physical blocks rest on top of solid blocks. As soon the “support” below a physical block is dug (or replaced with any [[:Category:Passable|passable]] block like [[air]] or [[water]]), the block starts to fall.
+
Normally, physical blocks rest on top of solid blocks. As soon the “support” below a physical block is dug (or replaced with any [[:Category:Passable|passable]] block like [[air]] or [[water]]), the block starts to fall. It is rarely possible that a physical block is free-floating. A [[Map generator]] might sometimes generate floating sand. This is not an accident. In this calse, physical blocks don't fall automatically. But they start to fall when they have been punched or receive an update. If a block starts to fall, it also updates its direct neighbors. There are other ways in which physical blocks can receive an update. This means, punching a block of floating sand in a large patch of floating sand will cause a chain reaction and a complete collapse.
 
 
It is rarely possible that a physical block is free-floating. The [[map generator]] might sometimes generate floating sand. This is not an accident.
 
 
 
In this calse, physical blocks don't fall automatically. But they start to fall when they have been punched or receive an update. If a block starts to fall, it also updates its direct neighbors. There are other ways in which physical blocks can receive an update.
 
This means, punching a block of floating sand in a large patch of floating sand will cause a chain reaction and a complete collapse.
 
  
 
== After the fall ==
 
== After the fall ==
 
The falling block stops when it hits a solid block. Now one of two things happens:
 
The falling block stops when it hits a solid block. Now one of two things happens:
 
 
* If at the landing position there was a replacable block (examples in Minetest Game: [[water]], [[air]], [[flower]], [[grass]]), it will be destroyed
 
* If at the landing position there was a replacable block (examples in Minetest Game: [[water]], [[air]], [[flower]], [[grass]]), it will be destroyed
* If at the landing position there was a non-replacable block (example in Minetest Game: [[torch]]), it will drop as an item
+
* If at the landing position there was a non-replacable block (example in Minetest Game: [[torch]]), the block will drop as an item.
 
 
Examples:
 
* If sand drops into an air block, the sand will now be in the place of the air block. The air block is gone.
 
* If the sand falls on a flower, it's the same: The flower is gone, too.
 
* If the sand falls on a a torch, the torch drops as an item with the sand taking its place.
 
 
 
== Physical blocks in Minetest Game ==
 
The following physical blocks exist in Minetest Game:
 
 
 
* [[Sand]]
 
* [[Desert Sand]]
 
* [[Silver Sand]]
 
* [[Gravel]]
 
* [[Desert Sand Soil]]
 
* [[Wet Desert Sand Soil]]
 
* [[Snow]]
 
* Burning [[TNT]]
 
  
For an up-to-date list, see [[:Category:Falling]].
+
[[Category:Engine]]

Revision as of 22:13, 17 April 2021

Languages Language: English • Bahasa Melayu
Falling Block
Falling Node.png
An object in Minetest
Health
Object collision Yes
Block collision Yes
Entitystring __builtin:falling_node

A falling block or falling node is an object which appears when a block capable of falling (like Sand or Gravel in Minetest Game) starts to fall. We also call blocks capable of falling physical blocks, while with “falling block”, we refer to the moving object which is actually falling.

Triggering a fall

Normally, physical blocks rest on top of solid blocks. As soon the “support” below a physical block is dug (or replaced with any passable block like air or water), the block starts to fall. It is rarely possible that a physical block is free-floating. A Map generator might sometimes generate floating sand. This is not an accident. In this calse, physical blocks don't fall automatically. But they start to fall when they have been punched or receive an update. If a block starts to fall, it also updates its direct neighbors. There are other ways in which physical blocks can receive an update. This means, punching a block of floating sand in a large patch of floating sand will cause a chain reaction and a complete collapse.

After the fall

The falling block stops when it hits a solid block. Now one of two things happens:

  • If at the landing position there was a replacable block (examples in Minetest Game: water, air, flower, grass), it will be destroyed
  • If at the landing position there was a non-replacable block (example in Minetest Game: torch), the block will drop as an item.