{
	"format_version": "1.17.0",
	"minecraft:entity": {
		"description": {
			"identifier": "sky:notice_board",
			"is_spawnable": false,
			"is_summonable": true,
			"is_experimental": false,
			"scripts": {
				"animate": [
					"particle",
					"fishing_bob"
				]
			},
			"animations": {
				"particle": "controller.animation.furniture_wood_particle",
				"fishing_bob": "controller.animation.fishing_bob_remover",
				"kill_fishing_hook": "animation.sky.kill_fishing_hook"
			}
		},
		"component_groups": {
			"sky:card": {
				"minecraft:timer": {
					"time": [
						30.0,
						30.0
					],
					"time_down_event": {
						"event": "sky:bobble"
					}
				},
				"minecraft:variant": {
					"value": 0
				}
			},
			"sky:bobble": {
				"minecraft:timer": {
					"time": [
						30.0,
						30.0
					],
					"time_down_event": {
						"event": "sky:card"
					}
				},
				"minecraft:variant": {
					"value": 1
				}
			},
			"sky:breakable": {
				"minecraft:damage_sensor": {
					"triggers": [
						{
							"on_damage": {
								"filters": {
									"all_of": [
										{
											"test": "is_sneaking",
											"subject": "other",
											"operator": "==",
											"value": true
										}
									]
								},
								"event": "sky:remove"
							},
							"cause": "entity_attack",
							"on_damage_sound_event": "tripod",
							"deals_damage": false
						},
						{
							"deals_damage": false,
							"cause": "entity_attack"
						},
						{
							"cause": "projectile",
							"deals_damage": false
						},
						{
							"cause": "lava",
							"deals_damage": false
						},
						{
							"cause": "magic",
							"deals_damage": false
						},
						{
							"deals_damage": false,
							"cause": "entity_explosion"
						}
					]
				}
			},
			"sky:remove": {
				"minecraft:is_baby": {},
				"minecraft:spawn_entity": {
					"entities": [
						{
							"spawn_sound": "tripod",
                                                        "num_to_spawn":1,
                                                         "single_use": true,
							"min_wait_time": 0.1,
							"max_wait_time": 0.2,
							"spawn_item": "sky:card_sign_spawn_egg"
						}
					]
				},
				"minecraft:instant_despawn": {}
			},
			"sky:unbreakable": {
				"minecraft:damage_sensor": {
					"triggers": [
						{
							"deals_damage": false,
							"cause": "entity_attack"
						},
						{
							"cause": "projectile",
							"deals_damage": false
						},
						{
							"cause": "lava",
							"deals_damage": false
						},
						{
							"cause": "magic",
							"deals_damage": false
						},
						{
							"deals_damage": false,
							"cause": "entity_explosion"
						},
						{
							"deals_damage": false,
							"cause": "all"
						}
					]
				}
			}
		},
		"components": {
			"minecraft:type_family": {
				"family": [
					"sign"
				]
			},
			"minecraft:is_stackable": {},
			"minecraft:knockback_resistance": {
                "value": 1,
                "max": 1
            },
            "minecraft:push_through": 1,
			"minecraft:collision_box": {
				"width": 0.6,
				"height": 1
			},
			"minecraft:environment_sensor": {
                "triggers": [
                    {
                        "filters": {
                            "any_of": [
                                {
                                    "test": "in_water",
                                    "value": true,
                                    "subject": "self"
                                },
                                {
                                    "test": "is_underwater",
                                    "value": true,
                                    "subject": "self"
                                }
                            ]
                        },
                        "event": "sky:remove"
                    },
                    {
                        "filters": {
                            "any_of": [
                                {
                                    "test": "in_lava",
                                    "value": true,
                                    "subject": "self"
                                }
                            ]
                        },
                        "event": "sky:remove"
                    }
                ]
            },
			"minecraft:health": {
				"value": 6,
				"max": 6
			},
			"minecraft:hurt_on_condition": {
				"damage_conditions": [
					{
						"filters": {
							"test": "in_lava",
							"subject": "self",
							"operator": "==",
							"value": true
						},
						"cause": "lava",
						"damage_per_tick": 4
					}
				]
			},
			"minecraft:persistent": {},
			"minecraft:conditional_bandwidth_optimization": {},
			"minecraft:interact": {
				"interactions": [
					{
						"use_item": true,
						"interact_text": "Lock (can't undo)",
						"play_sounds": "leashknot.place",
						"on_interact": {
								"filters": {
									"any_of": [
									{
										"test": "is_family",
										"subject": "other",
										"value": "end"
									},
									{
										"test": "is_family",
										"subject": "other",
										"value": "player"
									}
								],
								    "all_of": [
									{
										"test": "has_equipment",
										"subject": "other",
										"domain": "hand",
										"value": "minecraft:barrier"
									}
								]
							},
							"target": "self",
							"event": "sky:unbreakable"
						},
						"particle_on_start": {
							"particle_y_offset": 0.2,
							"particle_type": "villagerangry"
						}
					},
					{
						"use_item": true,
						"interact_text": "Change Sign Type",
						"play_sounds": "leashknot.place",
						"on_interact": {
								"filters": {
									"any_of": [
									{
										"test": "is_family",
										"subject": "other",
										"value": "end"
									},
									{
										"test": "is_family",
										"subject": "other",
										"value": "player"
									}
								],
								    "all_of": [
									{
										"test": "has_equipment",
										"subject": "other",
										"domain": "hand",
										"value": "minecraft:planks:0"
									}
								]
							},
							"target": "self",
							"event": "sky:card"
						},
						"particle_on_start": {
							"particle_y_offset": 0.2,
							"particle_type": "villagerhappy"
						}
					},
					{
						"use_item": true,
						"interact_text": "Change Sign Type",
						"play_sounds": "leashknot.place",
						"on_interact": {
								"filters": {
									"any_of": [
									{
										"test": "is_family",
										"subject": "other",
										"value": "end"
									},
									{
										"test": "is_family",
										"subject": "other",
										"value": "player"
									}
								],
								    "all_of": [
									{
										"test": "has_equipment",
										"subject": "other",
										"domain": "hand",
										"value": "minecraft:planks:2"
									}
								]
							},
							"target": "self",
							"event": "sky:bobble"
						},
						"particle_on_start": {
							"particle_y_offset": 0.2,
							"particle_type": "villagerhappy"
						}
					}
				]
			}
		},
		"events": {
			"sky:unbreakable": {
				"remove": {
					"component_groups": [
						"sky:breakable"
					]
				},
				"add": {
					"component_groups": [
						"sky:unbreakable",
						"sky:card"
					]
				}
			},
			"sky:remove": {
				"add": {
					"component_groups": [
						"sky:remove"
					]
				}
			},
			"sky:card": {
				"sequence": [
					{
						"remove": {
							"component_groups": [
								"sky:card",
								"sky:bobble"
							]
						}
					},
					{
						"add": {
							"component_groups": [
								"sky:card"
							]
						}
					}
				]
			},
			"sky:bobble": {
				"sequence": [
					{
						"remove": {
							"component_groups": [
								"sky:card",
								"sky:bobble"
							]
						}
					},
					{
						"add": {
							"component_groups": [
								"sky:bobble"
							]
						}
					}
				]
			},
			"minecraft:entity_spawned": {
				"add": {
					"component_groups": [
						"sky:card",
						"sky:breakable"
					]
				}
			}
		}
	}
}