#Molotov.

1 messages · Page 1 of 1 (latest)

graceful vault
#

Im trying to make an area of fire on impact. I have the entity and code but it doesn't spread fire. Im guessing because of the breaks blocks is false, but I dont want it to break blocks?

#

{
"format_version": "1.21.40",
"minecraft:entity": {
"description": {
"identifier": "sticks:molotov",
"is_spawnable": false,
"is_summonable": false
},

"component_groups": {
 "minecraft:exploding": {
    "minecraft:explode": {
      "fuse_length": 0,
      "fuse_lit": true,
      "power": 3.5,
      "causes_fire": true,
      "breaks_blocks": false,
      "damage_scaling": 0,
      "knockback_scaling": 0,
      "destroy_affected_by_griefing": true
    }
  }
},

"components": {
  "minecraft:collision_box": {
    "width": 0.15,
    "height": 0.15
  },
  "minecraft:projectile": {
    "on_hit": {
      "definition_event": {
        "affect_projectile": true,
        "event_trigger": {
          "event": "minecraft:explode",
          "target": "self"
        }
      }
    },
    "power": 1.5,
            "gravity": 0.03,
    "uncertainty_base": 0.1,
    "uncertainty_multiplier": 0,
    "anchor": 1,
    "offset": [ 0, -0.1, 0 ],
    "inertia": 1.0
  },
  "minecraft:physics": {
  },
  "minecraft:pushable": {
    "is_pushable": false,
    "is_pushable_by_piston": false
  },
  "minecraft:conditional_bandwidth_optimization": {
    "default_values": {
      "max_optimized_distance": 80.0,
      "max_dropped_ticks": 7,
      "use_motion_prediction_hints": true
    }
  }
},

"events": {
  "minecraft:explode": {
    "add": {
      "component_groups": [
        "minecraft:exploding"
      ]
    }
  }
}

}
}