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


{
  "format_version": "1.16.0",
  "minecraft:entity": {
    "description": {
      "identifier": "ycreatures_savanna:savanna_baby_lion",
      "is_spawnable": true,
      "is_summonable": true,
      "is_experimental": false
    },
    "component_groups": {

      "minecraft:basic_parameters": {
        "minecraft:type_family": {
          "family": [ "baby_lion", "feline_attack", "asexual" ]
        },
        "minecraft:timer": {
          "looping": false,
          "time": 1200,
          "time_down_event": {
            "event": "baby_ageable",
            "target": "self"
          }
        },
        "minecraft:interact": {
          "interactions": [
			    {
            "on_interact": {
              "filters": {
                "any_of": [
                  {
                    "test": "has_equipment",
                    "subject": "other",
                    "domain": "hand",
                    "operator": "==",
                    "value": "beef"
                  },
                  {
                    "test": "has_equipment",
                    "subject": "other",
                    "domain": "hand",
                    "operator": "==",
                    "value": "porkchop"
                  },
                  {
                    "test": "has_equipment",
                    "subject": "other",
                    "domain": "hand",
                    "operator": "==",
                    "value": "mutton"
                  },
                  {
                    "test": "has_equipment",
                    "subject": "other",
                    "domain": "hand",
                    "operator": "==",
                    "value": "chicken"
                  },
                  {
                    "test": "has_equipment",
                    "subject": "other",
                    "domain": "hand",
                    "operator": "==",
                    "value": "rabbit"
                  },
                  {
                    "test": "has_equipment",
                    "subject": "other",
                    "domain": "hand",
                    "operator": "==",
                    "value": "ycreatures_savanna:mob_beef"
                  },
                  {
                    "test": "has_equipment",
                    "subject": "other",
                    "domain": "hand",
                    "operator": "==",
                    "value": "ycreatures_savanna:giant_beef"
                  },
                  {
                    "test": "has_equipment",
                    "subject": "other",
                    "domain": "hand",
                    "operator": "==",
                    "value": "ycreatures_savanna:ave_raw"
                  }
                ]
              },
              "event": "baby_ageable_with_food",
              "target": "self"
              },
              "use_item": true,
              "interact_text": "action.interact.feed_baby"
            }
          ]
        },
		    "minecraft:experience_reward": {
          "on_death": "query.last_hit_by_player ? Math.Random(1,3) : 0"
        }
      },

      "minecraft:transform_leao": {
        "minecraft:transformation": {
          "into": "ycreatures_savanna:savanna_leao<minecraft:entity_transform>",
          "transformation_sound": "ageable",
          "drop_equipment": true,
          "delay": {
            "value": 1
          }
        }
      },

      "minecraft:transform_leoa": {
        "minecraft:transformation": {
          "into": "ycreatures_savanna:savanna_leoa<minecraft:entity_transform>",
          "transformation_sound": "ageable",
          "drop_equipment": true,
          "delay": {
            "value": 1
          }
        }
      },

      "minecraft:transform_leao_branco": {
        "minecraft:transformation": {
          "into": "ycreatures_savanna:savanna_leao_branco<minecraft:entity_transform>",
          "transformation_sound": "ageable",
          "drop_equipment": true,
          "delay": {
            "value": 1
          }
        }
      },

      "minecraft:transform_leoa_branca": {
        "minecraft:transformation": {
          "into": "ycreatures_savanna:savanna_leoa_branca<minecraft:entity_transform>",
          "transformation_sound": "ageable",
          "drop_equipment": true,
          "delay": {
            "value": 1
          }
        }
      }

    },

    "components": {
      "minecraft:type_family": {
        "family": [ "baby_lion", "felino", "felino_agressive" ]
      },
      "minecraft:breathable": {
        "totalSupply": 15,
        "suffocateTime": 0
      },
      "minecraft:behavior.melee_attack": {
        "priority": 2,
        "track_target": true,
		    "speed_multiplier": 1.50
      },
      "minecraft:navigation.walk": {
        "can_path_over_water": true,
        "avoid_water": true,
        "avoid_damage_blocks": true
      },
	  "minecraft:persistent": {
      },
      "minecraft:behavior.float": {
        "priority": 0
      },
      "minecraft:behavior.nearest_attackable_target": {
        "priority": 0,
        "within_radius": 16,
        "reselect_targets": true,
          "entity_types": [
            {
              "filters": {
				        "all_of": [
                   {
                     "any_of": [
                       { "test" :  "is_family", "subject" : "other", "value" :  "chicken"},
                       { "test" :  "is_family", "subject" : "other", "value" :  "rabbit"}
                     ]
                   }
                 ]
               },
              "max_dist": 16
            }
          ],
          "must_see": true,
          "attack_interval": 5
        },
      "minecraft:movement.basic": {
      },
      "minecraft:jump.static": {
      },
      "minecraft:can_climb": {
      },
      "minecraft:collision_box": {
        "width": 0.6,
        "height": 0.8
      },
      "minecraft:nameable": {
      },
      "minecraft:despawn": {
        "despawn_from_distance": {}
      },
	    "minecraft:conditional_bandwidth_optimization": {
      },
      "minecraft:behavior.ocelotattack": {
        "priority": 1,
        "walk_speed_multiplier": 0.8,
        "sprint_speed_multiplier": 1.25,
        "sneak_speed_multiplier": 0.6
      },
      "minecraft:movement": {
        "value": 0.3
      },
      "minecraft:behavior.mount_pathing": {
        "priority": 2,
        "speed_multiplier": 1.5,
        "target_dist": 0.0,
        "track_target": true
      },
      "minecraft:behavior.random_stroll": {
        "priority": 6,
        "speed_multiplier": 0.8
      },
      "minecraft:behavior.panic": {
        "priority": 2,
        "speed_multiplier": 1.0
      },
      "minecraft:behavior.look_at_player": {
        "priority": 7,
        "look_distance": 5.0,
        "probability": 0.02
      },
      "minecraft:behavior.random_look_around": {
        "priority": 9
      },
      "minecraft:attack": {
        "damage": {
          "range_min": 2,
          "range_max": 4
        }
      },
      "minecraft:health": {
        "value": 10,
        "max": 12
      },
      "minecraft:leashable": {
        "soft_distance": 4.0,
        "hard_distance": 6.0,
        "max_distance": 10.0
      },
      "minecraft:balloonable": {
      },
      "minecraft:pushable": {
        "is_pushable": true,
        "is_pushable_by_piston": true
      },
      "minecraft:physics": {
      }
    },

    "events": {
      
      "minecraft:entity_spawned": {
        "randomize": [
          {
            "weight": 1,
            "add": {
              "component_groups": [
                "minecraft:basic_parameters"
              ]
            }
          }
        ]
      },

      "minecraft:entity_born": {
        "randomize": [
          {
            "weight": 1,
            "add": {
              "component_groups": [
                "minecraft:basic_parameters"
              ]
            }
          }
        ]
      },

      "baby_ageable": {
        "randomize": [
          {
            "weight": 48,
            "add": {
              "component_groups": [
                "minecraft:transform_leoa"
              ]
            }
          },
          {
            "weight": 32,
            "add": {
              "component_groups": [
                "minecraft:transform_leao"
              ]
            }
          },
          {
            "weight": 1,
            "add": {
              "component_groups": [
                "minecraft:transform_leao_branco"
              ]
            }
          },
          {
            "weight": 1,
            "add": {
              "component_groups": [
                "minecraft:transform_leoa_branca"
              ]
            }
          }
        ]
      },

      "baby_ageable_with_food": {
        "randomize": [
          {
            "weight": 256,
            "run_command": {
              "target": "self",
              "command": [
                "particle minecraft:crop_growth_emitter ~ ~1 ~",
                "playsound mob.goat.eat @a[r=8] ~ ~ ~ 6.0 1.2"
              ]
            }
          },
          {
            "weight": 48,
            "add": {
              "component_groups": [
                "minecraft:transform_leoa"
              ]
            }
          },
          {
            "weight": 32,
            "add": {
              "component_groups": [
                "minecraft:transform_leao"
              ]
            }
          },
          {
            "weight": 1,
            "add": {
              "component_groups": [
                "minecraft:transform_leao_branco"
              ]
            }
          },
          {
            "weight": 1,
            "add": {
              "component_groups": [
                "minecraft:transform_leoa_branca"
              ]
            }
          }
        ]
      }
    }
  }
}



© 2021 Quttera Ltd. All rights reserved.