Skip to content

Lightning_Bolt_Glass

Legopitstop edited this page Aug 31, 2023 · 4 revisions

Fulgurites

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.

Custom Fulgurites

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

  1. Create a folder in the /data/namespace path in your datapack called fulgurites. This is where you will be placing all your JSON files.
  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. How run /reload in-game for the changes to apply. You can use /summon lightning_bolt ~ ~ ~ to test if it works.

Fulgurite Schema

Name Type Description
source String or Block Predicate The block to test for.
result String or Block Object The block to place
function String ID of the function to call. (Not Implemented)

Block Predicate

Name Type Description
block String ID of the block. Default: "minecraft:air"
properties Object A map of all Property-Value that must match. (Not Implemented)
nbt String NBT data to match. (Not Implemented)

Block Object

Name Type Description
block String ID of the block. Default: "minecraft:glass"