Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

MikeDark

Members
  • Posts

    54
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    A New God!

MikeDark's Achievements

Stone Miner

Stone Miner (3/8)

0

Reputation

  1. Ohh... Sorry, the full code it's in down I remove the super, but the error continued... ( same error) Full Render Code: @edit thanks for your help, I changed the "extended" and modified the model class... thanks...
  2. Sorry, but i don't understand your reply. Rename the methods and variables will solve the problem? If yes, which metodos and variables?
  3. Hello guys. I come here to ask for help to resolve the "GL ERROR". This has occurred after enable the "RenderEquippedItems" method... The video show the problem after enable the "render" and the "solution" after disable the "render". Render Code: Error: Video: https://www.youtube.com/watch?v=fkn2sYTYjSw
  4. Friend didn't work, I have a sleeping bag in my mod and its height is very low and the player suffers the same effect on getting the height of a bed ...
  5. I am creating a tent and she is already fully ready, but I'm suffering from a little bug at bedtime where the player is flying, I tried to give a search but could not find where make the change and would your help... Bug My tent code:
  6. I understand, I ended up placing a minor collision box, was not that thing OH MY GOD, but is good...
  7. Well actually the image was not very clear, but I discovered that the problem was in the plains as in mountainous or forest biomes it they appears in smaller quantities... Good but after solving this problem I came across one that I had not realized, the collision box that it is too big for the sides, however is perfect on the front and top, how can I fix?
  8. Hello everyone, I'm suffering from a problem on the spawn of my mobs, even putting a low rate, spawn limit per chunk, among others, and many of them are appearing and that ends up being bad, and would like to ask help to solve this problem... The Problem: My Bear Entity: package mike.scoutcraft.entity; import mike.scoutcraft.items.SCItems; import net.minecraft.entity.SharedMonsterAttributes; import net.minecraft.entity.ai.EntityAIAttackOnCollide; 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.ai.EntityAIWatchClosest; import net.minecraft.entity.monster.EntityMob; import net.minecraft.entity.passive.EntityVillager; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.world.World; public class EntityUrsoPreto extends EntityMob { public EntityUrsoPreto(World world) { super(world); this.experienceValue=5; this.setSize(1.8F, 1.25F); this.tasks.addTask(0, new EntityAISwimming(this)); this.tasks.addTask(1, new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.0D, true)); this.tasks.addTask(1, new EntityAIAttackOnCollide(this, EntityVillager.class, 1.0D, false)); this.tasks.addTask(3, new EntityAIWander(this, 1.0D)); this.tasks.addTask(4, new EntityAIWatchClosest(this, EntityPlayer.class, 12.0F)); this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true)); this.targetTasks.addTask(1, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true)); this.targetTasks.addTask(1, new EntityAINearestAttackableTarget(this, EntityVillager.class, 0, false)); } @Override protected void applyEntityAttributes() { super.applyEntityAttributes(); this.getEntityAttribute(SharedMonsterAttributes.attackDamage).setBaseValue(5.0D); this.getEntityAttribute(SharedMonsterAttributes.followRange).setBaseValue(16.0D); this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(0.30D); this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(30.0D); } protected boolean isAIEnabled() { return true; } @Override public int getMaxSpawnedInChunk() { return 2; } @Override protected boolean isValidLightLevel() { return true; } @Override public boolean getCanSpawnHere() { return true; } protected Item getDropItem(){ return SCItems.CouroDeUrso; } protected void dropRareDrop(int par1){ switch (this.rand.nextInt(3)){ case 0: } } protected String getLivingSound() { return "scoutcraft:rugidourso"; } protected String getHurtSound() { return "scoutcraft:machucarurso"; } protected String getDeathSound() { return "scoutcraft:matarurso"; } } My entity registration and the spawn registry: package mike.scoutcraft.entity; import mike.scoutcraft.main.ScoutCraft; import net.minecraft.entity.EntityList; import net.minecraft.entity.EnumCreatureType; import net.minecraft.world.biome.BiomeGenBase; import cpw.mods.fml.common.registry.EntityRegistry; public class SCMobs { public static void mainRegistry(){ registerEntity(); } public static void registerEntity(){ createEntity(EntityUrsoMarrom.class, "UrsoMarrom", 0xD62727, 0x27A2D6); createEntity(EntityUrsoPreto.class, "UrsoPreto", 0xD62727, 0x27A2D6); createEntity(EntityFormiga.class, "Formiga", 0xD62727, 0x27A2D6); createEntity(EntityCupim.class, "Cupim", 0xD62727, 0x27A2D6); createEntity(EntityGuaxinim.class, "Guaxinim", 0xD62727, 0x27A2D6); createEntity(EntityGuaxinimLadrao.class, "GuaxinimLadrao", 0xD62727, 0x27A2D6); } public static void createEntity(Class entityClass, String entityName, int solidColour, int spotColour){ int randomId = EntityRegistry.findGlobalUniqueEntityId(); EntityRegistry.registerGlobalEntityID(entityClass, entityName, randomId); EntityRegistry.registerModEntity(entityClass, entityName, randomId, ScoutCraft.Instance, 64, 1, true); createEgg(randomId, solidColour, spotColour); EntityRegistry.addSpawn(EntityUrsoMarrom.class, 2, 1, 1, EnumCreatureType.monster, BiomeGenBase.beach, BiomeGenBase.birchForest, BiomeGenBase.birchForestHills, BiomeGenBase.coldBeach, BiomeGenBase.coldTaiga, BiomeGenBase.coldTaigaHills, BiomeGenBase.extremeHills, BiomeGenBase.extremeHillsEdge, BiomeGenBase.extremeHillsPlus, BiomeGenBase.forest, BiomeGenBase.forestHills, BiomeGenBase.frozenRiver, BiomeGenBase.iceMountains, BiomeGenBase.icePlains, BiomeGenBase.jungle, BiomeGenBase.jungleEdge, BiomeGenBase.jungleHills, BiomeGenBase.megaTaiga, BiomeGenBase.megaTaigaHills, BiomeGenBase.mesa, BiomeGenBase.mesaPlateau, BiomeGenBase.mesaPlateau_F, BiomeGenBase.mushroomIsland, BiomeGenBase.mushroomIslandShore, BiomeGenBase.plains, BiomeGenBase.river, BiomeGenBase.roofedForest, BiomeGenBase.savanna, BiomeGenBase.savannaPlateau, BiomeGenBase.stoneBeach, BiomeGenBase.swampland, BiomeGenBase.taiga, BiomeGenBase.taigaHills); EntityRegistry.addSpawn(EntityUrsoPreto.class, 2, 1, 1, EnumCreatureType.monster, BiomeGenBase.beach, BiomeGenBase.birchForest, BiomeGenBase.birchForestHills, BiomeGenBase.coldBeach, BiomeGenBase.coldTaiga, BiomeGenBase.coldTaigaHills, BiomeGenBase.extremeHills, BiomeGenBase.extremeHillsEdge, BiomeGenBase.extremeHillsPlus, BiomeGenBase.forest, BiomeGenBase.forestHills, BiomeGenBase.frozenRiver, BiomeGenBase.iceMountains, BiomeGenBase.icePlains, BiomeGenBase.jungle, BiomeGenBase.jungleEdge, BiomeGenBase.jungleHills, BiomeGenBase.megaTaiga, BiomeGenBase.megaTaigaHills, BiomeGenBase.mesa, BiomeGenBase.mesaPlateau, BiomeGenBase.mesaPlateau_F, BiomeGenBase.mushroomIsland, BiomeGenBase.mushroomIslandShore, BiomeGenBase.plains, BiomeGenBase.river, BiomeGenBase.roofedForest, BiomeGenBase.savanna, BiomeGenBase.savannaPlateau, BiomeGenBase.stoneBeach, BiomeGenBase.swampland, BiomeGenBase.taiga, BiomeGenBase.taigaHills); EntityRegistry.addSpawn(EntityGuaxinim.class, 3, 1, 2, EnumCreatureType.creature, BiomeGenBase.beach, BiomeGenBase.birchForest, BiomeGenBase.birchForestHills, BiomeGenBase.coldBeach, BiomeGenBase.coldTaiga, BiomeGenBase.coldTaigaHills, BiomeGenBase.extremeHills, BiomeGenBase.extremeHillsEdge, BiomeGenBase.extremeHillsPlus, BiomeGenBase.forest, BiomeGenBase.forestHills, BiomeGenBase.frozenRiver, BiomeGenBase.iceMountains, BiomeGenBase.icePlains, BiomeGenBase.jungle, BiomeGenBase.jungleEdge, BiomeGenBase.jungleHills, BiomeGenBase.megaTaiga, BiomeGenBase.megaTaigaHills, BiomeGenBase.mesa, BiomeGenBase.mesaPlateau, BiomeGenBase.mesaPlateau_F, BiomeGenBase.mushroomIsland, BiomeGenBase.mushroomIslandShore, BiomeGenBase.plains, BiomeGenBase.river, BiomeGenBase.roofedForest, BiomeGenBase.savanna, BiomeGenBase.savannaPlateau, BiomeGenBase.stoneBeach, BiomeGenBase.swampland, BiomeGenBase.taiga, BiomeGenBase.taigaHills); EntityRegistry.addSpawn(EntityGuaxinimLadrao.class, 1, 1, 1, EnumCreatureType.creature, BiomeGenBase.beach, BiomeGenBase.birchForest, BiomeGenBase.birchForestHills, BiomeGenBase.coldBeach, BiomeGenBase.coldTaiga, BiomeGenBase.coldTaigaHills, BiomeGenBase.extremeHills, BiomeGenBase.extremeHillsEdge, BiomeGenBase.extremeHillsPlus, BiomeGenBase.forest, BiomeGenBase.forestHills, BiomeGenBase.frozenRiver, BiomeGenBase.iceMountains, BiomeGenBase.icePlains, BiomeGenBase.jungle, BiomeGenBase.jungleEdge, BiomeGenBase.jungleHills, BiomeGenBase.megaTaiga, BiomeGenBase.megaTaigaHills, BiomeGenBase.mesa, BiomeGenBase.mesaPlateau, BiomeGenBase.mesaPlateau_F, BiomeGenBase.mushroomIsland, BiomeGenBase.mushroomIslandShore, BiomeGenBase.plains, BiomeGenBase.river, BiomeGenBase.roofedForest, BiomeGenBase.savanna, BiomeGenBase.savannaPlateau, BiomeGenBase.stoneBeach, BiomeGenBase.swampland, BiomeGenBase.taiga, BiomeGenBase.taigaHills); } private static void createEgg(int randomId, int solidColour, int spotColour) { EntityList.entityEggs.put(Integer.valueOf(randomId), new EntityList.EntityEggInfo(randomId, solidColour, spotColour)); } }
  9. Thank you friend, for those who have the same doubts I used the following code: @Override public void onNeighborBlockChange(World world, int x, int y, int z, Block block) { if(world.getBlock(x, y - 1,z) == Blocks.air) { world.setBlockToAir(x, y, z); } super.onNeighborBlockChange(world, x, y, z, block); }
  10. Good afternoon, I would like to know how can I make my block break when removed the block that is just below it, my friend and I tried a few things but nothing worked, you have any idea?
  11. thank you, I left as 32 even, it is more than the enough
  12. wanted him that spawn randomly in the world, but I've finished this part ... Final Result:
  13. Good friend, I would first like to thank you. I believe should treat me better, I have head full of problems and simply forgot this detail, then came to the support, to ask a simple question... Well, leveraging the same topic, could help me make my block spawn randomly my termites, if not is much ...
  14. Hello, i would like to spawn many entitys on break block, but could only do spawn one: My onBlockDestroyedByPlayer: public void onBlockDestroyedByPlayer(World par1World, int par2, int par3, int par4, int par5) { if (!par1World.isRemote) { EntityCupim entitycupim = new EntityCupim(par1World); entitycupim.setLocationAndAngles((double)par2 + 0.5D, (double)par3, (double)par4 + 0.5D, 0.0F, 0.0F); par1World.spawnEntityInWorld(entitycupim); entitycupim.spawnExplosionParticle(); } super.onBlockDestroyedByPlayer(par1World, par2, par3, par4, par5); }
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.