{
  "format_version": "1.10.0",
  "animation_controllers": {
	"controller.animation.simdistance": {
		"initial_state": "off",
		"states": {
		"on": {
			"particle_effects": [{"effect": "simdistance_setup"}],
			"transitions": [{"off": "!query.is_item_name_any('slot.weapon.mainhand', 0, 'minecraft:arrow')"}]
		},
		"off": {
			"transitions": [{"prepare": "query.is_item_name_any('slot.weapon.mainhand', 0, 'minecraft:arrow')"}]
		},
		"prepare": {
			"transitions": [
				{"on": "query.is_on_ground && query.is_item_name_any('slot.weapon.mainhand', 0, 'minecraft:arrow') && 
			((math.floor(query.position(0)/16)*16) == math.floor(query.position(0)) && (
			math.floor(query.position(2)/16)*16) == math.floor(query.position(2)))"}
			],
			"particle_effects": [{"effect": "simdistance_prepare"}]
		}
		}
	}
  }
}