Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[Solved] Invisible Entities HELP!


calclavia
 Share

Recommended Posts

Hi,

  I'm rather inexperienced in Minecraft Forge, so please excuse this "noob" question. I created a new type of TNT in my mod and the problem is I'm not sure how to convert it to SMP. I read the FML guides and I made it work. The only problem is that the TNT primed entity won't render and is invisible. It also doesn't show any explosion animation or sound. Can anyone please help me with this?

 

- Calclavia

Link to comment
Share on other sites

Make sure you are using the absolute latest Forge (3.1.3.102). That is most likely the problem.

 

I am using the latest Forge. This is the first time for me to create a SMP mod so I really need help on porting my mod to multiplayer. Most likely it is my mod's problem. I added the Minecraft Forge entity tracker and stuff said on most tutorials but I am still not clear on how to make my entities render in the client side. (I noticed the client side had this statement: if(!world.isRemote)) and I am not sure on how to make non-mob entities to render in the game...

Link to comment
Share on other sites

I am using the latest Forge. This is the first time for me to create a SMP mod so I really need help on porting my mod to multiplayer. Most likely it is my mod's problem. I added the Minecraft Forge entity tracker and stuff said on most tutorials but I am still not clear on how to make my entities render in the client side. (I noticed the client side had this statement: if(!world.isRemote)) and I am not sure on how to make non-mob entities to render in the game...

They work fine in Single Player?  The code for Single Player is identical for the Multi Player client in terms of rendering.

You are sure that everything is registered properly?  A reduced test case of code would help.

Link to comment
Share on other sites

I am using the latest Forge. This is the first time for me to create a SMP mod so I really need help on porting my mod to multiplayer. Most likely it is my mod's problem. I added the Minecraft Forge entity tracker and stuff said on most tutorials but I am still not clear on how to make my entities render in the client side. (I noticed the client side had this statement: if(!world.isRemote)) and I am not sure on how to make non-mob entities to render in the game...

They work fine in Single Player?  The code for Single Player is identical for the Multi Player client in terms of rendering.

You are sure that everything is registered properly?  A reduced test case of code would help.

 

Yes they do work in single player perfectly. It works in multiplayer too also perfectly except for the entities not rendering and the animations and sound fxs not playing.

 

I wrote this code on both the single player and the server. This block is basically a TNT to sum it up in a few words.

MinecraftForge.registerEntity(net.minecraft.src.EntityAdvanceTNTPrimed.class, this, 252, 20, 2, true);

 

Did I miss something? The TNT becomes invisible/disappears once it becomes primed.

Link to comment
Share on other sites

To clarify my problem, this is what I get when I play my mod on multiplayer:

 

Before I power the TNT with redstone (before the TNT is primed):

Before.png

 

After I power the TNT with redstone (when the TNT is primed):

After.png

 

The ONLY code I used from Minecraft Forge to register this entity is MinecraftForge.registerEntity(). I don't have any other code about registering this entity except for this line:

MinecraftForge.registerEntity(net.minecraft.src.EntityAdvanceTNTPrimed.class, this, 252, 20, 2, true);

 

The code for the TNT is basically the same as the vanilla code for the TNT, but modified to fit my needs.

 

Is there something I did wrong?

 

P.S You may test out the mod here: http://calclavia.com/ICBM/

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • [Info: 2022-01-22 02:35:43.0423532: NetQueue.cpp(157)] NetQueue: Setting up. [Info: 2022-01-22 02:35:43.0617940: mainWindows.cpp(80)] Running launcher bootstrap (version 1037) [Info: 2022-01-22 02:35:43.0632006: NetQueue.cpp(575)] NetQueue: worker thread started. [Error: 2022-01-22 02:35:43.2162396: localization.cpp(110)] No translation found for "Unable to download <game>. Please try again later." [Error: 2022-01-22 02:35:43.2162969: localization.cpp(110)] No translation found for "Unable to download the <game> Native Launcher." [Error: 2022-01-22 02:35:43.2163310: localization.cpp(110)] No translation found for "Unable to update the <game> Game Launcher." [Error: 2022-01-22 02:35:43.2163627: localization.cpp(110)] No translation found for "Unable to download the <game> Runtime Environment." [Error: 2022-01-22 02:35:43.2163950: localization.cpp(110)] No translation found for "Unable to update the <game> Game Launcher." [Error: 2022-01-22 02:35:43.2164275: localization.cpp(110)] No translation found for "Unable to update the <game> Runtime Environment." [Error: 2022-01-22 02:35:43.2164797: localization.cpp(110)] No translation found for "Unable to update the <game> Native Launcher." [Error: 2022-01-22 02:35:43.2165126: localization.cpp(110)] No translation found for "Unable to relaunch the Minecraft bootstrap." [Error: 2022-01-22 02:35:43.2165431: localization.cpp(110)] No translation found for "Unable to start the <game> Runtime Environment. This is most likely caused by a corruption. Please try to reinstall <game>." [Error: 2022-01-22 02:35:43.2165762: localization.cpp(110)] No translation found for "Unable to start <game>, if you are running from a dmg, please drag to Applications and try again." [Error: 2022-01-22 02:35:43.2166051: localization.cpp(110)] No translation found for "Unable to initialize the network library." [Error: 2022-01-22 02:35:43.2166353: localization.cpp(110)] No translation found for "<game> Launcher" [Info: 2022-01-22 02:35:43.2181138: mainWindows.cpp(167)] Triggering reopen event... [Info: 2022-01-22 02:35:43.2182428: mainWindows.cpp(170)] Success!
    • Yes. If your block is not meant to exist in the inventory, then don't create an item for it.
    • i tried something with axisAlignedBB but is not working BlockPos playerPos = player.getPosition(); BlockPos pos1 = playerPos.add(new Vector3i(player.getPosX() + 10,player.getPosY() + 10,player.getPosZ() + 10)); BlockPos pos2 = playerPos.add(new Vector3i(player.getPosX() + 10,player.getPosY() + 10,player.getPosZ() + 10)); List<CowEntity> targets = world.getEntitiesWithinAABB(CowEntity.class,new AxisAlignedBB(pos1,pos2)); if(!targets.isEmpty()) { player.sendStatusMessage(new StringTextComponent("there is a cow around you")) } AND (for example there are 3 cows in the range) if(!targets.isEmpty()) { player.sendStatusMessage(new StringTextComponent(targets)) }  
    • what i want is that my block only can be placed by code(with the world.setBlockState), and the fire block, it has a collision volume, or you couldnt remove it, and if you copy the fire block in the console it appears something of copying null...   but for i want is just not add my block as an item right?
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.