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_kobof",
      "is_spawnable": true,
      "is_summonable": true,
      "is_experimental": false,
	  "runtime_identifier": "minecraft:sheep"
    },
    "component_groups": {

     "minecraft:baby": {
        "minecraft:is_baby": {
        },
        "minecraft:scale": {
          "value": 0.7
        },
        "minecraft:health": {
          "value": 8,
          "max": 8
        },
        "minecraft:ageable": {
          "duration": 1200,
          "feedItems": "wheat",
          "grow_up": {
            "event": "minecraft:ageable_grow_up",
            "target": "self"
          }
        },
        "minecraft:behavior.follow_parent": {
          "priority": 2,
          "speed_multiplier": 1.35
        }
      },

	 "minecraft:adult": {
        "minecraft:loot": {
          "table": "loot_tables/entities/drop_leather.json"
        },
		"minecraft:experience_reward": {
          "on_bred": "Math.Random(1,7)",
          "on_death": "query.last_hit_by_player ? Math.Random(1,3) : 0"
        },
		"minecraft:knockback_resistance": {
          "value": 0.2
        },
        "minecraft:scale": {
          "value": 1.2
        },
		"minecraft:behavior.eat_block": {
		  "priority": 4,
		  "success_chance": "query.is_baby ? 0.02 : 0.001",
		  "time_until_eat": 10.0,
		  "eat_and_replace_block_pairs": [
		    {
			  "eat_block": "minecraft:grass",
			  "replace_block": "minecraft:dirt"
	        }
	      ],
          "on_eat": {
            "event": "minecraft:on_eat",
            "target": "self"
          }
		},
        "minecraft:behavior.breed": {
          "priority": 2,
          "speed_multiplier": 1.25
        },
        "minecraft:breedable": {
          "requireTame": true,
		  "environment_requirements": {
            "blocks": "sawdust_bedding",
            "count": 4,
            "radius": 4
          },
		  "extra_baby_chance": 0.3,
          "breedItems": "hay_block",
          "breedsWith": {
            "mateType": "ycreatures_savanna:savanna_kobo",
            "babyType": "ycreatures_savanna:savanna_kobof",
            "breed_event": {
              "event": "minecraft:entity_born",
              "target": "baby"
            }
          }
        }
      },
	  
      "minecraft:wild": {
		"minecraft:health": {
          "value": 20,
          "max": 20
        },
		"minecraft:tameable": {
          "probability": 0.33,
          "tame_items": "hay_block",
          "tame_event": {
            "event": "minecraft:on_tame",
            "target": "self"
          }
        },
        "minecraft:behavior.avoid_mob_type": {
        "priority": 4,
        "entity_types": [
          {
            "filters": {
              "any_of": [
                {
                  "all_of": [
                    { "test": "is_family", "subject": "other", "value": "felino" },
                    { "test": "is_sneaking", "subject": "other", "operator": "!=", "value": true }
                  ]
                },
				{
                  "all_of": [
                    { "test": "is_family", "subject": "other", "value": "player" },
                    { "test": "has_equipment", "subject": "other", "domain": "torso", "operator": "!=", "value": "ycreatures_savanna:zebra_fur_coat" }
                  ]
                }
              ]
            },
            "max_dist": 10,
            "walk_speed_multiplier": 1.45,
            "sprint_speed_multiplier": 1.55
          }
        ]
       }
      },

      "minecraft:tame": {
        "minecraft:is_tamed": {
        },
		"minecraft:persistent": {
        },
        "minecraft:healable": {
          "items": [
            {
              "item": "ycreatures_savanna:mucua_oil",
              "heal_amount": 8
            }
          ]
        },
        "minecraft:interact": {
          "interactions": [
			{
				"on_interact": {
					"filters": {
						"all_of": [
							{ "test": "has_equipment", "subject": "other", "domain": "hand", "operator": "==", "value": "ycreatures_savanna:medalha" },
							{ "test": "is_owner", "subject": "other", "operator": "==", "value": true },
							{ "test": "has_component", "operator": "not", "value": "minecraft:shareables" }
						]
					},
					"event": "minecraft:on_follow",
					"target": "self"
				},
				"use_item": true,
				"interact_text": "action.interact.on_follow"
			},
			{
				"on_interact": {
					"filters": {
						"all_of": [
							{ "test": "is_owner", "subject": "other", "operator": "==", "value": true },
							{ "test": "has_component", "value": "minecraft:shareables" }
						]
					},
					"event": "minecraft:stop_follow",
					"target": "self"
				},
					"add_items": {
                        "table": "loot_tables/give/medalha.json"
                      },
				"interact_text": "action.interact.stop_follow"
					}
                ]
            },
        "minecraft:health": {
          "value": 30,
          "max": 30
        }
      },
	  
	  "minecraft:animal_follow": {
      "minecraft:shareables": {
        "all_items": false,
        "all_items_max_amount": 1,
        "items": [
		  { "item": "ycreatures_savanna:medalha", "priority": 0, "max_amount": 1 }
        ]
      },
	  "minecraft:loot": {
          "table": "loot_tables/give/medalha.json"
        },
		  "minecraft:behavior.follow_owner": {
		  "priority": 0,
		  "speed_multiplier": 1.25,
		  "start_distance": 8,
		  "stop_distance": 2
	    }
	  }
    },

    "components": {
      "minecraft:type_family": {
        "family": [ "kobo", "anti", "ant", "antilope_mount", "prey_for_leopard" ]
      },
      "minecraft:breathable": {
        "totalSupply": 15,
        "suffocateTime": 0
      },
      "minecraft:navigation.walk": {
        "can_path_over_water": true,
        "avoid_water": true,
        "avoid_damage_blocks": true
      },
      "minecraft:behavior.float": {
        "priority": 0
      },
      "minecraft:movement.basic": {
      },
      "minecraft:jump.static": {
      },
	  "minecraft:conditional_bandwidth_optimization": {
      },
      "minecraft:can_climb": {
      },
      "minecraft:collision_box": {
        "width": 0.8,
        "height": 1.0
      },
      "minecraft:nameable": {
      },
      "minecraft:despawn": {
        "despawn_from_distance": {}
      },
      "minecraft:movement": {
        "value": 0.3
      },
      "minecraft:behavior.panic": {
        "priority": 2,
        "speed_multiplier": 1.85
      },
      "minecraft:behavior.random_stroll": {
        "priority": 5,
        "speed_multiplier": 0.8
      },
      "minecraft:behavior.look_at_player": {
        "priority": 8,
        "look_distance": 5.0,
        "probability": 0.02
      },
      "minecraft:behavior.random_look_around": {
        "priority": 6
      },
      "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": 16,
            "add": {
              "component_groups": [
                "minecraft:adult",
                "minecraft:wild"
              ]
            }
          },
          {
            "weight": 1,
            "add": {
              "component_groups": [
                "minecraft:baby"
              ]
            }
          }
        ]
      },

      "minecraft:entity_born": {
        "add": {
          "component_groups": [
            "minecraft:baby"
          ]
        }
      },

      "minecraft:ageable_grow_up": {
        "remove": {
          "component_groups": [
            "minecraft:baby"
          ]
        },
        "add": {
          "component_groups": [
            "minecraft:adult",
			"minecraft:wild"
          ]
        }
      },
	  
      "minecraft:on_follow": {
        "remove": {
          "component_groups": []
        },
        "add": {
          "component_groups": [
            "minecraft:animal_follow"
          ]
        },
		"run_command": {
          "target": "self",
          "command": [
            "playsound mob.goat.eat @a[r=8] ~ ~ ~ 6.0 2.0"
          ]
        }
      },
	  
      "minecraft:stop_follow": {
        "remove": {
          "component_groups": [
            "minecraft:animal_follow"
          ]
        },
        "add": {
          "component_groups": []
        },
		"run_command": {
		  "command": [
			"playsound mob.goat.eat @a[r=8] ~ ~ ~ 6.0 0.4"
		  ]
	    }
      },

      "minecraft:on_tame": {
        "remove": {
          "component_groups": [
            "minecraft:wild"
          ]
        },
        "add": {
          "component_groups": [
            "minecraft:tame"
          ]
        }
      },
	  
	  "minecraft:on_eat": {
 		"run_command": {
			"command": [
			"effect @s regeneration 5 250 true"
		  ]
	    }
      }
    }
  }
}



© 2021 Quttera Ltd. All rights reserved.