This guide provides technical documentation for extending Better Fire+, adding custom thermal reaction rules, preserving block permutations and container inventories, and integrating external Script Add-ons.


Developer Documentation Index

The documentation is divided into five parts:

  1. 01. System Architecture & Module Design
  2. 02. Thermal Rule Engine & Custom Rules
  3. 03. Block Permutations & Container Protection Engine
  4. 04. Commands, Configuration & Scriptevent API
  5. 05. Local Unit Testing & QuickJS Environment Constraints

Quick Reference: Adding a Custom Rule

Rules are added in behavior_packs/better_fire/scripts/rules.js:

// Adding a static exact-match rule:
"minecraft:dried_kelp_block": {
  feature: "ignitables",
  threshold: 20,
  chance: 0.35,
  minSourceHeat: 8,
  result: "minecraft:fire",
  sound: "random.fizz",
  label: "Dried Kelp Ignition"
}

Quick Reference: Running Unit Tests [NOT PROVIDED TEMPORARILY]

To run the full test suite locally without starting a Bedrock client:

./tests/run.sh

01. System Architecture & Module Design

02. Thermal Rule Engine & Custom Rules

03. Block Permutations & Container Protection Engine