This script was last updated for Java Edition 1.16.5 and Bedrock Edition 1.16.201.
The Magma Block is a block found commonly in the Nether and rarely found on the Overworld. They emit a light level of 3, and can be used for many purposes. Also, they only need a wooden pickaxe or higher to be mined.
Its main property is that when any mob or player walks on it, it burns them. One can prevent receiving damage also by sneaking over the blocks, by wearing frost walker boots, or by drinking a potion of fire resistance. Also, like netherrack, magma blocks can burn indefinitely if lit on the top with a flint and steel or other mean of creating fire.
Their damage is considered fire damage, and can be reduced by armor, the Resistance potion effect, and the Protection and Fire Protection enchantments. However, this damage does not set mobs or players on fire, and thus does not cook the animals that it kills. In addition, magma blocks prevent Experience dropping from mobs, unless a player damages the mob within 5 seconds.
If the block is exposed to water above it, it will create a whirlpool bubble column. Any boats or players that go over this will be pulled downwards. It is possible to swim out of the columns and negate the pulling down effect. Any player that is inside the bubble column won't receive drowning damage.
Also, magma blocks can be placed under note blocks to produce a "bass drum" sound.
Magma blocks can be crafted by putting 4 magma cream in a 2 by 2 square in the crafting grid, but also can be found naturally in underwater ravines, around ocean ruins, as part of ruined portals and bastion remnants, as part of delta in basalt deltas, or as blobs through the Nether found commonly near lava oceans, generating from altitudes Y=27 to Y=36 in all biomes.