Skip to content

Fulgurite

Fulgurites are natural glass tubes or crusts that are formed when lightning strikes the ground. The word fulgurite comes from the Latin word fulgur, which means lightning. The shape of a fulgurite mimics the path of the lightning bolt as it disperses into the ground.
Source

Built-in Fulgurites

Lightning bolt glass comes with 2 fulgurites. One for converting Sand -> Glass and another for converting Red Sand -> Orange Stained Glass. You can find the code here

Custom Fulgurites

Lightning Bolt Glass supports data-driven Fulgurites letting you create your own!

  1. Create a folder in the <pack>/data/<namespace> path in your datapack called fulgurite. This is where you will be placing all your fulgurite JSONs.
  2. Create a JSON file. This can be called anything as long as it ends with ".json"
  3. Using the JSON Schema below create your own fulgurite.
  4. Now run /reload in-game for the changes to apply. You can use /summon lightning_bolt ~ ~ ~ to test if it works.

Schema

NameTypeDescription
typeTypesType of fulgurite to generate
predicateBlock PredicateThe block to test for
blockBlockThe block to place

Types

"minecraft:root_system"

If predicate passes create a root system using block with placement_attempts, column_max_height, and radius.

Additional Properties

NameTypeDefaultDescription
placement_attemptsInteger20The number of times to attempt to place this block.
column_max_heightInteger100The max height of the root system.
radiusInteger3The radius of the root system.

"minecraft:replace_single_block"

If predicate passes replace a single block where the lightning hit with block. This is the legacy behavior for fulgurites.

Block Predicate

NameTypeDescription
tagStringA block tag to match.
blocksListA list of block ID's to match.
stateObjectA map of each Property-Value that must match
nbtStringNBT data to match.

Block

NameTypeDescription
NameStringID of the block.
PropertiesObjectA map of all Property-Value to set.

Not associated with or approved by Mojang Studios or Microsoft