#Ender Pearl Explosion Immunity

1 messages · Page 1 of 1 (latest)

dire orbit
#

I've been trying to change the ender pearl entity so that it can't be destroyed by explosions or end crystals while still having the ability to teleport normally. The pearls are still being broken by crystal explosions on my realm, so I tried a few components to make it immune to explosion and entity_attack damage, but it didn't seem to work.

I would greatly appreciate your thoughts or recommendations if you have any knowledge of this or are aware of a more dependable way to duplicate Java-like pearl behaviour in Bedrock without breaking the main mechanics.

#

i currently have this but i think its just the default ender_pearl.json with a couple changes to the power & gravity

#
{
    "format_version": "1.12.0",
    "minecraft:entity": {
      "description": {
        "identifier": "minecraft:ender_pearl",
        "is_spawnable": false,
        "is_summonable": false,
        "is_experimental": false
      },
      "component_groups": {
        "minecraft:no_spawn": {
          "minecraft:projectile": {
            "on_hit": {
              "teleport_owner": { },
              "remove_on_hit": { }
            },
            "power": 2,
            "gravity": 0.04,
            "angle_offset": 0.0,
            "inertia": 1,
            "liquid_inertia": 1
          }
        }
      },
  
      "components": {
        "minecraft:collision_box": {
          "width": 0.15,
          "height": 0.15
        },
        "minecraft:projectile": {
          "on_hit": {
            "teleport_owner": { },
            "spawn_chance": {
              "first_spawn_percent_chance": 5.0,
              "first_spawn_count": 1,
              "spawn_definition": "minecraft:endermite"
            }
            
          },
          "power": 2,
          "gravity": 0.04,
          "angle_offset": 0.0,
          "inertia": 1,
          "liquid_inertia": 1
        },
          "minecraft:physics": {
        },
        "minecraft:pushable": {
          "is_pushable": true,
          "is_pushable_by_piston": true
        },
        "minecraft:conditional_bandwidth_optimization": {
          "default_values": {
            "max_optimized_distance": 80.0,
            "max_dropped_ticks": 7,
            "use_motion_prediction_hints": true
          }
        }
      },
  
      "events": {
        "minecraft:entity_spawned": {
          "sequence": [
            {
              "filters": {"test": "is_game_rule", "domain": "domobspawning", "value": false},
              "add": {
                "component_groups": [ "minecraft:no_spawn" ]
              }
            }
          ]
        }
      }
    }
  }