mojira.dev
MCPE-238720

The attack type of sulfur cube containing magma used to damage entities is entity_attack

The Bug:

Attack type of sulfur cube containing magma is entity_attack. The root cause of many several magma block inside sulfur block issues.

Steps to Repro:

These steps were tested on Windows.

First, check the game file of the sulfur cube:

Right now, sulfur cubes are only in Preview. At this time of writing, you need to go to <Preview version files>/data/behaviour_packs/vanilla_1.26.30/entities/sulfur_cube.json

Now look at this part of the sulfur cube code: As you can see here in the minecraft:area_attack component, the cause is set to “entity_attack”.

I couldn’t provide the entire sulfur cube JSON behaviour file due to the CONTENT_LENGTH_EXCEEDED error on the bug tracker.


      "minecraft:sulfur_cube_hot": {
        "minecraft:pushable_by_entity": {
          "presets": [
            {
              "filters": {
                "test": "is_family",
                "subject": "other",
                "value": "player"
              },
              "push_mode": "ball",
              "push_scale_self": 2.0,
              "push_scale_other": 1.0,
              "kick_distance_threshold": 1.3,
              "kick_speed_scale": 0.3,
              "min_kick_speed": 0.0,
              "max_kick_speed": 0.5,
              "vertical_kick_multiplier": 0.3,
              "play_sound_impulse_threshold": 0.0,
              "play_sound_cooldown_in_seconds": 0.7
            }
          ]
        },
        "minecraft:knockback_resistance": {
          "value": 0.4
        },
        "minecraft:bounciness": {
          "value": 0.6
        },
        "minecraft:friction_modifier": {
          "value": 0.3
        },
        "minecraft:air_drag_modifier": {
          "value": 0.05
        },
        "minecraft:buoyant": {
          "base_buoyancy": 1.0,
          "apply_gravity": false,
          "can_auto_step_from_liquid": true,
          "movement_type": "bobbing",
          "liquid_blocks": [
            "minecraft:water",
            "minecraft:flowing_water",
            "minecraft:lava",
            "minecraft:flowing_lava"
          ]
        },
        "minecraft:area_attack": {
          "cause": "entity_attack",
          "damage_cooldown": 0.0,
          "damage_per_tick": 1,
          "damage_range": 0.2,
          "use_self_as_damage_source": false,
          "entity_filter": {
            "subject": "other",
            "test": "is_family",
            "operator": "not",
            "value": "sulfur_cube"
          }
        }
      }
    },

Expected Result:

A better damage type needs to be used for the cause like magma.

Using the “magma” damage type as the cause will help fix some sulfur block with magma block issues, but not all.

Wonder if the magma block’s damage type is hardcoded in the game and not user exposed?

Use of “magma” damage type as the damage cause might fix bugs like :

MCPE-238665

MCPE-238666

MCPE-238664

But bugs like these still remain unfixed even with use of “magma” damage type as the damage cause:

MCPE-238662

MCPE-238663 (Partially, Fixes slain by Unknown, but causes a new bug saying <player> died)

MCPE-238668 (Partially, it only fixes for netherite items)

Observed Result:

Damage type used to attack entities in sulfur cube with magma block is entity_attack.

Comments 2

Android beta 26.30.27

When the sulfer cube with a block inside it goes on a magma block, it takes damage And can die.

This issue has been fixed in preview 26.30.29

TheMightyDark

(Unassigned)

Unconfirmed

Windows

26.30.27 Preview

Retrieved