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



×
×
  • Create New...

Important Information

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