Started by
CaiGuyCrafter
on
Topic category: Help with Minecraft modding (Java Edition)
Essentially, I'm looking to create a system where, if the player has a variable active, the player will randomly lose control over themselves, and they will move randomly, like any random mob or entity in the game. (The AI would then make them attack anything nearby). I've seen this done before, but in WAY older versions of Minecraft. So I'm wondering if someone knows how to do this, because I sure don't. Thanks in advance!
...Interesting problem. My mind immedieately defaults to using motion vector overrides to control player movement... but for pathfinding you'd need something more complicated.
If you've seen this done before and know it's possible, I would venture a guess that the mods you're reffering to somehow spawn a custom entity, set the player in spectator mode, and force them to spectate said entity. (You can spectate entities as well as players when you're in spectator mode, and it will look like you're playing from that entity's perspective.) You'd probably have some problems with inventory and whatnot, but this would technically be possible using MCcreator and some creative commands...