Nightmare Panic Effect
Today I added the Panic effect to the game and implemented the basic functionality. When applied to mobs, it should make them run around like crazy. When applied to a player, it should invert their controls. I used a mixin to add a custom NightmarePanicGoal to every PathfinderMob which activates when they have the effect. Then I used a mixin on LocalPlayer.aiStep() to modify the input field after its updated. Almost right after, I realized that I could have used a Forge event. Oh well. I learned a good bit about mixins and how Minecraft’s code works. Usually as a Forge dev, you don’t need to mess around with them a lot, but they really extend how much you can mod. I actually enjoyed reading Minecraft’s code and finding the right place to inject mixins. Here’s a video of the Panic effect on mobs with the speed multiplier at 10 :)
Log in to leave a comment