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.

camerpon900

Members
  • Joined

  • Last visited

  1. Anyone got any idea i cant understand why this is happening
  2. Hi whenever i hit my boss i can hit him once but no more and he continuously turns red like when you hit a normal mob but stays that way Entity package com.camerpon900.realauto2.bosses; import com.camerpon900.realauto2.RealAuto2; import com.camerpon900.realauto2.entity.EntityCamerpon900Mob; import cpw.mods.fml.common.registry.EntityRegistry; import net.minecraft.entity.EnumCreatureType; import net.minecraft.entity.SharedMonsterAttributes; import net.minecraft.entity.ai.EntityAIHurtByTarget; import net.minecraft.entity.ai.EntityAINearestAttackableTarget; import net.minecraft.entity.ai.EntityAISwimming; import net.minecraft.entity.ai.EntityAIWander; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.util.DamageSource; import net.minecraft.world.World; import net.minecraft.world.biome.BiomeGenBase; public class EntityRedstoneBoss extends RA2Boss { public EntityRedstoneBoss(World world) { super(world); this.setSize(3F,4F); } @Override protected void applyEntityAttributes(){ super.applyEntityAttributes(); this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(220D); } @Override protected void initAI(){ this.getNavigator().setBreakDoors(true); this.tasks.addTask(0, new EntityAIWander(this, 1D)); this.tasks.addTask(1, new EntityAISwimming(this)); this.targetTasks.addTask(2, new EntityAIHurtByTarget(this, true)); this.targetTasks.addTask(3, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true)); } public int hitCount = 0; @Override public boolean attackEntityFrom(DamageSource par1DamageSource, float par2){ hitCount++; return super.attackEntityFrom(par1DamageSource, par2); } } Bosses Class package com.camerpon900.realauto2.bosses; import com.camerpon900.realauto2.RealAuto2; import net.minecraft.entity.SharedMonsterAttributes; import net.minecraft.entity.ai.EntityAIHurtByTarget; import net.minecraft.entity.ai.EntityAINearestAttackableTarget; import net.minecraft.entity.ai.EntityAISwimming; import net.minecraft.entity.monster.EntityMob; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.potion.PotionEffect; import net.minecraft.world.World; public class RA2Boss extends EntityMob implements IRA2Boss { public boolean playerCanSee = false; public RA2Boss(World world) { super(world); this.stepHeight = 1.02f; initAI(); } @Override public void onUpdate() { } public void addAI() { } @Override protected boolean isAIEnabled(){ return true; } @Override protected void applyEntityAttributes(){ super.applyEntityAttributes(); this.getEntityAttribute(SharedMonsterAttributes.followRange).setBaseValue(48); } protected void initAI(){ this.getNavigator().setBreakDoors(true); this.tasks.addTask(0, new EntityAISwimming(this)); this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true)); this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true)); } @Override public boolean allowLeashing(){ return false; } @Override public void addPotionEffect(PotionEffect effect){ super.addPotionEffect(effect); } public World func_82194_d(){ return this.worldObj; } } Renderer package com.camerpon900.realauto2.bosses.render; import com.camerpon900.realauto2.bosses.RA2Boss; import net.minecraft.client.model.ModelBase; import net.minecraft.client.renderer.entity.RenderLiving; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.boss.BossStatus; import net.minecraft.util.ResourceLocation; public abstract class RenderBoss extends RenderLiving { public RenderBoss(ModelBase model) { super(model,0.5F); } @Override protected void renderModel(EntityLivingBase par1EntityLivingBase, float par2, float par3, float par4, float par5, float par6, float par7){ RA2Boss boss = (RA2Boss)par1EntityLivingBase; BossStatus.setBossStatus((RA2Boss) par1EntityLivingBase, true); super.renderModel(par1EntityLivingBase, par2, par3, par4, par5, par6, par7); } @Override protected abstract ResourceLocation getEntityTexture(Entity entity); } EDIT: I am aware that my boss has no AI yet and i want to find this out first before he goes around killing me and i cant do any damage to him
  3. thanks i found out what was wrong i set the tile entity to itself instead of the tile entity assigned to the guihandler
  4. Crash Log http://pastebin.com/P0vpu22S Container http://pastebin.com/kNcQcuHK
  5. I understand what a NullPointException is but i cant understand why i am getting this Gui http://pastebin.com/iTNC3HMu TileEntity http://pastebin.com/1CAW2ytd
  6. Ok thanks i posted it on pastebin here are the links: Container - http://pastebin.com/vgtHMEuM TileEntity - http://pastebin.com/pdkGYfqp
  7. Hi when i cant insert a item into my top slot however i can in my bottom slot but when i do that it appears in my top slot and bottom and if i extract the item from the top it duplicates the item TileEntity Container
  8. When i insert items into my energy cube i cant insert items into the top slot but i can on the bottom and it shows in the bottom and top however if i then pull items out of the top it duplicates the items. TileEntity Container GUIHandler
  9. Here is my container code
  10. Hi I am making a mod and i am getting a ArrayOutOfBounds error i know it means that its looking for something out of my bounds but i cant find it pls help thx

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.