2 Page 2: System Architecture
Benjamin W Hamby edited this page 2026-03-09 22:18:06 -05:00

LeadLocked is split into three layers.

//--Plugin--\

 Handles weapon behavior.

 Detect weapon items via NBT

 Shooting logic

 Raycast bullets

 Spread and recoil

 Damage calculations

 Ammo consumption

 Reload handling

 Magazine tracking

//--DeadFall Datapack--\

 Controls world integration.

 Supply drop loot

 Structure loot tables

 Chest loot generation

 Ammo crafting recipes

 Weapon rarity distribution

 DeadFall determines where weapons exist in the world.

//--Resourcepack--\

 Controls visual presentation.

 Gun models

 Ammo models

 Item textures

 Custom model overrides
 
 The resourcepack reads custom data or model values to display the correct weapon model.