promotional bannermobile promotional banner

Lightning Tweaks

Makes lightning more configurable, with options to make it behave more realistically.

File Details

lightningtweaks-1.12.2-1.1.0.0.jar

  • R
  • Nov 18, 2018
  • 17.94 KB
  • 209
  • 1.12.2

File Name

lightningtweaks-1.12.2-1.1.0.0.jar

Supported Versions

  • 1.12.2

API

  • Removed method for re-adding on construction fire.
  • Replaced method for finding the top Block at an x and z with a better one from World.
  • Added fields and methods for testing if an Entity is wearing metallic armor.
  • Renamed some fields and methods to things that described their functions better.
  • Added proportion for Entities wearing metallic armor to config.
  • Updated source documentation to match changes.

Changes

  • Lightning will now preferentially strike Entities that are wearing metallic armor (Credit to Aer_ink for the idea).
  • Moved scored BlockPos for Entities to the Entity's eye level.

Improvements

  • Improved a few bits of code for readability, efficiency, and preventing costly redundancy.
  • Improved fire prevention method for Weather, Storms & Tornadoes. The best I could get was a 1/(2^31 - 1) chance of fire spawning.

Fixes

  • Fixed spawning fire from Weather, Storms & Tornadoes even when doing so was disabled in its config.
  • Fixed counting air as being 'shaped' well for lightning to strike.
  • Fixed the y score for a non-Entity BlockPos always recording as the best possible height.