{
  "format_version": "1.10.0",
  "minecraft:client_entity": {
    "description": {
      "identifier": "sgs_farm:display",
	  "materials": {"default": "zombie"},
	  "textures":  {"default": "textures/none"},
      "geometry":  {"default": "geometry.sgs_farm.display"},
      "render_controllers": [ "controller.render.sgs_farm.default" ],

	  "animations": {
		"idle": "animation.sgs_farm.display.flat",
		"idle_attachable": "animation.sgs_farm.display.flat_attachable",
		"height_stand": "animation.sgs_farm.display.height_stand",
		"height_plate": "animation.sgs_farm.display.height_plate",
		"level": "animation.sgs_farm.display.level",
		
		"rotate_north": "animation.sgs_farm.display.rotate_north",
		"rotate_east": "animation.sgs_farm.display.rotate_east",
		"rotate_south": "animation.sgs_farm.display.rotate_south",
		"rotate_west": "animation.sgs_farm.display.rotate_west",
		
		"rotate_north_a": "animation.sgs_farm.display.rotate_north_a",
		"rotate_east_a": "animation.sgs_farm.display.rotate_east_a",
		"rotate_south_a": "animation.sgs_farm.display.rotate_south_a",
		"rotate_west_a": "animation.sgs_farm.display.rotate_west_a"
      },
      "scripts": {
        "animate": 
		[	
			{"idle": "query.equipped_item_is_attachable('main_hand') == false"},
			{"idle_attachable": "query.equipped_item_is_attachable('main_hand') == true"},
			
			"level",
			{"height_stand": "query.property('sgs_farm:animation') == 1"},
			{"height_plate": "query.property('sgs_farm:animation') == 2"},
			
			{"rotate_north": "query.property('sgs_farm:rotation') == 0 && query.equipped_item_is_attachable('main_hand') == false"},
			{"rotate_east": "query.property('sgs_farm:rotation') == 1 && query.equipped_item_is_attachable('main_hand') == false"},
			{"rotate_south": "query.property('sgs_farm:rotation') == 2 && query.equipped_item_is_attachable('main_hand') == false"},
			{"rotate_west": "query.property('sgs_farm:rotation') == 3 && query.equipped_item_is_attachable('main_hand') == false"},
			
			{"rotate_north_a": "query.property('sgs_farm:rotation') == 0 && query.equipped_item_is_attachable('main_hand') == true"},
			{"rotate_east_a": "query.property('sgs_farm:rotation') == 1 && query.equipped_item_is_attachable('main_hand') == true"},
			{"rotate_south_a": "query.property('sgs_farm:rotation') == 2 && query.equipped_item_is_attachable('main_hand') == true"},
			{"rotate_west_a": "query.property('sgs_farm:rotation') == 3 && query.equipped_item_is_attachable('main_hand') == true"}
		]
      },
	  "enable_attachables":  true,
	  "spawn_egg": {
        "base_color": "#c7c2b5",
        "overlay_color": "#524f49"
      }
    }
  }
}
