• 1

    posted a message on PaleoCraft -- Realistic Dinosaurs in Minecraft!
    It's fine to install the mod on a existing world. When the dimension comes out it won't affect the world either.
    Posted in: Minecraft Mods
  • 0

    posted a message on mob code run at random times
    sorry to bump but its the last thing i need to know
    Posted in: Modification Development
  • 0

    posted a message on mob code run at random times
    Thanks that's one part done :D
    Posted in: Modification Development
  • 0

    posted a message on mob code run at random times
    ok I have the structure I want but how would I write the code that kills the entity and spawns another in a AI class?
    Posted in: Modification Development
  • 0

    posted a message on PaleoCraft -- Realistic Dinosaurs in Minecraft!
    What version of minecraft are you using?
    Posted in: Minecraft Mods
  • 0

    posted a message on mob code run at random times
    Hi I want my code for my mob to run at random times instead of running straight away when the mob spawns.




    public void onLivingUpdate()
    {
    super.onLivingUpdate();

    if (this.getIsBatHanging())
    {
    setDead();
    EntityDimorphodonL entitydimorphodonl = new EntityDimorphodonL(worldObj);
    entitydimorphodonl.setLocationAndAngles(posX, posY, posZ, rotationYaw, rotationPitch);
    entitydimorphodonl.setHealth(this.getHealth());
    entitydimorphodonl.renderYawOffset = renderYawOffset;
    worldObj.spawnEntityInWorld(entitydimorphodonl);
    // this.playSound("mob.other.takeoff", 1.0F, (this.rand.nextFloat() - this.rand.nextFloat()) * 0.2F + 1.0F);
    GameLogger.writeToFile(Level.INFO, "Loading Dimorph Land Model.");

    // System.out.println("code activated for entitydimorphodon (line 89)");
    // this.posY = (double)MathHelper.floor_double(this.posY) + 1.0D - (double)this.height;
    }
    }

    Posted in: Modification Development
  • 0

    posted a message on PaleoCraft -- Realistic Dinosaurs in Minecraft!
    Quote from mcferson»

    wait what ?
    They never spawn by themselves, in the world ?
    Where - is - the - fun ?

    Well for now they're spawned by eggs because the dimension is being remade. So soon they will spawn by themselves!
    Posted in: Minecraft Mods
  • 0

    posted a message on PaleoCraft -- Realistic Dinosaurs in Minecraft!
    New version of Paleocraft available

    http://www.fisherman77.tk/downloads.html

    1.5.2:

    -Updated to forge version: 10.13.2.1277
    -Changed Themed Fossil Ore to Holiday Themed Fossil ore
    -Changed Fossil Candy Cane
    -Added in blocks connected to dimension
    -Added code for dimension
    -Made Seaweed's hitbox bigger
    -Seaweed can only be placed on sand near water

    The dimension stuff can't be used or seen. If you see any dimension stuff on toomanyitems or something else don't touch them (especially the portal)

    I'm going to be leaving tomorrow and won't be back for 8 days. Any bugs or stuff found has to be reported by today. Happy Holidays guys!
    Posted in: Minecraft Mods
  • 0

    posted a message on PaleoCraft -- Realistic Dinosaurs in Minecraft!
    Download is available now! :D

    Things will be fixed tomorrow so expect a 1.5.1 version.

    Merry Christmas everyone and thanks for waiting!
    Also remember to tell us things we should fix!
    Posted in: Minecraft Mods
  • 0

    posted a message on PaleoCraft -- Realistic Dinosaurs in Minecraft!
    PALEOCRAFT 1.7.10 CAMBRIAN 1.5

    -Updated to 1.7.10 (latest version of forge 22/12/2014)
    -Added Quetzalcoatlus
    -Added Cryolophosaurus
    -Added Spinosaurus tail animations
    -removed dimension and blocks connected to it
    -added candy cane fossil
    -added Themed Fossil ore (Beta this isn't the blocks final use. This is only for christmas a both christmas items will be removed after christmas)
    -Improved models
    -Massopondylus runs away from other dinos faster
    -bug fixes
    -other things I can't remember because of how long it took

    note: for now the quetz doesn't attack but soon it will. Spino's model might look weird. This is because of the new child pieces on models. All these will be fixed soon.



    Theres a timer on the website for the release since I'm busy testing and have to go somewhere. If I can I will release the mod earlier.

    Website: http://www.fisherman77.tk/downloads.html
    Posted in: Minecraft Mods
  • 0

    posted a message on mod not working on normal launcher (FIXED)
    When ever I test the mod on the normal launcher it always crashes and gives me this error:


    --- Minecraft Crash Report ----
    // Why did you do that?

    Time: 22/12/14 2:34 PM
    Description: There was a severe problem during mod loading that has caused the game to fail

    cpw.mods.fml.common.LoaderException: java.lang.NoSuchFieldError: entityEggs
    at cpw.mods.fml.common.LoadController.transition(LoadController.java:162)
    at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:515)
    at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:239)
    at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:480)
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:867)
    at net.minecraft.client.main.Main.main(SourceFile:148)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
    Caused by: java.lang.NoSuchFieldError: entityEggs
    at fisherman77.paleocraft.common.mobs.RegEntity.createEgg(RegEntity.java:41)
    at fisherman77.paleocraft.common.mobs.RegEntity.createEntity(RegEntity.java:37)
    at fisherman77.paleocraft.common.mobs.RegEntity.registerEntity(RegEntity.java:14)
    at fisherman77.paleocraft.common.mobs.RegEntity.Paleocraft(RegEntity.java:10)
    at fisherman77.paleocraft.common.Paleocraft.PreLoad(Paleocraft.java:145)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
    at com.google.common.eventbus.EventBus.post(EventBus.java:275)
    at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)
    at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
    at com.google.common.eventbus.EventBus.post(EventBus.java:275)
    at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
    at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:513)
    ... 10 more


    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------

    -- System Details --
    Details:
    Minecraft Version: 1.7.10
    Operating System: Windows 7 (amd64) version 6.1
    Java Version: 1.8.0_25, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 227804392 bytes (217 MB) / 389545984 bytes (371 MB) up to 943718400 bytes (900 MB)
    JVM Flags: 1 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump
    AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML: MCP v9.05 FML v7.10.85.1223 Minecraft Forge 10.13.1.1223 4 mods loaded, 4 mods active
    mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized
    FML{7.10.85.1223} [Forge Mod Loader] (forge-1.7.10-10.13.1.1223.jar) Unloaded->Constructed->Pre-initialized
    Forge{10.13.1.1223} [Minecraft Forge] (forge-1.7.10-10.13.1.1223.jar) Unloaded->Constructed->Pre-initialized
    Paleocraft{1.7.10 Cambrian 1.5} [Paleocraft] (Paleocraft Cambrian 1.5.jar) Unloaded->Constructed->Errored

    but on the eclipse launcher I don't get any errors.



    Class error report is talking about:


    import net.minecraft.entity.EntityList;
    import fisherman77.paleocraft.common.Paleocraft;
    import cpw.mods.fml.common.registry.EntityRegistry;

    public class RegEntity {

    public static void Paleocraft(){
    registerEntity();
    }

    public static void registerEntity(){
    createEntity(EntityBaryonyx.class, "EntityBaryonyx", 0x405135, 0xC4C67D);
    createEntity(EntityCitipati.class, "EntityCitipati", 0xA67822, 0xA14A5C);
    createEntity(EntityCompy.class, "EntityCompy", 0x4B4A31, 0xBDBC8B);
    createEntity(EntityDimorphodon.class, "EntityDimorphodon", 0xC8C968, 0x6064C4);
    createEntity(EntityDromaeosaurus.class, "EntityDromaeosaurus", 0x5C5B5C, 0x551305);
    createEntity(EntitySpino.class, "EntitySpino", 0x0E1640, 0xF78708);
    createEntity(EntityMasso.class, "EntityMasso", 0x515151, 0x1E0F50);
    createEntity(EntityTroodon.class, "EntityTroodon", 0x5A5A5A, 0xE8E1BF);
    createEntity(EntityMegalodon.class, "EntityMegalodon", 0x676767, 0x9c9c9c);
    createEntity(EntityTylo.class, "EntityTylo", 0x45369F, 0xFFFFFF);
    createEntity(EntityQuetzalcoatlus.class, "EntityQuetz", 0xF28F0C, 0x8F0CF2);
    //createEntity(EntityQuetzalcoatlusL.class, "EntityQuetzLand", 0xC8C968, 0x6064C4);
    //createEntity(EntityDimorphodonL.class, "EntityDimorphodonLand", 0xC8C968, 0x6064C4);
    createEntity(EntityCryo.class, "EntityCryo", 0xF20000, 0xFFFF3D);

    }


    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, Paleocraft.instance, 64, 1, true);
    createEgg(randomId, solidColour, spotColour);
    }

    private static void createEgg(int randomId, int solidColour, int spotColour) {
    EntityList.entityEggs.put(Integer.valueOf(randomId), new EntityList.EntityEggInfo(randomId, solidColour, spotColour));

    }

    }

    Posted in: Modification Development
  • 0

    posted a message on Flying Lag
    help?
    Posted in: Modification Development
  • 0

    posted a message on Flying Lag
    for some reason my mob acts like its rubber banding when its flying.



    code:


    import cpw.mods.fml.relauncher.Side;
    import cpw.mods.fml.relauncher.SideOnly;
    import net.minecraft.entity.Entity;
    import net.minecraft.entity.EntityFlying;
    import net.minecraft.entity.SharedMonsterAttributes;
    import net.minecraft.entity.monster.IMob;
    import net.minecraft.entity.passive.EntityAmbientCreature;
    import net.minecraft.entity.passive.EntityBat;
    import net.minecraft.entity.player.EntityPlayer;
    import net.minecraft.entity.projectile.EntityLargeFireball;
    import net.minecraft.item.Item;
    import net.minecraft.nbt.NBTTagCompound;
    import net.minecraft.stats.AchievementList;
    import net.minecraft.util.AxisAlignedBB;
    import net.minecraft.util.ChunkCoordinates;
    import net.minecraft.util.DamageSource;
    import net.minecraft.util.MathHelper;
    import net.minecraft.util.Vec3;
    import net.minecraft.world.World;

    public class EntityDimorphodon extends EntityAmbientCreature implements IMob
    {
    public int courseChangeCooldown;
    public double waypointX;
    public double waypointY;
    public double waypointZ;
    private ChunkCoordinates spawnPosition;
    public EntityDimorphodon(World par1World)
    {
    super(par1World);
    this.setSize(0.4F, 0.4F);
    this.setIsBatHanging(true);

    }

    @Override
    protected void applyEntityAttributes() {
    super.applyEntityAttributes();

    getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(1.2); // moveSpeed
    getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(9); // maxHealth
    }

    @SideOnly(Side.CLIENT)
    public boolean func_110182_bF()
    {
    return this.dataWatcher.getWatchableObjectByte(30) != 0;
    }
    public boolean getIsBatHanging()
    {
    return (this.dataWatcher.getWatchableObjectByte(30) & 1) != 0;
    }

    public void setIsBatHanging(boolean p_82236_1_)
    {
    byte b0 = this.dataWatcher.getWatchableObjectByte(30);

    if (p_82236_1_)
    {
    this.dataWatcher.updateObject(30, Byte.valueOf((byte)(b0 | 1)));
    }
    else
    {
    this.dataWatcher.updateObject(30, Byte.valueOf((byte)(b0 & -2)));
    }
    }
    protected void entityInit()
    {
    super.entityInit();
    this.dataWatcher.addObject(30, Byte.valueOf((byte)0));
    }

    protected void updateEntityActionState()
    {

    double d0 = this.waypointX - this.posX;
    double d1 = this.waypointY - this.posY;
    double d2 = this.waypointZ - this.posZ;
    double d3 = d0 * d0 + d1 * d1 + d2 * d2;

    if (d3 < 1.0D || d3 > 3600.0D)
    {
    this.waypointX = this.posX + (double)((this.rand.nextFloat() * 2.0F - 1.0F) * 16.0F);
    this.waypointY = this.posY + (double)((this.rand.nextFloat() * 2.0F - 1.0F) * 16.0F);
    this.waypointZ = this.posZ + (double)((this.rand.nextFloat() * 2.0F - 1.0F) * 16.0F);
    }

    if (this.courseChangeCooldown-- <= 0)
    {
    this.courseChangeCooldown += this.rand.nextInt(5) + 2;
    d3 = (double)MathHelper.sqrt_double(d3);

    if (this.isCourseTraversable(this.waypointX, this.waypointY, this.waypointZ, d3))
    {
    this.motionX += d0 / d3 * 0.1D;
    this.motionY += d1 / d3 * 0.1D;
    this.motionZ += d2 / d3 * 0.1D;
    }
    else
    {
    this.waypointX = this.posX;
    this.waypointY = this.posY;
    this.waypointZ = this.posZ;
    }
    }

    double d4 = 64.0D;
    }

    /**
    * True if the ghast has an unobstructed line of travel to the waypoint.
    */
    private boolean isCourseTraversable(double par1, double par3, double par5, double par7)
    {
    double d4 = (this.waypointX - this.posX) / par7;
    double d5 = (this.waypointY - this.posY) / par7;
    double d6 = (this.waypointZ - this.posZ) / par7;
    AxisAlignedBB axisalignedbb = this.boundingBox.copy();

    for (int i = 1; (double)i < par7; ++i)
    {
    axisalignedbb.offset(d4, d5, d6);

    if (!this.worldObj.getCollidingBoundingBoxes(this, axisalignedbb).isEmpty())
    {
    return false;
    }
    }

    return true;
    }

    /**
    * Returns the sound this mob makes while it's alive.
    */
    @Override
    protected String getLivingSound()
    {
    playSound("Paleocraft:mob.dimorph.dimorphliving", getSoundVolume(), getSoundPitch());
    return null;
    }

    /**
    * Returns the sound this mob makes when it is hurt.
    */
    @Override
    protected String getHurtSound()
    {
    playSound("Paleocraft:mob.dimorph.dimorphhurt", getSoundVolume(), getSoundPitch());
    return null;
    }

    /**
    * Returns the sound this mob makes on death.
    */
    @Override
    protected String getDeathSound()
    {
    playSound("Paleocraft:mob.other.smallcarndeath", getSoundVolume(), getSoundPitch());
    return null;
    }

    public void onUpdate()
    {
    super.onUpdate();

    if (this.getIsBatHanging())
    {
    this.motionX = this.motionY = this.motionZ = 0.0D;
    this.posY = (double)MathHelper.floor_double(this.posY) + 1.0D - (double)this.height;
    }
    else
    {
    this.motionY *= 20.6000000238418579D;
    }
    }

    protected void updateAITasks(Entity entitydimorphodonl)
    {
    super.updateAITasks();

    if (this.getIsBatHanging())
    {
    if (!this.worldObj.getBlock(MathHelper.floor_double(this.posX), (int)this.posY + 1, MathHelper.floor_double(this.posZ)).isNormalCube())
    {
    this.setIsBatHanging(false);
    // this.worldObj.playAuxSFXAtEntity((EntityPlayer)null, 1015, (int)this.posX, (int)this.posY, (int)this.posZ, 0);
    }
    else
    {
    if (this.rand.nextInt(200) == 0)
    {
    this.rotationYawHead = (float)this.rand.nextInt(360);
    }

    if (this.worldObj.getClosestPlayerToEntity(this, 4.0D) != null)
    {
    //this.setIsBatHanging(false);
    // this.worldObj.playAuxSFXAtEntity((EntityPlayer)null, 1015, (int)this.posX, (int)this.posY, (int)this.posZ, 0);
    }
    }
    }
    else
    {
    if (this.spawnPosition != null && (!this.worldObj.isAirBlock(this.spawnPosition.posX, this.spawnPosition.posY, this.spawnPosition.posZ) || this.spawnPosition.posY < 1))
    {
    this.spawnPosition = null;
    }

    if (this.spawnPosition == null || this.rand.nextInt(30) == 0 || this.spawnPosition.getDistanceSquared((int)this.posX, (int)this.posY, (int)this.posZ) < 4.0F)
    {
    this.spawnPosition = new ChunkCoordinates((int)this.posX + this.rand.nextInt(7) - this.rand.nextInt(7), (int)this.posY + this.rand.nextInt(6) - 2, (int)this.posZ + this.rand.nextInt(7) - this.rand.nextInt(7));
    }

    double d0 = (double)this.spawnPosition.posX + 0.5D - this.posX;
    double d1 = (double)this.spawnPosition.posY + 0.1D - this.posY;
    double d2 = (double)this.spawnPosition.posZ + 0.5D - this.posZ;
    this.motionX += (Math.signum(d0) * 0.5D - this.motionX) * 0.10000000149011612D;
    this.motionY += (Math.signum(d1) * 0.699999988079071D - this.motionY) * 0.10000000149011612D;
    this.motionZ += (Math.signum(d2) * 0.5D - this.motionZ) * 0.10000000149011612D;
    float f = (float)(Math.atan2(this.motionZ, this.motionX) * 180.0D / Math.PI) - 90.0F;
    float f1 = MathHelper.wrapAngleTo180_float(f - this.rotationYaw);
    this.moveForward = 0.5F;
    this.rotationYaw += f1;
    this.setIsBatHanging(true);
    setDead();
    EntityDimorphodonL entitydimorphodonl1 = new EntityDimorphodonL(worldObj);
    entitydimorphodonl1.setLocationAndAngles(posX, posY, posZ, rotationYaw, rotationPitch);
    entitydimorphodonl1.setHealth(this.getHealth());
    entitydimorphodonl1.renderYawOffset = renderYawOffset;
    worldObj.spawnEntityInWorld(entitydimorphodonl1);
    if (this.rand.nextInt(100) == 0 && this.worldObj.getBlock(MathHelper.floor_double(this.posX), (int)this.posY + 1, MathHelper.floor_double(this.posZ)).isNormalCube())
    {
    this.setIsBatHanging(true);
    /*setDead();
    EntityDimorphodonL entitydimorphodonl = new EntityDimorphodonL(worldObj);
    entitycow.setLocationAndAngles(posX, posY, posZ, rotationYaw, rotationPitch);
    entitycow.setHealth(this.getHealth());
    entitycow.renderYawOffset = renderYawOffset;
    worldObj.spawnEntityInWorld(entitydimorphodonl);*/

    }
    }
    }

    /* protected boolean isAIEnabled()
    {
    return true;
    }*/



    }

    Posted in: Modification Development
  • 0

    posted a message on Flying entity land on ground
    Thx I know how to change a mob to a different entity so all I really have to do is work out how to make the code set the entity on the top face.
    Posted in: Modification Development
  • 0

    posted a message on PaleoCraft -- Realistic Dinosaurs in Minecraft!
    maybe a idea working downloads

    you could explain the problem instead of being rude :/ if your trying to click the 1.7.10 download then it won't work as the update hasn't been released yet. Please use the 1.6.4 download as that has been tested.
    Posted in: Minecraft Mods
  • To post a comment, please or register a new account.