Online PHP and Javascript Decoder decode hidden script to uncover its real functionality


{
  "format_version": "1.13.0",
  "minecraft:entity": {
    "description": {
      "identifier": "ho:sirenhead",
      "is_spawnable": false,
      "is_summonable": true,
      "is_experimental": false,
      "scripts": {
        "animate": [
          "picking",
          "climbing",
          "attack",
          "dead",
		  "smash",
		  "siren_call",
		  "siren_spot",
		  "speed"
        ]
      },
      "animations": {
        "picking": "controller.animation.siren_head",
        "climbing": "controller.animation.siren_head_climb",
        "attack": "controller.animation.siren_head_attack",
        "dead": "controller.animation.siren_head_dead",
		"smash": "controller.animation.siren_head_smash",
		"siren_call": "animation.siren_call",
		"siren_call2": "animation.siren_call2",
		"siren_spot": "controller.animation.siren_spot",
		"speed": "controller.animation.siren_head_speed"
      }
    },
    "component_groups": {
      "boi": {
        "minecraft:is_illager_captain": {}
      },
      "minecraft:siren_head_normal": {
        "minecraft:on_target_acquired": {
          "event": "minecraft:become_angry",
          "target": "self"
        }
      },
      "minecraft:siren_head_angry": {
        "minecraft:angry": {
          "duration": 100000,
          "broadcastAnger": false,
          "broadcastRange": 0,
          "calm_event": {
            "event": "minecraft:on_calm",
            "target": "self"
          }
        }
      },
      "minecraft:start_stomping": {
        "minecraft:timer": {
          "time": 30,
          "looping": false,
          "time_down_event": {
            "event": "minecraft:stomp",
            "target": "self"
          }
        }
      },
      "minecraft:walk": {
        "minecraft:movement": {
          "value": 0.25
        }
      },
      "minecraft:stomping": {
        "minecraft:timer": {
          "time": 6,
          "looping": false,
          "time_down_event": {
            "event": "minecraft:stop_stomp",
            "target": "self"
          }
        },
		"minecraft:movement": {
          "value": 0.0
        }
      },
      "minecraft:is_dead": {
        "minecraft:transformation": {
          "into": "ho:sirenhead_trans"
        }
      },
      "minecraft:siren_head_calm": {
        "minecraft:on_target_acquired": {
          "event": "minecraft:become_angry",
          "target": "self"
        }
      },
      "minecraft:knock": {
        "minecraft:spawn_entity": {
          "min_wait_time": 0,
          "max_wait_time": 0,
          "single_use": "true",
          "spawn_sound": "plop",
          "spawn_entity": "ho:slam"
        }
      },
      "minecraft:stun": {
        "minecraft:is_stunned": {},
        "minecraft:ageable": {
          "duration": 3,
          "grow_up": {
            "event": "minecraft:runaway",
            "target": "self"
          }
        },
        "minecraft:movement": {
          "value": 0
        },
		"minecraft:spell_effects": {
			"add_effects": [{
					"effect": "instant_damage",
					"amplifier": 5,
					"visible": false,
					"duration": 1
				}
			]
		}
      },
      "minecraft:runaway": {
        "minecraft:behavior.avoid_mob_type": {
          "priority": -1,
          "entity_types": [
            {
              "filters": {
                "any_of": [
                  {
                    "test": "is_family",
                    "subject": "other",
                    "operator": "!=",
                    "value": "inanimate"
                  },
                  {
                    "test": "is_family",
                    "subject": "other",
                    "operator": "!=",
                    "value": "siren_head"
                  },
                  {
                    "test": "is_family",
                    "subject": "other",
                    "operator": "!=",
                    "value": "cartoon_cat"
                  }
                ]
              },
              "walk_speed_multiplier": 2,
              "sprint_speed_multiplier": 2
            }
          ],
          "max_dist": 64
        },
        "minecraft:ageable": {
          "duration": 10,
          "grow_up": {
            "event": "minecraft:cool_down",
            "target": "self"
          }
        }
      },
      "minecraft:cool_down": {
        "minecraft:ageable": {
          "duration": 60,
          "grow_up": {
            "event": "minecraft:comeback",
            "target": "self"
          }
        }
      },
      "minecraft:resist": {
        "minecraft:damage_sensor": {
          "triggers": [
             {
			  "cause": "fall",
			  "deals_damage": false
			}
          ]
        }
      },
      "minecraft:taking_damage": {
        "minecraft:damage_sensor": {
          "triggers": [
            {
              "on_damage": {
                "filters": {
                  "all_of": [
                    {
                      "test": "has_damage",
                      "value": "projectile"
                    },
					{
                      "test": "is_family",
					  "subject": "other",
                      "value": "player"
                    }
                  ]
                },
                "event": "minecraft:stun"
              }
            },
            {
			  "cause": "fall",
			  "deals_damage": false
			}
          ]
        },
		"minecraft:behavior.avoid_mob_type": {
          "priority": -1,
          "entity_types": [
            {
              "filters": {
                "any_of": [
                  {
                    "test": "is_family",
                    "subject": "other",
                    "operator": "==",
                    "value": "cartoon_cat"
                  }
                ]
              },
              "walk_speed_multiplier": 2,
              "sprint_speed_multiplier": 2
            }
          ],
          "max_dist": 16
        }
      },
      "minecraft:run_mode": {
        "minecraft:behavior.melee_attack": {
          "priority": 3,
          "reach_multiplier": 7,
          "speed_multiplier": 1.5
        },
		"minecraft:variant": {
			"value": 0
		},
		"minecraft:collision_box": {
			"width": 0.5,
			"height": 5
		}
      },
      "minecraft:crawl_mode": {
        "minecraft:behavior.melee_attack": {
          "priority": 3,
          "reach_multiplier": 7,
          "speed_multiplier": 1.5
        },
		"minecraft:variant": {
			"value": 1
		},
		"minecraft:collision_box": {
			"width": 0.5,
			"height": 3
		}
      }
    },
    "components": {
      "minecraft:nameable": {},
      "minecraft:type_family": {
        "family": [
          "siren_head",
          "monster"
        ]
      },
      "minecraft:underwater_movement": {
        "value": 0.3
      },
      "minecraft:collision_box": {
        "width": 0.5,
        "height": 5
      },
      "minecraft:behavior.summon_entity": {
        "priority": 1,
        "summon_choices": [
          {
            "min_activation_range": 7,
            "max_activation_range": 9,
            "cooldown_time": 10,
            "weight": 30,
            "cast_duration": 4.1,
            "particle_color": "#FF664D59",
            "start_sound_event": "plop",
            "sequence": [
              {
                "shape": "circle",
                "target": "target",
                "base_delay": 1,
                "delay_per_summon": 0,
                "num_entities_spawned": 1,
                "entity_type": "",
                "size": 0.1,
                "entity_lifespan": 10,
                "sound_event": "prepare.attack"
              }
            ]
          }
        ]
      },
      "minecraft:target_nearby_sensor": {
        "inside_range": 100,
        "outside_range": 100,
        "on_inside_range": {
          "event": "minecraft:change_mode",
          "target": "self"
        },
        "on_outside_range": {
          "event": "minecraft:change_mode",
          "target": "self"
        }
      },
      "minecraft:pushable": {
        "is_pushable": true,
        "is_pushable_by_piston": true
      },
      "minecraft:area_attack": {
        "damage_range": 1,
        "damage_per_tick": 5,
        "cause": "contact",
        "entity_filter": {
          "all_of": [
            {
              "test": "is_family",
              "subject": "other",
              "operator": "!=",
              "value": "inanimate"
            },
            {
              "test": "is_family",
              "subject": "other",
              "operator": "!=",
              "value": "siren_head"
            },
            {
              "test": "is_family",
              "subject": "other",
              "operator": "!=",
              "value": "cartoon_cat"
            }
          ]
        }
      },
      "minecraft:break_blocks": {
        "breakable_blocks": [
          "leaves",
          "leaves2"
        ]
      },
	  "minecraft:hurt_on_condition": {
        "damage_conditions": [
          {
            "filters": {
				"all_of": [
					{
						"test": "has_damage", 
						"subject": "self", 
						"value": "attack"
					},
					{
						"test": "is_family", 
						"subject": "other",
						"value": "player"
					}
				]
			},
            "cause": "attack",
            "damage_per_tick": 300
          }
        ]
      },
      "minecraft:movement.basic": {},
      "minecraft:navigation.climb": {
        "can_path_over_water": true,
        "can_path_from_air": true,
        "can_pass_doors": true,
        "can_open_doors": true
      },
      "minecraft:annotation.break_door": {},
      "minecraft:jump.static": {
      },
      "minecraft:fire_immune": true,
      "minecraft:knockback_resistance": {
        "value": 100
      },
      "minecraft:can_climb": {},
      "minecraft:behavior.float": {
        "priority": 0
      },
      "minecraft:scale": {
        "value": 2.5
      },
      "minecraft:health": {
        "value": 5000,
        "max": 5000
      },
      "minecraft:attack": {
        "damage": 40
      },
      "minecraft:fall_damage": {
        "value": 0
      },
      "minecraft:loot": {
        "table": "loot_tables/entities/siren_head.json"
      },
      "minecraft:behavior.move_towards_restriction": {
        "priority": 5,
        "speed_multiplier": 1
      },
      "minecraft:behavior.random_stroll": {
        "priority": 6,
        "speed_multiplier": 1
      },
      "minecraft:behavior.look_at_player": {
        "priority": 7,
        "look_distance": 6,
        "probability": 0.02
      },
      "minecraft:behavior.random_look_around": {
        "priority": 7
      },
      "minecraft:behavior.hurt_by_target": {
        "priority": 1
      },
      "minecraft:follow_range": {
        "value": 200
      },
      "minecraft:behavior.nearest_attackable_target": {
        "priority": 2,
        "within_radius": 200,
        "reselect_targets": true,
        "entity_types": [
          {
            "filters": {
              "any_of": [
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "player"
                },
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "snowgolem"
                },
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "irongolem"
                },
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "illager"
                }
              ]
            },
            "max_dist": 200,
            "must_see": true,
            "must_see_forget_duration": 10000
          },
          {
            "filters": {
              "any_of": [
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "villager"
                },
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "wandering_trader"
                }
              ]
            },
            "max_dist": 200,
            "must_see": false,
            "must_see_forget_duration": 10000
          },
          {
            "filters": {
              "all_of": [
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "baby_turtle"
                },
                {
                  "test": "in_water",
                  "subject": "other",
                  "operator": "!=",
                  "value": true
                }
              ]
            },
            "max_dist": 200
          }
        ],
        "must_see": true,
        "must_see_forget_duration": 10000
      },
      "minecraft:physics": {}
    },
    "events": {
      "minecraft:entity_spawned": {
        "remove": {},
        "add": {
          "component_groups": [
            "minecraft:siren_head_normal",
            "minecraft:siren_head_calm",
            "minecraft:taking_damage",
            "minecraft:walk"
          ]
        }
      },
      "minecraft:on_calm": {
        "remove": {
          "component_groups": [
            "minecraft:siren_head_normal",
            "minecraft:siren_head_calm",
            "minecraft:start_stomping",
            "minecraft:stomping"
          ]
        },
        "add": {
          "component_groups": [
            "minecraft:siren_head_calm",
            "minecraft:walk"
          ]
        }
      },
      "minecraft:become_angry": {
        "remove": {
          "component_groups": [
            "minecraft:siren_head_calm"
          ]
        },
        "add": {
          "component_groups": [
            "minecraft:siren_head_angry",
            "minecraft:start_stomping",
            "minecraft:walk"
          ]
        }
      },//
      "minecraft:stomp": {
        "remove": {
          "component_groups": [
            "minecraft:start_stomping",
			"minecraft:walk"
          ]
        },
        "add": {
          "component_groups": [
            "minecraft:stomping"
          ]
        }
      },
      "minecraft:stop_stomp": {
        "remove": {
          "component_groups": [
            "minecraft:stomping"
          ]
        },
        "add": {
          "component_groups": [
            "minecraft:start_stomping",
			"minecraft:walk"
          ]
        }
      },
      "minecraft:event_spawn_dead": {
        "remove": {
          "component_groups": [
            "minecraft:siren_head_normal",
            "minecraft:siren_head_calm",
            "minecraft:siren_head_closed",
            "minecraft:siren_head_angry",
            "minecraft:rage"
          ]
        },
        "add": {
          "component_groups": [
            "minecraft:is_dead",
            "boi"
          ]
        }
      },
      "minecraft:grab": {
        "add": {
          "component_groups": [
            "minecraft:siren_grab"
          ]
        }
      },
      "minecraft:stop_grab": {
        "remove": {
          "component_groups": [
            "minecraft:siren_grab"
          ]
        }
      },
      "minecraft:start_knock": {
        "add": {
          "component_groups": [
            "minecraft:knock"
          ]//
        }
      },
      "minecraft:end_roar": {
        "remove": {
          "component_groups": [
            "minecraft:knock"
          ]
        }
      },
      "minecraft:stun": {
        "add": {
          "component_groups": [
            "minecraft:stun",
            "minecraft:resist"
          ]//
        },
        "remove": {
          "component_groups": [
            "minecraft:walk",
            "minecraft:taking_damage"
          ]
        }
      },
      "minecraft:runaway": {
        "add": {
          "component_groups": [
            "minecraft:runaway",
            "minecraft:walk",
            "minecraft:resist"
          ]
        },//
        "remove": {
          "component_groups": [
            "minecraft:stun"
          ]
        }
      },
      "minecraft:cool_down": {
        "add": {
          "component_groups": [
            "minecraft:cool_down",
            "minecraft:resist"
          ]
        },//
        "remove": {
          "component_groups": [
            "minecraft:runaway"
          ]
        }
      },
      "minecraft:comeback": {
        "remove": {
          "component_groups": [
            "minecraft:cool_down",
            "minecraft:resist"
          ]
        },
        "add": {
          "component_groups": [
            "minecraft:taking_damage"
          ]
        }//
      },
      "minecraft:change_mode": {
        "randomize": [
          {
            "weight": 10,
            "add": {
              "component_groups": [
                "minecraft:run_mode"
              ]
            },
            "remove": {
              "component_groups": [
                "minecraft:crawl_mode"
              ]
            }//
          },
          {
            "weight": 1,
            "add": {
              "component_groups": [
                "minecraft:crawl_mode"
              ]
            },
            "remove": {
              "component_groups": [
                "minecraft:run_mode"



© 2023 Quttera Ltd. All rights reserved.