Jump to content

Recommended Posts

Posted

I am new to Minecraft moding but not to coding or java. I just sat down and created a custom tnt mod and I copied the `EntityTNTPrimed.java`to do a custom explosion but when the block is activated and my `EntityNuclearTntPrimed` gets created it is invisible. Any help would be appreciated.

Posted

You should set up your own entity model.

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

Posted
  On 3/2/2015 at 4:25 AM, Abastro said:

You should set up your own entity model.

 

Here is my code:

 

  Reveal hidden contents

 

Posted

1. Post your entity registration code.

2. Did you created/registered your TNT model?

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

Posted

My Tnt Block Code:

 

  Reveal hidden contents

 

 

My Mod Code:

 

  Reveal hidden contents

 

Posted

I tried adding:

int entityID = EntityRegistry.findGlobalUniqueEntityId();
EntityRegistry.registerGlobalEntityID(EntityNuclearTntPrimed.class, "nuclearTntPrimed", entityID);

 

but it did not help

Posted

1. First, you should register your Entity using EntityRegistry#registerModEntity.

      (You have to specify the id. If you have only one entity, just putting 0 in it would be fine.)

2. TileEntities and Entities are totally different, just to note.

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

Posted

Show your tnt entity class. I had the same problem and had to change something in the entity class

 

EDIT:

The entity tnt class has 2 constructors, you need to write this.fuse = whatever number the other one is in the first constructor to.

Posted

 

 

Here is my tnt Entity Code:

 

  Reveal hidden contents

 

Posted

It (the fuse field) is not related with this issue...

Anyway you should register custom entity renderer, as elix said.

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

Posted
  On 3/2/2015 at 9:29 AM, Abastro said:

It (the fuse field) is not related with this issue...

Anyway you should register custom entity renderer, as elix said.

It probably isn't... But that's what made mine work

Posted

Anyway it seems that he didn't set up custom entity renderer.

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

Posted

Okay so a custom Entity Renderer like this? :

 

  Reveal hidden contents

 

 

And if so how do I get it to deal with the fact that my entity texture has custom top, bottom, side or should I join them into one file just for this entity I looked through the mc textures and saw no place where they did that though for normal tnt.

 

Posted

Try using Techne. It would answer your questions and solve most of your problems.

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

  • 2 years later...
  • 3 months later...
  • Guest locked this topic
Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Hello, I want to change some things about a specific mod. I made some small mods for myself before, but I don't know how to use other mods as a dependencie and add the repositories. My build.gradle file looks something like this:   repositories { flatDir { dirs 'libs' } } dependencies { minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}" implementation fg.deobf("libs:create-1.20.1:0.5.1.f") implementation fg.deobf("libs:create-stuff-additions1.20.1:2.0.4a") } I have the folder libs in my root folder. If I start the gradlew.exe, I get the following output: > Configure project : Java: 17.0.15, JVM: 17.0.15+6 (Eclipse Adoptium), Arch: amd64 files(...) dependencies are not deobfuscated. Use a flatDir repository instead: https://docs.gradle.org/current/userguide/declaring_repositories.html#sub:flat_dir_resolver Cannot deobfuscate dependency of type DefaultSelfResolvingDependency_Decorated, using obfuscated version! files(...) dependencies are not deobfuscated. Use a flatDir repository instead: https://docs.gradle.org/current/userguide/declaring_repositories.html#sub:flat_dir_resolver Cannot deobfuscate dependency of type DefaultSelfResolvingDependency_Decorated, using obfuscated version! I don't know why this warning occurs or how to fix it. If I try to build the whole thing, I get the same message, but this time as an error and the build process crashes. I looked at the gradle dependencies website (https://docs.gradle.org/current/userguide/dependency_management_for_java_projects.html), but everything I tried did not work.   I use the Minecaft version 1.20.1 and the Forge version 47.2.17. Both mods don't have other dependencies and work perfectly fine if I start the game normaly.   Can someone explain to me why it does not work and/or where I can get help? Something like a documentation would be enough.
    • im just going to play without shaders(my friends will be dissapointed)
    • crashed the game // Embeddium instance tainted by mods: [oculus] // Please do not reach out for Embeddium support without removing these mods first. // ------- // Why did you do that? flywheel is needed for oculus but when i go into mc it then says sodium is 0.5.3(rubidum fork of sodium ported to forge)
    • oh wait i think i found the error  rubidium wasnt installed for oculus . IT WAS RUBIDIUM????????????????????
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

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