1

Commandblock help PLease!!!

Rush_Sykez 11/21/17 3:48 pm history
342
11/22/2017 8:46 am
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.
Posted by
Rush_Sykez
Level 2 : Apprentice Network
1

  Have something to say?

JoinSign in

11

Rush_Sykez
11/22/2017 4:56 am
Level 2 : Apprentice Network
can anyone help?
1
PyroCreative
11/22/2017 8:46 am
Level 34 : Artisan Nerd
history
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]
1
Rush_Sykez
11/21/2017 8:12 pm
Level 2 : Apprentice Network
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"
2
BartTheBart
11/22/2017 8:39 am
Level 9 : Apprentice System
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.
1
BartTheBart
11/22/2017 8:33 am
Level 9 : Apprentice System
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
1
BartTheBart
11/22/2017 8:34 am
Level 9 : Apprentice System
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
1
Nutcracky
11/21/2017 6:20 pm
Level 1 : New Miner
/tellraw @p {"text":"Welcome to the ","color":"aqua","extra":[{"text":"Server","color":"yellow"},{"text":"!","color":"aqua"}]} = Available for chat too.
1
Rush_Sykez
11/21/2017 5:53 pm
Level 2 : Apprentice Network
OMG yes thats it i love you dude thanks :)
1
Pepijn
11/21/2017 5:20 pm
Level 58 : Grandmaster Cyborg
An example:

effect @e[type=!player,r=5] poison 1 1
1
Rush_Sykez
11/21/2017 4:44 pm
Level 2 : Apprentice Network
could i please have it for the world i can try and work from that
1
KidDiamond11
11/21/2017 4:30 pm
Level 1 : New Miner
I know how to poison all entities in the world, but I'm not sure how to just do it in a radius
1

Welcome