Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Config to disable player stare mechanic
  • Loading branch information
encode42 committed Mar 7, 2021
commit ff79a2f685d2fa11fd256b626073db2704144f3a
5 changes: 3 additions & 2 deletions patches/server/0176-Various-Enderman-AI-config-options.patch
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ Subject: [PATCH] Various Enderman AI config options

- Allows Enderman to target (aggro) Endermites that were spawned using a command or Spawn Egg.
- Treat players wearing the Ender Dragon head as if they're wearing a pumpkin.
- Disable the player stare aggression mechanic.

diff --git a/src/main/java/net/minecraft/server/EntityEnderman.java b/src/main/java/net/minecraft/server/EntityEnderman.java
index b884addf2ce6f1ef7394658078deb2e75370654f..72ba3090b74457dd0f3174df1cc0019a85bb9227 100644
index b884addf2ce6f1ef7394658078deb2e75370654f..4c325478666517b28830d789ebd58548ab28f161 100644
--- a/src/main/java/net/minecraft/server/EntityEnderman.java
+++ b/src/main/java/net/minecraft/server/EntityEnderman.java
@@ -16,7 +16,7 @@ public class EntityEnderman extends EntityMonster implements IEntityAngerable {
Expand All @@ -24,7 +25,7 @@ index b884addf2ce6f1ef7394658078deb2e75370654f..72ba3090b74457dd0f3174df1cc0019a
ItemStack itemstack = (ItemStack) entityhuman.inventory.armor.get(3);

- if (itemstack.getItem() == Blocks.CARVED_PUMPKIN.getItem()) {
+ if (itemstack.getItem() == Blocks.CARVED_PUMPKIN.getItem() || (world.purpurConfig.endermanIgnoreEnderDragonHead && itemstack.getItem() == Items.DRAGON_HEAD)) { // Purpur
+ if (world.purpurConfig.endermanDisableStareMechanic || itemstack.getItem() == Blocks.CARVED_PUMPKIN.getItem() || (world.purpurConfig.endermanIgnoreEnderDragonHead && itemstack.getItem() == Items.DRAGON_HEAD)) { // Purpur
return false;
} else {
Vec3D vec3d = entityhuman.f(1.0F).d();
Expand Down