7

I want to join a raid alongside illagers in survival mode in Minecraft Java Edition. How can I accomplish this without getting murdered by my new comrades?

From what I can tell, the most likely possibility would be to set up (while in creative mode) repeating command blocks constantly telling every member of the raid (@e[type=#raider]) to like me instead of try to kill me. I'm not sure how to do this though. All I have so far is...

/execute at @e[type=#raider] run data modify @n

...and I don't know what to put after that. Is there any data I can modify to get them to not attack me? Pillagers seem to have memory of when someone hit them, but that's no use. If there is a way to remove damage from illagers, that also won't help because I'll still be distracting them from raiding.

I'm using v1.21.11

2
  • 2
    Oddly... That sounds fun... Commented 2 days ago
  • 1
    It's weirdly fun bullying some iron golems with your new illager friends, then run away like a coward after your allies die when the iron golems you previously spawned "to make it fair" show up Commented yesterday

1 Answer 1

10

1.14+

I tested all of the commands below in version 1.21.11, but they should work in all versions from 1.14 onwards (with small tweaks to angry_at/AngryAt).

Funnily enough, the way to join team pillager is to literally join team pillager!

Run the following commands once:

team add pillager
team join pillager @p

This will create a team called "pillager" that you join.

Now, let's use your snippet to make all other raiders join team pillager. On a repeating command block, run:

team join pillager @e[type=#raiders]

As long as that command is running, any new raider that is spawned will join your team and therefore not attack you, even when attacked.

Happy raiding?


To get the true Arch-Illager experience, villagers and iron golems should abhor you.

You can make iron golems always angry at you by adding this command to your repeating chain:

execute as @e[type=iron_golem] run data modify entity @s angry_at set from entity @p UUID

Making villagers hate you takes a few more commands. Run the following commands once:

data modify storage arqade:hatred Gossip set value {Type:"major_negative",Value:100}
data modify storage arqade:hatred Gossip.Target set from entity @p UUID

Run this command on a slower clock (running it using a repeating command block locks the villager AI):

execute as @e[type=villager] run data modify entity @s Gossips append from storage arqade:hatred Gossip

Now you can only buy things from villagers at the maximum price

4
  • It works perfectly! A well-deserved ✅ Commented yesterday
  • 1
    For later versions than ~1.16 (I think), you might be able to make the iron golems target other entities who are also part of the raid by replacing @p UUID with @n[team=pillager] Commented yesterday
  • 1
    Weirdly they still targeted other raiders with the current form (also you still meed the UUID path so the command knows to copy the uuid) Commented 22 hours ago
  • you can probably forgo making all iron golems angry at you specifically. having -500 gossip values with a nearby villager will probably be enough for iron golems to be hostile, but it won't try to make them hunt you specifically across the map, which is what angry_at does. Commented 11 hours ago

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.