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.

starwarsmace

Members
  • Joined

  • Last visited

Everything posted by starwarsmace

  1. Is there something better about language files? Edit: Sorry didnt see Mecblader's post on this question. Edit 2: Is there anything else about lang files that is benficial besides you can have more languages?
  2. I looked at the vanilla code and made my own block,entity,and render file but I have one problem. The tnt explodes fine but my rendering doesnt work. When the entity comes in it just doesnt appear. But I know its there because it explodes. Here is my render file: package rotten_flesh_mod; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.Block; import net.minecraft.client.renderer.RenderBlocks; import net.minecraft.client.renderer.entity.Render; import net.minecraft.client.renderer.texture.TextureMap; import net.minecraft.entity.Entity; import net.minecraft.util.ResourceLocation; import org.lwjgl.opengl.GL11; @SideOnly(Side.CLIENT) public class RenderRottenFleshNukePrimed extends Render { private RenderBlocks blockRenderer = new RenderBlocks(); public RenderRottenFleshNukePrimed() { this.shadowSize = 0.5F; } public void renderPrimedTNT(EntityRottenFleshNukePrimed par1EntityTNTPrimed, double par2, double par4, double par6, float par8, float par9) { GL11.glPushMatrix(); GL11.glTranslatef((float)par2, (float)par4, (float)par6); float f2; if ((float)par1EntityTNTPrimed.fuse - par9 + 1.0F < 10.0F) { f2 = 1.0F - ((float)par1EntityTNTPrimed.fuse - par9 + 1.0F) / 10.0F; if (f2 < 0.0F) { f2 = 0.0F; } if (f2 > 1.0F) { f2 = 1.0F; } f2 *= f2; f2 *= f2; float f3 = 1.0F + f2 * 0.3F; GL11.glScalef(f3, f3, f3); } f2 = (1.0F - ((float)par1EntityTNTPrimed.fuse - par9 + 1.0F) / 100.0F) * 0.8F; this.bindEntityTexture(par1EntityTNTPrimed); this.blockRenderer.renderBlockAsItem(Block.tnt, 0, par1EntityTNTPrimed.getBrightness(par9)); if (par1EntityTNTPrimed.fuse / 5 % 2 == 0) { GL11.glDisable(GL11.GL_TEXTURE_2D); GL11.glDisable(GL11.GL_LIGHTING); GL11.glEnable(GL11.GL_BLEND); GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_DST_ALPHA); GL11.glColor4f(1.0F, 1.0F, 1.0F, f2); this.blockRenderer.renderBlockAsItem(Block.tnt, 0, 1.0F); GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); GL11.glDisable(GL11.GL_BLEND); GL11.glEnable(GL11.GL_LIGHTING); GL11.glEnable(GL11.GL_TEXTURE_2D); } GL11.glPopMatrix(); } protected ResourceLocation func_110808_a(EntityRottenFleshNukePrimed par1EntityTNTPrimed) { return TextureMap.locationBlocksTexture; } /** * Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture. */ protected ResourceLocation getEntityTexture(Entity par1Entity) { return this.func_110808_a((EntityRottenFleshNukePrimed)par1Entity); } /** * Actually renders the given argument. This is a synthetic bridge method, always casting down its argument and then * handing it off to a worker function which does the actual work. In all probabilty, the class Render is generic * (Render<T extends Entity) and this method has signature public void doRender(T entity, double d, double d1, * double d2, float f, float f1). But JAD is pre 1.5 so doesn't do that. */ public void doRender(Entity par1Entity, double par2, double par4, double par6, float par8, float par9) { this.renderPrimedTNT((EntityRottenFleshNukePrimed)par1Entity, par2, par4, par6, par8, par9); } }
  3. Thanks for sharing the idea. If you can tweak it a little it can work out fine.
  4. Question: What exactly does the BetterArmor add in?
  5. Hello Im making a mod and want to add in a custom tnt but I cant find any tutorials for this. Any links or suggestions?
  6. Well I don't exactly want the firework to burst into a bunch of particles. Instead I want it to spawn in a bunch of rotten flesh. So it would kindve be like its raining rotten flesh.
  7. Hello. Im making a mod and I want to make a custom firework. Any ideas on how to make it?
  8. Thanks. I hope you enjoy the mod if you're going to download it.
  9. Just realized I did it twice. Silly mistake. Also I've ,never really used the Math(). So could you give me some code to work with? Thanks.
  10. I tried what you said but for some reason it teleported me far up. Heres my code. player.setPositionAndUpdate(player.posX+2, player.posZ, player.posZ);
  11. I meant teleport and no I didn't realize it won't stack but thats fine.
  12. Please help!! I really need this for my mod.
  13. Hello. I'm making a mod and want move over two blocks on item right click. Is there a way to do that?
  14. For a whole armor set or only one?
  15. Will try these videos.
  16. 1.I do you eclipse 2. What command are you talking about? The search command(Control+H) or what?
  17. Oh ok. I dont know then.
  18. Any idea what package its in?
  19. This mod adds in a few items and blocks such as the rotten flesh wand of lightning,rotten flesh speed boots,and cooked zombie flesh which will make rotten flesh much more useful. For download and details go to this link. http://www.minecraftforum.net/topic/2242534-164forge-rotten-flesh-mod/
  20. Check in your bin\main\resources\assets\puplet\textures\blocks to check if your texture is there.
  21. Please anyone?
  22. Hello. I'm making a mod and want to make a custom tree. But I can't seem to find any good tutorials of any. If any of you know of a good one please tell me.
  23. This was my code orignally public class RottenFleshWandZombieTamer extends Item{ public RottenFleshWandZombieTamer(int par1) { super(par1); } @Override public boolean itemInteractionForEntity(ItemStack itemStack,EntityPlayer player,EntityLivingBase target) { player.sendChatToPlayer(ChatMessageComponent.createFromText("Activated.")); // Run locally only if (target.worldObj.isRemote) return false; if (target instanceof EntityZombie) { player.sendChatToPlayer(ChatMessageComponent.createFromText("EntityZombie, testing task.")); EntityZombie zombie = (EntityZombie) target; EntityAITaskEntry task = (EntityAITaskEntry) zombie.targetTasks.taskEntries.get(1); if (task.action instanceof EntityAINearestAttackableTarget) { zombie.targetTasks.removeTask(task.action); } } }else{ return false; } return false; } } I changed it to this: public class RottenFleshWandZombieTamer extends Item{ public RottenFleshWandZombieTamer(int par1) { super(par1); } @Override public boolean itemInteractionForEntity(ItemStack itemStack,EntityPlayer player,EntityLivingBase target) { player.sendChatToPlayer(ChatMessageComponent.createFromText("Activated.")); // Run locally only if (target.worldObj.isRemote) return false; if (target instanceof EntityZombie) { player.sendChatToPlayer(ChatMessageComponent.createFromText("EntityZombie, testing task.")); EntityZombie zombie = (EntityZombie) target; if (zombie.targetTasks.taskEntries.size()!=0){ EntityAITaskEntry task = (EntityAITaskEntry) zombie.targetTasks.taskEntries.get(1); if (task.action instanceof EntityAINearestAttackableTarget) { zombie.targetTasks.removeTask(task.action); } } }else{ return false; } return false; } } It still doesn't work and gives me the same error. Please Help!!!

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.