Jump to content

[1.19.2] On explode spawn blocks?


Feroov

Recommended Posts

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.

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

8 minutes ago, warjort said:

 

Would I call setBlockAndUpdate inside the tick method from Primed entity or should it be called from the tnt block class?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 :D

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.