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


{
  "format_version": "1.21.0",
  "minecraft:entity": {
    "description": {
      "identifier": "biomes:ybiomes_bird",
      "spawn_category": "creature",
      "is_spawnable": true,
      "is_summonable": true,
      "is_experimental": false,
      "scripts": {
        "animate": [
          "entity_assets"
        ]
      },
      "animations": {
        "entity_assets": "controller.animation.entity_floating_factor"
      }
    },
    "component_groups": {
      "bird:blackbird": {
        "minecraft:variant": {
          "value": 0
        }
      },
      "bird:blue_tit": {
        "minecraft:variant": {
          "value": 1
        }
      },
      "bird:cardinal": {
        "minecraft:variant": {
          "value": 2
        }
      },
      "bird:earth_canary": {
        "minecraft:variant": {
          "value": 3
        }
      },
      "bird:eastern_bluebird": {
        "minecraft:variant": {
          "value": 4
        }
      },
      "bird:european_robin": {
        "minecraft:variant": {
          "value": 5
        }
      },
      "bird:housesparrow": {
        "minecraft:variant": {
          "value": 6
        }
      },
      "bird:wren": {
        "minecraft:variant": {
          "value": 7
        }
      },
      "minecraft:bird": {
        "minecraft:experience_reward": {
          "on_death": "query.last_hit_by_player ? Math.Random(1,3) : 0"
        },
        "minecraft:loot": {
          "table": "loot_tables/entities/parrot.json"
        }
      },
      "minecraft:bird_walk": {
        "minecraft:navigation.walk": {
          "can_path_over_water": true,
          "avoid_water": true,
          "avoid_damage_blocks": true
        },
        "minecraft:movement.skip": {
          "max_turn": 30
        },
        "minecraft:jump.dynamic": {},
        "minecraft:behavior.random_stroll": {
          "priority": 2,
          "speed_multiplier": 1.0
        },
        "minecraft:physics": {},
        "minecraft:movement": {
          "value": 0.4
        },
        "minecraft:can_climb": {},
        "minecraft:behavior.random_look_around": {
          "priority": 8
        },
        "minecraft:behavior.look_at_player": {
          "priority": 6,
          "look_distance": 2.0
        }
      },
      "minecraft:bird_fly": {
        "minecraft:movement": {
          "value": 0.3
        },
        "minecraft:flying_speed": {
          "value": 0.22
        },
        "minecraft:navigation.hover": {
          "can_path_over_water": true,
          "can_sink": false,
          "can_pass_doors": false,
          "can_path_from_air": true,
          "avoid_water": true,
          "avoid_damage_blocks": true,
          "avoid_sun": false
        },
        "minecraft:movement.hover": {},
        "minecraft:can_fly": {},
        "minecraft:physics": {
          "has_gravity": false
        },
        "minecraft:behavior.random_hover": {
          "priority": 12,
          "xz_dist": 16,
          "y_dist": 16,
          "y_offset": -1,
          "interval": 1,
          "hover_height": [
            6,
            12
          ]
        }
      },
      "minecraft:bird_wild": {
        "minecraft:timer": {
          "time": [
            15,
            30
          ],
          "looping": true,
          "time_down_event": {
            "event": "minecraft:optional_take_fly",
            "target": "self"
          }
        },
        "minecraft:attack": {
          "damage": 1
        },
        "minecraft:behavior.melee_attack": {
          "priority": 3,
          "speed_multiplier": 1.3,
          "track_target": false
        },
        "minecraft:behavior.nearest_attackable_target": {
          "priority": 2,
          "within_radius": 8,
          "reselect_targets": true,
          "entity_types": [
            {
              "filters": {
                "any_of": [
                  {
                    "test": "is_family",
                    "subject": "other",
                    "value": "caterpillar"
                  }
                ]
              },
              "max_dist": 8
            }
          ],
          "must_see": true,
          "must_see_forget_duration": 17.0
        },
        "minecraft:health": {
          "value": 8,
          "max": 8
        },
        "minecraft:behavior.tempt": {
          "priority": 4,
          "speed_multiplier": 0.8,
          "within_radius": 16,
          "can_tempt_vertically": true,
          "items": [
            "biomes:maggot"
          ]
        },
        "minecraft:environment_sensor": {
          "triggers": [
            {
              "filters": {
                "any_of": [
                  {
                    "test": "distance_to_nearest_player",
                    "operator": "<",
                    "value": 3
                  },
                  {
                    "test": "is_underwater",
                    "subject": "self",
                    "operator": "==",
                    "value": true
                  }
                ]
              },
              "event": "minecraft:abort_walking"
            }
          ]
        },
        "minecraft:tameable": {
          "probability": 0.33,
          "tame_items": [
            "biomes:maggot"
          ],
          "tame_event": {
            "event": "minecraft:on_tame",
            "target": "self"
          }
        }
      },
      "minecraft:bird_tame": {
        "minecraft:is_tamed": {},
        "minecraft:health": {
          "value": 12,
          "max": 12
        },
        "minecraft:behavior.tempt": {
          "priority": 4,
          "speed_multiplier": 1.2,
          "within_radius": 12,
          "can_tempt_vertically": true,
          "items": [
            "biomes:maggot",
            "biomes:lavender_item"
          ]
        },
        "minecraft:behavior.random_stroll": {
          "priority": 2,
          "speed_multiplier": 1.0
        },
        "minecraft:interact": {
          "interactions": [
            {
              "on_interact": {
                "filters": {
                  "all_of": [
                    {
                      "test": "has_equipment",
                      "subject": "other",
                      "domain": "hand",
                      "operator": "==",
                      "value": "biomes:lavender_item"
                    },
                    {
                      "test": "is_owner",
                      "subject": "other",
                      "operator": "==",
                      "value": true
                    },
                    {
                      "test": "has_component",
                      "operator": "not",
                      "value": "minecraft:trade_resupply"
                    }
                  ]
                },
                "event": "minecraft:ability_follow",
                "target": "self"
              },
              "use_item": true,
              "interact_text": "action.interact.call_bird"
            },
            {
              "on_interact": {
                "filters": {
                  "all_of": [
                    {
                      "test": "is_owner",
                      "subject": "other",
                      "operator": "==",
                      "value": true
                    },
                    {
                      "test": "has_component",
                      "value": "minecraft:trade_resupply"
                    }
                  ]
                },
                "event": "minecraft:stop_follow",
                "target": "self"
              },
              "interact_text": "action.interact.stop_bird"
            }
          ]
        }
      },
      "minecraft:bird_tamed_is_follow": {
        "minecraft:trade_resupply": {},
        "minecraft:behavior.follow_owner": {
          "priority": 0,
          "speed_multiplier": 1.25,
          "start_distance": 12,
          "stop_distance": 2
        }
      }
    },
    "components": {
      "minecraft:is_hidden_when_invisible": {},
      "minecraft:type_family": {
        "family": [
          "animal",
          "mob",
          "bird"
        ]
      },
      "minecraft:breathable": {
        "total_supply": 15,
        "suffocate_time": 0
      },
      "minecraft:collision_box": {
        "width": 0.3,
        "height": 0.5
      },
      "minecraft:nameable": {},
      "minecraft:hurt_on_condition": {
        "damage_conditions": [
          {
            "filters": {
              "test": "in_lava",
              "subject": "self",
              "operator": "==",
              "value": true
            },
            "cause": "lava",
            "damage_per_tick": 4
          }
        ]
      },
      "minecraft:damage_sensor": {
        "triggers": {
          "cause": "fall",
          "deals_damage": false
        }
      },
      "minecraft:pushable": {
        "is_pushable": true,
        "is_pushable_by_piston": true
      },
      "minecraft:despawn": {
        "despawn_from_distance": {}
      },
      "minecraft:behavior.float": {
        "priority": 0
      },
      "minecraft:behavior.panic": {
        "priority": 0,
        "speed_multiplier": 1.25
      },
      "minecraft:conditional_bandwidth_optimization": {},
      "minecraft:leashable": {
        "soft_distance": 4.0,
        "hard_distance": 6.0,
        "max_distance": 10.0
      }
    },
    "events": {
      "minecraft:entity_spawned": {
        "sequence": [
          {
            "add": {
              "component_groups": [
                "minecraft:bird",
                "minecraft:bird_wild",
                "minecraft:bird_walk"
              ]
            }
          },
          {
            "randomize": [
              {
                "weight": 3,
                "add": {
                  "component_groups": [
                    "bird:housesparrow"
                  ]
                }
              },
              {
                "weight": 1,
                "add": {
                  "component_groups": [
                    "bird:earth_canary"
                  ]
                }
              }
            ]
          },
          {
            "filters": {
              "any_of": [
                {
                  "test": "has_biome_tag",
                  "value": "new_roofed"
                },
                {
                  "test": "has_biome_tag",
                  "value": "shield"
                }
              ]
            },
            "randomize": [
              {
                "weight": 4,
                "add": {
                  "component_groups": [
                    "bird:cardinal"
                  ]
                }
              },
              {
                "weight": 1,
                "add": {
                  "component_groups": [
                    "bird:housesparrow"
                  ]
                }
              },
              {
                "weight": 1,
                "add": {
                  "component_groups": [
                    "bird:earth_canary"
                  ]
                }
              }
            ]
          },
          {
            "filters": {
              "any_of": [
                {
                  "test": "has_biome_tag",
                  "value": "new_forest"
                },
                {
                  "test": "has_biome_tag",
                  "value": "temperate"
                }
              ]
            },
            "randomize": [
              {
                "weight": 5,
                "add": {
                  "component_groups": [
                    "bird:wren"
                  ]
                }
              },
              {
                "weight": 2,
                "add": {
                  "component_groups": [
                    "bird:blackbird"
                  ]
                }
              },
              {
                "weight": 1,
                "add": {
                  "component_groups": [
                    "bird:housesparrow"
                  ]
                }
              },
              {
                "weight": 1,
                "add": {
                  "component_groups": [
                    "bird:earth_canary"
                  ]
                }
              }
            ]
          },
          {
            "filters": {
              "any_of": [
                {
                  "test": "has_biome_tag",
                  "value": "taiga"
                },
                {
                  "test": "has_biome_tag",
                  "value": "frozen_taiga"
                }
              ]
            },
            "randomize": [
              {
                "weight": 3,
                "add": {
                  "component_groups": [
                    "bird:european_robin"
                  ]
                }
              },
              {
                "weight": 1,
                "add": {
                  "component_groups": [
                    "bird:wren"
                  ]
                }
              }
            ]
          },
          {
            "filters": {
              "any_of": [
                {
                  "test": "has_biome_tag",
                  "value": "plains"
                }
              ]
            },
            "randomize": [
              {
                "weight": 4,
                "add": {
                  "component_groups": [
                    "bird:eastern_bluebird"
                  ]
                }
              },
              {
                "weight": 1,
                "add": {
                  "component_groups": [
                    "bird:housesparrow"
                  ]
                }
              },
              {
                "weight": 1,
                "add": {
                  "component_groups": [
                    "bird:earth_canary"
                  ]
                }
              }
            ]
          },
          {
            "filters": {
              "any_of": [
                {
                  "test": "has_biome_tag",
                  "value": "birch_grove"
                }
              ]
            },
            "randomize": [
              {
                "weight": 5,
                "add": {
                  "component_groups": [
                    "bird:blue_tit"
                  ]
                }
              },
              {
                "weight": 3,
                "add": {
                  "component_groups": [
                    "bird:blackbird"
                  ]
                }
              },
              {
                "weight": 1,
                "add": {
                  "component_groups": [
                    "bird:housesparrow"
                  ]
                }
              },
              {
                "weight": 1,
                "add": {
                  "component_groups": [
                    "bird:earth_canary"
                  ]
                }
              }
            ]
          },
          {
            "filters": {
              "any_of": [
                {
                  "test": "has_biome_tag",
                  "value": "swamp"
                },
                {
                  "test": "has_biome_tag",
                  "value": "mangrove_swamp"
                }
              ]
            },
            "randomize": [
              {
                "weight": 4,
                "add": {
                  "component_groups": [
                    "bird:blue_tit"
                  ]
                }
              },
              {
                "weight": 1,
                "add": {
                  "component_groups": [
                    "bird:housesparrow"
                  ]
                }
              },
              {
                "weight": 1,
                "add": {
                  "component_groups": [
                    "bird:earth_canary"
                  ]
                }
              }
            ]
          }
        ]
      },
      "minecraft:on_tame": {
        "remove": {
          "component_groups": [
            "minecraft:bird_wild",
            "minecraft:bird_fly"
          ]
        },
        "add": {
          "component_groups": [
            "minecraft:bird_tame",
            "minecraft:bird_walk"
          ]
        }
      },
      "minecraft:abort_walking": {
        "remove": {
          "component_groups": [
            "minecraft:bird_walk"
          ]
        },
        "add": {
          "component_groups": [
            "minecraft:bird_fly"
          ]
        }
      },
      "minecraft:ability_follow": {
        "add": {
          "component_groups": [
            "minecraft:bird_tamed_is_follow",
            "minecraft:bird_fly"
          ]
        },
        "remove": {
          "component_groups": [
            "minecraft:bird_walk"
          ]
        }
      },
      "minecraft:stop_follow": {
        "remove": {
          "component_groups": [
            "minecraft:bird_tamed_is_follow",
            "minecraft:bird_fly"
          ]
        },
        "add": {
          "component_groups": [
            "minecraft:bird_walk"
          ]
        }
      },
      "minecraft:optional_take_fly": {
        "randomize": [
          {
            "weight": 1,
            "remove": {
              "component_groups": [
                "minecraft:bird_fly"
              ]
            },
            "add": {
              "component_groups": [
                "minecraft:bird_walk"
              ]
            }
          },
          {
            "weight": 1,
            "remove": {
              "component_groups": [
                "minecraft:bird_walk"
              ]
            },
            "add": {
              "component_groups": [
                "minecraft:bird_fly"
              ]
            }
          }
        ]
      }
    }
  }
}



© 2023 Quttera Ltd. All rights reserved.