{
	"format_version": "1.10.0",
	"minecraft:entity": {
		"description": {
			"identifier": "addon:speedloader",
			"runtime_identifier": "minecraft:shulker",
			"is_spawnable": false,
			"is_summonable": true,
			"is_experimental": false
		},
		"component_groups": {
			"default": {
				"minecraft:behavior.trade_with_player": {},
				"minecraft:economy_trade_table": {
					"display_name": "§4§l[!]§r Sneaking to change caliber. ",
					"table": "trading/speedloader/none.json",
					"new_screen": true,
					"persist_trades": true
				},
				"minecraft:interact": [{
					"on_interact": {
						"filters": {
							"all_of": [{
									"test": "is_sneaking",
									"subject": "other",
									"value": true
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "player"
								}
							]
						},
					"event": "9"
					},
					"use_item": false,
					"swing": true,
					"interact_text": "Change caliber to 9mm"
				}]
			},
			"9": {
				"minecraft:behavior.trade_with_player": {},
				"minecraft:economy_trade_table": {
					"display_name": "Speedloader | 9mm",
					"table": "trading/speedloader/9.json",
					"new_screen": true,
					"persist_trades": true
				},
				"minecraft:interact": [{
					"on_interact": {
						"filters": {
							"all_of": [{
									"test": "is_sneaking",
									"subject": "other",
									"value": true
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "player"
								}
							]
						},
					"event": "12"
					},
					"use_item": false,
					"swing": true,
					"interact_text": "Change caliber to 12 Gauge"
				}]
			},
			"12": {
				"minecraft:behavior.trade_with_player": {},
				"minecraft:economy_trade_table": {
					"display_name": "Speedloader | 12 Gauge",
					"table": "trading/speedloader/12.json",
					"new_screen": true,
					"persist_trades": true
				},
				"minecraft:interact": [{
					"on_interact": {
						"filters": {
							"all_of": [{
									"test": "is_sneaking",
									"subject": "other",
									"value": true
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "player"
								}
							]
						},
					"event": "45"
					},
					"use_item": false,
					"swing": true,
					"interact_text": "Change caliber to .45"
				}]
			},
			"45": {
				"minecraft:behavior.trade_with_player": {},
				"minecraft:economy_trade_table": {
					"display_name": "Speedloader | .45",
					"table": "trading/speedloader/45.json",
					"new_screen": true,
					"persist_trades": true
				},
				"minecraft:interact": [{
					"on_interact": {
						"filters": {
							"all_of": [{
									"test": "is_sneaking",
									"subject": "other",
									"value": true
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "player"
								}
							]
						},
					"event": "46"
					},
					"use_item": false,
					"swing": true,
					"interact_text": "Change caliber to 4.6mm"
				}]
			},
			"46": {
				"minecraft:behavior.trade_with_player": {},
				"minecraft:economy_trade_table": {
					"display_name": "Speedloader | 4.6mm",
					"table": "trading/speedloader/46.json",
					"new_screen": true,
					"persist_trades": true
				},
				"minecraft:interact": [{
					"on_interact": {
						"filters": {
							"all_of": [{
									"test": "is_sneaking",
									"subject": "other",
									"value": true
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "player"
								}
							]
						},
					"event": "47"
					},
					"use_item": false,
					"swing": true,
					"interact_text": "Change caliber to 4.7mm"
				}]
			},
			"47": {
				"minecraft:behavior.trade_with_player": {},
				"minecraft:economy_trade_table": {
					"display_name": "Speedloader | 4.7mm",
					"table": "trading/speedloader/47.json",
					"new_screen": true,
					"persist_trades": true
				},
				"minecraft:interact": [{
					"on_interact": {
						"filters": {
							"all_of": [{
									"test": "is_sneaking",
									"subject": "other",
									"value": true
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "player"
								}
							]
						},
					"event": "57"
					},
					"use_item": false,
					"swing": true,
					"interact_text": "Change caliber to 5.7mm"
				}]
			},
			"57": {
				"minecraft:behavior.trade_with_player": {},
				"minecraft:economy_trade_table": {
					"display_name": "Speedloader | 5.7mm",
					"table": "trading/speedloader/57.json",
					"new_screen": true,
					"persist_trades": true
				},
				"minecraft:interact": [{
					"on_interact": {
						"filters": {
							"all_of": [{
									"test": "is_sneaking",
									"subject": "other",
									"value": true
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "player"
								}
							]
						},
					"event": "58"
					},
					"use_item": false,
					"swing": true,
					"interact_text": "Change caliber to 5.8mm"
				}]
			},
			"58": {
				"minecraft:behavior.trade_with_player": {},
				"minecraft:economy_trade_table": {
					"display_name": "Speedloader | 5.8mm",
					"table": "trading/speedloader/58.json",
					"new_screen": true,
					"persist_trades": true
				},
				"minecraft:interact": [{
					"on_interact": {
						"filters": {
							"all_of": [{
									"test": "is_sneaking",
									"subject": "other",
									"value": true
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "player"
								}
							]
						},
					"event": "127"
					},
					"use_item": false,
					"swing": true,
					"interact_text": "Change caliber to .50"
				}]
			},
			"127": {
				"minecraft:behavior.trade_with_player": {},
				"minecraft:economy_trade_table": {
					"display_name": "Speedloader | .50",
					"table": "trading/speedloader/127.json",
					"new_screen": true,
					"persist_trades": true
				},
				"minecraft:interact": [{
					"on_interact": {
						"filters": {
							"all_of": [{
									"test": "is_sneaking",
									"subject": "other",
									"value": true
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "player"
								}
							]
						},
					"event": "545"
					},
					"use_item": false,
					"swing": true,
					"interact_text": "Change caliber to 5.45mm"
				}]
			},
			"545": {
				"minecraft:behavior.trade_with_player": {},
				"minecraft:economy_trade_table": {
					"display_name": "Speedloader | 5.45mm",
					"table": "trading/speedloader/545.json",
					"new_screen": true,
					"persist_trades": true
				},
				"minecraft:interact": [{
					"on_interact": {
						"filters": {
							"all_of": [{
									"test": "is_sneaking",
									"subject": "other",
									"value": true
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "player"
								}
							]
						},
					"event": "556"
					},
					"use_item": false,
					"swing": true,
					"interact_text": "Change caliber to 5.56mm"
				}]
			},
			"556": {
				"minecraft:behavior.trade_with_player": {},
				"minecraft:economy_trade_table": {
					"display_name": "Speedloader | 5.56mm",
					"table": "trading/speedloader/556.json",
					"new_screen": true,
					"persist_trades": true
				},
				"minecraft:interact": [{
					"on_interact": {
						"filters": {
							"all_of": [{
									"test": "is_sneaking",
									"subject": "other",
									"value": true
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "player"
								}
							]
						},
					"event": "762"
					},
					"use_item": false,
					"swing": true,
					"interact_text": "Change caliber to 7.62mm"
				}]
			},
			"762": {
				"minecraft:behavior.trade_with_player": {},
				"minecraft:economy_trade_table": {
					"display_name": "Speedloader | 7.62mm",
					"table": "trading/speedloader/762.json",
					"new_screen": true,
					"persist_trades": true
				},
				"minecraft:interact": [{
					"on_interact": {
						"filters": {
							"all_of": [{
									"test": "is_sneaking",
									"subject": "other",
									"value": true
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "player"
								}
							]
						},
					"event": "763"
					},
					"use_item": false,
					"swing": true,
					"interact_text": "Change caliber to 7.63mm"
				}]
			},
			"763": {
				"minecraft:behavior.trade_with_player": {},
				"minecraft:economy_trade_table": {
					"display_name": "Speedloader | 7.63mm",
					"table": "trading/speedloader/763.json",
					"new_screen": true,
					"persist_trades": true
				},
				"minecraft:interact": [{
					"on_interact": {
						"filters": {
							"all_of": [{
									"test": "is_sneaking",
									"subject": "other",
									"value": true
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "player"
								}
							]
						},
					"event": "792"
					},
					"use_item": false,
					"swing": true,
					"interact_text": "Change caliber to 7.92mm"
				}]
			},
			"792": {
				"minecraft:behavior.trade_with_player": {},
				"minecraft:economy_trade_table": {
					"display_name": "Speedloader | 7.92mm",
					"table": "trading/speedloader/792.json",
					"new_screen": true,
					"persist_trades": true
				},
				"minecraft:interact": [{
					"on_interact": {
						"filters": {
							"all_of": [{
									"test": "is_sneaking",
									"subject": "other",
									"value": true
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "player"
								}
							]
						},
					"event": "9"
					},
					"use_item": false,
					"swing": true,
					"interact_text": "Change caliber to 9mm"
				}]
			}
		},
		"components": {
			"minecraft:experience_reward": {
				"on_death": "query.last_hit_by_player ? 0 : 0"
			},
			"minecraft:collision_box": {
				"width": 1,
				"height": 1
			},
			"minecraft:loot": {
				"table": "loot_tables/speedloader.json"
			},
			"minecraft:health": {
				"value": 2,
				"max": 2
			},
			"minecraft:physics": {}
		},
		"events": {
			"minecraft:entity_spawned": {
				"add": {
					"component_groups": ["default"]
				}
			},
			"default": {
				"add": {
					"component_groups": ["default"]
				}
			},
			"9": {
				"add": {
					"component_groups": ["9"]
				}
			},
			"12": {
				"add": {
					"component_groups": ["12"]
				}
			},
			"45": {
				"add": {
					"component_groups": ["45"]
				}
			},
			"46": {
				"add": {
					"component_groups": ["46"]
				}
			},
			"47": {
				"add": {
					"component_groups": ["47"]
				}
			},
			"57": {
				"add": {
					"component_groups": ["57"]
				}
			},
			"58": {
				"add": {
					"component_groups": ["58"]
				}
			},
			"127": {
				"add": {
					"component_groups": ["127"]
				}
			},
			"545": {
				"add": {
					"component_groups": ["545"]
				}
			},
			"556": {
				"add": {
					"component_groups": ["556"]
				}
			},
			"762": {
				"add": {
					"component_groups": ["762"]
				}
			},
			"763": {
				"add": {
					"component_groups": ["763"]
				}
			},
			"792": {
				"add": {
					"component_groups": ["792"]
				}
			}
		}
	}
}