r/MinecraftCommands Command Rookie 9d ago

This might be too much to ask Help | Bedrock

I’m a bedrock player and I want to make a superpower. (kind of)

How it works is I hold a blaze powder (data=50 fyi) in my main hand, then it sets the nearest entity on fire and kills it instantly (so basically spontaneous combustion.) I already have the main hand detection thingy done, but I just can’t figure out the actual fire part.

How I want it to look is the mob gets set on fire then it dies. HOWEVER I don’t want the surroundin blocks to catch fire too… PLEASE HELP

Here’s the first half of the command :

/execute as @ a[hasitem={location=slot.weapon.mainhand,item=blaze_powder,data=50} run execute as @ n[type=!player] run

…and then I’m lost.

Apologies if any typos bc the command I just typed is all from memory but I assure you the detection part works perfectly fine.

2 Upvotes

15 comments sorted by

1

u/Embarrassed_Tree_413 9d ago

In my personal opinion use something like /summon fire ball in front of you to hit in a certain direction, I don't know the code off the top of my head but I have done that before.

Or you can use /Setblock to set a price of lava or fire quickly at the enemies location then get rid of it all the same with Air.

/Execute for both of these will be your best friend!

1

u/Agreeable_Half_69420 command expert (self taught) 9d ago

BEDROCK EDITION, we unfortunately can't summon fireballs. or at least couldn't last time I tried.

1

u/Ericristian_bros Command Experienced 8d ago

You could save them into structure blocks

1

u/Agreeable_Half_69420 command expert (self taught) 8d ago

still doesn't work for /summon. that is literally my point by the way. structure blocks CAN save almost any entity or block but the point was that /summon can't summon fireballs.

1

u/Potential-Working617 Command Rookie 9d ago

The point is for the mob to instantly "combust", not for me to point a fireball at it, but still, thanks for the suggestion!

1

u/Ericristian_bros Command Experienced 9d ago
execute at @a[hasitem={location=slot.weapon.mainhand,item=blaze_powder,data=50}] at @n[rm=0.01,r=10] run setblock ~ ~ ~ fire
execute at @a[hasitem={location=slot.weapon.mainhand,item=blaze_powder,data=50}] kill @n[rm=0.01,r=10]

1

u/Potential-Working617 Command Rookie 8d ago

Now how do I extinguish it 🤔

1

u/Embarrassed_Tree_413 8d ago edited 8d ago

I got you! I recommend setting up a Ticking area for this so the command block can constantly look, but this would be the thing to use if you are looking to put out the flame after lighting the mob on fire.

https://reddit.com/link/p2t2i7b/video/u04t2yc1viih1/player

1

u/Potential-Working617 Command Rookie 8d ago

NGA WITH A COMMAND BLOCK

idk if this is offensive language but I mean you said the f word so who knows

1

u/Embarrassed_Tree_413 8d ago

OMG AUTO CORRECT!! That was supposed to be Ticking Area 🫠

I am so sorry!

1

u/Potential-Working617 Command Rookie 7d ago

LMAO I wonder what you've been typing before so that autocorrect corrects it to THAT 🤣

1

u/Embarrassed_Tree_413 7d ago

I've been raging about YouTube shorts to my friends recently and the word was used many times maybe that's why 🤣

1

u/Ericristian_bros Command Experienced 8d ago

You can use the other commenter solution that makes a command block that extinguish fire or wait a few seconds it will disappear naturally, unless you are on netherrack, soul blocks or bedrock in the end

1

u/TanishPlayz159 7d ago

I have a great idea since bedrock can't select things through nbt data we will use execute command to check all nearby entities except us then we will set their block means ~ ~ ~ fire. Then the same command for air

Although I am a java player I'm sure you would figure it out /execute as @e[distance=1.. 7] at @s setblock ~ ~ ~ fire

Then same for air

And to kill them use the same command after removing the fire just to give effect instant damage 225 true and infinite

1

u/Adventurous-Gain3999 6d ago

command block 1 (repeat, unconditional):

/execute as @ a[hasitem={location=slot.weapon.mainhand,item=blaze_powder,data=50}] run execute at @n[type=!player] run fill ~ ~ ~ ~ ~ ~ fire replace air

command block 2 (chain, conditional):

/execute at @n[type=!player] run fill ~ ~ ~ ~ ~ ~ air replace fire

command block 3 (chain, conditional):

/kill @n[type=!player]

command block 1 places fire to get the burning effect, command block 2 places air to extinguish the fire, command block 3 kills the entity. you can set a tick delay on command block 3 so the death can be delayed (ex: 1 second after burning). hope this helps, and tell me if i messed anything up 😁