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

      "minecraft:baby": {
        "minecraft:is_baby": {
        },
        "minecraft:scale": {
          "value": 0.5
        },
        "minecraft:health": {
          "value": 8,
          "max": 8
        },
        "minecraft:ageable": {
          "duration": 1200,
          "feedItems": "ycreatures_savanna:termite_appetizer",
          "grow_up": {
            "event": "minecraft:ageable_grow_up",
            "target": "self"
          }
        }
      },
	 
	  "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": 2,
		  "speed_multiplier": 1.25,
		  "start_distance": 8,
		  "stop_distance": 2
	    }
	  },

    "minecraft:pangolin_scared": {
      "minecraft:behavior.roll": {
        "priority": 0,
        "probability": 100
      },
	  "minecraft:break_blocks": {
        "breakable_blocks": [
          "ycreatures_savanna:baobab_planks_gnaw",
		  "ycreatures_savanna:baobab_leaves",
		  "ycreatures_savanna:baobab_sapling",
		  "ycreatures_savanna:dead_shrub_grass",
		  "ycreatures_savanna:dead_weed_grass",
		  "ycreatures_savanna:eagle_nest",
		  "ycreatures_savanna:eagle_nest_egg",
		  "ycreatures_savanna:eagle_nest_egg_feathered",
		  "ycreatures_savanna:termite_nest",
		  "ycreatures_savanna:termite_nest_disocupate",
		  "ycreatures_savanna:termite_nest_sawdusted",
		  "ycreatures_savanna:jabuti_egg_block1s1",
		  "ycreatures_savanna:jabuti_egg_block1s2",
		  "ycreatures_savanna:jabuti_egg_block2s1",
		  "ycreatures_savanna:jabuti_egg_block2s2",
		  "ycreatures_savanna:jabuti_egg_block3s1",
		  "ycreatures_savanna:jabuti_egg_block3s2",
		  "ycreatures_savanna:jabuti_egg_block4s1",
		  "ycreatures_savanna:jabuti_egg_block4s2",
		  "ycreatures_savanna:crocodilo_egg_block1s1",
		  "ycreatures_savanna:crocodilo_egg_block1s2",
		  "ycreatures_savanna:crocodilo_egg_block2s1",
		  "ycreatures_savanna:crocodilo_egg_block2s2",
		  "ycreatures_savanna:crocodilo_egg_block3s1",
		  "ycreatures_savanna:crocodilo_egg_block3s2",
		  "ycreatures_savanna:crocodilo_egg_block4s1",
		  "ycreatures_savanna:crocodilo_egg_block4s2",
		  "ycreatures_savanna:monitor_egg_block1s1",
		  "ycreatures_savanna:monitor_egg_block1s2",
		  "ycreatures_savanna:monitor_egg_block2s1",
		  "ycreatures_savanna:monitor_egg_block2s2",
		  "ycreatures_savanna:monitor_egg_block3s1",
		  "ycreatures_savanna:monitor_egg_block3s2",
		  "ycreatures_savanna:monitor_egg_block4s1",
		  "ycreatures_savanna:monitor_egg_block4s2",
		  "ycreatures_savanna:block_mucua_1",
		  "ycreatures_savanna:block_mucua_2",
		  "ycreatures_savanna:block_mucua_3",
		  "bamboo",
          "bamboo_sapling",
          "beetroot",
          "brown_mushroom",
          "carrots",
          "carved_pumpkin",
          "chorus_flower",
          "chorus_plant",
          "deadbush",
          "double_plant",
          "leaves",
          "leaves2",
          "lit_pumpkin",
          "melon_block",
          "melon_stem",
          "potatoes",
          "pumpkin",
          "pumpkin_stem",
          "red_flower",
          "red_mushroom",
          "crimson_fungus",
          "warped_fungus",
          "reeds",
          "sapling",
          "snow_layer",
          "sweet_berry_bush",
          "tallgrass",
          "turtle_egg",
          "vine",
          "waterlily",
          "wheat",
          "yellow_flower"
        ]
      },
      "minecraft:area_attack" : {
        "damage_range": 0.2,
        "damage_per_tick": 2,
        "cause": "contact",
        "entity_filter": {
          "all_of": [
            { "test": "is_family", "subject": "other", "operator": "!=", "value": "pangolin" }
          ]
        }
      },
      "minecraft:damage_sensor": {
        "triggers": {
          "cause": "all",
          "deals_damage": false
        }
      },
      "minecraft:behavior.avoid_mob_type": {
        "priority": 1,
        "entity_types": [
          {
            "filters": {
              "all_of": [
                {
                  "any_of": [
                    { "test": "is_family", "subject": "other", "value": "player" }
                  ]
                }
              ]
            },
            "max_dist": 6,
            "walk_speed_multiplier": 1.20,
            "sprint_speed_multiplier": 1.30
          }
        ]
       },
      "minecraft:environment_sensor": {
        "triggers": {
          "filters": {
            "test": "distance_to_nearest_player",
            "operator": ">",
            "value": 16.0
          },
          "event": "minecraft:no_scared"
        }
      }
	},

    "minecraft:pangolin_wander": {
      "minecraft:behavior.random_stroll": {
        "priority": 6,
        "speed_multiplier": 0.8
      },
      "minecraft:damage_sensor": {
        "triggers": {
          "cause": "fall",
          "deals_damage": true,
          "damage_modifier": -10
        }
      },
      "minecraft:behavior.nearest_attackable_target": {
        "priority": 0,
        "within_radius": 12,
        "reselect_targets": true,
          "entity_types": [
            {
              "filters": {
				        "all_of": [
                   {
                     "any_of": [
                       { "test" :  "is_family", "subject" : "other", "value" :  "cupim"}
                     ]
                   }
                 ]
               },
              "max_dist": 12
            }
          ],
        "must_see": true,
         "attack_interval": 5
        }
	  },
	  
	  "minecraft:scare_sensor": {
		"minecraft:entity_sensor": {
          "sensor_range": 2,
          "relative_range": false,
          "minimum_count": 1,
          "event_filters": {
            "any_of": [
              { "test": "is_family", "subject": "other", "value": "player" },
			  { "test": "is_family", "subject": "other", "value": "scary_animal" }
            ]
          },
          "event": "minecraft:become_scared"
        }
	  },

      "minecraft:adult": {
        "minecraft:loot": {
          "table": "loot_tables/entities/mob.json"
        },
		    "minecraft:experience_reward": {
          "on_bred": "Math.Random(1,7)",
          "on_death": "query.last_hit_by_player ? Math.Random(1,3) : 0"
        },
        "minecraft:behavior.breed": {
          "priority": 2,
          "speed_multiplier": 1.25
        },
        "minecraft:breedable": {
          "requireTame": true,
		  "environment_requirements": {
            "blocks": "sawdust_bedding",
            "count": 9,
            "radius": 6
          },
          "breedItems": "ycreatures_savanna:beetroot",
          "breedsWith": {
            "mateType": "ycreatures_savanna:savanna_pangolin",
            "babyType": "ycreatures_savanna:savanna_pangolin",
            "breed_event": {
              "event": "minecraft:entity_born",
              "target": "baby"
            }
          }
        }
      },
	  
      "minecraft:wild": {
        "minecraft:attack": {
          "damage": {
            "range_min": 2,
            "range_max": 3
          }
        },
	      "minecraft:tameable": {
          "probability": 0.33,
          "tame_items": "ycreatures_savanna:termite_appetizer",
          "tame_event": {
            "event": "minecraft:on_tame",
            "target": "self"
          }
        },
		    "minecraft:health": {
          "value": 16,
          "max": 16
        },
        "minecraft:behavior.nearest_attackable_target": {
        "priority": 3,
        "within_radius": 35,
        "reselect_targets": true,
          "entity_types": [
            {
              "filters": {
                "any_of": [
                  { "test" :  "is_family", "subject" : "other", "value" :  "cupim"}
                ]
               },
               "max_dist": 35
             }
          ],
          "must_see": true,
          "attack_interval": 5
        }
      },

      "minecraft:tame": {
        "minecraft:is_tamed": {
        },
        "minecraft:behavior.roll": {
          "priority": 10,
          "probability": 0.002
        },
        "minecraft:attack": {
          "damage": 4
        },
        "minecraft:behavior.random_stroll": {
          "priority": 6,
          "speed_multiplier": 0.8
        },
        "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:behavior.breed": {
          "priority": 2
        },
        "minecraft:health": {
          "value": 20,
          "max": 20
        }
      }
    },

    "components": {
      "minecraft:type_family": {
        "family": [ "pangolin" ]
      },
      "minecraft:breathable": {
        "totalSupply": 15,
        "suffocateTime": 0
      },
      "minecraft:behavior.melee_attack": {
        "priority": 1,
        "track_target": true,
        "speed_multiplier": 1.25
      },
      "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:despawn": {
        "despawn_from_distance": {}
      },
      "minecraft:can_climb": {
      },
      "minecraft:collision_box": {
        "width": 0.5,
        "height": 1.3
      },
      "minecraft:nameable": {
      },
      "minecraft:movement": {
        "value": 0.3
      },
      "minecraft:behavior.panic": {
        "priority": 1,
        "speed_multiplier": 1.35
      },
      "minecraft:behavior.mount_pathing": {
        "priority": 3,
        "speed_multiplier": 1.5,
        "target_dist": 0.0,
        "track_target": true
      },
      "minecraft:behavior.breed": {
        "priority": 3,
        "speed_multiplier": 1.25
      },
      "minecraft:behavior.look_at_player": {
        "priority": 7,
        "look_distance": 5.0,
        "probability": 0.02
      },
      "minecraft:behavior.random_look_around": {
        "priority": 9
      },
      "minecraft:leashable": {
        "soft_distance": 4.0,
        "hard_distance": 6.0,
        "max_distance": 10.0
      },
      "minecraft:balloonable": {
      },
	    "minecraft:conditional_bandwidth_optimization": {
      },
      "minecraft:pushable": {
        "is_pushable": true,
        "is_pushable_by_piston": true
      },
      "minecraft:physics": {
      }
    },

    "events": {
      "minecraft:entity_spawned": {
        "randomize": [
          {
            "weight": 9,
            "add": {
              "component_groups": [
                "minecraft:adult",
                "minecraft:wild",
                "minecraft:pangolin_wander",
				"minecraft:scare_sensor"
              ]
            }
          },
          {
            "weight": 1,
            "add": {
              "component_groups": [
                "minecraft:baby",
                "minecraft:pangolin_wander",
				"minecraft:scare_sensor"
              ]
            }
          }
        ]
      },

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

      "minecraft:entity_transformed": {
        "remove": {
        },
        "add": {
          "component_groups": [
            "minecraft:baby",
            "minecraft:pangolin_wander"
          ]
        }
      },

      "minecraft:ageable_grow_up": {
        "remove": {
          "component_groups": [
            "minecraft:baby"
          ]
        },
        "add": {
          "component_groups": [
            "minecraft:adult",
			      "minecraft:wild",
            "minecraft:pangolin_wander"
          ]
        }
      },

      "minecraft:on_tame": {
        "remove": {
          "component_groups": [
            "minecraft:wild",
            "minecraft:pangolin_wander",
            "minecraft:pangolin_scared"
          ]
        },
        "add": {
          "component_groups": [
            "minecraft:tame"
          ]
        }
      },

      "minecraft:become_scared": {
        "remove": {
          "component_groups": [
            "minecraft:pangolin_wander",
			"minecraft:scare_sensor"
          ]
        },
        "add": {
          "component_groups": [
            "minecraft:pangolin_scared"
          ]
        }
      },

      "minecraft:no_scared": {
        "remove": {
          "component_groups": [
            "minecraft:pangolin_scared"
          ]
        },
        "add": {
          "component_groups": [
            "minecraft:pangolin_wander",
			"minecraft:scare_sensor"
          ]
        }
      },

      "minecraft:on_follow": {
        "remove": {
          "component_groups": []
        },
        "add": {
          "component_groups": [
            "minecraft:animal_follow"
          ]
        }
      },

      "minecraft:stop_follow": {
        "remove": {
          "component_groups": [
            "minecraft:animal_follow"
          ]
        },
        "add": {
          "component_groups": []
        }
      }
    }
  }
}



© 2021 Quttera Ltd. All rights reserved.