{
  "format_version": "1.20.50",
  "minecraft:block": {
    "description": {
      "identifier": "nicothekid:moa_egg_block",
      "menu_category": {
				"category": "none",
				"group": "none"
			}
    },
    "components": {
      "minecraft:material_instances": {
        "*": {
          "texture": "nicothekid_moa_egg_block",
          "render_method": "alpha_test",
          "ambient_occlusion": false,
					"face_dimming": true
        }
      },
      "minecraft:geometry": "geometry.block.nicothekid_moa_egg",
      "minecraft:map_color": "#A49876",
      "minecraft:breathability": "air",
      "minecraft:placement_filter": {
        "conditions": [
          {
            "allowed_faces": [
              "up"
            ]
          }
        ]
      },
      "minecraft:collision_box": {
        "origin": [ -4, 0, -4 ],
        "size": [ 8, 10, 8 ]
      },
      "minecraft:selection_box": {
        "origin": [ -4, 0, -4 ],
        "size": [ 8, 10, 8 ]
      },
      "minecraft:light_dampening": 0,
      "minecraft:light_emission": 0,
      "minecraft:friction": 0.4,
      "minecraft:flammable": false,
      "minecraft:destructible_by_explosion": {
        "explosion_resistance": 30.0
      },
      "minecraft:destructible_by_mining": {
        "seconds_to_destroy": 0.4
      },
      "minecraft:loot": "loot_tables/nicos_mobs/blocks/nicothekid_moa_egg_block.json",
      "minecraft:queued_ticking": {
        "looping": false,
        "interval_range": [ 23000, 24000 ],
        "on_tick": {
          "event": "nicothekid:moa_egg_block_hatching",
          "target": "self"
        }
      },
      
      "tag:moa_egg": {},
      "tag:mob_egg": {},
      "tag:egg": {}
    },
    "events": {
      "nicothekid:moa_egg_block_hatching": {
				"sequence": [
					{
						"run_command": {
							"command": [
								"playsound block.turtle_egg.crack @a[r=10]",
								"summon nicothekid:giant_moa ~ ~ ~ ~ ~ minecraft:giant_moa_born"
							]
						}
					},
					{
						"set_block": {
							"block_type": "minecraft:air"
						}
					}
				]
			}
    }
  }
}
