Jump to content

OttselKid

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by OttselKid

  1. Whenever I try to place my TileEntity, the model doesn't render and there is an empty bounding box where the block should be. Here is my code: Block Class: TileEntity Base Class: TESR Class: Model Class: Server-side registration: Client-side registration: What's going on? (I guess not going on, more specifically.) ---SOLUTION---
  2. Thank you for pointing this out. Did both things and works great! When I have time, I'll add the solution to the main post so others can see it.
  3. I've seen so many threads like this, but I still can't figure out what the problem is. Have a look at my code: Entity file: Rendering Handler: Model File: And finally, server-side EntityRegistry.registerModEntity(new ResourceLocation(BaseDefence.modId, "rf-projectile"), EntityRFProjectile.class, BaseDefence.modId + ".rf-projectile", id, BaseDefence.instance, 64, 3, true); and client-side RenderingRegistry.registerEntityRenderingHandler(EntityRFProjectile.class, RenderEntityRFProjectile::new); registrations, all in preInit. What am I missing? ---SOLUTION--- Thanks to V0idWa1k3r Added translation code to the doRender method and bound the texture to the model in the Render Helper class Removed unnecessary rendering code from the render method in the model class
  4. I'm making a Turret block that needs to make sure it can see its targets before doing anything else. Right now I'm scanning a 163 area for all instances of MobEntity, and I am trying to use RayTraceResult to test if each MobEntity is in view. This doesn't work but hopefully it will serve to explain what I'm trying to do. This is my TileEntityTurret update method: Is there something that I'm missing or is there a better way of doing this?
×
×
  • Create New...

Important Information

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