patched to run without deadlocks on 1.21.11
Find a file
litetex 56d91e9f2d
Use correct blockGetter to not cause deadlock
Fixes #170

Currently the world generation / server thread deadlocks when a strider-zombified piglin chockey spawns as part of the world generation.
This happens because accessing the block-state via `current.level()` happens from the world generation thread, tries to re-schedule on the main thread but the main thread is currently waiting for the world generation -> Deadlock
2026-05-05 16:55:11 -05:00
.config Merge branch 'master' into update-from-template-merged 2025-11-29 22:39:10 +00:00
.github Merge branch 'dev' into update-from-template-merged 2025-12-22 03:58:42 +00:00
.idea Update 2025-12-19 11:40:28 +01:00
gradle/wrapper Update dependency gradle to v9.2.1 2025-11-18 04:38:46 +00:00
src Use correct blockGetter to not cause deadlock 2026-05-05 16:55:11 -05:00
.gitattributes Update .gitattributes 2024-06-16 14:50:12 +02:00
.gitignore Update .gitignore 2025-04-20 14:48:04 +02:00
build.gradle Merge branch 'dev' into update-from-template-merged 2025-12-28 22:46:15 +00:00
CHANGELOG.md Use correct blockGetter to not cause deadlock 2026-05-05 16:55:11 -05:00
CONTRIBUTING.md Rename I 2025-01-09 12:02:44 +01:00
gradle.properties Release 1.2.0 2025-12-28 22:51:10 +00:00
gradlew Update dependency gradle to v9.1.0 2025-09-19 04:38:48 +00:00
gradlew.bat Update dependency gradle to v9.1.0 2025-09-19 04:38:48 +00:00
LICENSE Init 2024-04-13 19:03:52 +02:00
MOTIVATION.md Publicity stuff 2025-01-09 17:01:25 +01:00
README.md Added spawn_zombified_piglin_always_with_sword_on_magma_block game rule 2025-12-28 23:45:25 +01:00
renovate.json5 Renovate - Fabric: Force use Fabric's server 2025-03-12 22:37:14 +01:00
SECURITY.md Rename I 2025-01-09 12:02:44 +01:00
settings.gradle Add basic gradle config 2024-10-10 20:09:11 +02:00

Version Build

Zombified Piglin restore anger loot

Restores the original Zombified Piglin loot mechanic like it was in 1.21

Configuration

Gamerule spawn_zombified_piglin_always_with_sword_on_magma_block

Forces Zombified Piglins to always spawn with a sword on magma blocks.
The default is false.

This gamerule exists because

  • starting with 1.21.11 Zombified Piglins can spawn with a spear:
    • Piglins with spears can hit each other while attacking, which in turn causes retaliation/infighting and therefore lowering the overall effectiveness of farms
    • The performed charge attack requires a lot more calculations when compared to a "normal" sword attack
  • mpost gold farms use magma blocks anyway
  • all other gameplay aspects are unaffected

Motivation/Why does this mod exist?

Gold farms got significantly nerfed in 25w02a.

See also: More details, comparisons and arguments

Installation

Installation guide for the latest release

Usage in other mods

Add the following to build.gradle:

dependencies {
    modImplementation 'net.litetex.mcm:zombified-piglin-restore-anger-loot:<version>'
    // Further documentation: https://wiki.fabricmc.net/documentation:fabric_loom
}

Note

The contents are hosted on Maven Central. You shouldn't have to change anything as this is the default maven repo.
If this somehow shouldn't work you can also try Modrinth Maven.

Contributing

See the contributing guide for detailed instructions on how to get started with our project.