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.

Rennancge

Members
  • Joined

  • Last visited

  1. Yes, I have a tile entity with gui that works perfectly, but not the Item. Registering GUI Handler on CommonProxy:
  2. Hello guys, I am making an item that opens a custom GUI when is right clicked but anything happens. I made the GuiHandler, Container and GUI, as below: Item class GuiHandler Gui Container
  3. How i make this in the NetBeans? http://i.imgur.com/LncKUYs.png
  4. Oh! Thank you so much! Is working
  5. It is drawing power from the power cube constantly, but does not send energy to another cube. I also tried this: @Override public int receiveEnergy(ForgeDirection from, int maxReceive, boolean simulate) { if(storage.getEnergyStored() < storage.getMaxEnergyStored()) { return 20; } return 0; }
  6. *bump* help-me please
  7. "if (storage.getEnergyStored ()> 0)" returns false, do not know why.
  8. I'm doing power cables using the Redstone Flux API, but I'm having some problems with the cable energy extraction. Could you help me? Feel free to make critical and show the best way to do it. TileEntityPipe.class
  9. I want my mob be holding a certain item when spawned
  10. I'm trying to get my custom mob use an item in your hand ... [spoiler=What I Tried] public ItemStack getHeldItem() { return heldItem; } private static final ItemStack heldItem = new ItemStack(ItemHandler.WandOfFire); [spoiler=Model] package rennancge.zanmagic.model; import net.minecraft.client.model.ModelBase; import net.minecraft.client.model.ModelRenderer; import net.minecraft.entity.Entity; import net.minecraft.util.MathHelper; public class ModelWizard extends ModelBase { //fields ModelRenderer head; ModelRenderer body; ModelRenderer rightarm; ModelRenderer leftarm; ModelRenderer rightleg; ModelRenderer leftleg; int heldItemLeft; int heldItemRight; public ModelWizard() { textureWidth = 64; textureHeight = 32; heldItemLeft = 0; heldItemRight = 0; head = new ModelRenderer(this, 0, 0); head.addBox(-4F, -8F, -4F, 8, 8, ; head.setRotationPoint(0F, 0F, 0F); head.setTextureSize(64, 32); head.mirror = true; setRotation(head, 0F, 0F, 0F); body = new ModelRenderer(this, 16, 16); body.addBox(-4F, 0F, -2F, 8, 12, 4); body.setRotationPoint(0F, 0F, 0F); body.setTextureSize(64, 32); body.mirror = true; setRotation(body, 0F, 0F, 0F); rightarm = new ModelRenderer(this, 40, 16); rightarm.addBox(-3F, -2F, -2F, 3, 12, 4); rightarm.setRotationPoint(-4F, 2F, 0F); rightarm.setTextureSize(64, 32); rightarm.mirror = true; setRotation(rightarm, 0F, 0F, 0F); leftarm = new ModelRenderer(this, 40, 16); leftarm.addBox(-1F, -2F, -2F, 3, 12, 4); leftarm.setRotationPoint(5F, 2F, 0F); leftarm.setTextureSize(64, 32); leftarm.mirror = true; setRotation(leftarm, 0F, 0F, 0F); rightleg = new ModelRenderer(this, 0, 16); rightleg.addBox(-2F, 0F, -2F, 4, 12, 4); rightleg.setRotationPoint(-2F, 12F, 0F); rightleg.setTextureSize(64, 32); rightleg.mirror = true; setRotation(rightleg, 0F, 0F, 0F); leftleg = new ModelRenderer(this, 0, 16); leftleg.addBox(-2F, 0F, -2F, 4, 12, 4); leftleg.setRotationPoint(2F, 12F, 0F); leftleg.setTextureSize(64, 32); leftleg.mirror = true; setRotation(leftleg, 0F, 0F, 0F); } public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) { super.render(entity, f, f1, f2, f3, f4, f5); setRotationAngles(f, f1, f2, f3, f4, f5, entity); head.render(f5); body.render(f5); rightarm.render(f5); leftarm.render(f5); rightleg.render(f5); leftleg.render(f5); } private void setRotation(ModelRenderer model, float x, float y, float z) { model.rotateAngleX = x; model.rotateAngleY = y; model.rotateAngleZ = z; } public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity) { super.setRotationAngles(f, f1, f2, f3, f4, f5, entity); this.rightarm.rotateAngleX = (MathHelper.cos(f * 0.6662F) * 1.4F * f1); this.leftarm.rotateAngleX = (MathHelper.cos(f * 0.6662F + 3.1415927F) * 1.4F * f1); this.rightleg.rotateAngleX = (MathHelper.cos(f * 0.6662F) * 1.4F * f1); this.leftleg.rotateAngleX = (MathHelper.cos(f * 0.6662F + 3.1415927F) * 1.4F * f1); if (heldItemLeft != 0) { leftarm.rotateAngleX = leftarm.rotateAngleX * 0.5F - 0.3141593F * (float)heldItemLeft; } if (heldItemRight != 0) { rightarm.rotateAngleX = rightarm.rotateAngleX * 0.5F - 0.3141593F * (float)heldItemRight; } } }

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.