Removing Lightnings's extra damage by fire?

Removing Lightnings's extra damage by fire? - Crop male with burning lighter and cigarette smoking for reducing stress in light of lamp

So, I would like to summon Lightnings on players so that they receive roughly 2 hearts of damage.

With my current system, it looks like if you stay for a moment in the fire you receive double damage.

I don't care to remove all fire blocks from the map in order to fix this...

Here's how I set up the command blocks:

/testfor @e[type=Item] {Item:{id:minecraft:nether_star}}

comparator with repeaters to add a delay and then

/scoreboard players set @e[type=Item] Light 1 {Item:{id:minecraft:nether_star}}
/execute @e[score_Light_min=1] ~ ~ ~ execute @a[r=6] ~ ~ ~ effect @p fire_resistance 6 1 true
/execute @e[score_Light_min=1] ~ ~ ~ execute @e[r=6] ~ ~ ~ summon LightningBolt

As you can see I tried giving the hit players fire resistance, but they still get that weird damage right after the get struck by the bolt...



Best Answer

Lightning, regardless of whether or not you are standing in fire, will often hit an entity twice in a row. You can see this by standing in water and summoning a bunch of LightningBolts and watching your health.

To get around this, you could give the player a high level of resistance 1 tick after the lightning strikes so that they take no damage from the second hit (if it occurs). For example:

execute @p ~ ~ ~ summon LightningBolt

A 1 tick delay so the first hit counts, and then:

effect @p minecraft:resistance 1 5



Pictures about "Removing Lightnings's extra damage by fire?"

Removing Lightnings's extra damage by fire? - Assorted plants and wax candles on windowsill at home
Removing Lightnings's extra damage by fire? - Side view of ethnic kid sitting near furnace with metal pan placed on fire in daylight in poor destroyed district
Removing Lightnings's extra damage by fire? - Bright flames of fire burning on thin dry branches in smoke in grove of forest



How do you get rid of fire damage in Minecraft?

How to Disable Player Fire Damage on your Minecraft Server
  • Head over to your server Console or enter into your Minecraft Server.
  • Enter the command /gamerule fireDamage false (ensuring to keep the upper case letters). This'll disable Fire Damage. ...
  • That's it!


  • How much damage do you take from fire in Minecraft?

    When you are set on fire, you take 0.5 hearts per second of pre-armor damage. If you are standing in fire, you take another 0.5 hearts per second (pre-armor). If you are (swimming) in lava, you take 2.0 hearts per second. This totals to 0.5 / sec for on fire, 1.0 / sec for in fire, and 2.5 / sec for in lava.

    How do you make fireballs not on fire?

  • I believe if you set MobGriefing to false, it will make ghast fireballs not set fire. ...
  • Setting MobGriefing to false does work, but also cancels out the explosion, so you might as well just set the ExplosionPower to 0, still causing damage to players/mobs.


  • How long do you stay on fire in the nether?

    Fire damage produces blurred vision and damage of 1 heart per second. Items from burning mobs etc. will burn after a short time if dropped. Soulfire from the Soul Sands Valley in the Nether: Like magma and netherstone, they burn indefinitely.



    CRAZIEST LIGHTNING STRIKES




    More answers regarding removing Lightnings's extra damage by fire?

    Answer 2

    To solve this problem, you can do this command after the lightning is summoned:

    execute @e[score_Light_min=1] ~ ~ ~ execute @e[r=6] ~ ~ ~ kill @e[type=Fire]
    

    This will kill the fire entity in a six block radius.

    Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

    Images: Ryutaro Tsukata, Skylar Kang, Ahmed akacha, Plato Terentev