Started by
0V3R10RD
on
Topic category: Help with Minecraft modding (Java Edition)
I'm creating a mob that can target the player from a large range. It can break through doors already via the procedure, but I was wondering if there was a way via a procedure that if there are blocks in the way to the player, they begin to break them. I have not been able to find a reliable way to get the mobs to start breaking the dirt, wood, or other blocks in the way toward the player to get to them.
How can I do this with a procedure? I've tried a few things but nothing seems to work! New to procedures so help would be appreciated. :)
Okay, I've been working on this, and so far I made a basic timer system using a variable that counts upward. I made it so every 3 seconds if the mob is targeting a player, the mob will destroy X block (currently set to any wood block for testing)
This procedure kind of works, the timer doesn't seem to trigger the wood block break, and I don't really understand why.
Does anyone know a good way with procedures to make it so a mob will destroy player based blocks to break into their house if it's in their way? I wish there was a simulate break procedure and if block is placed by player procedure. So that way I can make the mob break blocks made by player every x seconds if the mob is targeting the player.
If anyone has ideas or wants to see my procedure setup, let me know. I need this! <3
mcreator.com/changelog ^^
Thank god it's a feature they're adding next update. Now I seriously can't wait because if it works how I'm thinking it'll allow my mod to do practically everything I wanted of it. Some of the new features on their Twitter are also cool, thanks!
Okay, so the new snapshot has the feature, but to my disappointment it seems to not work so well. I noticed it wasn't in procedures so I headed over to my enemy mob AI and added it into being breaking blocks of x type, for now it was being oak planks. I was hoping to make a procedure where it would break blocks when it was targeting a player and begin to break it. Oddly enough, even after applying it, the mobs didn't really seem to break blocks. They did some sort of weird jitter toward the block but nothing seemed to break.
I'm really disappointed because I was hoping this would fix or solve my issue in which I wanted my mob to break into player based structures, like a real zombie apocalypse you know? I'll have to figure more things out but generally this didn't do what I had hoped, where I could specify things like break time and the mob be focused on breaking a block like a player instead of just moving around and never breaking the block. Also 'speed' seemed to reflect a mobs speed, not its mining speed.