Posted August 19, 20223 yr So I got a perfectly working custom TNT, any ideas how I can on explode spawn blocks around the dead "primed tnt" entity?
August 19, 20223 yr Define "spawn blocks". You can spawn a FallingBlockEntity? Or maybe you mean an ItemEntity? Or maybe you just want to Level.setBlock()? Spawning blocks is something you could do with the old "wand of animation". But I don't think anybody has ported the erebus mod to recent versions of minecraft. 🙂 Boilerplate: If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one. If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install Large files should be posted to a file sharing site like https://gist.github.com You should also read the support forum sticky post.
August 19, 20223 yr Author 7 minutes ago, warjort said: Define "spawn blocks". You can spawn a FallingBlockEntity? Or maybe you mean an ItemEntity? Or maybe you just want to Level.setBlock()? Spawning blocks is something you could do with the old "wand of animation". But I don't think anybody has ported the erebus mod to recent versions of minecraft. 🙂 I apologize for explaining it badly, yes something like level.setblock so a good idea to understand would be imagine a normal hole in the overworld, say you use this custom tnt inside the hole, it will fill up the hole with dirt does that make sense? Here is a mod for reference though this is for fabric unfortunately obviously need for forge: https://www.curseforge.com/minecraft/mc-mods/dirtnt
August 19, 20223 yr That uses Level.setBlockAndUpdate() or the yarn equivalent. https://github.com/Fourmisain/DirTNT/blob/e8d58ae41c8f2d97de4c3f467200ef184be3c271/src/main/java/fourmisain/dirtnt/entity/DirtTntEntity.java#L90 Boilerplate: If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one. If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install Large files should be posted to a file sharing site like https://gist.github.com You should also read the support forum sticky post.
August 19, 20223 yr Author 8 minutes ago, warjort said: That uses Level.setBlockAndUpdate() or the yarn equivalent. https://github.com/Fourmisain/DirTNT/blob/e8d58ae41c8f2d97de4c3f467200ef184be3c271/src/main/java/fourmisain/dirtnt/entity/DirtTntEntity.java#L90 Would I call setBlockAndUpdate inside the tick method from Primed entity or should it be called from the tnt block class?
August 19, 20223 yr That mod does it from a mixin, but it looks entirely unnecessary. They obviously don't understand how subclasses work. 🙂 All you need to do is override the explode() method of PrimedTnt and do your custom explode processing. Boilerplate: If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one. If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install Large files should be posted to a file sharing site like https://gist.github.com You should also read the support forum sticky post.
August 19, 20223 yr Author 9 minutes ago, warjort said: That mod does it from a mixin, but it looks entirely unnecessary. They obviously don't understand how subclasses work. 🙂 All you need to do is override the explode() method of PrimedTnt and do your custom explode processing. True true was thinking the same, appreciate it man cheers
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.