Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Wunst

Members
  • Joined

  • Last visited

  1. Okay, that makes sense... I'll edit this post when I tried it.
  2. Should I initialize the field like EntityCultist entity = new EntityCultist(); public void render(…) { ... }
  3. Okay, it works now, I changed the code to: public class TESRCultistSpawn extends TileEntitySpecialRenderer<TileEntityCultistSpawn> { EntityCultist entity; @Override public void render(TileEntityCultistSpawn te, double x, double y, double z, float partialTicks, int destroyStage, float alpha) { if(entity == null) { entity = new EntityCultist(te.getWorld()); } GlStateManager.pushMatrix(); GlStateManager.translate(0, 0, 0); Minecraft.getMinecraft().getRenderManager().renderEntity(entity, x + 0.5, y, z + 0.5, 180.0f, partialTicks, true); GlStateManager.popMatrix(); } }
  4. @Cadiboo Oh, ok, I'll make the entity a field instead of a local variable. @DavidM Maybe that will help, I forgot it...
  5. This just reverses the effect: the TESR itself is moved to the left.
  6. Can you post a picture of the error screen and (if it's a crash) the crash report?
  7. Hi all, I coded a Tile Entity that spawns a mob with a TESR that shows the entity's model, but as soon as the TE is on screen, all other TESRs like chests move to the right and forth while their blocks stay at the same spot. Here's the renderer: public class TESRCultistSpawn extends TileEntitySpecialRenderer<TileEntityCultistSpawn> { @Override public void render(TileEntityCultistSpawn te, double x, double y, double z, float partialTicks, int destroyStage, float alpha) { GlStateManager.translate(0.5, 0, 0.5); EntityCultist entity = new EntityCultist(te.getWorld()); entity.rotationYaw = 45; Minecraft.getMinecraft().getRenderManager().renderEntity(entity, x, y, z, 180.0f, partialTicks, true); } } And what happens is attached as PNG. Compare the chest model and the block outline!

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.