Jump to content

[Unsolved][1.12.2] Problem on spawning one-per-player-entity spawned by item


_Cruelar_

Recommended Posts

I know that I also try that but for big Problems like that I often start with Vanilla code that works quite similar like in this case the FishingRod and FishHook similar to my Clawshot and its head to get the theory.

BTW: How would I add a signature to my posts?

Edited by _Cruelar_

My Projects:

Cruelars Triforcemod (1.12 release; 1.14 alpha soon coming)

 

Important:

As my mod is on at least 10 different third party sites without my permission, I want to warn you about that with a link to StopModReposts

Link to comment
Share on other sites

  • Replies 71
  • Created
  • Last Reply

Top Posters In This Topic

40 minutes ago, _Cruelar_ said:

BTW: How would I add a signature to my posts?

You go into your account settings.

13 minutes ago, _Cruelar_ said:

I feel pretty dumb to ask but how get I an Entity by its UUID as world only has the method getPlayerEntitiesByUUID()

You'll have to loop through the loadedEntityList and look for it yourself. Since there is no method available already.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

I've wrote a method to find the Entity

Code

package com.cruelar.cruelars_triforcemod.items;

import com.cruelar.cruelars_triforcemod.Cruelars_Triforcemod_Core;
import com.cruelar.cruelars_triforcemod.entities.projectiles.Clawshot_Head;
import com.cruelar.cruelars_triforcemod.inventory.cruelars_triforcemod;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.IItemPropertyGetter;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.ActionResult;
import net.minecraft.util.EnumActionResult;
import net.minecraft.util.EnumHand;
import net.minecraft.util.ResourceLocation;
import net.minecraft.world.World;
import net.minecraftforge.client.model.ModelLoader;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

import javax.annotation.Nullable;
import java.util.List;
import java.util.Objects;
import java.util.UUID;

public class Clawshot_TP extends Item {

    public Clawshot_TP(){
        this.setCreativeTab(cruelars_triforcemod.CRUELARS_TRIFORCEMOD);
        this.setRegistryName("clawshot_tp");
        this.setUnlocalizedName(Cruelars_Triforcemod_Core.MODID+".clawshot_tp");
        this.addPropertyOverride(new ResourceLocation("cast"), new IItemPropertyGetter() {
            @SideOnly(Side.CLIENT)
            public float apply(ItemStack p_apply_1_, @Nullable World p_apply_2_, @Nullable EntityLivingBase p_apply_3_) {
                if (p_apply_3_ == null) {
                    return 0.0F;
                } else {
                    boolean lvt_4_1_ = p_apply_3_.getHeldItemMainhand() == p_apply_1_;
                    boolean lvt_5_1_ = p_apply_3_.getHeldItemOffhand() == p_apply_1_;
                    if (p_apply_3_.getHeldItemMainhand().getItem() instanceof Clawshot_TP) {
                        lvt_5_1_ = false;
                    }

                    return (lvt_4_1_ || lvt_5_1_) && p_apply_3_ instanceof EntityPlayer && ((EntityPlayer)p_apply_3_).fishEntity != null ? 1.0F : 0.0F;
                }
            }
        });
    }

    @Override
    public ActionResult<ItemStack> onItemRightClick(World world, EntityPlayer entityPlayer,EnumHand enumHand) {
        ItemStack itemStack = entityPlayer.getHeldItem(enumHand);
        Clawshot_Head clawshot_head = new Clawshot_Head(world, entityPlayer);
        if (!world.isRemote) {
            if (!this.getTagCompoundSafe(itemStack).hasKey("shot") || !this.getTagCompoundSafe(itemStack).getBoolean("shot") || this.getEntityByUUID(Objects.requireNonNull(this.getTagCompoundSafe(itemStack).getUniqueId("head")),world,itemStack).isDead) {
                world.spawnEntity(clawshot_head);
                this.getTagCompoundSafe(itemStack).setBoolean("shot",true);
                this.getTagCompoundSafe(itemStack).setUniqueId("head",clawshot_head.getUniqueID());
            } else {
                clawshot_head.setDead();
                this.getTagCompoundSafe(itemStack).setBoolean("shot",false);
            }
        }
        return new ActionResult(EnumActionResult.SUCCESS,itemStack);
    }

    @SideOnly(Side.CLIENT)
    public void initModel(){
        ModelLoader.setCustomModelResourceLocation(this, 0, new ModelResourceLocation(Objects.requireNonNull(getRegistryName()), "inventory"));
    }

    private NBTTagCompound getTagCompoundSafe(ItemStack stack) {
        NBTTagCompound tagCompound = stack.getTagCompound();
        if (tagCompound == null) {
            tagCompound = new NBTTagCompound();
            stack.setTagCompound(tagCompound);
        }
        return tagCompound;
    }

    public Entity getEntityByUUID(UUID entityUUID, World worldIn, ItemStack itemStack){
        int lenght =worldIn.getLoadedEntityList().size();
        List<Entity> loadedEntityList= worldIn.getLoadedEntityList();
        Entity foundEntity = null;
        for (int i = 0;i<lenght;i++){
            if (loadedEntityList.get(i).getUniqueID()==entityUUID){
                foundEntity = loadedEntityList.get(i);
            }
        }
        return foundEntity;
    }
}

Error:

Spoiler

[22:18:22] [Server thread/FATAL] [net.minecraft.server.MinecraftServer]: Error executing task
java.util.concurrent.ExecutionException: java.lang.NullPointerException
    at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_152]
    at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_152]
    at net.minecraft.util.Util.runTask(Util.java:54) [Util.class:?]
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:798) [MinecraftServer.class:?]
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:743) [MinecraftServer.class:?]
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:192) [IntegratedServer.class:?]
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:592) [MinecraftServer.class:?]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_152]
Caused by: java.lang.NullPointerException
    at com.cruelar.cruelars_triforcemod.items.Clawshot_TP.onItemRightClick(Clawshot_TP.java:57) ~[Clawshot_TP.class:?]
    at net.minecraft.item.ItemStack.useItemRightClick(ItemStack.java:234) ~[ItemStack.class:?]
    at net.minecraft.server.management.PlayerInteractionManager.processRightClick(PlayerInteractionManager.java:384) ~[PlayerInteractionManager.class:?]
    at net.minecraft.network.NetHandlerPlayServer.processTryUseItem(NetHandlerPlayServer.java:794) ~[NetHandlerPlayServer.class:?]
    at net.minecraft.network.play.client.CPacketPlayerTryUseItem.processPacket(CPacketPlayerTryUseItem.java:43) ~[CPacketPlayerTryUseItem.class:?]
    at net.minecraft.network.play.client.CPacketPlayerTryUseItem.processPacket(CPacketPlayerTryUseItem.java:9) ~[CPacketPlayerTryUseItem.class:?]
    at net.minecraft.network.PacketThreadUtil$1.run(PacketThreadUtil.java:21) ~[PacketThreadUtil$1.class:?]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_152]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_152]
    at net.minecraft.util.Util.runTask(Util.java:53) ~[Util.class:?]
    ... 5 more

Still the Entity respawns after being setDead. What am I missing?

My Projects:

Cruelars Triforcemod (1.12 release; 1.14 alpha soon coming)

 

Important:

As my mod is on at least 10 different third party sites without my permission, I want to warn you about that with a link to StopModReposts

Link to comment
Share on other sites

4 minutes ago, _Cruelar_ said:

Error:

What happens in the if statement if the compound doesn't have a UUID saved to it. Hint: The entity will be null.

5 minutes ago, _Cruelar_ said:

Still the Entity respawns after being setDead. What am I missing?

clawshot_head.setDead();

What does this do? It references a new Entity just created in this method, not yet spawned in the world, and sets it to be dead.

What it should do is gets the entity from the nbt and set that entity to be dead.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

12 hours ago, Animefan8888 said:
13 hours ago, _Cruelar_ said:

Still the Entity respawns after being setDead. What am I missing?


clawshot_head.setDead();

What does this do? It references a new Entity just created in this method, not yet spawned in the world, and sets it to be dead.

What it should do is gets the entity from the nbt and set that entity to be dead.

Ok, I should give more details about that:

The Entity is spawned correctly. Check.

It lives a certain time. Check. (Not exactly what I want it to do but I should already know how to fix that)

Then it dies (NOT by Right clicking again). Check

And Respawns at its original spawnPos and moves again.

But you're right about the error in the code,will fix that.

My Projects:

Cruelars Triforcemod (1.12 release; 1.14 alpha soon coming)

 

Important:

As my mod is on at least 10 different third party sites without my permission, I want to warn you about that with a link to StopModReposts

Link to comment
Share on other sites

Updated code of Item(doesn't results in NPE anymore):

package com.cruelar.cruelars_triforcemod.items;

import com.cruelar.cruelars_triforcemod.Cruelars_Triforcemod_Core;
import com.cruelar.cruelars_triforcemod.entities.projectiles.Clawshot_Head;
import com.cruelar.cruelars_triforcemod.inventory.cruelars_triforcemod;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.IItemPropertyGetter;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.ActionResult;
import net.minecraft.util.EnumActionResult;
import net.minecraft.util.EnumHand;
import net.minecraft.util.ResourceLocation;
import net.minecraft.world.World;
import net.minecraftforge.client.model.ModelLoader;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

import javax.annotation.Nullable;
import java.util.List;
import java.util.Objects;
import java.util.UUID;

public class Clawshot_TP extends Item {

    public Clawshot_TP(){
        this.setCreativeTab(cruelars_triforcemod.CRUELARS_TRIFORCEMOD);
        this.setRegistryName("clawshot_tp");
        this.setUnlocalizedName(Cruelars_Triforcemod_Core.MODID+".clawshot_tp");
        this.addPropertyOverride(new ResourceLocation("cast"), new IItemPropertyGetter() {
            @SideOnly(Side.CLIENT)
            public float apply(ItemStack p_apply_1_, @Nullable World p_apply_2_, @Nullable EntityLivingBase p_apply_3_) {
                if (p_apply_3_ == null) {
                    return 0.0F;
                } else {
                    boolean lvt_4_1_ = p_apply_3_.getHeldItemMainhand() == p_apply_1_;
                    boolean lvt_5_1_ = p_apply_3_.getHeldItemOffhand() == p_apply_1_;
                    if (p_apply_3_.getHeldItemMainhand().getItem() instanceof Clawshot_TP) {
                        lvt_5_1_ = false;
                    }

                    return (lvt_4_1_ || lvt_5_1_) && p_apply_3_ instanceof EntityPlayer && ((EntityPlayer)p_apply_3_).fishEntity != null ? 1.0F : 0.0F;
                }
            }
        });
    }

    @Override
    public ActionResult<ItemStack> onItemRightClick(World world, EntityPlayer entityPlayer,EnumHand enumHand) {
        ItemStack itemStack = entityPlayer.getHeldItem(enumHand);
        Clawshot_Head clawshot_head = new Clawshot_Head(world, entityPlayer);
        if (!world.isRemote) {
            if (!this.getTagCompoundSafe(itemStack).hasKey("shot") || !this.getTagCompoundSafe(itemStack).getBoolean("shot") || this.getEntityByUUID(Objects.requireNonNull(this.getTagCompoundSafe(itemStack).getUniqueId("head")),world,itemStack)!=null && this.getEntityByUUID(Objects.requireNonNull(this.getTagCompoundSafe(itemStack).getUniqueId("head")),world,itemStack).isDead) {
                world.spawnEntity(clawshot_head);
                this.getTagCompoundSafe(itemStack).setBoolean("shot",true);
                this.getTagCompoundSafe(itemStack).setUniqueId("head",clawshot_head.getUniqueID());
            } else if (this.getEntityByUUID(this.getTagCompoundSafe(itemStack).getUniqueId("head"),world,itemStack)!=null){
                this.getEntityByUUID(this.getTagCompoundSafe(itemStack).getUniqueId("head"),world,itemStack).setDead();
                this.getTagCompoundSafe(itemStack).setBoolean("shot",false);
            }
        }
        return new ActionResult(EnumActionResult.SUCCESS,itemStack);
    }

    @SideOnly(Side.CLIENT)
    public void initModel(){
        ModelLoader.setCustomModelResourceLocation(this, 0, new ModelResourceLocation(Objects.requireNonNull(getRegistryName()), "inventory"));
    }

    private NBTTagCompound getTagCompoundSafe(ItemStack stack) {
        NBTTagCompound tagCompound = stack.getTagCompound();
        if (tagCompound == null) {
            tagCompound = new NBTTagCompound();
            stack.setTagCompound(tagCompound);
        }
        return tagCompound;
    }

    private Entity getEntityByUUID(UUID entityUUID, World worldIn, ItemStack itemStack){
        int lenght =worldIn.getLoadedEntityList().size();
        List<Entity> loadedEntityList= worldIn.getLoadedEntityList();
        Entity foundEntity = null;
        for (int i = 0;i<lenght;i++){
            if (loadedEntityList.get(i).getUniqueID()==entityUUID){
                foundEntity = loadedEntityList.get(i);
            }
        }
        return foundEntity;
    }
}

The Entity:

package com.cruelar.cruelars_triforcemod.entities.projectiles;

import io.netty.buffer.ByteBuf;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.Entity;
import net.minecraft.entity.MoverType;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.network.datasync.DataParameter;
import net.minecraft.network.datasync.DataSerializers;
import net.minecraft.network.datasync.EntityDataManager;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.*;
import net.minecraft.world.World;
import net.minecraftforge.fml.common.registry.IEntityAdditionalSpawnData;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

import java.util.Iterator;
import java.util.List;

public class Clawshot_Head extends Entity implements IEntityAdditionalSpawnData{
    private EntityPlayer entityPlayer;
    public Entity caughtEntity;
    public Clawshot_Head.State currentState;
    private static final DataParameter<Integer> DATA_HOOKED_ENTITY;
    private boolean inGround;
    private int ticksInAir;
    private int ticksInGround;
    public static ResourceLocation RESOURCE_LOCATION=new ResourceLocation("cruelars_triforcemod:textures/entity/projectiles/clawshot_head.png");

    public Clawshot_Head(World world){
        super(world);
    }

    public Clawshot_Head(World world, EntityPlayer entityPlayer){
        super(world);
        this.init(entityPlayer);
        this.currentState = Clawshot_Head.State.FLYING;
        this.setPosition((double)entityPlayer.posX,(double)entityPlayer.posY+entityPlayer.getEyeHeight(),(double)entityPlayer.posZ);
        this.shoot(entityPlayer);
    }

    @SideOnly(Side.CLIENT)
    public Clawshot_Head(World world, EntityPlayer entityPlayer, double posX, double posY, double posZ) {
        super(world);
        this.init(entityPlayer);
        this.setPosition(posX,posY,posZ);
        this.prevPosX = this.posX;
        this.prevPosY = this.posY;
        this.prevPosZ = this.posZ;
    }

    public void notifyDataManagerChange(DataParameter<?> p_notifyDataManagerChange_1_) {
        if (DATA_HOOKED_ENTITY.equals(p_notifyDataManagerChange_1_)) {
            int i = (Integer)this.getDataManager().get(DATA_HOOKED_ENTITY);
            this.caughtEntity = i > 0 ? this.world.getEntityByID(i - 1) : null;
        }

        super.notifyDataManagerChange(p_notifyDataManagerChange_1_);
    }

    public void onUpdate()
    {
        super.onUpdate();
        if (this.entityPlayer == null)
        {
            this.setDead();
        }
        else if (this.world.isRemote)
        {
            if (this.inGround)
            {
                ++this.ticksInGround;
                motionX=0;
                motionY=0;
                motionZ=0;

                if (this.ticksInGround >= 1200)
                {
                    this.setDead();
                    return;
                }
            }
            if(this.getDistance(entityPlayer)>=64){
                this.setDead();
                return;
            }
            BlockPos blockpos = new BlockPos(this);
            IBlockState iblockstate = this.world.getBlockState(blockpos);
            if (this.currentState == Clawshot_Head.State.FLYING)
            {
                if (this.caughtEntity != null)
                {
                    this.motionX = 0.0D;
                    this.motionY = 0.0D;
                    this.motionZ = 0.0D;
                    this.currentState = Clawshot_Head.State.HOOKED_IN_ENTITY;
                    return;
                }

                if (!this.world.isRemote)
                {
                    this.checkCollision();
                }

                if (!this.inGround && !this.onGround && !this.collidedHorizontally)
                {
                    ++this.ticksInAir;
                }
                else
                {
                    this.ticksInAir = 0;
                    this.motionX = 0.0D;
                    this.motionY = 0.0D;
                    this.motionZ = 0.0D;
                }
                if (ticksInAir>=100){
                    this.setDead();
                    return;
                }
            }
            else
            {
                if (this.currentState == Clawshot_Head.State.HOOKED_IN_ENTITY)
                {
                    if (this.caughtEntity != null)
                    {
                        if (this.caughtEntity.isDead)
                        {
                            this.caughtEntity = null;
                            this.currentState = Clawshot_Head.State.FLYING;
                        }
                        else
                        {
                            this.posX = this.caughtEntity.posX;
                            double d2 = (double)this.caughtEntity.height;
                            this.posY = this.caughtEntity.getEntityBoundingBox().minY + d2 * 0.8D;
                            this.posZ = this.caughtEntity.posZ;
                            this.setPosition(this.posX, this.posY, this.posZ);
                        }
                    }

                    return;
                }
            }

            this.move(MoverType.SELF, this.motionX, this.motionY, this.motionZ);
            this.updateRotation();
            this.setPosition(this.posX, this.posY, this.posZ);
        }
    }

    private void updateRotation()
    {
        float f = MathHelper.sqrt(this.motionX * this.motionX + this.motionZ * this.motionZ);
        this.rotationYaw = (float)(MathHelper.atan2(this.motionX, this.motionZ) * (180D / Math.PI));

        for (this.rotationPitch = (float)(MathHelper.atan2(this.motionY, (double)f) * (180D / Math.PI)); this.rotationPitch - this.prevRotationPitch < -180.0F; this.prevRotationPitch -= 360.0F)
        {

        }

        while (this.rotationPitch - this.prevRotationPitch >= 180.0F)
        {
            this.prevRotationPitch += 360.0F;
        }

        while (this.rotationYaw - this.prevRotationYaw < -180.0F)
        {
            this.prevRotationYaw -= 360.0F;
        }

        while (this.rotationYaw - this.prevRotationYaw >= 180.0F)
        {
            this.prevRotationYaw += 360.0F;
        }

        this.rotationPitch = this.prevRotationPitch + (this.rotationPitch - this.prevRotationPitch) * 0.2F;
        this.rotationYaw = this.prevRotationYaw + (this.rotationYaw - this.prevRotationYaw) * 0.2F;
    }

    public void shoot(Entity entity) {
        System.out.println(entity);
        this.motionX=0.6D*entity.getLookVec().x;
        this.motionY=0.6D*entity.getLookVec().y;
        this.motionZ=0.6D*entity.getLookVec().z;

    }

    public void shoot(double p_shoot_1_, double p_shoot_3_, double p_shoot_5_, float p_shoot_7_, float p_shoot_8_){}

    public int handleHookRetraction()
    {
        if (!this.world.isRemote && this.entityPlayer != null)
        {
            int i = 0;
            if (this.caughtEntity != null)
            {
                this.bringInHookedEntity();
                this.world.setEntityState(this, (byte)31);
                i = this.caughtEntity instanceof EntityItem ? 3 : 5;
            }
            else if (this.inGround)
            {
                i = 2;
            }

            this.setDead();
            return i;
        }
        else
        {
            return 0;
        }
    }

    protected void bringInHookedEntity()
    {
        if (this.entityPlayer != null)
        {
            double d0 = this.entityPlayer.posX - this.posX;
            double d1 = this.entityPlayer.posY - this.posY;
            double d2 = this.entityPlayer.posZ - this.posZ;
            double d3 = 0.1D;
            this.caughtEntity.motionX += d0 * 0.1D;
            this.caughtEntity.motionY += d1 * 0.1D;
            this.caughtEntity.motionZ += d2 * 0.1D;
        }
    }

    public void setDead()
    {
        super.setDead();
    }

    public EntityPlayer getAngler()
    {
        return this.entityPlayer;
    }

    private void init(EntityPlayer p_init_1_) {
        this.setSize(0.25F, 0.25F);
        this.ignoreFrustumCheck = true;
        this.entityPlayer = p_init_1_;
    }

    private void checkCollision() {
        Vec3d vec3d = new Vec3d(this.posX, this.posY, this.posZ);
        Vec3d vec3d1 = new Vec3d(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);
        RayTraceResult raytraceresult = this.world.rayTraceBlocks(vec3d, vec3d1, false, true, false);
        vec3d = new Vec3d(this.posX, this.posY, this.posZ);
        vec3d1 = new Vec3d(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);
        if (raytraceresult != null) {
            vec3d1 = new Vec3d(raytraceresult.hitVec.x, raytraceresult.hitVec.y, raytraceresult.hitVec.z);
            this.motionX=0;
            this.motionY=0;
            this.motionZ=0;
            entityPlayer.posX=this.posX;
            entityPlayer.posY=this.posY;
            entityPlayer.posZ=this.posZ;
        }

        Entity entity = null;
        List<Entity> list = this.world.getEntitiesWithinAABBExcludingEntity(this, this.getEntityBoundingBox().expand(this.motionX, this.motionY, this.motionZ).grow(1.0D));
        double d0 = 0.0D;
        Iterator var8 = list.iterator();

        while(true) {
            Entity entity1;
            double d1;
            do {
                RayTraceResult raytraceresult1;
                do {
                    do {
                        do {
                            if (!var8.hasNext()) {
                                if (entity != null) {
                                    raytraceresult = new RayTraceResult(entity);
                                }

                                if (raytraceresult != null && raytraceresult.typeOfHit != RayTraceResult.Type.MISS) {
                                    if (raytraceresult.typeOfHit == RayTraceResult.Type.ENTITY) {
                                        this.caughtEntity = raytraceresult.entityHit;
                                        this.setHookedEntity();
                                    } else {
                                        this.inGround = true;
                                    }
                                }

                                return;
                            }

                            entity1 = (Entity)var8.next();
                        } while(!this.canBeHooked(entity1));
                    } while(entity1 == this.entityPlayer && this.ticksInAir < 5);

                    AxisAlignedBB axisalignedbb = entity1.getEntityBoundingBox().grow(0.30000001192092896D);
                    raytraceresult1 = axisalignedbb.calculateIntercept(vec3d, vec3d1);
                } while(raytraceresult1 == null);

                d1 = vec3d.squareDistanceTo(raytraceresult1.hitVec);
            } while(d1 >= d0 && d0 != 0.0D);

            entity = entity1;
            d0 = d1;
        }
    }

    private void setHookedEntity() {
        this.getDataManager().set(DATA_HOOKED_ENTITY, this.caughtEntity.getEntityId() + 1);
    }

    protected boolean canBeHooked(Entity p_canBeHooked_1_) {
        return p_canBeHooked_1_.canBeCollidedWith() || p_canBeHooked_1_ instanceof EntityItem;
    }

    protected void entityInit() {
        this.getDataManager().register(DATA_HOOKED_ENTITY, 0);
    }

    @Override
    protected void readEntityFromNBT(NBTTagCompound nbtTagCompound) {

    }

    @Override
    protected void writeEntityToNBT(NBTTagCompound nbtTagCompound) {

    }

    static {
        DATA_HOOKED_ENTITY = EntityDataManager.createKey(Clawshot_Head.class, DataSerializers.VARINT);
    }

    @Override
    public void writeSpawnData(ByteBuf buffer) {
        buffer.writeBoolean(entityPlayer==null);
        if (entityPlayer!=null) {
            buffer.writeInt(entityPlayer.getEntityId());
        }
    }

    @Override
    public void readSpawnData(ByteBuf additionalData) {
        boolean nullPlayer = additionalData.readBoolean();
        if (!nullPlayer){
            EntityPlayer entityByID=(EntityPlayer) world.getEntityByID(additionalData.readInt());
            if (entityByID!=null){
                entityPlayer=entityByID;
            }
            this.shoot(entityPlayer);
        }
    }

    static enum State {
        FLYING,
        HOOKED_IN_ENTITY;

        private State() {
        }
    }
}

 

My Projects:

Cruelars Triforcemod (1.12 release; 1.14 alpha soon coming)

 

Important:

As my mod is on at least 10 different third party sites without my permission, I want to warn you about that with a link to StopModReposts

Link to comment
Share on other sites

8 hours ago, _Cruelar_ said:

else if (this.world.isRemote) { if (this.inGround) { ++this.ticksInGround; motionX=0; motionY=0; motionZ=0; if (this.ticksInGround >= 1200) { this.setDead(); return; } }

 

In your update method you only set it dead on the client.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

With this:

public void onUpdate()
    {
        super.onUpdate();
        if (this.entityPlayer == null)
        {
            this.setDead();
        }
        else if (this.world.isRemote)
        {
            if (this.inGround) {
                ++this.ticksInGround;
                motionX = 0;
                motionY = 0;
                motionZ = 0;
            }


            if(this.getDistance(entityPlayer)>=64){
                this.setDead();
                return;
            }
            BlockPos blockpos = new BlockPos(this);
            IBlockState iblockstate = this.world.getBlockState(blockpos);
            if (this.currentState == Clawshot_Head.State.FLYING)
            {
                if (this.caughtEntity != null)
                {
                    this.motionX = 0.0D;
                    this.motionY = 0.0D;
                    this.motionZ = 0.0D;
                    this.currentState = Clawshot_Head.State.HOOKED_IN_ENTITY;
                    return;
                }

                if (!this.world.isRemote)
                {
                    this.checkCollision();
                }

                if (!this.inGround && !this.onGround && !this.collidedHorizontally)
                {
                    ++this.ticksInAir;
                }
                else
                {
                    this.ticksInAir = 0;
                    this.motionX = 0.0D;
                    this.motionY = 0.0D;
                    this.motionZ = 0.0D;
                }

            }
            else
            {
                if (this.currentState == Clawshot_Head.State.HOOKED_IN_ENTITY)
                {
                    if (this.caughtEntity != null)
                    {
                        if (this.caughtEntity.isDead)
                        {
                            this.caughtEntity = null;
                            this.currentState = Clawshot_Head.State.FLYING;
                        }
                        else
                        {
                            this.posX = this.caughtEntity.posX;
                            double d2 = (double)this.caughtEntity.height;
                            this.posY = this.caughtEntity.getEntityBoundingBox().minY + d2 * 0.8D;
                            this.posZ = this.caughtEntity.posZ;
                            this.setPosition(this.posX, this.posY, this.posZ);
                        }
                    }

                    return;
                }
            }

            this.move(MoverType.SELF, this.motionX, this.motionY, this.motionZ);
            this.updateRotation();
            this.setPosition(this.posX, this.posY, this.posZ);
        }
        if (this.ticksInGround >= 1200)
        {
            this.setDead();
        }
        if (ticksInAir>=200){
            this.setDead();
            return;
        }
    }

I give the command to kill it on both sides,am I right? So why it doesn't works?

Also setting the motion to o doesn't works. Is this also a problem with sides.

My Projects:

Cruelars Triforcemod (1.12 release; 1.14 alpha soon coming)

 

Important:

As my mod is on at least 10 different third party sites without my permission, I want to warn you about that with a link to StopModReposts

Link to comment
Share on other sites

11 minutes ago, _Cruelar_ said:

else if (this.world.isRemote)

This line right here says is this a client world?

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

3 minutes ago, _Cruelar_ said:

Yes.

And then it does a few things with if it's in the ground and then sets itself to be dead, but only if the above is true. Which setDead are you having a problem with exactly?

Edited by Animefan8888

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

This is interesting. None of my Breakpoints responds.

Code:

package com.cruelar.cruelars_triforcemod.entities.projectiles;

import io.netty.buffer.ByteBuf;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.Entity;
import net.minecraft.entity.MoverType;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.network.datasync.DataParameter;
import net.minecraft.network.datasync.DataSerializers;
import net.minecraft.network.datasync.EntityDataManager;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.*;
import net.minecraft.world.World;
import net.minecraftforge.fml.common.registry.IEntityAdditionalSpawnData;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

import java.util.Iterator;
import java.util.List;
import java.util.UUID;

public class Clawshot_Head extends Entity implements IEntityAdditionalSpawnData{
    private UUID entityPlayer;
    public Entity caughtEntity;
    public Clawshot_Head.State currentState;
    private static final DataParameter<Integer> DATA_HOOKED_ENTITY;
    private boolean inGround;
    private int ticksInAir;
    private int ticksInGround;
    public static ResourceLocation RESOURCE_LOCATION=new ResourceLocation("cruelars_triforcemod:textures/entity/projectiles/clawshot_head.png");

    public Clawshot_Head(World world){
        super(world);
    }

    public Clawshot_Head(World world, EntityPlayer entityPlayer){
        super(world);
        this.init(entityPlayer);
        this.currentState = Clawshot_Head.State.FLYING;
        this.setPosition((double)entityPlayer.posX,(double)entityPlayer.posY+entityPlayer.getEyeHeight(),(double)entityPlayer.posZ);
        this.shoot(entityPlayer);
    }

    @SideOnly(Side.CLIENT)
    public Clawshot_Head(World world, EntityPlayer entityPlayer, double posX, double posY, double posZ) {
        super(world);
        this.init(entityPlayer);
        this.setPosition(posX,posY,posZ);
        this.prevPosX = this.posX;
        this.prevPosY = this.posY;
        this.prevPosZ = this.posZ;
    }

    public void notifyDataManagerChange(DataParameter<?> p_notifyDataManagerChange_1_) {
        if (DATA_HOOKED_ENTITY.equals(p_notifyDataManagerChange_1_)) {
            int i = (Integer)this.getDataManager().get(DATA_HOOKED_ENTITY);
            this.caughtEntity = i > 0 ? this.world.getEntityByID(i - 1) : null;
        }

        super.notifyDataManagerChange(p_notifyDataManagerChange_1_);
    }

    public void onUpdate()
    {
        super.onUpdate();
        if (this.entityPlayer == null)
        {
            this.setDead();
            System.out.println("ln:69 got called");
        }
        else if (this.world.isRemote)
        {
            if (this.inGround) {
                ++this.ticksInGround;
                motionX = 0;
                motionY = 0;
                motionZ = 0;
            }

            if(this.collidedHorizontally){
                motionX=0;
                motionY=0;
                motionZ=0;
                ++this.ticksInGround;
            }

            if(this.getDistance(getEntityByUUID(entityPlayer,world))>=64){
                this.setDead();
                System.out.println("ln:89 got called");
            }

            BlockPos blockpos = new BlockPos(this);
            IBlockState iblockstate = this.world.getBlockState(blockpos);
            if (this.currentState == Clawshot_Head.State.FLYING)
            {
                if (this.caughtEntity != null)
                {
                    this.motionX = 0.0D;
                    this.motionY = 0.0D;
                    this.motionZ = 0.0D;
                    this.currentState = Clawshot_Head.State.HOOKED_IN_ENTITY;
                    return;
                }

                if (!this.world.isRemote)
                {
                    this.checkCollision();
                }

                if (!this.inGround && !this.onGround && !this.collidedHorizontally)
                {
                    ++this.ticksInAir;
                }
                else
                {
                    this.ticksInAir = 0;
                    this.motionX = 0.0D;
                    this.motionY = 0.0D;
                    this.motionZ = 0.0D;
                }

            }
            else
            {
                if (this.currentState == Clawshot_Head.State.HOOKED_IN_ENTITY)
                {
                    if (this.caughtEntity != null)
                    {
                        if (this.caughtEntity.isDead)
                        {
                            this.caughtEntity = null;
                            this.currentState = Clawshot_Head.State.FLYING;
                        }
                        else
                        {
                            this.posX = this.caughtEntity.posX;
                            double d2 = (double)this.caughtEntity.height;
                            this.posY = this.caughtEntity.getEntityBoundingBox().minY + d2 * 0.8D;
                            this.posZ = this.caughtEntity.posZ;
                            this.setPosition(this.posX, this.posY, this.posZ);
                        }
                    }

                    return;
                }
            }

            this.move(MoverType.SELF, this.motionX, this.motionY, this.motionZ);
            this.updateRotation();
            this.setPosition(this.posX, this.posY, this.posZ);
        }
        if (this.ticksInGround >= 1200)
        {
            this.setDead();
            System.out.println("ln:155 got called");
        }
        if (ticksInAir>=200){
            this.setDead();
            System.out.println("ln:159 got called");
        }

    }

    private void updateRotation()
    {
        float f = MathHelper.sqrt(this.motionX * this.motionX + this.motionZ * this.motionZ);
        this.rotationYaw = (float)(MathHelper.atan2(this.motionX, this.motionZ) * (180D / Math.PI));

        for (this.rotationPitch = (float)(MathHelper.atan2(this.motionY, (double)f) * (180D / Math.PI)); this.rotationPitch - this.prevRotationPitch < -180.0F; this.prevRotationPitch -= 360.0F)
        {

        }

        while (this.rotationPitch - this.prevRotationPitch >= 180.0F)
        {
            this.prevRotationPitch += 360.0F;
        }

        while (this.rotationYaw - this.prevRotationYaw < -180.0F)
        {
            this.prevRotationYaw -= 360.0F;
        }

        while (this.rotationYaw - this.prevRotationYaw >= 180.0F)
        {
            this.prevRotationYaw += 360.0F;
        }

        this.rotationPitch = this.prevRotationPitch + (this.rotationPitch - this.prevRotationPitch) * 0.2F;
        this.rotationYaw = this.prevRotationYaw + (this.rotationYaw - this.prevRotationYaw) * 0.2F;
    }

    public void shoot(Entity entity) {

        System.out.println(entity);
        this.motionX=0.6D*entity.getLookVec().x;
        this.motionY=0.6D*entity.getLookVec().y;
        this.motionZ=0.6D*entity.getLookVec().z;

    }

    public void shoot(double p_shoot_1_, double p_shoot_3_, double p_shoot_5_, float p_shoot_7_, float p_shoot_8_){}

    public int handleHookRetraction()
    {
        if (!this.world.isRemote && this.entityPlayer != null)
        {
            int i = 0;
            if (this.caughtEntity != null)
            {
                this.bringInHookedEntity();
                this.world.setEntityState(this, (byte)31);
                i = this.caughtEntity instanceof EntityItem ? 3 : 5;
            }
            else if (this.inGround)
            {
                i = 2;
            }

            this.setDead();
            return i;
        }
        else
        {
            return 0;
        }
    }

    protected void bringInHookedEntity()
    {
        if (this.getEntityByUUID(entityPlayer,world) != null)
        {
            double d0 = this.getEntityByUUID(entityPlayer,world).posX - this.posX;
            double d1 = this.getEntityByUUID(entityPlayer,world).posY - this.posY;
            double d2 = this.getEntityByUUID(entityPlayer,world).posZ - this.posZ;
            double d3 = 0.1D;
            this.caughtEntity.motionX += d0 * 0.1D;
            this.caughtEntity.motionY += d1 * 0.1D;
            this.caughtEntity.motionZ += d2 * 0.1D;
        }
    }

    public void setDead()
    {
        super.setDead();
    }

    public EntityPlayer getAngler()
    {
        return this.getEntityByUUID(entityPlayer,this.world);
    }

    private EntityPlayer getEntityByUUID(UUID entityUUID, World worldIn){
        int lenght =worldIn.getLoadedEntityList().size();
        List<Entity> loadedEntityList= worldIn.getLoadedEntityList();
        EntityPlayer foundEntity = null;
        for (int i = 0;i<lenght;i++){
            if (loadedEntityList.get(i).getUniqueID()==entityUUID){
                if (loadedEntityList.get(i) instanceof EntityPlayer) {
                    foundEntity = (EntityPlayer) loadedEntityList.get(i);
                }
            }
        }
        return foundEntity;
    }

    private void init(EntityPlayer p_init_1_) {
        this.setSize(0.25F, 0.25F);
        this.ignoreFrustumCheck = true;
        this.entityPlayer = p_init_1_.getUniqueID();
    }

    private void checkCollision() {
        Vec3d vec3d = new Vec3d(this.posX, this.posY, this.posZ);
        Vec3d vec3d1 = new Vec3d(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);
        RayTraceResult raytraceresult = this.world.rayTraceBlocks(vec3d, vec3d1, false, true, false);
        vec3d = new Vec3d(this.posX, this.posY, this.posZ);
        vec3d1 = new Vec3d(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);
        if (raytraceresult != null) {
            vec3d1 = new Vec3d(raytraceresult.hitVec.x, raytraceresult.hitVec.y, raytraceresult.hitVec.z);
            this.motionX=0;
            this.motionY=0;
            this.motionZ=0;
            getEntityByUUID(entityPlayer,this.world).posX=this.posX;
            getEntityByUUID(entityPlayer,this.world).posY=this.posY;
            getEntityByUUID(entityPlayer,this.world).posZ=this.posZ;
        }

        Entity entity = null;
        List<Entity> list = this.world.getEntitiesWithinAABBExcludingEntity(this, this.getEntityBoundingBox().expand(this.motionX, this.motionY, this.motionZ).grow(1.0D));
        double d0 = 0.0D;
        Iterator var8 = list.iterator();

        while(true) {
            Entity entity1;
            double d1;
            do {
                RayTraceResult raytraceresult1;
                do {
                    do {
                        do {
                            if (!var8.hasNext()) {
                                if (entity != null) {
                                    raytraceresult = new RayTraceResult(entity);
                                }

                                if (raytraceresult != null && raytraceresult.typeOfHit != RayTraceResult.Type.MISS) {
                                    if (raytraceresult.typeOfHit == RayTraceResult.Type.ENTITY) {
                                        this.caughtEntity = raytraceresult.entityHit;
                                        this.setHookedEntity();
                                    } else {
                                        this.inGround = true;
                                    }
                                }

                                return;
                            }

                            entity1 = (Entity)var8.next();
                        } while(!this.canBeHooked(entity1));
                    } while(entity1 == this.getEntityByUUID(entityPlayer,this.world) && this.ticksInAir < 5);

                    AxisAlignedBB axisalignedbb = entity1.getEntityBoundingBox().grow(0.30000001192092896D);
                    raytraceresult1 = axisalignedbb.calculateIntercept(vec3d, vec3d1);
                } while(raytraceresult1 == null);

                d1 = vec3d.squareDistanceTo(raytraceresult1.hitVec);
            } while(d1 >= d0 && d0 != 0.0D);

            entity = entity1;
            d0 = d1;
        }
    }

    private void setHookedEntity() {
        this.getDataManager().set(DATA_HOOKED_ENTITY, this.caughtEntity.getEntityId() + 1);
    }

    protected boolean canBeHooked(Entity p_canBeHooked_1_) {
        return p_canBeHooked_1_.canBeCollidedWith() || p_canBeHooked_1_ instanceof EntityItem;
    }

    protected void entityInit() {
        this.getDataManager().register(DATA_HOOKED_ENTITY, 0);
    }

    @Override
    protected void readEntityFromNBT(NBTTagCompound nbtTagCompound) {

    }

    @Override
    protected void writeEntityToNBT(NBTTagCompound nbtTagCompound) {

    }

    static {
        DATA_HOOKED_ENTITY = EntityDataManager.createKey(Clawshot_Head.class, DataSerializers.VARINT);
    }

    @Override
    public void writeSpawnData(ByteBuf buffer) {
        buffer.writeBoolean(getEntityByUUID(entityPlayer,this.world)==null);
        if (getEntityByUUID(entityPlayer,this.world)!=null) {
            buffer.writeInt(getEntityByUUID(entityPlayer,this.world).getEntityId());
        }
    }

    @Override
    public void readSpawnData(ByteBuf additionalData) {
        boolean nullPlayer = additionalData.readBoolean();
        if (!nullPlayer){
            EntityPlayer entityByID=(EntityPlayer) world.getEntityByID(additionalData.readInt());
            if (entityByID!=null){
                entityPlayer=entityByID.getUniqueID();
            }
            this.shoot(getEntityByUUID(entityPlayer,this.world));
        }
    }

    static enum State {
        FLYING,
        HOOKED_IN_ENTITY;

        private State() {
        }
    }
}

I changed the code to mainly use the UUID of the Player after thinking over Problematic code #9

Didn't solved the Problem though

My Projects:

Cruelars Triforcemod (1.12 release; 1.14 alpha soon coming)

 

Important:

As my mod is on at least 10 different third party sites without my permission, I want to warn you about that with a link to StopModReposts

Link to comment
Share on other sites

I made some changes to improve its behavior. But Still it dies after a certain amount  of time that static. Also it then still respawns with the same motion speed as the moment it died.

Updated code:

package com.cruelar.cruelars_triforcemod.entities.projectiles;

import io.netty.buffer.ByteBuf;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.Entity;
import net.minecraft.entity.MoverType;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.network.datasync.DataParameter;
import net.minecraft.network.datasync.DataSerializers;
import net.minecraft.network.datasync.EntityDataManager;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.*;
import net.minecraft.world.World;
import net.minecraftforge.fml.common.registry.IEntityAdditionalSpawnData;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

import java.util.Iterator;
import java.util.List;
import java.util.UUID;

public class Clawshot_Head extends Entity implements IEntityAdditionalSpawnData{
    private UUID entityPlayer;
    public Entity caughtEntity;
    public Clawshot_Head.State currentState;
    private static final DataParameter<Integer> DATA_HOOKED_ENTITY;
    private boolean inGround;
    private int ticksInAir;
    private int ticksInGround;
    public static ResourceLocation RESOURCE_LOCATION=new ResourceLocation("cruelars_triforcemod:textures/entity/projectiles/clawshot_head.png");

    public Clawshot_Head(World world){
        super(world);
    }

    public Clawshot_Head(World world, EntityPlayer entityPlayer){
        super(world);
        this.init(entityPlayer);
        this.currentState = Clawshot_Head.State.FLYING;
        this.setPosition((double)entityPlayer.posX,(double)entityPlayer.posY+entityPlayer.getEyeHeight(),(double)entityPlayer.posZ);
        this.shoot(entityPlayer);
        this.setNoGravity(true);
    }

    @SideOnly(Side.CLIENT)
    public Clawshot_Head(World world, EntityPlayer entityPlayer, double posX, double posY, double posZ) {
        super(world);
        this.init(entityPlayer);
        this.setPosition(posX,posY,posZ);
        this.prevPosX = this.posX;
        this.prevPosY = this.posY;
        this.prevPosZ = this.posZ;
    }

    public void notifyDataManagerChange(DataParameter<?> p_notifyDataManagerChange_1_) {
        if (DATA_HOOKED_ENTITY.equals(p_notifyDataManagerChange_1_)) {
            int i = (Integer)this.getDataManager().get(DATA_HOOKED_ENTITY);
            this.caughtEntity = i > 0 ? this.world.getEntityByID(i - 1) : null;
        }

        super.notifyDataManagerChange(p_notifyDataManagerChange_1_);
    }

    public void onUpdate()
    {
        super.onUpdate();
        if (this.entityPlayer == null)
        {
            System.out.println("ln:70 got called");
            this.setDead();

        }
        else if (this.world.isRemote)
        {
            if (this.inGround) {
                ++this.ticksInGround;
                motionX = 0;
                motionY = 0;
                motionZ = 0;
            }

            if(this.collidedHorizontally){
                motionX=0;
                motionY=0;
                motionZ=0;
                ++this.ticksInGround;
            }

            if(this.getDistance(getEntityByUUID(entityPlayer,world))>=64){
                System.out.println("ln:92 got called");
                this.setDead();
            }

            BlockPos blockpos = new BlockPos(this);
            IBlockState iblockstate = this.world.getBlockState(blockpos);
            if (this.currentState == Clawshot_Head.State.FLYING)
            {
                if (this.caughtEntity != null)
                {
                    this.motionX = 0.0D;
                    this.motionY = 0.0D;
                    this.motionZ = 0.0D;
                    this.currentState = Clawshot_Head.State.HOOKED_IN_ENTITY;
                    return;
                }

                if (!this.world.isRemote)
                {
                    this.checkCollision();
                }

                if (!this.inGround && !this.onGround && !this.collidedHorizontally)
                {
                    ++this.ticksInAir;
                }
                else
                {
                    this.ticksInAir = 0;
                    this.motionX = 0.0D;
                    this.motionY = 0.0D;
                    this.motionZ = 0.0D;
                }

            }
            else
            {
                if (this.currentState == Clawshot_Head.State.HOOKED_IN_ENTITY)
                {
                    if (this.caughtEntity != null)
                    {
                        if (this.caughtEntity.isDead)
                        {
                            this.caughtEntity = null;
                            this.currentState = Clawshot_Head.State.FLYING;
                        }
                        else
                        {
                            this.posX = this.caughtEntity.posX;
                            double d2 = (double)this.caughtEntity.height;
                            this.posY = this.caughtEntity.getEntityBoundingBox().minY + d2 * 0.8D;
                            this.posZ = this.caughtEntity.posZ;
                            this.setPosition(this.posX, this.posY, this.posZ);
                        }
                    }

                    return;
                }
            }

            this.move(MoverType.SELF, this.motionX, this.motionY, this.motionZ);
            this.updateRotation();
            this.setPosition(this.posX, this.posY, this.posZ);
        }
        if (this.ticksInGround >= 1200)
        {
            System.out.println("ln:157 got called");
            this.setDead();
        }
        if (ticksInAir>=200){
            System.out.println("ln:162 got called");
            this.setDead();
        }

    }

    private void updateRotation()
    {
        float f = MathHelper.sqrt(this.motionX * this.motionX + this.motionZ * this.motionZ);
        this.rotationYaw = (float)(MathHelper.atan2(this.motionX, this.motionZ) * (180D / Math.PI));

        for (this.rotationPitch = (float)(MathHelper.atan2(this.motionY, (double)f) * (180D / Math.PI)); this.rotationPitch - this.prevRotationPitch < -180.0F; this.prevRotationPitch -= 360.0F)
        {

        }

        while (this.rotationPitch - this.prevRotationPitch >= 180.0F)
        {
            this.prevRotationPitch += 360.0F;
        }

        while (this.rotationYaw - this.prevRotationYaw < -180.0F)
        {
            this.prevRotationYaw -= 360.0F;
        }

        while (this.rotationYaw - this.prevRotationYaw >= 180.0F)
        {
            this.prevRotationYaw += 360.0F;
        }

        this.rotationPitch = this.prevRotationPitch + (this.rotationPitch - this.prevRotationPitch) * 0.2F;
        this.rotationYaw = this.prevRotationYaw + (this.rotationYaw - this.prevRotationYaw) * 0.2F;
    }

    public void shoot(Entity entity) {
        System.out.println(entity);
        this.motionX=0.6D*entity.getLookVec().x;
        this.motionY=0.6D*entity.getLookVec().y;
        this.motionZ=0.6D*entity.getLookVec().z;

    }

    public void shoot(double p_shoot_1_, double p_shoot_3_, double p_shoot_5_, float p_shoot_7_, float p_shoot_8_){}

    public int handleHookRetraction()
    {
        if (!this.world.isRemote && this.entityPlayer != null)
        {
            int i = 0;
            if (this.caughtEntity != null)
            {
                this.bringInHookedEntity();
                this.world.setEntityState(this, (byte)31);
                i = this.caughtEntity instanceof EntityItem ? 3 : 5;
            }
            else if (this.inGround)
            {
                i = 2;
            }

            this.setDead();
            return i;
        }
        else
        {
            return 0;
        }
    }

    protected void bringInHookedEntity()
    {
        if (this.getEntityByUUID(entityPlayer,world) != null)
        {
            double d0 = this.getEntityByUUID(entityPlayer,world).posX - this.posX;
            double d1 = this.getEntityByUUID(entityPlayer,world).posY - this.posY;
            double d2 = this.getEntityByUUID(entityPlayer,world).posZ - this.posZ;
            double d3 = 0.1D;
            this.caughtEntity.motionX += d0 * 0.1D;
            this.caughtEntity.motionY += d1 * 0.1D;
            this.caughtEntity.motionZ += d2 * 0.1D;
        }
    }

    public void setDead()
    {
        super.setDead();
    }

    public EntityPlayer getAngler()
    {
        return this.getEntityByUUID(entityPlayer,this.world);
    }

    private EntityPlayer getEntityByUUID(UUID entityUUID, World worldIn){
        int lenght =worldIn.getLoadedEntityList().size();
        List<Entity> loadedEntityList= worldIn.getLoadedEntityList();
        EntityPlayer foundEntity = null;
        for (int i = 0;i<lenght;i++){
            if (loadedEntityList.get(i).getUniqueID()==entityUUID){
                if (loadedEntityList.get(i) instanceof EntityPlayer) {
                    foundEntity = (EntityPlayer) loadedEntityList.get(i);
                }
            }
        }
        return foundEntity;
    }

    private void init(EntityPlayer p_init_1_) {
        this.setSize(0.25F, 0.25F);
        this.ignoreFrustumCheck = true;
        this.entityPlayer = p_init_1_.getUniqueID();
    }

    private void checkCollision() {
        Vec3d vec3d = new Vec3d(this.posX, this.posY, this.posZ);
        Vec3d vec3d1 = new Vec3d(this.posX + 0.2, this.posY + 0.2, this.posZ + 0.2);
        RayTraceResult raytraceresult = this.world.rayTraceBlocks(vec3d, vec3d1, false, true, false);
        vec3d = new Vec3d(this.posX, this.posY, this.posZ);
        vec3d1 = new Vec3d(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);
        if (raytraceresult != null) {
            vec3d1 = new Vec3d(raytraceresult.hitVec.x, raytraceresult.hitVec.y, raytraceresult.hitVec.z);
            this.inGround=true;
            this.motionX=0;
            this.motionY=0;
            this.motionZ=0;
            getEntityByUUID(entityPlayer,this.world).posX=this.posX;
            getEntityByUUID(entityPlayer,this.world).posY=this.posY;
            getEntityByUUID(entityPlayer,this.world).posZ=this.posZ;
        }

        Entity entity = null;
        List<Entity> list = this.world.getEntitiesWithinAABBExcludingEntity(this, this.getEntityBoundingBox().expand(this.motionX, this.motionY, this.motionZ).grow(1.0D));
        double d0 = 0.0D;
        Iterator var8 = list.iterator();

        while(true) {
            Entity entity1;
            double d1;
            do {
                RayTraceResult raytraceresult1;
                do {
                    do {
                        do {
                            if (!var8.hasNext()) {
                                if (entity != null) {
                                    raytraceresult = new RayTraceResult(entity);
                                }

                                if (raytraceresult != null && raytraceresult.typeOfHit != RayTraceResult.Type.MISS) {
                                    if (raytraceresult.typeOfHit == RayTraceResult.Type.ENTITY) {
                                        this.caughtEntity = raytraceresult.entityHit;
                                        this.setHookedEntity();
                                    } else {
                                        this.inGround = true;
                                    }
                                }

                                return;
                            }

                            entity1 = (Entity)var8.next();
                        } while(!this.canBeHooked(entity1));
                    } while(entity1 == this.getEntityByUUID(entityPlayer,this.world) && this.ticksInAir < 5);

                    AxisAlignedBB axisalignedbb = entity1.getEntityBoundingBox().grow(0.30000001192092896D);
                    raytraceresult1 = axisalignedbb.calculateIntercept(vec3d, vec3d1);
                } while(raytraceresult1 == null);

                d1 = vec3d.squareDistanceTo(raytraceresult1.hitVec);
            } while(d1 >= d0 && d0 != 0.0D);

            entity = entity1;
            d0 = d1;
        }
    }

    private void setHookedEntity() {
        this.getDataManager().set(DATA_HOOKED_ENTITY, this.caughtEntity.getEntityId() + 1);
    }

    protected boolean canBeHooked(Entity p_canBeHooked_1_) {
        return p_canBeHooked_1_.canBeCollidedWith() || p_canBeHooked_1_ instanceof EntityItem;
    }

    protected void entityInit() {
        this.getDataManager().register(DATA_HOOKED_ENTITY, 0);
    }

    @Override
    protected void readEntityFromNBT(NBTTagCompound nbtTagCompound) {

    }

    @Override
    protected void writeEntityToNBT(NBTTagCompound nbtTagCompound) {

    }

    static {
        DATA_HOOKED_ENTITY = EntityDataManager.createKey(Clawshot_Head.class, DataSerializers.VARINT);
    }

    @Override
    public void writeSpawnData(ByteBuf buffer) {
        buffer.writeBoolean(getEntityByUUID(entityPlayer,this.world)==null);
        if (getEntityByUUID(entityPlayer,this.world)!=null) {
            buffer.writeInt(getEntityByUUID(entityPlayer,this.world).getEntityId());
        }
    }

    @Override
    public void readSpawnData(ByteBuf additionalData) {
        boolean nullPlayer = additionalData.readBoolean();
        if (!nullPlayer){
            EntityPlayer entityByID=(EntityPlayer) world.getEntityByID(additionalData.readInt());
            if (entityByID!=null){
                entityPlayer=entityByID.getUniqueID();
            }
            this.shoot(getEntityByUUID(entityPlayer,this.world));
        }
    }

    static enum State {
        FLYING,
        HOOKED_IN_ENTITY;

        private State() {
        }
    }
}

 

My Projects:

Cruelars Triforcemod (1.12 release; 1.14 alpha soon coming)

 

Important:

As my mod is on at least 10 different third party sites without my permission, I want to warn you about that with a link to StopModReposts

Link to comment
Share on other sites

I found something that might give a hint to the core of the problem:

I'm calling shoot in the constructor and in the readSpawnData()

If I remove it in the constructor the Entity can't move.

If I remove it in readSpawnData() the behavior doesn't change

I noticed it by reading the output of shoot() when I Right click to shoot:

Spoiler

[12:24:02] [main/INFO] [STDOUT]: [com.cruelar.cruelars_triforcemod.entities.projectiles.Clawshot_Head:shoot:207]: EntityPlayerSP['Player200'/373, l='MpServer', x=224.65, y=93.19, z=279.93]
[12:24:02] [Server thread/INFO] [STDOUT]: [com.cruelar.cruelars_triforcemod.entities.projectiles.Clawshot_Head:shoot:207]: EntityPlayerMP['Player200'/373, l='Triforce Test', x=224.65, y=93.19, z=279.93]
[12:24:02] [main/INFO] [STDOUT]: [com.cruelar.cruelars_triforcemod.entities.projectiles.Clawshot_Head:shoot:207]: EntityPlayerSP['Player200'/373, l='MpServer', x=224.65, y=93.19, z=279.93]

A minor thing would be that I want to have a chain or at least a line between the entity and the item and don't know how to do that.

My Projects:

Cruelars Triforcemod (1.12 release; 1.14 alpha soon coming)

 

Important:

As my mod is on at least 10 different third party sites without my permission, I want to warn you about that with a link to StopModReposts

Link to comment
Share on other sites

@Animefan8888 and @diesieben07

I'm feeling we're close to the solution but I need your help as I don't know enough about this stuff yet.

My Projects:

Cruelars Triforcemod (1.12 release; 1.14 alpha soon coming)

 

Important:

As my mod is on at least 10 different third party sites without my permission, I want to warn you about that with a link to StopModReposts

Link to comment
Share on other sites

So I just managed to set up the breakpoints. Seems like I've done something wrong before.

But still The Entity is only set dead when I reload the world. All other conditions than entityplayer==null seem to be false all the time.

I'll appreciate any help. (Code is in my older posts)

Also the Entity starts after a short time at its startposition with its new movement speed.

My Projects:

Cruelars Triforcemod (1.12 release; 1.14 alpha soon coming)

 

Important:

As my mod is on at least 10 different third party sites without my permission, I want to warn you about that with a link to StopModReposts

Link to comment
Share on other sites

How can my Entity "die" without causing one of my Breakpoints? The only Output I get is on Loading a World cause off EntityPlayer being null

My Projects:

Cruelars Triforcemod (1.12 release; 1.14 alpha soon coming)

 

Important:

As my mod is on at least 10 different third party sites without my permission, I want to warn you about that with a link to StopModReposts

Link to comment
Share on other sites

9 hours ago, _Cruelar_ said:

How can my Entity "die" without causing one of my Breakpoints? The only Output I get is on Loading a World cause off EntityPlayer being null

Override set dead, return super & set a breakpoint there

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Link to comment
Share on other sites

On 7/28/2018 at 8:19 PM, _Cruelar_ said:

public void setDead() { super.setDead(); }

I did already. no results. that's why I used these ".

Edited by _Cruelar_

My Projects:

Cruelars Triforcemod (1.12 release; 1.14 alpha soon coming)

 

Important:

As my mod is on at least 10 different third party sites without my permission, I want to warn you about that with a link to StopModReposts

Link to comment
Share on other sites

I experimented a bit and now I have two one entity: One that behaves like before and one with the right size and almost the right behavior.

Here's my updated code:

Item:

package com.cruelar.cruelars_triforcemod.items;

import com.cruelar.cruelars_triforcemod.Cruelars_Triforcemod_Core;
import com.cruelar.cruelars_triforcemod.entities.projectiles.Clawshot_Head;
import com.cruelar.cruelars_triforcemod.inventory.cruelars_triforcemod;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.IItemPropertyGetter;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.ActionResult;
import net.minecraft.util.EnumActionResult;
import net.minecraft.util.EnumHand;
import net.minecraft.util.ResourceLocation;
import net.minecraft.world.World;
import net.minecraftforge.client.model.ModelLoader;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

import javax.annotation.Nullable;
import java.util.List;
import java.util.Objects;
import java.util.UUID;

public class Clawshot_TP extends Item {
    public Entity entity;

    public Clawshot_TP(){
        this.setCreativeTab(cruelars_triforcemod.CRUELARS_TRIFORCEMOD);
        this.setRegistryName("clawshot_tp");
        this.setUnlocalizedName(Cruelars_Triforcemod_Core.MODID+".clawshot_tp");
        this.addPropertyOverride(new ResourceLocation("cast"), new IItemPropertyGetter() {
            @SideOnly(Side.CLIENT)
            public float apply(ItemStack p_apply_1_, @Nullable World p_apply_2_, @Nullable EntityLivingBase p_apply_3_) {
                if (p_apply_3_ == null) {
                    return 0.0F;
                } else {
                    boolean lvt_4_1_ = p_apply_3_.getHeldItemMainhand() == p_apply_1_;
                    boolean lvt_5_1_ = p_apply_3_.getHeldItemOffhand() == p_apply_1_;
                    if (p_apply_3_.getHeldItemMainhand().getItem() instanceof Clawshot_TP) {
                        lvt_5_1_ = false;
                    }

                    return (lvt_4_1_ || lvt_5_1_) && p_apply_3_ instanceof EntityPlayer && entity != null ? 1.0F : 0.0F;
                }
            }
        });
    }

    @Override
    public ActionResult<ItemStack> onItemRightClick(World world, EntityPlayer entityPlayer,EnumHand enumHand) {
        ItemStack itemStack = entityPlayer.getHeldItem(enumHand);
		if (world.isRemote){
            if (!this.getTagCompoundSafe(itemStack).hasKey("shot") || !this.getTagCompoundSafe(itemStack).getBoolean("shot") || this.getEntityByUUID(Objects.requireNonNull(this.getTagCompoundSafe(itemStack).getUniqueId("head")),world,itemStack)!=null && this.getEntityByUUID(Objects.requireNonNull(this.getTagCompoundSafe(itemStack).getUniqueId("head")),world,itemStack).isDead) {
                Clawshot_Head clawshot_head = new Clawshot_Head(world, entityPlayer);
                clawshot_head.shoot(entityPlayer);
                world.spawnEntity(clawshot_head);
                this.getTagCompoundSafe(itemStack).setBoolean("shot",true);
                this.getTagCompoundSafe(itemStack).setUniqueId("head",clawshot_head.getUniqueID());
            } else if (this.getEntityByUUID(this.getTagCompoundSafe(itemStack).getUniqueId("head"),world,itemStack)!=null){
                this.getEntityByUUID(this.getTagCompoundSafe(itemStack).getUniqueId("head"),world,itemStack).setDead();
                this.getTagCompoundSafe(itemStack).setBoolean("shot",false);
            }
        }
        return new ActionResult(EnumActionResult.SUCCESS,itemStack);
    }

    @SideOnly(Side.CLIENT)
    public void initModel(){
        ModelLoader.setCustomModelResourceLocation(this, 0, new ModelResourceLocation(Objects.requireNonNull(getRegistryName()), "inventory"));
    }

    private NBTTagCompound getTagCompoundSafe(ItemStack stack) {
        NBTTagCompound tagCompound = stack.getTagCompound();
        if (tagCompound == null) {
            tagCompound = new NBTTagCompound();
            stack.setTagCompound(tagCompound);
        }
        return tagCompound;
    }

    private Entity getEntityByUUID(UUID entityUUID, World worldIn, ItemStack itemStack){
        int lenght =worldIn.loadedEntityList.size();
        List<Entity> loadedEntityList= worldIn.loadedEntityList;
        Entity foundEntity = null;
        for (int i = 0;i<lenght;i++){
            if (loadedEntityList.get(i).getUniqueID()==entityUUID){
                foundEntity = loadedEntityList.get(i);
            }
        }
        entity=foundEntity;
        return foundEntity;
    }
}

Entity:

package com.cruelar.cruelars_triforcemod.entities.projectiles;

import io.netty.buffer.ByteBuf;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.Entity;
import net.minecraft.entity.MoverType;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.network.datasync.DataParameter;
import net.minecraft.network.datasync.DataSerializers;
import net.minecraft.network.datasync.EntityDataManager;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.*;
import net.minecraft.world.World;
import net.minecraftforge.fml.common.registry.IEntityAdditionalSpawnData;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

import java.util.Iterator;
import java.util.List;
import java.util.UUID;

public class Clawshot_Head extends Entity implements IEntityAdditionalSpawnData{
    private UUID entityPlayer;
    public Entity caughtEntity;
    public Clawshot_Head.State currentState;
    private static final DataParameter<Integer> DATA_HOOKED_ENTITY;
    private boolean inGround;
    private int ticksInAir;
    private int ticksInGround;
    public static final ResourceLocation RESOURCE_LOCATION=new ResourceLocation("cruelars_triforcemod:textures/entity/projectiles/clawshot_head.png");

    public Clawshot_Head(World world){
        super(world);
    }

    public Clawshot_Head(World world, EntityPlayer entityPlayer){
        super(world);
        this.init(entityPlayer);
        this.currentState = Clawshot_Head.State.FLYING;
        this.setPosition((double)entityPlayer.posX,(double)entityPlayer.posY+entityPlayer.getEyeHeight(),(double)entityPlayer.posZ);
        //this.shoot(entityPlayer); // Changed that as it is called before readSpawnData and writeSpawnData
        this.setNoGravity(true);
    }

    @SideOnly(Side.CLIENT)
    public Clawshot_Head(World world, EntityPlayer entityPlayer, double posX, double posY, double posZ) {
        super(world);
        this.init(entityPlayer);
        this.setPosition(posX,posY,posZ);
        this.prevPosX = this.posX;
        this.prevPosY = this.posY;
        this.prevPosZ = this.posZ;
    }

    public void notifyDataManagerChange(DataParameter<?> p_notifyDataManagerChange_1_) {
        if (DATA_HOOKED_ENTITY.equals(p_notifyDataManagerChange_1_)) {
            int i = (Integer)this.getDataManager().get(DATA_HOOKED_ENTITY);
            this.caughtEntity = i > 0 ? this.world.getEntityByID(i - 1) : null;
        }

        super.notifyDataManagerChange(p_notifyDataManagerChange_1_);
    }

    public void onUpdate()
    {
        super.onUpdate();
        if (this.entityPlayer == null)
        {
            System.out.println("ln:70 got called");
            this.setDead();

        }
        else if (this.world.isRemote)
        {
            if (this.inGround) {
                ++this.ticksInGround;
                motionX = 0;
                motionY = 0;
                motionZ = 0;
            }

            if(this.collidedHorizontally){
                motionX=0;
                motionY=0;
                motionZ=0;
                ++this.ticksInGround;
            }

            if(this.getDistance(getEntityByUUID(entityPlayer,world))>=64){
                System.out.println("ln:92 got called");
                this.setDead();
            }

            BlockPos blockpos = new BlockPos(this);
            IBlockState iblockstate = this.world.getBlockState(blockpos);
            if (this.currentState == Clawshot_Head.State.FLYING)
            {
                if (this.caughtEntity != null)
                {
                    this.motionX = 0.0D;
                    this.motionY = 0.0D;
                    this.motionZ = 0.0D;
                    this.currentState = Clawshot_Head.State.HOOKED_IN_ENTITY;
                    return;
                }

                if (!this.world.isRemote)
                {
                    this.checkCollision();
                }

            }
            else
            {
                if (this.currentState == Clawshot_Head.State.HOOKED_IN_ENTITY)
                {
                    if (this.caughtEntity != null)
                    {
                        if (this.caughtEntity.isDead)
                        {
                            this.caughtEntity = null;
                            this.currentState = Clawshot_Head.State.FLYING;
                        }
                        else
                        {
                            this.posX = this.caughtEntity.posX;
                            double d2 = (double)this.caughtEntity.height;
                            this.posY = this.caughtEntity.getEntityBoundingBox().minY + d2 * 0.8D;
                            this.posZ = this.caughtEntity.posZ;
                            this.setPosition(this.posX, this.posY, this.posZ);
                        }
                    }

                    return;
                }
            }

            this.move(MoverType.SELF, this.motionX, this.motionY, this.motionZ);
            this.updateRotation();
            this.setPosition(this.posX, this.posY, this.posZ);
        }
        if (this.ticksInAir>20){
            this.setDead();
        }
        if (this.ticksInGround >= 1200)
        {
            System.out.println("ln:147 got called");
            this.setDead();
        }

    }

    private void updateRotation()
    {
        float f = MathHelper.sqrt(this.motionX * this.motionX + this.motionZ * this.motionZ);
        this.rotationYaw = (float)(MathHelper.atan2(this.motionX, this.motionZ) * (180D / Math.PI));

        for (this.rotationPitch = (float)(MathHelper.atan2(this.motionY, (double)f) * (180D / Math.PI)); this.rotationPitch - this.prevRotationPitch < -180.0F; this.prevRotationPitch -= 360.0F)
        {

        }

        while (this.rotationPitch - this.prevRotationPitch >= 180.0F)
        {
            this.prevRotationPitch += 360.0F;
        }

        while (this.rotationYaw - this.prevRotationYaw < -180.0F)
        {
            this.prevRotationYaw -= 360.0F;
        }

        while (this.rotationYaw - this.prevRotationYaw >= 180.0F)
        {
            this.prevRotationYaw += 360.0F;
        }

        this.rotationPitch = this.prevRotationPitch + (this.rotationPitch - this.prevRotationPitch) * 0.2F;
        this.rotationYaw = this.prevRotationYaw + (this.rotationYaw - this.prevRotationYaw) * 0.2F;
    }

    public void shoot(Entity entity) {
        System.out.println(entity);
        this.motionX=0.6D*entity.getLookVec().x;
        this.motionY=0.6D*entity.getLookVec().y;
        this.motionZ=0.6D*entity.getLookVec().z;

    }

    public void shoot(double p_shoot_1_, double p_shoot_3_, double p_shoot_5_, float p_shoot_7_, float p_shoot_8_){}

    public int handleHookRetraction()
    {
        if (!this.world.isRemote && this.entityPlayer != null)
        {
            int i = 0;
            if (this.caughtEntity != null)
            {
                this.bringInHookedEntity();
                this.world.setEntityState(this, (byte)31);
                i = this.caughtEntity instanceof EntityItem ? 3 : 5;
            }
            else if (this.inGround)
            {
                i = 2;
            }

            this.setDead();
            return i;
        }
        else
        {
            return 0;
        }
    }

    protected void bringInHookedEntity()
    {
        if (this.getEntityByUUID(entityPlayer,world) != null)
        {
            double d0 = this.getEntityByUUID(entityPlayer,world).posX - this.posX;
            double d1 = this.getEntityByUUID(entityPlayer,world).posY - this.posY;
            double d2 = this.getEntityByUUID(entityPlayer,world).posZ - this.posZ;
            double d3 = 0.1D;
            this.caughtEntity.motionX += d0 * d3;
            this.caughtEntity.motionY += d1 * d3;
            this.caughtEntity.motionZ += d2 * d3;
        }
    }

    public void setDead()
    {
        super.setDead();
    }

    public EntityPlayer getAngler()
    {
        return this.getEntityByUUID(entityPlayer,this.world);
    }


    private EntityPlayer getEntityByUUID(UUID entityUUID, World worldIn){
        int lenght =worldIn.loadedEntityList.size();
        List<Entity> loadedEntityList= worldIn.loadedEntityList;
        EntityPlayer foundEntity = null;
        for (int i = 0;i<lenght;i++){
            if (loadedEntityList.get(i).getUniqueID()==entityUUID){
                if (loadedEntityList.get(i) instanceof EntityPlayer) {
                    foundEntity = (EntityPlayer) loadedEntityList.get(i);
                }
            }
        }
        return foundEntity;
    }

    private void init(EntityPlayer p_init_1_) {
        this.setSize(0.25F, 0.25F);
        this.ignoreFrustumCheck = true;
        this.entityPlayer = p_init_1_.getUniqueID();
    }

    private void checkCollision() {
        Vec3d vec3d = new Vec3d(this.posX, this.posY, this.posZ);
        Vec3d vec3d1 = new Vec3d(this.posX + 0.2, this.posY + 0.2, this.posZ + 0.2);
        RayTraceResult raytraceresult = this.world.rayTraceBlocks(vec3d, vec3d1, false, true, false);
        vec3d = new Vec3d(this.posX, this.posY, this.posZ);
        vec3d1 = new Vec3d(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);
        if (raytraceresult != null) {
            vec3d1 = new Vec3d(raytraceresult.hitVec.x, raytraceresult.hitVec.y, raytraceresult.hitVec.z);
            this.inGround=true;
            this.motionX=0;
            this.motionY=0;
            this.motionZ=0;
            getEntityByUUID(entityPlayer,this.world).posX=this.posX;
            getEntityByUUID(entityPlayer,this.world).posY=this.posY;
            getEntityByUUID(entityPlayer,this.world).posZ=this.posZ;
        }

        Entity entity = null;
        List<Entity> list = this.world.getEntitiesWithinAABBExcludingEntity(this, this.getEntityBoundingBox().expand(this.motionX, this.motionY, this.motionZ).grow(1.0D));
        double d0 = 0.0D;
        Iterator var8 = list.iterator();

        while(true) {
            Entity entity1;
            double d1;
            do {
                RayTraceResult raytraceresult1;
                do {
                    do {
                        do {
                            if (!var8.hasNext()) {
                                if (entity != null) {
                                    raytraceresult = new RayTraceResult(entity);
                                }

                                if (raytraceresult != null && raytraceresult.typeOfHit != RayTraceResult.Type.MISS) {
                                    if (raytraceresult.typeOfHit == RayTraceResult.Type.ENTITY) {
                                        this.caughtEntity = raytraceresult.entityHit;
                                        this.setHookedEntity();
                                    } else {
                                        this.inGround = true;
                                    }
                                }

                                return;
                            }

                            entity1 = (Entity)var8.next();
                        } while(!this.canBeHooked(entity1));
                    } while(entity1 == this.getEntityByUUID(entityPlayer,this.world) && this.ticksInAir < 5);

                    AxisAlignedBB axisalignedbb = entity1.getEntityBoundingBox().grow(0.30000001192092896D);
                    raytraceresult1 = axisalignedbb.calculateIntercept(vec3d, vec3d1);
                } while(raytraceresult1 == null);

                d1 = vec3d.squareDistanceTo(raytraceresult1.hitVec);
            } while(d1 >= d0 && d0 != 0.0D);

            entity = entity1;
            d0 = d1;
        }
    }

    private void setHookedEntity() {
        this.getDataManager().set(DATA_HOOKED_ENTITY, this.caughtEntity.getEntityId() + 1);
    }

    protected boolean canBeHooked(Entity p_canBeHooked_1_) {
        return p_canBeHooked_1_.canBeCollidedWith() || p_canBeHooked_1_ instanceof EntityItem;
    }

    protected void entityInit() {
        this.getDataManager().register(DATA_HOOKED_ENTITY, 0);
    }

    @Override
    protected void readEntityFromNBT(NBTTagCompound nbtTagCompound) {

    }

    @Override
    protected void writeEntityToNBT(NBTTagCompound nbtTagCompound) {

    }

    static {
        DATA_HOOKED_ENTITY = EntityDataManager.createKey(Clawshot_Head.class, DataSerializers.VARINT);
    }

    @Override
    public void writeSpawnData(ByteBuf buffer) {
        buffer.writeBoolean(getEntityByUUID(entityPlayer,this.world)==null);
        if (getEntityByUUID(entityPlayer,this.world)!=null) {
            buffer.writeInt(getEntityByUUID(entityPlayer,this.world).getEntityId());
        }
    }

    @Override
    public void readSpawnData(ByteBuf additionalData) {
        boolean nullPlayer = additionalData.readBoolean();
        if (!nullPlayer){
            EntityPlayer entityByID=(EntityPlayer) world.getEntityByID(additionalData.readInt());
            if (entityByID!=null){
                entityPlayer=entityByID.getUniqueID();
            }
            //this.shoot(getEntityByUUID(entityPlayer,this.world)); //changed that because it is only called on one Side. Obviously the wrong side.
        }
    }

    static enum State {
        FLYING,
        HOOKED_IN_ENTITY;

        private State() {
        }
    }
}

New log output when shooting:

Spoiler

[11:13:43] [main/INFO] [STDOUT]: [com.cruelar.cruelars_triforcemod.entities.projectiles.Clawshot_Head:shoot:209]: EntityPlayerSP['Player636'/283, l='MpServer', x=250.85, y=72.79, z=261.42]
[11:15:01] [main/INFO] [STDOUT]: [com.cruelar.cruelars_triforcemod.entities.projectiles.Clawshot_Head:onUpdate:92]: ln:92 got called

It dies from me being to far away. Remaining Problems:

I can't retract it and can't use the Item more than one time.

I would like to have a line drawn between the Entity and me. Quite similar to the fishing hook.

Edited by _Cruelar_
More experimenting removed the 2nd entity, Updated code

My Projects:

Cruelars Triforcemod (1.12 release; 1.14 alpha soon coming)

 

Important:

As my mod is on at least 10 different third party sites without my permission, I want to warn you about that with a link to StopModReposts

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements




  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Trying to play with the mods: Tinkers Construct, Buildcraft and the Blood Magic addon Blood Arsenal; the game crashes. I noticed that when trying to use only two of the three in any combination the game opens without problems, but when trying to put all three together the error occurs. Is there any configuration I can modify or any other way to solve the problem?   ---- Minecraft Crash Report ---- // Hi. I'm Minecraft, and I'm a crashaholic. Time: 5/22/24 8:48 PM Description: There was a severe problem during mod loading that has caused the game to fail cpw.mods.fml.common.LoaderException: java.lang.NoClassDefFoundError: tconstruct/library/weaponry/AmmoWeapon     at cpw.mods.fml.common.LoadController.transition(LoadController.java:163)     at cpw.mods.fml.common.Loader.loadMods(Loader.java:544)     at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:208)     at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:480)     at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:878)     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.NoClassDefFoundError: tconstruct/library/weaponry/AmmoWeapon     at java.lang.Class.forName0(Native Method)     at java.lang.Class.forName(Unknown Source)     at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:42)     at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:512)     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:212)     at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190)     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:119)     at cpw.mods.fml.common.Loader.loadMods(Loader.java:513)     ... 10 more Caused by: java.lang.ClassNotFoundException: tconstruct.library.weaponry.AmmoWeapon     at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191)     at java.lang.ClassLoader.loadClass(Unknown Source)     at java.lang.ClassLoader.loadClass(Unknown Source)     ... 36 more Caused by: java.lang.NoClassDefFoundError: tconstruct/library/weaponry/AmmoItem     at java.lang.ClassLoader.defineClass1(Native Method)     at java.lang.ClassLoader.defineClass(Unknown Source)     at java.security.SecureClassLoader.defineClass(Unknown Source)     at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182)     ... 38 more Caused by: java.lang.ClassNotFoundException: tconstruct.library.weaponry.AmmoItem     at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:101)     at java.lang.ClassLoader.loadClass(Unknown Source)     at java.lang.ClassLoader.loadClass(Unknown Source)     ... 42 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 10 (x86) version 10.0     Java Version: 1.8.0_411, Oracle Corporation     Java VM Version: Java HotSpot(TM) Client VM (mixed mode, sharing), Oracle Corporation     Memory: 271923192 bytes (259 MB) / 402653184 bytes (384 MB) up to 536870912 bytes (512 MB)     JVM Flags: 9 total; -Xmx512M -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M -XX:+IgnoreUnrecognizedVMOptions -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.99.99 Minecraft Forge 10.13.4.1614 14 mods loaded, 14 mods active     States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored     UC    mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)      UC    FML{7.10.99.99} [Forge Mod Loader] (forge-1.7.10-10.13.4.1614-1.7.10.jar)      UC    Forge{10.13.4.1614} [Minecraft Forge] (forge-1.7.10-10.13.4.1614-1.7.10.jar)      UC    AWWayofTime{v1.3.3} [Blood Magic: Alchemical Wizardry] (BloodMagic-1.7.10-1.3.3-17.jar)      UC    Mantle{1.7.10-0.3.2.jenkins191} [Mantle] (Mantle-1.7.10-0.3.2b.jar)      UE    TConstruct{1.7.10-1.8.8.build991} [Tinkers' Construct] (TConstruct-1.7.10-1.8.8.build991.jar)      UC    BloodArsenal{1.2-5} [Blood Arsenal] (BloodArsenal-1.7.10-1.2-5.jar)      UC    BuildCraft|Core{7.1.25} [BuildCraft] (buildcraft-7.1.25.jar)      UC    BuildCraft|Builders{7.1.25} [BC Builders] (buildcraft-7.1.25.jar)      UC    BuildCraft|Robotics{7.1.25} [BC Robotics] (buildcraft-7.1.25.jar)      UC    BuildCraft|Silicon{7.1.25} [BC Silicon] (buildcraft-7.1.25.jar)      UC    BuildCraft|Energy{7.1.25} [BC Energy] (buildcraft-7.1.25.jar)      UC    BuildCraft|Transport{7.1.25} [BC Transport] (buildcraft-7.1.25.jar)      UC    BuildCraft|Factory{7.1.25} [BC Factory] (buildcraft-7.1.25.jar)      GL info: ' Vendor: 'Intel' Version: '4.4.0 - Build 21.20.16.4541' Renderer: 'Intel(R) HD Graphics 610'     Mantle Environment: Environment healthy.     TConstruct Environment: Environment healthy.
    • fixed this problem but now i have a new one  java.lang.RuntimeException: java.lang.NoSuchFieldException: processor  Help 
    • ---- Minecraft Crash Report ---- WARNING: coremods are present:   IELoadingPlugin (ImmersiveEngineering-core-0.12-98.jar)   FTBUltimineASM (ftb-ultimine-1202.3.5.jar)   ForgelinPlugin (Forgelin-1.8.4.jar)   MovingWorldCore (movingworld-1.12-6.353-full.jar)   MekanismCoremod (Mekanism-1.12.2-9.8.3.390.jar)   OpenModsCorePlugin (OpenModsLib-1.12.2-0.12.2.jar)   AppleCore (AppleCore-mc1.12.2-3.4.0.jar)   Ar_CorePlugin (additionalresources-1.9.4-0.2.0.28+47cd0bd_signed.jar)   CTMCorePlugin (CTM-MC1.12.2-1.0.2.31.jar)   EnderCorePlugin (EnderCore-1.12.2-0.5.78-core.jar)   TransformerLoader (OpenComputers-MC1.12.2-1.8.5+179e1c3.jar)   Inventory Tweaks Coremod (InventoryTweaks-1.63.jar)   SecretRoomsMod-Core (secretroomsmod-1.12.2-5.6.4.jar)   LoadingPlugin (ResourceLoader-MC1.12.1-1.5.3.jar)   MalisisCorePlugin (malisiscore-1.12.2-6.5.1.jar) Contact their authors BEFORE contacting forge // Daisy, daisy... Time: 5/22/24 9:18 PM Description: Initializing game java.lang.RuntimeException: Invalid id 4096 - maximum id range exceeded.     at net.minecraftforge.registries.ForgeRegistry.add(ForgeRegistry.java:295)     at net.minecraftforge.registries.ForgeRegistry.add(ForgeRegistry.java:281)     at net.minecraftforge.registries.ForgeRegistry.register(ForgeRegistry.java:113)     at com.blakebr0.cucumber.registry.ModRegistry.registerBlocks(ModRegistry.java:230)     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_209_ModRegistry_registerBlocks_Register.invoke(.dynamic)     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)     at net.minecraftforge.fml.common.eventhandler.EventBus$1.invoke(EventBus.java:144)     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182)     at net.minecraftforge.registries.GameData.fireRegistryEvents(GameData.java:845)     at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:630)     at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:252)     at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:467)     at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:378)     at net.minecraft.client.main.Main.main(SourceFile:123)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:497)     at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)     at net.minecraft.launchwrapper.Launch.main(Launch.java:28) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Client thread Stacktrace:     at net.minecraftforge.registries.ForgeRegistry.add(ForgeRegistry.java:295)     at net.minecraftforge.registries.ForgeRegistry.add(ForgeRegistry.java:281)     at net.minecraftforge.registries.ForgeRegistry.register(ForgeRegistry.java:113)     at com.blakebr0.cucumber.registry.ModRegistry.registerBlocks(ModRegistry.java:230)     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_209_ModRegistry_registerBlocks_Register.invoke(.dynamic)     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)     at net.minecraftforge.fml.common.eventhandler.EventBus$1.invoke(EventBus.java:144)     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182)     at net.minecraftforge.registries.GameData.fireRegistryEvents(GameData.java:845)     at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:630)     at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:252)     at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:467) -- Initialization -- Details: Stacktrace:     at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:378)     at net.minecraft.client.main.Main.main(SourceFile:123)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:497)     at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)     at net.minecraft.launchwrapper.Launch.main(Launch.java:28) -- System Details -- Details:     Minecraft Version: 1.12.2     Operating System: Windows 10 (amd64) version 10.0     Java Version: 1.8.0_51, Oracle Corporation     Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation     Memory: 912918880 bytes (870 MB) / 4423417856 bytes (4218 MB) up to 6084886528 bytes (5803 MB)     JVM Flags: 3 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx6528m -Xms256m     IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0     FML: MCP 9.42 Powered by Forge 14.23.5.2859 129 mods loaded, 129 mods active     States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored     | State | ID                                           | Version                  | Source                                                | Signature                                |     |:----- |:-------------------------------------------- |:------------------------ |:----------------------------------------------------- |:---------------------------------------- |     | LCH   | minecraft                                    | 1.12.2                   | minecraft.jar                                         | None                                     |     | LCH   | mcp                                          | 9.42                     | minecraft.jar                                         | None                                     |     | LCH   | FML                                          | 8.0.99.99                | forge-1.12.2-14.23.5.2859.jar                         | e3c3d50c7c986df74c645c0ac54639741c90a557 |     | LCH   | forge                                        | 14.23.5.2859             | forge-1.12.2-14.23.5.2859.jar                         | e3c3d50c7c986df74c645c0ac54639741c90a557 |     | LCH   | additionalresources                          | 0.1.1                    | additionalresources-1.9.4-0.2.0.28+47cd0bd_signed.jar | None                                     |     | LCH   | com.elytradev.movingworld.common.asm.coremod |                          | minecraft.jar                                         | None                                     |     | LCH   | openmodscore                                 | 0.12.2                   | minecraft.jar                                         | None                                     |     | LCH   | opencomputers|core                           | 1.8.5                    | minecraft.jar                                         | None                                     |     | LCH   | srm-hooks                                    | 1.12.2-1.0.0             | minecraft.jar                                         | None                                     |     | LCH   | achievementbooks                             | V1.0b-MC1.12.2           | achievementbooks-V1.0b-MC1.12.2.jar                   | None                                     |     | LCH   | infinitylib                                  | 1.12.2-1.12.1            | infinitylib-1.12.1.jar                                | None                                     |     | LCH   | agricraft                                    | 2.12.0-1.12.2-b2         | agricraft-2.12.0-1.12.2-b2.jar                        | None                                     |     | LCH   | aoa3                                         | 3.3.6                    | AoA3-3.3.6.jar                                        | 8bddeac148843f40e0b9f69201be2f4b3071700d |     | LCH   | applecore                                    | 3.4.0                    | AppleCore-mc1.12.2-3.4.0.jar                          | None                                     |     | LCH   | jei                                          | 4.16.1.301               | jei_1.12.2-4.16.1.301.jar                             | None                                     |     | LCH   | appleskin                                    | 1.0.14                   | AppleSkin-mc1.12-1.0.14.jar                           | None                                     |     | LCH   | ctm                                          | MC1.12.2-1.0.2.31        | CTM-MC1.12.2-1.0.2.31.jar                             | None                                     |     | LCH   | appliedenergistics2                          | rv6-stable-7             | appliedenergistics2-rv6-stable-7.jar                  | dfa4d3ac143316c6f32aa1a1beda1e34d42132e5 |     | LCH   | audiodeath                                   | 0.7.0_1.9-87aeca7        | audiodeath-1.9-0.7.0.50+87aeca7.jar                   | None                                     |     | LCH   | codechickenlib                               | 3.2.3.358                | CodeChickenLib-1.12.2-3.2.3.358-universal.jar         | f1850c39b2516232a2108a7bd84d1cb5df93b261 |     | LCH   | avaritia                                     | 3.3.0                    | Avaritia-1.12.2-3.3.0.37-universal.jar                | None                                     |     | LCH   | bno                                          | 1.12.2-1.0.4.0           | BasicNetherOres-1.12.2-1.0.5.0.jar                    | None                                     |     | LCH   | baubles                                      | 1.5.2                    | Baubles-1.12-1.5.2.jar                                | None                                     |     | LCH   | bdlib                                        | 1.14.4.1                 | bdlib-1.14.4.1-mc1.12.2.jar                           | None                                     |     | LCH   | betteradvancements                           | 0.1.0.77                 | BetterAdvancements-1.12.2-0.1.0.77.jar                | None                                     |     | LCH   | bibliocraft                                  | 2.4.6                    | BiblioCraft[v2.4.6][MC1.12.2].jar                     | None                                     |     | LCH   | bluepower                                    | 0.3.152                  | BluePower-1.12.2-0.3.152-universal.jar                | None                                     |     | LCH   | thaumcraft                                   | 6.1.BETA26               | Thaumcraft-1.12.2-6.1.BETA26.jar                      | None                                     |     | LCH   | botania                                      | r1.10-364                | Botania r1.10-364.4.jar                               | None                                     |     | LCH   | redstoneflux                                 | 2.1.1                    | RedstoneFlux-1.12-2.1.1.1-universal.jar               | None                                     |     | LCH   | brandonscore                                 | 2.4.20                   | BrandonsCore-1.12.2-2.4.20.162-universal.jar          | None                                     |     | LCH   | chameleon                                    | 1.12-4.1.3               | Chameleon-1.12-4.1.3.jar                              | None                                     |     | LCH   | chancecubes                                  | 1.12.2-5.0.2.385         | ChanceCubes-1.12.2-5.0.2.385.jar                      | None                                     |     | LCH   | chickenchunks                                | 2.4.2.74                 | ChickenChunks-1.12.2-2.4.2.74-universal.jar           | f1850c39b2516232a2108a7bd84d1cb5df93b261 |     | LCH   | chisel                                       | MC1.12.2-1.0.2.45        | Chisel-MC1.12.2-1.0.2.45.jar                          | None                                     |     | LCH   | cofhcore                                     | 4.6.6                    | CoFHCore-1.12.2-4.6.6.1-universal.jar                 | None                                     |     | LCH   | cofhworld                                    | 1.4.0                    | CoFHWorld-1.12.2-1.4.0.1-universal.jar                | None                                     |     | LCH   | collective                                   | 3.0                      | collective-1.12.2-3.0.jar                             | None                                     |     | LCH   | cookingforblockheads                         | 6.5.0                    | CookingForBlockheads_1.12.2-6.5.0.jar                 | None                                     |     | LCH   | cucumber                                     | 1.1.3                    | Cucumber-1.12.2-1.1.3.jar                             | None                                     |     | LCH   | custommainmenu                               | 2.0.9.1                  | CustomMainMenu-MC1.12.2-2.0.9.1.jar                   | None                                     |     | LCH   | customnpcs                                   | 1.12                     | CustomNPCs_1.12.2-(05Jul20).jar                       | None                                     |     | LCH   | cyclopscore                                  | 1.6.7                    | CyclopsCore-1.12.2-1.6.7.jar                          | bd0353b3e8a2810d60dd584e256e364bc3bedd44 |     | LCH   | movingworld                                  | 1.12-6.353               | movingworld-1.12-6.353-full.jar                       | None                                     |     | LCH   | davincisvessels                              | @DVESSELSVER@            | davincisvessels-1.12-6.340-full.jar                   | None                                     |     | LCH   | ptrmodellib                                  | 1.0.5                    | PTRLib-1.0.5.jar                                      | None                                     |     | LCH   | props                                        | 2.6.3.7                  | Decocraft-2.6.3.7_1.12.2.jar                          | None                                     |     | LCH   | thermalfoundation                            | 2.6.7                    | ThermalFoundation-1.12.2-2.6.7.1-universal.jar        | None                                     |     | LCH   | draconicevolution                            | 2.3.28                   | Draconic-Evolution-1.12.2-2.3.28.354-universal.jar    | None                                     |     | LCH   | lootablebodies                               | 2.4.0                    | DrCyanosLootableBodies_1.12-2.4.0.jar                 | None                                     |     | LCH   | elevatorid                                   | 1.3.14                   | ElevatorMod-1.12.2-1.3.14.jar                         | None                                     |     | LCH   | endercore                                    | 1.12.2-0.5.78            | EnderCore-1.12.2-0.5.78.jar                           | None                                     |     | LCH   | thermalexpansion                             | 5.5.7                    | ThermalExpansion-1.12.2-5.5.7.1-universal.jar         | None                                     |     | LCH   | enderio                                      | 5.3.72                   | EnderIO-base-1.12.2-5.3.72.jar                        | None                                     |     | LCH   | enderiointegrationtic                        | 5.3.72                   | EnderIO-integration-tic-1.12.2-5.3.72.jar             | None                                     |     | LCH   | enderiobase                                  | 5.3.72                   | EnderIO-base-1.12.2-5.3.72.jar                        | None                                     |     | LCH   | mantle                                       | 1.12-1.3.3.55            | Mantle-1.12-1.3.3.55.jar                              | None                                     |     | LCH   | twilightforest                               | 3.11.1021                | twilightforest-1.12.2-3.11.1021-universal.jar         | None                                     |     | LCH   | tconstruct                                   | 1.12.2-2.13.0.183        | TConstruct-1.12.2-2.13.0.183.jar                      | None                                     |     | LCH   | enderiointegrationticlate                    | 5.3.72                   | EnderIO-integration-tic-1.12.2-5.3.72.jar             | None                                     |     | LCH   | enderstorage                                 | 2.4.6.137                | EnderStorage-1.12.2-2.4.6.137-universal.jar           | f1850c39b2516232a2108a7bd84d1cb5df93b261 |     | LCH   | evilcraft                                    | 0.10.78                  | EvilCraft-1.12.2-0.10.78.jar                          | bd0353b3e8a2810d60dd584e256e364bc3bedd44 |     | LCH   | natura                                       | 1.12.2-4.3.2.69          | natura-1.12.2-4.3.2.69.jar                            | None                                     |     | LCH   | forestry                                     | 5.8.2.387                | forestry_1.12.2-5.8.2.387.jar                         | None                                     |     | LCH   | evilcraftcompat                              | 1.0.0                    | EvilCraft-1.12.2-0.10.78.jar                          | None                                     |     | LCH   | waila                                        | 1.8.26                   | Hwyla-1.8.26-B41_1.12.2.jar                           | None                                     |     | LCH   | extracells                                   | 2.6.7                    | ExtraCells-1.12.2-2.6.7.jar                           | None                                     |     | LCH   | extrautils2                                  | 1.0                      | extrautils2-1.12-1.9.9.jar                            | None                                     |     | LCH   | opencomputers                                | 1.8.5                    | OpenComputers-MC1.12.2-1.8.5+179e1c3.jar              | None                                     |     | LCH   | zerocore                                     | 1.12.2-0.1.2.9           | zerocore-1.12.2-0.1.2.9.jar                           | None                                     |     | LCH   | bigreactors                                  | 1.12.2-0.4.5.68          | ExtremeReactors-1.12.2-0.4.5.68.jar                   | None                                     |     | LCH   | fastleafdecay                                | v14                      | FastLeafDecay-v14.jar                                 | None                                     |     | LCH   | fluxnetworks                                 | 4.1.0                    | FluxNetworks-1.12.2-4.1.1.34.jar                      | None                                     |     | LCH   | forgelin                                     | 1.8.4                    | Forgelin-1.8.4.jar                                    | None                                     |     | LCH   | ftbultimine                                  | 1202.3.5                 | ftb-ultimine-1202.3.5.jar                             | None                                     |     | LCH   | ichunutil                                    | 7.2.2                    | iChunUtil-1.12.2-7.2.2.jar                            | 4db5c2bd1b556f252a5b8b54b256d381b2a0a6b8 |     | LCH   | gravitygun                                   | 7.1.0                    | GravityGun-1.12.2-7.1.0.jar                           | 4db5c2bd1b556f252a5b8b54b256d381b2a0a6b8 |     | LCH   | headcrumbs                                   | 2.0.4                    | Headcrumbs-1.12.2-2.0.5.17.jar                        | None                                     |     | LCH   | mekanism                                     | 1.12.2-9.8.3.390         | Mekanism-1.12.2-9.8.3.390.jar                         | None                                     |     | LCH   | teslacorelib                                 | 1.0.18                   | tesla-core-lib-1.12.2-1.0.18.jar                      | d476d1b22b218a10d845928d1665d45fce301b27 |     | LCH   | industrialforegoing                          | 1.12.2-1.12.2            | industrialforegoing-1.12.2-1.12.13-237.jar            | None                                     |     | LCH   | inventorypets                                | 2.0.15                   | inventorypets-1.12-2.0.15.jar                         | None                                     |     | LCH   | inventorytweaks                              | 1.63+release.109.220f184 | InventoryTweaks-1.63.jar                              | 55d2cd4f5f0961410bf7b91ef6c6bf00a766dcbe |     | LCH   | ironchest                                    | 1.12.2-7.0.67.844        | ironchest-1.12.2-7.0.72.847.jar                       | None                                     |     | LCH   | jeibees                                      | 0.9.0.5                  | jeibees-0.9.0.5-mc1.12.2.jar                          | None                                     |     | LCH   | jeiintegration                               | 1.6.0                    | jeiintegration_1.12.2-1.6.0.jar                       | None                                     |     | LCH   | malisiscore                                  | 1.12.2-6.5.1-SNAPSHOT    | malisiscore-1.12.2-6.5.1.jar                          | None                                     |     | LCH   | malisisdoors                                 | 1.12.2-7.3.0             | malisisdoors-1.12.2-7.3.0.jar                         | None                                     |     | LCH   | mysticalagriculture                          | 1.7.5                    | MysticalAgriculture-1.12.2-1.7.5.jar                  | None                                     |     | LCH   | matc                                         | 1.0.1-hotfix             | matc-1.0.1-hotfix.jar                                 | None                                     |     | LCH   | mca                                          | 6.1.0                    | MCA-1.12.2-6.1.0-universal.jar                        | None                                     |     | LCH   | mcjtylib_ng                                  | 3.5.4                    | mcjtylib-1.12-3.5.4.jar                               | None                                     |     | LCH   | mekanismgenerators                           | 1.12.2-9.8.3.390         | MekanismGenerators-1.12.2-9.8.3.390.jar               | None                                     |     | LCH   | mekanismtools                                | 1.12.2-9.8.3.390         | MekanismTools-1.12.2-9.8.3.390.jar                    | None                                     |     | LCH   | mob_grinding_utils                           | 0.3.13                   | MobGrindingUtils-0.3.13.jar                           | None                                     |     | LCH   | numina                                       | 1.0                      | Numina-1.12.2-1.1.049.jar                             | None                                     |     | LCH   | refinedstorage                               | 1.6.16                   | refinedstorage-1.6.16.jar                             | 57893d5b90a7336e8c63fe1c1e1ce472c3d59578 |     | LCH   | powersuits                                   | 1.1.048                  | ModularPowersuits-1.12.2-1.1.048.jar                  | None                                     |     | LCH   | morph                                        | 7.2.0                    | Morph-1.12.2-7.2.1.jar                                | 4db5c2bd1b556f252a5b8b54b256d381b2a0a6b8 |     | LCH   | mousetweaks                                  | 2.10                     | MouseTweaks-2.10-mc1.12.2.jar                         | None                                     |     | LCH   | mysticalagradditions                         | 1.3.2                    | MysticalAgradditions-1.12.2-1.3.2.jar                 | None                                     |     | LCH   | openmods                                     | 0.12.2                   | OpenModsLib-1.12.2-0.12.2.jar                         | d2a9a8e8440196e26a268d1f3ddc01b2e9c572a5 |     | LCH   | openblocks                                   | 1.8.1                    | OpenBlocks-1.12.2-1.8.1.jar                           | d2a9a8e8440196e26a268d1f3ddc01b2e9c572a5 |     | LCH   | harvestcraft                                 | 1.12.2zb                 | Pam's HarvestCraft 1.12.2zg.jar                       | None                                     |     | LCH   | patchouli                                    | 1.0-23.6                 | Patchouli-1.0-23.6.jar                                | None                                     |     | LCH   | portalgun                                    | 7.1.0                    | PortalGun-1.12.2-7.1.0.jar                            | 4db5c2bd1b556f252a5b8b54b256d381b2a0a6b8 |     | LCH   | projecte                                     | 1.12.2-PE1.4.1           | ProjectE-1.12.2-PE1.4.1.jar                           | None                                     |     | LCH   | projectex                                    | 1.2.0.40                 | ProjectEX-1.2.0.40.jar                                | None                                     |     | LCH   | radixcore                                    | 1.12.x-2.2.1             | RadixCore-1.12.x-2.2.1-universal.jar                  | None                                     |     | LCH   | redstonearsenal                              | 2.6.6                    | RedstoneArsenal-1.12.2-2.6.6.1-universal.jar          | None                                     |     | LCH   | xreliquary                                   | 1.12.2-1.3.4.796         | Reliquary-1.12.2-1.3.4.796.jar                        | None                                     |     | LCH   | resourceloader                               | 1.5.3                    | ResourceLoader-MC1.12.1-1.5.3.jar                     | d72e0dd57935b3e9476212aea0c0df352dd76291 |     | LCH   | rftools                                      | 7.73                     | rftools-1.12-7.73.jar                                 | None                                     |     | LCH   | rftoolspower                                 | 1.2.0                    | rftoolspower-1.12-1.2.0.jar                           | None                                     |     | LCH   | secretroomsmod                               | 5.6.4                    | secretroomsmod-1.12.2-5.6.4.jar                       | None                                     |     | LCH   | thermaldynamics                              | 2.5.6                    | ThermalDynamics-1.12.2-2.5.6.1-universal.jar          | None                                     |     | LCH   | immersiveengineering                         | 0.12-98                  | ImmersiveEngineering-0.12-98.jar                      | None                                     |     | LCH   | simplyjetpacks                               | 1.12.2-2.2.20.0          | SimplyJetpacks2-1.12.2-2.2.20.0.jar                   | None                                     |     | LCH   | starterkit                                   | 2.4                      | starterkit_1.12.2-2.4.jar                             | None                                     |     | LCH   | storagedrawers                               | 5.5.0                    | StorageDrawers-1.12.2-5.5.0.jar                       | None                                     |     | LCH   | thaumicjei                                   | 1.6.0                    | ThaumicJEI-1.12.2-1.6.0-27.jar                        | None                                     |     | LCH   | thermalinnovation                            | 0.3.6                    | ThermalInnovation-1.12.2-0.3.6.1-universal.jar        | None                                     |     | LCH   | tcomplement                                  | 1.12.2-0.4.3             | TinkersComplement-1.12.2-0.4.3.jar                    | None                                     |     | LCH   | tinkersjei                                   | 1.2                      | tinkersjei-1.2.jar                                    | None                                     |     | LCH   | tinkertoolleveling                           | 1.12.2-1.1.0.DEV.b23e769 | TinkerToolLeveling-1.12.2-1.1.0.jar                   | None                                     |     | LCH   | vampire                                      | 0.0.2B                   | vampire-0.0.2B.jar                                    | None                                     |     | LCH   | wawla                                        | 2.6.275                  | Wawla-1.12.2-2.6.275.jar                              | d476d1b22b218a10d845928d1665d45fce301b27 |     | LCH   | matteroverdrive                              | 0.7.0.0                  | MatterOverdrive-1.12.2-0.7.1.0-universal.jar          | None                                     |     | LCH   | teslacorelib_registries                      | 1.0.18                   | tesla-core-lib-1.12.2-1.0.18.jar                      | None                                     |     Loaded coremods (and transformers):  IELoadingPlugin (ImmersiveEngineering-core-0.12-98.jar)   blusunrize.immersiveengineering.common.asm.IEClassTransformer FTBUltimineASM (ftb-ultimine-1202.3.5.jar)    ForgelinPlugin (Forgelin-1.8.4.jar)    MovingWorldCore (movingworld-1.12-6.353-full.jar)    MekanismCoremod (Mekanism-1.12.2-9.8.3.390.jar)   mekanism.coremod.KeybindingMigrationHelper OpenModsCorePlugin (OpenModsLib-1.12.2-0.12.2.jar)   openmods.core.OpenModsClassTransformer AppleCore (AppleCore-mc1.12.2-3.4.0.jar)   squeek.applecore.asm.TransformerModuleHandler Ar_CorePlugin (additionalresources-1.9.4-0.2.0.28+47cd0bd_signed.jar)    CTMCorePlugin (CTM-MC1.12.2-1.0.2.31.jar)   team.chisel.ctm.client.asm.CTMTransformer EnderCorePlugin (EnderCore-1.12.2-0.5.78-core.jar)   com.enderio.core.common.transform.EnderCoreTransformer   com.enderio.core.common.transform.SimpleMixinPatcher TransformerLoader (OpenComputers-MC1.12.2-1.8.5+179e1c3.jar)   li.cil.oc.common.asm.ClassTransformer Inventory Tweaks Coremod (InventoryTweaks-1.63.jar)   invtweaks.forge.asm.ContainerTransformer SecretRoomsMod-Core (secretroomsmod-1.12.2-5.6.4.jar)   com.wynprice.secretroomsmod.core.SecretRoomsTransformer LoadingPlugin (ResourceLoader-MC1.12.1-1.5.3.jar)   lumien.resourceloader.asm.ClassTransformer MalisisCorePlugin (malisiscore-1.12.2-6.5.1.jar)        GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.6.0 NVIDIA 552.22' Renderer: 'NVIDIA GeForce GTX 1070 Ti/PCIe/SSE2'     OpenModsLib class transformers: [llama_null_fix:FINISHED],[horse_base_null_fix:FINISHED],[pre_world_render_hook:FINISHED],[player_render_hook:FINISHED],[horse_null_fix:FINISHED]     AE2 Version: stable rv6-stable-7 for Forge 14.23.5.2768     Ender IO: No known problems detected.        !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!     !!!You are looking at the diagnostics information, not at the crash.       !!!     !!!Scroll up until you see the line with '---- Minecraft Crash Report ----'!!!     !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!     Pulsar/tconstruct loaded Pulses:          - TinkerCommons (Enabled/Forced)         - TinkerWorld (Enabled/Not Forced)         - TinkerTools (Enabled/Not Forced)         - TinkerHarvestTools (Enabled/Forced)         - TinkerMeleeWeapons (Enabled/Forced)         - TinkerRangedWeapons (Enabled/Forced)         - TinkerModifiers (Enabled/Forced)         - TinkerSmeltery (Enabled/Not Forced)         - TinkerGadgets (Enabled/Not Forced)         - TinkerOredict (Enabled/Forced)         - TinkerIntegration (Enabled/Forced)         - TinkerFluids (Enabled/Forced)         - TinkerMaterials (Enabled/Forced)         - TinkerModelRegister (Enabled/Forced)         - chiselIntegration (Enabled/Not Forced)         - wailaIntegration (Enabled/Not Forced)     Pulsar/natura loaded Pulses:          - NaturaCommons (Enabled/Forced)         - NaturaOverworld (Enabled/Not Forced)         - NaturaNether (Enabled/Not Forced)         - NaturaDecorative (Enabled/Not Forced)         - NaturaTools (Enabled/Not Forced)         - NaturaEntities (Enabled/Not Forced)         - NaturaOredict (Enabled/Forced)         - NaturaWorld (Enabled/Not Forced)     Pulsar/tcomplement loaded Pulses:          - ModuleCommons (Enabled/Forced)         - ModuleMelter (Enabled/Not Forced)         - ModuleArmor (Enabled/Not Forced)         - ModuleSteelworks (Enabled/Not Forced)         - ChiselPlugin (Enabled/Not Forced)         - ToolLevelingPlugin (Enabled/Not Forced)         - Oredict (Enabled/Forced)     List of loaded APIs:          * AgriCraftAPI (1.0) from agricraft-2.12.0-1.12.2-b2.jar         * AppleCoreAPI (3.4.0) from AppleCore-mc1.12.2-3.4.0.jar         * appliedenergistics2|API (rv6) from appliedenergistics2-rv6-stable-7.jar         * Baubles|API (1.4.0.2) from Baubles-1.12-1.5.2.jar         * betteradvancements|API (0.1.0.77) from BetterAdvancements-1.12.2-0.1.0.77.jar         * BetterWithModsAPI (Beta 0.6) from AppleSkin-mc1.12-1.0.14.jar         * bigreactors|API (4.0.1) from ExtremeReactors-1.12.2-0.4.5.68.jar         * bluepowerAPI (1.0) from BluePower-1.12.2-0.3.152-universal.jar         * BotaniaAPI (93) from Botania r1.10-364.4.jar         * Chisel-API (0.0.1) from Chisel-MC1.12.2-1.0.2.45.jar         * ChiselAPI|Carving (0.0.1) from Chisel-MC1.12.2-1.0.2.45.jar         * cofhapi (2.5.0) from CoFHCore-1.12.2-4.6.6.1-universal.jar         * Core (0.1) from CustomNPCs_1.12.2-(05Jul20).jar         * Core|Blocks (0.1) from CustomNPCs_1.12.2-(05Jul20).jar         * Core|Constants (0.1) from CustomNPCs_1.12.2-(05Jul20).jar         * Core|Entities (0.1) from CustomNPCs_1.12.2-(05Jul20).jar         * Core|Entities|Data (0.1) from CustomNPCs_1.12.2-(05Jul20).jar         * Core|Entities|Data|Role (0.1) from CustomNPCs_1.12.2-(05Jul20).jar         * Core|Events (0.1) from CustomNPCs_1.12.2-(05Jul20).jar         * Core|Gui (0.1) from CustomNPCs_1.12.2-(05Jul20).jar         * Core|Handlers (0.1) from CustomNPCs_1.12.2-(05Jul20).jar         * Core|Handlers|Data (0.1) from CustomNPCs_1.12.2-(05Jul20).jar         * CSLib|API (1.0.1) from PTRLib-1.0.5.jar         * ctm-api (0.1.0) from CTM-MC1.12.2-1.0.2.31.jar         * ctm-api-events (0.1.0) from CTM-MC1.12.2-1.0.2.31.jar         * ctm-api-models (0.1.0) from CTM-MC1.12.2-1.0.2.31.jar         * ctm-api-textures (0.1.0) from CTM-MC1.12.2-1.0.2.31.jar         * ctm-api-utils (0.1.0) from CTM-MC1.12.2-1.0.2.31.jar         * DraconicEvolution|API (1.3) from Draconic-Evolution-1.12.2-2.3.28.354-universal.jar         * enderioapi (4.0.0) from EnderIO-base-1.12.2-5.3.72.jar         * enderioapi|addon (4.0.0) from EnderIO-base-1.12.2-5.3.72.jar         * enderioapi|capacitor (4.0.0) from EnderIO-base-1.12.2-5.3.72.jar         * enderioapi|conduits (4.0.0) from EnderIO-base-1.12.2-5.3.72.jar         * enderioapi|farm (4.0.0) from EnderIO-base-1.12.2-5.3.72.jar         * enderioapi|redstone (4.0.0) from EnderIO-base-1.12.2-5.3.72.jar         * enderioapi|teleport (4.0.0) from EnderIO-base-1.12.2-5.3.72.jar         * enderioapi|tools (4.0.0) from EnderIO-base-1.12.2-5.3.72.jar         * enderioapi|upgrades (4.0.0) from EnderIO-base-1.12.2-5.3.72.jar         * ForestryAPI|apiculture (5.0.0) from forestry_1.12.2-5.8.2.387.jar         * ForestryAPI|arboriculture (4.3.0) from forestry_1.12.2-5.8.2.387.jar         * ForestryAPI|book (5.8.1) from forestry_1.12.2-5.8.2.387.jar         * ForestryAPI|circuits (3.1.0) from forestry_1.12.2-5.8.2.387.jar         * ForestryAPI|climate (5.0.0) from forestry_1.12.2-5.8.2.387.jar         * ForestryAPI|core (5.7.0) from forestry_1.12.2-5.8.2.387.jar         * ForestryAPI|farming (5.8.0) from forestry_1.12.2-5.8.2.387.jar         * ForestryAPI|food (1.1.0) from forestry_1.12.2-5.8.2.387.jar         * ForestryAPI|fuels (3.0.0) from forestry_1.12.2-5.8.2.387.jar         * ForestryAPI|genetics (5.7.0) from forestry_1.12.2-5.8.2.387.jar         * ForestryAPI|gui (5.8.0) from forestry_1.12.2-5.8.2.387.jar         * ForestryAPI|hives (4.1.0) from forestry_1.12.2-5.8.2.387.jar         * ForestryAPI|lepidopterology (1.4.0) from forestry_1.12.2-5.8.2.387.jar         * ForestryAPI|mail (3.1.0) from forestry_1.12.2-5.8.2.387.jar         * ForestryAPI|modules (5.7.0) from forestry_1.12.2-5.8.2.387.jar         * ForestryAPI|multiblock (3.0.0) from forestry_1.12.2-5.8.2.387.jar         * ForestryAPI|recipes (5.4.0) from forestry_1.12.2-5.8.2.387.jar         * ForestryAPI|storage (5.0.0) from forestry_1.12.2-5.8.2.387.jar         * ForestryAPI|world (2.1.0) from forestry_1.12.2-5.8.2.387.jar         * iChunUtil API (1.2.0) from iChunUtil-1.12.2-7.2.2.jar         * ImmersiveEngineering|API (1.0) from ImmersiveEngineering-0.12-98.jar         * ImmersiveEngineering|ImmersiveFluxAPI (1.0) from ImmersiveEngineering-0.12-98.jar         * industrialforegoingapi (5) from industrialforegoing-1.12.2-1.12.13-237.jar         * JustEnoughItemsAPI (4.13.0) from jei_1.12.2-4.16.1.301.jar         * MatterOverdrive|API (0.4.1) from MatterOverdrive-1.12.2-0.7.1.0-universal.jar         * MekanismAPI|core (9.8.1) from Mekanism-1.12.2-9.8.3.390.jar         * MekanismAPI|energy (9.8.1) from Mekanism-1.12.2-9.8.3.390.jar         * MekanismAPI|gas (9.8.1) from Mekanism-1.12.2-9.8.3.390.jar         * MekanismAPI|infuse (9.8.1) from Mekanism-1.12.2-9.8.3.390.jar         * MekanismAPI|laser (9.8.1) from Mekanism-1.12.2-9.8.3.390.jar         * MekanismAPI|transmitter (9.8.1) from Mekanism-1.12.2-9.8.3.390.jar         * MekanismAPI|util (9.0.0) from Mekanism-1.12.2-9.8.3.390.jar         * MouseTweaks|API (1.0) from MouseTweaks-2.10-mc1.12.2.jar         * openblocks|api (1.2) from OpenBlocks-1.12.2-1.8.1.jar         * opencomputersapi|component (7.0.0-alpha) from OpenComputers-MC1.12.2-1.8.5+179e1c3.jar         * opencomputersapi|core (7.0.0-alpha) from OpenComputers-MC1.12.2-1.8.5+179e1c3.jar         * opencomputersapi|driver (7.0.0-alpha) from OpenComputers-MC1.12.2-1.8.5+179e1c3.jar         * opencomputersapi|driver|item (7.0.0-alpha) from OpenComputers-MC1.12.2-1.8.5+179e1c3.jar         * opencomputersapi|event (7.0.0-alpha) from OpenComputers-MC1.12.2-1.8.5+179e1c3.jar         * opencomputersapi|filesystem (7.0.0-alpha) from OpenComputers-MC1.12.2-1.8.5+179e1c3.jar         * opencomputersapi|internal (7.0.0-alpha) from OpenComputers-MC1.12.2-1.8.5+179e1c3.jar         * opencomputersapi|machine (7.0.0-alpha) from OpenComputers-MC1.12.2-1.8.5+179e1c3.jar         * opencomputersapi|manual (7.0.0-alpha) from OpenComputers-MC1.12.2-1.8.5+179e1c3.jar         * opencomputersapi|network (7.0.0-alpha) from OpenComputers-MC1.12.2-1.8.5+179e1c3.jar         * opencomputersapi|prefab (7.0.0-alpha) from OpenComputers-MC1.12.2-1.8.5+179e1c3.jar         * PatchouliAPI (6) from Patchouli-1.0-23.6.jar         * projecteapi (1.12.2-1.2.0) from ProjectE-1.12.2-PE1.4.1.jar         * redstonefluxapi (2.1.1) from RedstoneFlux-1.12-2.1.1.1-universal.jar         * StorageDrawersAPI (2.1.0) from StorageDrawers-1.12.2-5.5.0.jar         * StorageDrawersAPI|event (2.1.0) from StorageDrawers-1.12.2-5.5.0.jar         * StorageDrawersAPI|registry (2.1.0) from StorageDrawers-1.12.2-5.5.0.jar         * StorageDrawersAPI|render (2.1.0) from StorageDrawers-1.12.2-5.5.0.jar         * StorageDrawersAPI|storage (2.1.0) from StorageDrawers-1.12.2-5.5.0.jar         * StorageDrawersAPI|storage-attribute (2.1.0) from StorageDrawers-1.12.2-5.5.0.jar         * Thaumcraft|API (6.0.2) from Thaumcraft-1.12.2-6.1.BETA26.jar         * WailaAPI (1.3) from Hwyla-1.8.26-B41_1.12.2.jar         * zerocore|API|multiblock (1.10.2-0.0.2) from zerocore-1.12.2-0.1.2.9.jar         * zerocore|API|multiblock|rectangular (1.10.2-0.0.2) from zerocore-1.12.2-0.1.2.9.jar         * zerocore|API|multiblock|tier (1.10.2-0.0.2) from zerocore-1.12.2-0.1.2.9.jar         * zerocore|API|multiblock|validation (1.10.2-0.0.2) from zerocore-1.12.2-0.1.2.9.jar     Patchouli open book context: n/a     Launched Version: forge-14.23.5.2859     LWJGL: 2.9.4     OpenGL: NVIDIA GeForce GTX 1070 Ti/PCIe/SSE2 GL version 4.6.0 NVIDIA 552.22, NVIDIA Corporation     GL Caps: Using GL 1.3 multitexturing. Using GL 1.3 texture combiners. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Shaders are available because OpenGL 2.1 is supported. VBOs are available because OpenGL 1.5 is supported.     Using VBOs: Yes     Is Modded: Definitely; Client brand changed to 'fml,forge'     Type: Client (map_client.txt)     Resource Packs:      Current Language: English (US)     Profiler Position: N/A (disabled)     CPU: 12x Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
    • I got a 1.12.2 server up and running after fixing some issues , the thing is that even for me, the host, the server is several ticks behind, i even had to set the max-tick-time to -1 to be on the server without it crashing. I have good internet and im dedicating 6gb of ram to it, but it still uses 1200mb more or less, here is a picture: https://ibb.co/RbcwgzP chunks load just fine, its the lag thats unbearable, i cant break blocks, cant walk without teleporting back to where i was, nothing.
    • I was playing this mod pack just fine yesterday and I added a few more mods to it this morning. Ive tried it with and without these mods I added and keep getting the same error. here is the latest crash log.
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.