Minecraft Blogs / Tutorial

Detect when entitys are on the ground

  • 2,595 views, 0 today
  • 6
  • 5
  • 3
AgentShieldjj
Level 34 : Artisan Creeper Hugger
78
Fire Mechanics: using fire is a excellent way to detect when a entity is on the ground.

when fire is setblocked it will not work until it is on the ground.

let's say you want to make Chicken bombs that explode on the ground. use these 2 commands in command blocks put them down like this.

https://i.imgur.com/GsxvNFT.png

After that put this command in the Repeating command block:

execute @e[type=chicken,name=Bomb] ~ ~ ~ /fill ~ ~ ~ ~ ~ ~ minecraft:fire 1 0

After that put this command in the Chain command block:

execute @e[type=chicken,name=Bomb] ~ ~ ~ detect ~ ~ ~ minecraft:fire -1 /summon minecraft:tnt ~ ~ ~

after that step is done, grab an anvil and name an egg Bomb (with the B in CAPS), then go high in the air and spawn a chicken named Bomb. Watch the Bomb as it slowly floats down. If you watch the the chicken hit the ground you will barely see a block of fire (appear then disappear).

how this work is the REPEATING block is always setting fire; but sense it's not on the ground is just disapears (until the chicken hit the ground. and in the CHAIN block it detect when the chicken is in the fire then it blows up.

The FIRE MECHANICS are awesome!
this works for snowballs, mobs and MORE!!
CreditThe Red Engineer
Tags

Create an account or sign in to comment.

AgentShieldjj
07/20/2018 6:50 pm
Level 34 : Artisan Creeper Hugger
in 1.13 you need to change it to


execute as @e[type=chicken,name=Bomb] ~ ~ ~ run fill ~ ~ ~ ~ ~ ~ minecraft:fire 1 0
I think


execute as @e[type=chicken,name=Bomb] ~ ~ ~ detect ~ ~ ~ minecraft:fire -1 run summon minecraft:tnt ~ ~ ~


I think?
1
flyboy59
07/20/2018 6:47 pm
Level 1 : New Crafter
if i method of this appears for 1.13, i will be using this, this is AWESOME! thx for making it!
2
Nightshade73
05/10/2018 3:43 pm
Level 51 : Grandmaster Network
Fire mech :o
2

Welcome