1
Commandblock help PLease!!!
Hello i am trying to set up a command that Poisons or slows all mobs in a specific radius.
Please if you could help that would be great.
Please if you could help that would be great.
11
can anyone help?
Hey, this is simple.
So, all you have to do is this:-
Remember these codes first :-
<rep> - repeat & always active
<chain> - chain & always active , conditional
<nrm> - impulse block.
THESE CODES ARE JUST FOR YOU TO UNDERSTAND BETTER.
1.Set this contraption.
<rep> /testfor @e[type=!Player,r=5]
<chain> /effect @e[type=!Player,r=5] poison 6 10
<chain> /effect @e[type=!Player,r=5] slowness 2 10
the !Player type entity is any a=entity except the player.
Hope this help, for more command block help [and redstone too] please subscribe , and follow.
-pyrotrooper14 [Minecraft username-PyroCreative]
So, all you have to do is this:-
Remember these codes first :-
<rep> - repeat & always active
<chain> - chain & always active , conditional
<nrm> - impulse block.
THESE CODES ARE JUST FOR YOU TO UNDERSTAND BETTER.
1.Set this contraption.
<rep> /testfor @e[type=!Player,r=5]
<chain> /effect @e[type=!Player,r=5] poison 6 10
<chain> /effect @e[type=!Player,r=5] slowness 2 10
the !Player type entity is any a=entity except the player.
Hope this help, for more command block help [and redstone too] please subscribe , and follow.
-pyrotrooper14 [Minecraft username-PyroCreative]
i am now trying to make a command execute only on zombies this is what i got can anyone see whats wrong?
"/effect @e[type=zombie,r=5] instant_health 4 1"
"/effect @e[type=zombie,r=5] instant_health 4 1"
"/effect @e[type=zombie,r=5] instant_health 4 1"
"/effect @e[type=zombie,r=5] instant_health 4 1"
and i saw you using the tellraw command.
if you want to have the zombies be poisond in a radius around the player when they click is you need something like this:
"/tellraw @p ["",{"text":"Kill zombies","color":"green","clickEvent":{"action":"run_command","value":"/effect @etype=zombie,r=5] instant_health 4 1 true"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"The zombies will be damaged if you click this","color":"dark_purple"}]}}}]"
there is some extra estatic added that you dont need to worry about in this command tho.
if you want to have the zombies be poisond in a radius around the player when they click is you need something like this:
"/tellraw @p ["",{"text":"Kill zombies","color":"green","clickEvent":{"action":"run_command","value":"/effect @etype=zombie,r=5] instant_health 4 1 true"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"The zombies will be damaged if you click this","color":"dark_purple"}]}}}]"
there is some extra estatic added that you dont need to worry about in this command tho.
Just so you know the radius is only around the commandblock.
if you want the radius around yourself for instance you'd need to do
/execute <name> ~ ~ ~ effect @e[type=zombie,r=5] instant_health 4 1
if you want the radius around yourself for instance you'd need to do
/execute <name> ~ ~ ~ effect @e[type=zombie,r=5] instant_health 4 1
and if you dont want the particles to show up around the zombies its:
/execute <name> ~ ~ ~ effect @e[type=zombie,r=5] instant_health 4 1 true
/execute <name> ~ ~ ~ effect @e[type=zombie,r=5] instant_health 4 1 true
/tellraw @p {"text":"Welcome to the ","color":"aqua","extra":[{"text":"Server","color":"yellow"},{"text":"!","color":"aqua"}]} = Available for chat too.
OMG yes thats it i love you dude thanks :)
An example:
effect @e[type=!player,r=5] poison 1 1 could i please have it for the world i can try and work from that
I know how to poison all entities in the world, but I'm not sure how to just do it in a radius
