Minecraft wiki entry for Creating_behavior_packs, associated text: 1 Getting Started
1.1 Time required
1.2 Required tools
1.2.1 Text editor
2 Creating a Behavior Pack
2.1 manifest.json
2.2 Testing your behavior pack
2.3 Functions
2.4 Loot Tables
2.5 Recipes
2.5.1 Shaped Crafting
2.5.2 Shapeless Crafting
2.5.3 Smelting
3 Setting up Entity JSON files structure
4 Entity JSON overview
4.1 minecraft:entity
4.2 Component groups
4.3 Components
4.4 Events
4.5 Components of note
4.5.1 minecraft:identifier
4.5.2 minecraft:type_family
4.5.3 minecraft:entity_spawned
5 Making pigs explode
5.1 Adding components
5.1.1 minecraft:nearest_attackable_target
5.1.2 minecraft:target_nearby_sensor
5.2 Adding events
5.3 Adding component groups
5.3.1 minecraft:explode
5.3.2 minecraft:scale
5.4 Testing our add-on
6 Congratulations!
6.1 Note on available behavior changes
6.2 Challenges
6.3 Troubleshooting JSON
7 Exporting and sharing