Jump to content

Block Animation


GhostSnyperRecon

Recommended Posts

 

Model File:

 

 

package naturemod.client.models;

 

import net.minecraft.client.model.ModelBase;

import net.minecraft.client.model.ModelRenderer;

import net.minecraft.entity.Entity;

 

public class ModelGrinder extends ModelBase

{

  //fields

    ModelRenderer Base;

    ModelRenderer Pilar;

    ModelRenderer Pilar1;

    ModelRenderer Pilar2;

    ModelRenderer Pilar3;

    ModelRenderer Pole;

    public static ModelRenderer GrindWheel;

    public static ModelRenderer GrindWheel1;

    ModelRenderer Hopper;

    ModelRenderer HopperSide;

    ModelRenderer HopperSide1;

    ModelRenderer HopperSide2;

    ModelRenderer HopperSide3;

    ModelRenderer Strut;

    ModelRenderer StrutTop;

    ModelRenderer Strut1;

    ModelRenderer StrutTop1;

    ModelRenderer Strut2;

    ModelRenderer Strut3;

    ModelRenderer StrutTop3;

    ModelRenderer StrutTop2;

    ModelRenderer Item;

 

  public ModelGrinder()

  {

    textureWidth = 128;

    textureHeight = 64;

   

      Base = new ModelRenderer(this, 0, 0);

      Base.addBox(0F, 0F, 0F, 16, 3, 16);

      Base.setRotationPoint(-8F, 21F, -8F);

      Base.setTextureSize(128, 64);

      Base.mirror = true;

      setRotation(Base, 0F, 0F, 0F);

      Pilar = new ModelRenderer(this, 0, 32);

      Pilar.addBox(0F, 0F, 0F, 14, 2, 1);

      Pilar.setRotationPoint(-7F, 19F, 6.5F);

      Pilar.setTextureSize(128, 64);

      Pilar.mirror = true;

      setRotation(Pilar, 0F, 0F, 0F);

      Pilar1 = new ModelRenderer(this, 0, 32);

      Pilar1.addBox(0F, 0F, 0F, 1, 2, 14);

      Pilar1.setRotationPoint(6.5F, 19F, -7F);

      Pilar1.setTextureSize(128, 64);

      Pilar1.mirror = true;

      setRotation(Pilar1, 0F, 0F, 0F);

      Pilar2 = new ModelRenderer(this, 0, 32);

      Pilar2.addBox(0F, 0F, 0F, 14, 2, 1);

      Pilar2.setRotationPoint(-7F, 19F, -7.5F);

      Pilar2.setTextureSize(128, 64);

      Pilar2.mirror = true;

      setRotation(Pilar2, 0F, 0F, 0F);

      Pilar3 = new ModelRenderer(this, 0, 32);

      Pilar3.addBox(0F, 0F, 0F, 1, 2, 14);

      Pilar3.setRotationPoint(-7.5F, 19F, -7F);

      Pilar3.setTextureSize(128, 64);

      Pilar3.mirror = true;

      setRotation(Pilar3, 0F, 0F, 0F);

      Pole = new ModelRenderer(this, 44, 19);

      Pole.addBox(0F, 0F, 0F, 2, 7, 2);

      Pole.setRotationPoint(-1F, 14F, -1F);

      Pole.setTextureSize(128, 64);

      Pole.mirror = true;

      setRotation(Pole, 0F, 0F, 0F);

      GrindWheel = new ModelRenderer(this, 0, 19);

      GrindWheel.addBox(-5.5F, 0F, -5.5F, 11, 2, 11);

      GrindWheel.setRotationPoint(0F, 17F, 0F);

      GrindWheel.setTextureSize(128, 64);

      GrindWheel.mirror = true;

      setRotation(GrindWheel, 0F, 0F, 0F);

      GrindWheel1 = new ModelRenderer(this, 0, 19);

      GrindWheel1.addBox(-5.5F, 0F, -5.5F, 11, 2, 11);

      GrindWheel1.setRotationPoint(0F, 14.8F, 0F);

      GrindWheel1.setTextureSize(128, 64);

      GrindWheel1.mirror = true;

      setRotation(GrindWheel1, 0F, 0F, 0F);

      Hopper = new ModelRenderer(this, 52, 19);

      Hopper.addBox(0F, 0F, 0F, 6, 1, 6);

      Hopper.setRotationPoint(-3F, 13F, -3F);

      Hopper.setTextureSize(128, 64);

      Hopper.mirror = true;

      setRotation(Hopper, 0F, 0F, 0F);

      HopperSide = new ModelRenderer(this, 30, 32);

      HopperSide.addBox(0F, 0F, 0F, 1, 4, 7);

      HopperSide.setRotationPoint(-4F, 10F, -3F);

      HopperSide.setTextureSize(128, 64);

      HopperSide.mirror = true;

      setRotation(HopperSide, 0F, 0F, 0F);

      HopperSide1 = new ModelRenderer(this, 30, 32);

      HopperSide1.addBox(0F, 0F, 0F, 1, 4, 7);

      HopperSide1.setRotationPoint(3F, 10F, -4F);

      HopperSide1.setTextureSize(128, 64);

      HopperSide1.mirror = true;

      setRotation(HopperSide1, 0F, 0F, 0F);

      HopperSide2 = new ModelRenderer(this, 30, 32);

      HopperSide2.addBox(0F, 0F, 0F, 7, 4, 1);

      HopperSide2.setRotationPoint(-4F, 10F, -4F);

      HopperSide2.setTextureSize(128, 64);

      HopperSide2.mirror = true;

      setRotation(HopperSide2, 0F, 0F, 0F);

      HopperSide3 = new ModelRenderer(this, 30, 32);

      HopperSide3.addBox(0F, 0F, 0F, 7, 4, 1);

      HopperSide3.setRotationPoint(-3F, 10F, 3F);

      HopperSide3.setTextureSize(128, 64);

      HopperSide3.mirror = true;

      setRotation(HopperSide3, 0F, 0F, 0F);

      Strut = new ModelRenderer(this, 64, 0);

      Strut.addBox(0F, 0F, 0F, 1, 10, 2);

      Strut.setRotationPoint(7F, 11F, -1F);

      Strut.setTextureSize(128, 64);

      Strut.mirror = true;

      setRotation(Strut, 0F, 0F, 0F);

      StrutTop = new ModelRenderer(this, 70, 0);

      StrutTop.addBox(0F, 0F, 0F, 4, 1, 2);

      StrutTop.setRotationPoint(3F, 11F, -1F);

      StrutTop.setTextureSize(128, 64);

      StrutTop.mirror = true;

      setRotation(StrutTop, 0F, 0F, 0F);

      Strut1 = new ModelRenderer(this, 64, 0);

      Strut1.addBox(0F, 0F, 0F, 1, 10, 2);

      Strut1.setRotationPoint(-8F, 11F, -1F);

      Strut1.setTextureSize(128, 64);

      Strut1.mirror = true;

      setRotation(Strut1, 0F, 0F, 0F);

      StrutTop1 = new ModelRenderer(this, 70, 0);

      StrutTop1.addBox(0F, 0F, 0F, 4, 1, 2);

      StrutTop1.setRotationPoint(-7F, 11F, -1F);

      StrutTop1.setTextureSize(128, 64);

      StrutTop1.mirror = true;

      setRotation(StrutTop1, 0F, 0F, 0F);

      Strut2 = new ModelRenderer(this, 64, 0);

      Strut2.addBox(0F, 0F, 0F, 2, 10, 1);

      Strut2.setRotationPoint(-1F, 11F, -8F);

      Strut2.setTextureSize(128, 64);

      Strut2.mirror = true;

      setRotation(Strut2, 0F, 0F, 0F);

      Strut3 = new ModelRenderer(this, 64, 0);

      Strut3.addBox(0F, 0F, 0F, 2, 10, 1);

      Strut3.setRotationPoint(-1F, 11F, 7F);

      Strut3.setTextureSize(128, 64);

      Strut3.mirror = true;

      setRotation(Strut3, 0F, 0F, 0F);

      StrutTop3 = new ModelRenderer(this, 70, 0);

      StrutTop3.addBox(0F, 0F, 0F, 2, 1, 4);

      StrutTop3.setRotationPoint(-1F, 11F, 3F);

      StrutTop3.setTextureSize(128, 64);

      StrutTop3.mirror = true;

      setRotation(StrutTop3, 0F, 0F, 0F);

      StrutTop2 = new ModelRenderer(this, 70, 0);

      StrutTop2.addBox(0F, 0F, 0F, 2, 1, 4);

      StrutTop2.setRotationPoint(-1F, 11F, -7F);

      StrutTop2.setTextureSize(128, 64);

      StrutTop2.mirror = true;

      setRotation(StrutTop2, 0F, 0F, 0F);

      Item = new ModelRenderer(this, 64, 12);

      Item.addBox(0F, 0F, 0F, 6, 1, 6);

      Item.setRotationPoint(-3F, 11F, -3F);

      Item.setTextureSize(128, 64);

      Item.mirror = true;

      setRotation(Item, 0F, 0F, 0F);

  }

 

  public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)

  {

    super.render(entity, f, f1, f2, f3, f4, f5);

    setRotationAngles(f, f1, f2, f3, f4, f5, entity);

    Base.render(f5);

    Pilar.render(f5);

    Pilar1.render(f5);

    Pilar2.render(f5);

    Pilar3.render(f5);

    Pole.render(f5);

    GrindWheel.render(f5);

    GrindWheel1.render(f5);

    Hopper.render(f5);

    HopperSide.render(f5);

    HopperSide1.render(f5);

    HopperSide2.render(f5);

    HopperSide3.render(f5);

    Strut.render(f5);

    StrutTop.render(f5);

    Strut1.render(f5);

    StrutTop1.render(f5);

    Strut2.render(f5);

    Strut3.render(f5);

    StrutTop3.render(f5);

    StrutTop2.render(f5);

    Item.render(f5);

  }

 

  private void setRotation(ModelRenderer model, float x, float y, float z)

  {

    model.rotateAngleX = x;

    model.rotateAngleY = y;

    model.rotateAngleZ = z;

  }

 

  public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity)

  {

    super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);

  }

 

  public void renderModel(float f1)

  {

    Base.render(f1);

    Pilar.render(f1);

    Pilar1.render(f1);

    Pilar2.render(f1);

    Pilar3.render(f1);

    Pole.render(f1);

    GrindWheel.render(f1);

    GrindWheel1.render(f1);

    Hopper.render(f1);

    HopperSide.render(f1);

    HopperSide1.render(f1);

    HopperSide2.render(f1);

    HopperSide3.render(f1);

    Strut.render(f1);

    StrutTop.render(f1);

    Strut1.render(f1);

    StrutTop1.render(f1);

    Strut2.render(f1);

    Strut3.render(f1);

    StrutTop3.render(f1);

    StrutTop2.render(f1);

    Item.render(f1);

  }

 

}

 

 

 

Render File:

 

 

package naturemod.client.renders;

 

import naturemod.client.models.ModelGrinder;

import naturemod.common.blocks.TileEntityGrinder;

import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;

import net.minecraft.tileentity.TileEntity;

 

import org.lwjgl.opengl.GL11;

 

public class RenderGrinder extends TileEntitySpecialRenderer

{

private ModelGrinder aModel;

 

public RenderGrinder()

{

aModel = new ModelGrinder();

}

 

public void renderAModelAt(TileEntityGrinder tileEntity, double d, double d1, double d2, float f)

{

GL11.glPushMatrix();

GL11.glTranslatef((float)d + 0.5F, (float)d1 + 1.5F, (float)d2 + 0.5F);

GL11.glRotatef(180, 0F, 0F, 1F);

bindTextureByName("/warpcraft/blocks/Grinder.png");

GL11.glPushMatrix();

aModel.renderModel(0.0625F);

GL11.glPopMatrix();

GL11.glPopMatrix();

}

 

public boolean shouldRender3DInInventory()

{

    // This is where it asks if you want the renderInventory part called or not.

    return true; // Change to 'true' if you want the Inventory render to be called.

}

 

public void renderTileEntityAt(TileEntity tileEntity, double var2, double var4, double var6, float var8)

{

this.renderAModelAt((TileEntityGrinder)tileEntity, var2, var4, var6, var8);

}

}

 

 

 

Block File:

 

 

package naturemod.common.blocks;

 

import java.util.Random;

 

import naturemod.common.Nature;

import net.minecraft.block.Block;

import net.minecraft.block.BlockContainer;

import net.minecraft.block.material.Material;

import net.minecraft.entity.player.EntityPlayer;

import net.minecraft.tileentity.TileEntity;

import net.minecraft.tileentity.TileEntityFurnace;

import net.minecraft.tileentity.TileEntityNote;

import net.minecraft.util.AxisAlignedBB;

import net.minecraft.world.World;

 

public class BlockGrinder extends BlockContainer

{

 

public BlockGrinder(int id)

{

super(id, Material.rock);

setHardness(3.0f);

 

setBlockName("Grinder");

blockIndexInTexture = 1;

 

//this.setRequiresSelfNotify();

//disableStats();

 

this.setCreativeTab(Nature.natureTab);

}

 

public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, int par2, int par3, int par4, Block block)

    {

return null;

    }

 

public boolean isOpaqueCube()

    {

        return false;

    }

 

@Override

public boolean renderAsNormalBlock()

{

return false;

}

 

@Override

public int getRenderType()

{

return -1;

}

 

public TileEntity createNewTileEntity(World var1)

{

return new TileEntityGrinder();

}

 

 

public TileEntity getBlockEntity()

{

try{

return (TileEntity)TileEntityGrinder.class.newInstance();

}

catch(Exception exception){

throw new RuntimeException(exception);

}

}

 

 

public void onNeighborBlockChange(World world, int i, int j, int k, int l)

    {

        if(l > 0 && Block.blocksList[l].canProvidePower())

        {

                world.scheduleBlockUpdate(i, j, k, blockID, tickRate());

        }

    }

 

    public void updateTick(World world, int i, int j, int k, Random random)

    {

        if(!world.editingBlocks && (world.isBlockIndirectlyGettingPowered(i, j, k) || world.isBlockIndirectlyGettingPowered(i, j + 1, k)))

        {

        Nature.powered = true;

        }else

        {

        Nature.powered = false;

        }

    }

 

    public boolean onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9)

    {

        if (par1World.isRemote)

        {

            return true;

        }

        else

        {

            TileEntityGrinder var10 = (TileEntityGrinder)par1World.getBlockTileEntity(par2, par3, par4);

 

            if (var10 != null)

            {

            par5EntityPlayer.openGui(Nature.instance, 0, par1World, par2, par3, par4);

            }

 

            return true;

        }

    }

}

 

 

 

 

say if you need any more

 

Link to comment
Share on other sites

here is the tile entity, and unfortunatly, i could get it to work with those suggestions

 

 

 

package naturemod.common.blocks;

 

import naturemod.common.Nature;

import naturemod.common.recipes.GrinderRecipes;

import net.minecraft.block.Block;

import net.minecraft.block.material.Material;

import net.minecraft.entity.player.EntityPlayer;

import net.minecraft.inventory.IInventory;

import net.minecraft.item.Item;

import net.minecraft.item.ItemBlock;

import net.minecraft.item.ItemHoe;

import net.minecraft.item.ItemStack;

import net.minecraft.item.ItemSword;

import net.minecraft.item.ItemTool;

import net.minecraft.nbt.NBTTagCompound;

import net.minecraft.nbt.NBTTagList;

import net.minecraft.tileentity.TileEntity;

import net.minecraftforge.common.ForgeDirection;

import net.minecraftforge.common.ISidedInventory;

import cpw.mods.fml.common.registry.GameRegistry;

import cpw.mods.fml.relauncher.Side;

import cpw.mods.fml.relauncher.SideOnly;

 

public class TileEntityGrinder extends TileEntity implements IInventory, ISidedInventory

{

 

    /**

    * The ItemStacks that hold the items currently being used in the grinder

    */

    private ItemStack[] grinderItemStacks = new ItemStack[3];

 

    /** The number of ticks that the grinder will keep burning */

    public int grinderBurnTime = -1;

 

    /**

    * The number of ticks that a fresh copy of the currently-burning item would keep the grinder burning for

    */

    public int currentItemBurnTime = -1;

 

    /** The number of ticks that the current item has been cooking for */

    public static int grinderCookTime = 0;

 

public String getInvName()

    {

        return "container.grinder";

    }

 

    /**

    * Returns the number of slots in the inventory.

    */

    public int getSizeInventory()

    {

        return this.grinderItemStacks.length;

    }

    /**

    * Returns the stack in slot i

    */

    public ItemStack getStackInSlot(int par1)

    {

        return this.grinderItemStacks[par1];

    }

 

    /**

    * Removes from an inventory slot (first arg) up to a specified number (second arg) of items and returns them in a

    * new stack.

    */

    public ItemStack decrStackSize(int par1, int par2)

    {

        if (this.grinderItemStacks[par1] != null)

        {

            ItemStack var3;

 

            if (this.grinderItemStacks[par1].stackSize <= par2)

            {

                var3 = this.grinderItemStacks[par1];

                this.grinderItemStacks[par1] = null;

                return var3;

            }

            else

            {

                var3 = this.grinderItemStacks[par1].splitStack(par2);

 

                if (this.grinderItemStacks[par1].stackSize == 0)

                {

                    this.grinderItemStacks[par1] = null;

                }

 

                return var3;

            }

        }

        else

        {

            return null;

        }

    }

 

    /**

    * When some containers are closed they call this on each slot, then drop whatever it returns as an EntityItem -

    * like when you close a workbench GUI.

    */

    public ItemStack getStackInSlotOnClosing(int par1)

    {

        if (this.grinderItemStacks[par1] != null)

        {

            ItemStack var2 = this.grinderItemStacks[par1];

            this.grinderItemStacks[par1] = null;

            return var2;

        }

        else

        {

            return null;

        }

    }

 

    /**

    * Sets the given item stack to the specified slot in the inventory (can be crafting or armor sections).

    */

    public void setInventorySlotContents(int par1, ItemStack par2ItemStack)

    {

        this.grinderItemStacks[par1] = par2ItemStack;

 

        if (par2ItemStack != null && par2ItemStack.stackSize > this.getInventoryStackLimit())

        {

            par2ItemStack.stackSize = this.getInventoryStackLimit();

        }

    }

 

    /**

    * Reads a tile entity from NBT.

    */

    public void readFromNBT(NBTTagCompound par1NBTTagCompound)

    {

        super.readFromNBT(par1NBTTagCompound);

        NBTTagList var2 = par1NBTTagCompound.getTagList("Items");

        this.grinderItemStacks = new ItemStack[this.getSizeInventory()];

 

        for (int var3 = 0; var3 < var2.tagCount(); ++var3)

        {

            NBTTagCompound var4 = (NBTTagCompound)var2.tagAt(var3);

            byte var5 = var4.getByte("Slot");

 

            if (var5 >= 0 && var5 < this.grinderItemStacks.length)

            {

                this.grinderItemStacks[var5] = ItemStack.loadItemStackFromNBT(var4);

            }

        }

 

        this.grinderBurnTime = par1NBTTagCompound.getShort("BurnTime");

        this.grinderCookTime = par1NBTTagCompound.getShort("CookTime");

        this.currentItemBurnTime = getItemBurnTime(this.grinderItemStacks[1]);

    }

 

    /**

    * Writes a tile entity to NBT.

    */

    public void writeToNBT(NBTTagCompound par1NBTTagCompound)

    {

        super.writeToNBT(par1NBTTagCompound);

        par1NBTTagCompound.setShort("BurnTime", (short)this.grinderBurnTime);

        par1NBTTagCompound.setShort("CookTime", (short)this.grinderCookTime);

        NBTTagList var2 = new NBTTagList();

 

        for (int var3 = 0; var3 < this.grinderItemStacks.length; ++var3)

        {

            if (this.grinderItemStacks[var3] != null)

            {

                NBTTagCompound var4 = new NBTTagCompound();

                var4.setByte("Slot", (byte)var3);

                this.grinderItemStacks[var3].writeToNBT(var4);

                var2.appendTag(var4);

            }

        }

 

        par1NBTTagCompound.setTag("Items", var2);

    }

 

    /**

    * Returns the maximum stack size for a inventory slot. Seems to always be 64, possibly will be extended. *Isn't

    * this more of a set than a get?*

    */

    public int getInventoryStackLimit()

    {

        return 64;

    }

 

    @SideOnly(Side.CLIENT)

 

    /**

    * Returns an integer between 0 and the passed value representing how close the current item is to being completely

    * cooked

    */

    public int getCookProgressScaled(int par1)

    {

        return this.grinderCookTime * par1 / 200;

    }

 

    @SideOnly(Side.CLIENT)

 

    /**

    * Returns an integer between 0 and the passed value representing how much burn time is left on the current fuel

    * item, where 0 means that the item is exhausted and the passed value means that the item is fresh

    */

    public int getBurnTimeRemainingScaled(int par1)

    {

        if (this.currentItemBurnTime == 0)

        {

            this.currentItemBurnTime = 200;

        }

 

        return this.grinderBurnTime * par1 / this.currentItemBurnTime;

    }

 

    /**

    * Returns true if the grinder is currently burning

    */

    public boolean isBurning()

    {

        return this.grinderBurnTime > 0;

    }

 

    /**

    * Allows the entity to update its state. Overridden in most subclasses, e.g. the mob spawner uses this to count

    * ticks and creates a new spawn inside its implementation.

    */

    public void updateEntity()

    {

        boolean var1 = this.grinderBurnTime < 0;

        boolean var2 = false;

 

        if (this.grinderBurnTime < 0)

        {

            --this.grinderBurnTime;

        }

 

        if (!this.worldObj.isRemote)

        {

            if (this.grinderCookTime > 0)

            {

            Nature.powered = true;

            }else

            {

            Nature.powered = false;

            }

           

        /*

            if (this.grinderBurnTime == 0 && this.canSmelt())

            {

 

                if (this.grinderBurnTime < 0)

                {

                    var2 = true;

 

                    if (this.grinderItemStacks[1] != null)

                    {

                        --this.grinderItemStacks[1].stackSize;

 

                        if (this.grinderItemStacks[1].stackSize == 0)

                        {

                            this.grinderItemStacks[1] = this.grinderItemStacks[1].getItem().getContainerItemStack(grinderItemStacks[1]);

                        }

                    }

                }

            }

            */

 

            if (this.canSmelt())

            {

                ++this.grinderCookTime;

 

                if (this.grinderCookTime == 200)

                {

                    this.grinderCookTime = 0;

                    this.smeltItem();

                    var2 = true;

                }

            }

            else

            {

                this.grinderCookTime = 0;

            }

 

            if (var1 != this.grinderBurnTime > 0)

            {

                var2 = true;

            }

        }

 

        if (var2)

        {

            this.onInventoryChanged();

        }

    }

 

    /**

    * Returns true if the grinder can smelt an item, i.e. has a source item, destination stack isn't full, etc.

    */

    private boolean canSmelt()

    {

        if (this.grinderItemStacks[0] == null)

        {

            return false;

        }

        else

        {

            ItemStack var1 = GrinderRecipes.smelting().getSmeltingResult(this.grinderItemStacks[0]);

            if (var1 == null) return false;

            if (this.grinderItemStacks[2] == null) return true;

            if (!this.grinderItemStacks[2].isItemEqual(var1)) return false;

            int result = grinderItemStacks[2].stackSize + var1.stackSize;

            return (result <= getInventoryStackLimit() && result <= var1.getMaxStackSize());

        }

    }

 

    /**

    * Turn one item from the grinder source stack into the appropriate smelted item in the grinder result stack

    */

    public void smeltItem()

    {

        if (this.canSmelt())

        {

            ItemStack var1 = GrinderRecipes.smelting().getSmeltingResult(this.grinderItemStacks[0]);

 

            if (this.grinderItemStacks[2] == null)

            {

                this.grinderItemStacks[2] = var1.copy();

            }

            else if (this.grinderItemStacks[2].isItemEqual(var1))

            {

                grinderItemStacks[2].stackSize += var1.stackSize;

            }

 

            --this.grinderItemStacks[0].stackSize;

 

            if (this.grinderItemStacks[0].stackSize <= 0)

            {

                this.grinderItemStacks[0] = null;

            }

        }

    }

 

    /**

    * Returns the number of ticks that the supplied fuel item will keep the grinder burning, or 0 if the item isn't

    * fuel

    */

    public static int getItemBurnTime(ItemStack par0ItemStack)

    {

        if (par0ItemStack == null)

        {

            return 0;

        }

        else

        {

            int var1 = par0ItemStack.getItem().shiftedIndex;

            Item var2 = par0ItemStack.getItem();

 

            if (par0ItemStack.getItem() instanceof ItemBlock && Block.blocksList[var1] != null)

            {

                Block var3 = Block.blocksList[var1];

 

                if (var3 == Block.woodSingleSlab)

                {

                    return 150;

                }

 

                if (var3.blockMaterial == Material.wood)

                {

                    return 300;

                }

            }

 

            if (var2 instanceof ItemTool && ((ItemTool) var2).getToolMaterialName().equals("WOOD")) return 200;

            if (var2 instanceof ItemSword && ((ItemSword) var2).func_77825_f().equals("WOOD")) return 200;

            if (var2 instanceof ItemHoe && ((ItemHoe) var2).func_77842_f().equals("WOOD")) return 200;

            if (var1 == Item.stick.shiftedIndex) return 100;

            if (var1 == Item.coal.shiftedIndex) return 1600;

            if (var1 == Item.bucketLava.shiftedIndex) return 20000;

            if (var1 == Block.sapling.blockID) return 100;

            if (var1 == Item.blazeRod.shiftedIndex) return 2400;

            return GameRegistry.getFuelValue(par0ItemStack);

        }

    }

 

    /**

    * Return true if item is a fuel source (getItemBurnTime() > 0).

    */

    public static boolean isItemFuel(ItemStack par0ItemStack)

    {

        return getItemBurnTime(par0ItemStack) > 0;

    }

 

    /**

    * Do not make give this method the name canInteractWith because it clashes with Container

    */

    public boolean isUseableByPlayer(EntityPlayer par1EntityPlayer)

    {

        return this.worldObj.getBlockTileEntity(this.xCoord, this.yCoord, this.zCoord) != this ? false : par1EntityPlayer.getDistanceSq((double)this.xCoord + 0.5D, (double)this.yCoord + 0.5D, (double)this.zCoord + 0.5D) <= 64.0D;

    }

 

    public void openChest() {}

 

    public void closeChest() {}

 

    @Override

    public int getStartInventorySide(ForgeDirection side)

    {

        if (side == ForgeDirection.DOWN) return 1;

        if (side == ForgeDirection.UP) return 0;

        return 2;

    }

 

    @Override

    public int getSizeInventorySide(ForgeDirection side)

    {

        return 1;

    }

}

 

 

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

    • when i enter my bf's server after it does all the loading, encrypting a message popps up: "Internal Exception: java.lang.IndexOutOfBoundaException: index: 4, length: 13996 (expected: range(0, 800))"  one time i saw myself in the server but then got kicked out with the same message. My boyfriend's POV is me joining and leaving the server. I play on 1.19.2 version.  i think i t may be an issue with a mod me and bf recently updated.
    • I am trying to install fear nightfall mod pack on curseforge but it keeps saying error forge modloader installation falied but I played it a week ago can someone please help.
    • Found the solution, will be closing this soon. The Minecraft mining overlay can be rendered using: "serverplayer.connection.send(new ClientboundBlockDestructionPacket(serverplayer.getId(), blockpos, i));" Everything else is completely unnecessary, and I was making this harder than it had to be.
    • [17:35:03] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher running: args [--launchTarget, forgeclientuserdev, --version, MOD_DEV, --assetIndex, 5, --assetsDir, C:\Users\moraw\.gradle\caches\forge_gradle\assets, --gameDir, ., --fml.forgeVersion, 47.3.0, --fml.mcVersion, 1.20.1, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20230612.114412] [17:35:03] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher 10.0.9+10.0.9+main.dcd20f30 starting: java version 17.0.12 by Eclipse Adoptium; OS Windows 10 arch amd64 version 10.0 [17:35:03] [main/DEBUG] [cp.mo.mo.LaunchServiceHandler/MODLAUNCHER]: Found launch services [fmlclientdev,forgeclient,minecraft,forgegametestserverdev,fmlserveruserdev,fmlclient,fmldatauserdev,forgeserverdev,forgeserveruserdev,forgeclientdev,forgeclientuserdev,forgeserver,forgedatadev,fmlserver,fmlclientuserdev,fmlserverdev,forgedatauserdev,testharness,forgegametestserveruserdev] [17:35:03] [main/DEBUG] [cp.mo.mo.NameMappingServiceHandler/MODLAUNCHER]: Found naming services : [srgtomcp] [17:35:03] [main/DEBUG] [cp.mo.mo.LaunchPluginHandler/MODLAUNCHER]: Found launch plugins: [mixin,eventbus,slf4jfixer,object_holder_definalize,runtime_enum_extender,capability_token_subclass,accesstransformer,runtimedistcleaner] [17:35:03] [main/DEBUG] [cp.mo.mo.TransformationServicesHandler/MODLAUNCHER]: Discovering transformation services [17:35:03] [main/DEBUG] [ne.mi.fm.lo.FMLPaths/CORE]: Path GAMEDIR is C:\Users\moraw\Documents\Livestock\run [17:35:03] [main/DEBUG] [ne.mi.fm.lo.FMLPaths/CORE]: Path MODSDIR is C:\Users\moraw\Documents\Livestock\run\mods [17:35:03] [main/DEBUG] [ne.mi.fm.lo.FMLPaths/CORE]: Path CONFIGDIR is C:\Users\moraw\Documents\Livestock\run\config [17:35:03] [main/DEBUG] [ne.mi.fm.lo.FMLPaths/CORE]: Path FMLCONFIG is C:\Users\moraw\Documents\Livestock\run\config\fml.toml [17:35:03] [main/DEBUG] [cp.mo.mo.TransformationServicesHandler/MODLAUNCHER]: Found additional transformation services from discovery services: [17:35:03] [main/INFO] [ne.mi.fm.lo.ImmediateWindowHandler/]: Loading ImmediateWindowProvider fmlearlywindow [17:35:03] [main/INFO] [EARLYDISPLAY/]: Trying GL version 4.6 [17:35:03] [main/INFO] [EARLYDISPLAY/]: Requested GL version 4.6 got version 4.6 [17:35:03] [main/DEBUG] [cp.mo.mo.TransformationServicesHandler/MODLAUNCHER]: Found transformer services : [mixin,fml] [17:35:03] [main/DEBUG] [cp.mo.mo.TransformationServicesHandler/MODLAUNCHER]: Transformation services loading [17:35:03] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: Loading service mixin [17:35:03] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: Loaded service mixin [17:35:03] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: Loading service fml [17:35:03] [main/DEBUG] [ne.mi.fm.lo.LauncherVersion/CORE]: Found FMLLauncher version 1.0 [17:35:03] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: FML 1.0 loading [17:35:03] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: FML found ModLauncher version : 10.0.9+10.0.9+main.dcd20f30 [17:35:03] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: FML found AccessTransformer version : 8.0.4+66+master.c09db6d7 [17:35:03] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: FML found EventBus version : 6.0.5+6.0.5+master.eb8e549b [17:35:03] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: Found Runtime Dist Cleaner [17:35:03] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: FML found CoreMod version : 5.1.6 [17:35:03] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: Found ForgeSPI package implementation version 7.0.1+7.0.1+master.d2b38bf6 [17:35:03] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: Found ForgeSPI package specification 5 [17:35:03] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: Loaded service fml [17:35:03] [main/DEBUG] [cp.mo.mo.TransformationServicesHandler/MODLAUNCHER]: Configuring option handling for services [17:35:03] [main/DEBUG] [cp.mo.mo.TransformationServicesHandler/MODLAUNCHER]: Transformation services initializing [17:35:03] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: Initializing transformation service mixin [17:35:03] [main/DEBUG] [mixin/]: MixinService [ModLauncher] was successfully booted in cpw.mods.cl.ModuleClassLoader@34b7ac2f [17:35:04] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=union:/C:/Users/moraw/.gradle/caches/modules-2/files-2.1/org.spongepowered/mixin/0.8.5/9d1c0c3a304ae6697ecd477218fa61b850bf57fc/mixin-0.8.5.jar%23126!/ Service=ModLauncher Env=CLIENT [17:35:04] [main/DEBUG] [mixin/]: Initialising Mixin Platform Manager [17:35:04] [main/DEBUG] [mixin/]: Adding mixin platform agents for container ModLauncher Root Container(ModLauncher:4f56a0a2) [17:35:04] [main/DEBUG] [mixin/]: Instancing new MixinPlatformAgentMinecraftForge for ModLauncher Root Container(ModLauncher:4f56a0a2) [17:35:04] [main/DEBUG] [mixin/]: MixinPlatformAgentMinecraftForge rejected container ModLauncher Root Container(ModLauncher:4f56a0a2) [17:35:04] [main/DEBUG] [mixin/]: Instancing new MixinPlatformAgentDefault for ModLauncher Root Container(ModLauncher:4f56a0a2) [17:35:04] [main/DEBUG] [mixin/]: MixinPlatformAgentDefault accepted container ModLauncher Root Container(ModLauncher:4f56a0a2) [17:35:04] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: Initialized transformation service mixin [17:35:04] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: Initializing transformation service fml [17:35:04] [main/DEBUG] [ne.mi.fm.lo.FMLServiceProvider/CORE]: Setting up basic FML game directories [17:35:04] [main/DEBUG] [ne.mi.fm.lo.FMLPaths/CORE]: Path GAMEDIR is C:\Users\moraw\Documents\Livestock\run [17:35:04] [main/DEBUG] [ne.mi.fm.lo.FMLPaths/CORE]: Path MODSDIR is C:\Users\moraw\Documents\Livestock\run\mods [17:35:04] [main/DEBUG] [ne.mi.fm.lo.FMLPaths/CORE]: Path CONFIGDIR is C:\Users\moraw\Documents\Livestock\run\config [17:35:04] [main/DEBUG] [ne.mi.fm.lo.FMLPaths/CORE]: Path FMLCONFIG is C:\Users\moraw\Documents\Livestock\run\config\fml.toml [17:35:04] [main/DEBUG] [ne.mi.fm.lo.FMLServiceProvider/CORE]: Loading configuration [17:35:04] [main/DEBUG] [ne.mi.fm.lo.FMLServiceProvider/CORE]: Preparing ModFile [17:35:04] [main/DEBUG] [ne.mi.fm.lo.FMLServiceProvider/CORE]: Preparing launch handler [17:35:04] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: Using forgeclientuserdev as launch service [17:35:04] [pool-2-thread-1/INFO] [EARLYDISPLAY/]: GL info: Intel(R) Iris(R) Xe Graphics GL version 4.6.0 - Build 31.0.101.5594, Intel [17:35:04] [main/DEBUG] [ne.mi.fm.lo.FMLLoader/CORE]: Received command line version data : VersionInfo[forgeVersion=47.3.0, mcVersion=1.20.1, mcpVersion=20230612.114412, forgeGroup=net.minecraftforge] [17:35:04] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: Initialized transformation service fml [17:35:04] [main/DEBUG] [cp.mo.mo.NameMappingServiceHandler/MODLAUNCHER]: Current naming domain is 'mcp' [17:35:04] [main/DEBUG] [cp.mo.mo.NameMappingServiceHandler/MODLAUNCHER]: Identified name mapping providers {srg=srgtomcp:1234} [17:35:04] [main/DEBUG] [cp.mo.mo.TransformationServicesHandler/MODLAUNCHER]: Transformation services begin scanning [17:35:04] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: Beginning scan trigger - transformation service mixin [17:35:04] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: End scan trigger - transformation service mixin [17:35:04] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: Beginning scan trigger - transformation service fml [17:35:04] [main/DEBUG] [ne.mi.fm.lo.FMLServiceProvider/CORE]: Initiating mod scan [17:35:04] [main/DEBUG] [ne.mi.fm.lo.mo.ModListHandler/CORE]: Found mod coordinates from lists: [] [17:35:04] [main/DEBUG] [ne.mi.fm.lo.mo.ModDiscoverer/CORE]: Found Mod Locators : (mods folder:null),(maven libs:null),(exploded directory:null),(minecraft:null),(userdev classpath:null) [17:35:04] [main/DEBUG] [ne.mi.fm.lo.mo.ModDiscoverer/CORE]: Found Dependency Locators : (JarInJar:null) [17:35:04] [main/DEBUG] [ne.mi.fm.lo.ta.CommonLaunchHandler/CORE]: Got mod coordinates livestock%%C:/Users/moraw/Documents/Livestock\build\resources\main;livestock%%C:/Users/moraw/Documents/Livestock\build\classes\java\main from env [17:35:04] [main/DEBUG] [ne.mi.fm.lo.ta.CommonLaunchHandler/CORE]: Found supplied mod coordinates [{livestock=[C:\Users\moraw\Documents\Livestock\build\resources\main, C:\Users\moraw\Documents\Livestock\build\classes\java\main]}] [17:35:04] [main/DEBUG] [ne.mi.fm.lo.mo.ModFileInfo/LOADING]: Found valid mod file forge-1.20.1-47.3.0_mapped_parchment_2023.09.03-1.20.1.jar with {minecraft} mods - versions {1.20.1} [17:35:04] [main/DEBUG] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Considering mod file candidate C:\Users\moraw\.gradle\caches\modules-2\files-2.1\net.minecraftforge\fmlcore\1.20.1-47.3.0\3b6be96aba3e323f3c918e8ef6a96312d82d76ad\fmlcore-1.20.1-47.3.0.jar [17:35:04] [main/WARN] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Mod file C:\Users\moraw\.gradle\caches\modules-2\files-2.1\net.minecraftforge\fmlcore\1.20.1-47.3.0\3b6be96aba3e323f3c918e8ef6a96312d82d76ad\fmlcore-1.20.1-47.3.0.jar is missing mods.toml file [17:35:04] [main/DEBUG] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Considering mod file candidate C:\Users\moraw\.gradle\caches\modules-2\files-2.1\net.minecraftforge\javafmllanguage\1.20.1-47.3.0\d7ebc62120f202109e300e084ca1a31a7b946a62\javafmllanguage-1.20.1-47.3.0.jar [17:35:04] [main/WARN] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Mod file C:\Users\moraw\.gradle\caches\modules-2\files-2.1\net.minecraftforge\javafmllanguage\1.20.1-47.3.0\d7ebc62120f202109e300e084ca1a31a7b946a62\javafmllanguage-1.20.1-47.3.0.jar is missing mods.toml file [17:35:04] [main/DEBUG] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Considering mod file candidate C:\Users\moraw\.gradle\caches\modules-2\files-2.1\net.minecraftforge\lowcodelanguage\1.20.1-47.3.0\1bf3e845ea0ce750096da8c71c8364b188ab74d4\lowcodelanguage-1.20.1-47.3.0.jar [17:35:04] [main/WARN] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Mod file C:\Users\moraw\.gradle\caches\modules-2\files-2.1\net.minecraftforge\lowcodelanguage\1.20.1-47.3.0\1bf3e845ea0ce750096da8c71c8364b188ab74d4\lowcodelanguage-1.20.1-47.3.0.jar is missing mods.toml file [17:35:04] [main/DEBUG] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Considering mod file candidate C:\Users\moraw\.gradle\caches\modules-2\files-2.1\net.minecraftforge\mclanguage\1.20.1-47.3.0\6093682e943ddccbabf70539319d7f2fe64db2e7\mclanguage-1.20.1-47.3.0.jar [17:35:04] [main/WARN] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Mod file C:\Users\moraw\.gradle\caches\modules-2\files-2.1\net.minecraftforge\mclanguage\1.20.1-47.3.0\6093682e943ddccbabf70539319d7f2fe64db2e7\mclanguage-1.20.1-47.3.0.jar is missing mods.toml file [17:35:04] [main/DEBUG] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Considering mod file candidate C:\Users\moraw\Documents\Livestock\build\resources\main [17:35:04] [main/DEBUG] [ne.mi.fm.lo.mo.ModFileInfo/LOADING]: Found valid mod file main with {livestock} mods - versions {0.01-1.20.1} [17:35:04] [main/DEBUG] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Considering mod file candidate / [17:35:04] [main/DEBUG] [ne.mi.fm.lo.mo.ModFileInfo/LOADING]: Found valid mod file with {forge} mods - versions {47.3.0} [17:35:04] [main/DEBUG] [ne.mi.fm.lo.mo.AbstractJarFileDependencyLocator/]: Failed to load resource META-INF\jarjar\metadata.json from forge-1.20.1-47.3.0_mapped_parchment_2023.09.03-1.20.1.jar, it does not contain dependency information. [17:35:04] [main/DEBUG] [ne.mi.fm.lo.mo.AbstractJarFileDependencyLocator/]: Failed to load resource META-INF\jarjar\metadata.json from , it does not contain dependency information. [17:35:04] [main/DEBUG] [ne.mi.fm.lo.mo.AbstractJarFileDependencyLocator/]: Failed to load resource META-INF\jarjar\metadata.json from main, it does not contain dependency information. [17:35:04] [main/DEBUG] [ne.mi.fm.lo.mo.AbstractJarFileDependencyLocator/]: Failed to load resource META-INF\jarjar\metadata.json from mclanguage-1.20.1-47.3.0.jar, it does not contain dependency information. [17:35:04] [main/DEBUG] [ne.mi.fm.lo.mo.AbstractJarFileDependencyLocator/]: Failed to load resource META-INF\jarjar\metadata.json from javafmllanguage-1.20.1-47.3.0.jar, it does not contain dependency information. [17:35:04] [main/DEBUG] [ne.mi.fm.lo.mo.AbstractJarFileDependencyLocator/]: Failed to load resource META-INF\jarjar\metadata.json from fmlcore-1.20.1-47.3.0.jar, it does not contain dependency information. [17:35:04] [main/DEBUG] [ne.mi.fm.lo.mo.AbstractJarFileDependencyLocator/]: Failed to load resource META-INF\jarjar\metadata.json from lowcodelanguage-1.20.1-47.3.0.jar, it does not contain dependency information. [17:35:04] [main/INFO] [ne.mi.fm.lo.mo.JarInJarDependencyLocator/]: No dependencies to load found. Skipping! [17:35:04] [main/DEBUG] [ne.mi.fm.lo.mo.ModFileInfo/LOADING]: Found valid mod file forge-1.20.1-47.3.0_mapped_parchment_2023.09.03-1.20.1.jar with {minecraft} mods - versions {1.20.1} [17:35:04] [main/DEBUG] [ne.mi.fm.lo.mo.ModFile/LOADING]: Loading mod file C:\Users\moraw\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.20.1-47.3.0_mapped_parchment_2023.09.03-1.20.1\forge-1.20.1-47.3.0_mapped_parchment_2023.09.03-1.20.1.jar with languages [LanguageSpec[languageName=minecraft, acceptedVersions=1]] [17:35:04] [main/DEBUG] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Considering mod file candidate / [17:35:04] [main/DEBUG] [ne.mi.fm.lo.mo.ModFileInfo/LOADING]: Found valid mod file with {forge} mods - versions {47.3.0} [17:35:04] [main/DEBUG] [ne.mi.fm.lo.mo.ModFile/LOADING]: Loading mod file / with languages [LanguageSpec[languageName=javafml, acceptedVersions=[24,]]] [17:35:04] [main/DEBUG] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Found coremod field_to_method with Javascript path coremods/field_to_method.js [17:35:04] [main/DEBUG] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Found coremod field_to_instanceof with Javascript path coremods/field_to_instanceof.js [17:35:04] [main/DEBUG] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Found coremod add_bouncer_method with Javascript path coremods/add_bouncer_method.js [17:35:04] [main/DEBUG] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Found coremod method_redirector with Javascript path coremods/method_redirector.js [17:35:04] [main/DEBUG] [ne.mi.fm.lo.mo.ModFile/LOADING]: Found coremod coremods/field_to_method.js [17:35:04] [main/DEBUG] [ne.mi.fm.lo.mo.ModFile/LOADING]: Found coremod coremods/field_to_instanceof.js [17:35:04] [main/DEBUG] [ne.mi.fm.lo.mo.ModFile/LOADING]: Found coremod coremods/add_bouncer_method.js [17:35:04] [main/DEBUG] [ne.mi.fm.lo.mo.ModFile/LOADING]: Found coremod coremods/method_redirector.js [17:35:04] [main/DEBUG] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Considering mod file candidate C:\Users\moraw\Documents\Livestock\build\resources\main [17:35:04] [main/DEBUG] [ne.mi.fm.lo.mo.ModFileInfo/LOADING]: Found valid mod file main with {livestock} mods - versions {0.01-1.20.1} [17:35:04] [main/DEBUG] [ne.mi.fm.lo.mo.ModFile/LOADING]: Loading mod file C:\Users\moraw\Documents\Livestock\build\resources\main with languages [LanguageSpec[languageName=javafml, acceptedVersions=[47,)]] [17:35:04] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: End scan trigger - transformation service fml [17:35:04] [main/DEBUG] [ne.mi.fm.lo.LanguageLoadingProvider/CORE]: Found 3 language providers [17:35:04] [main/DEBUG] [ne.mi.fm.lo.LanguageLoadingProvider/CORE]: Found language provider minecraft, version 1.0 [17:35:04] [main/DEBUG] [ne.mi.fm.lo.LanguageLoadingProvider/CORE]: Found language provider lowcodefml, version 47 [17:35:04] [main/DEBUG] [ne.mi.fm.lo.LanguageLoadingProvider/CORE]: Found language provider javafml, version 47 [17:35:04] [main/DEBUG] [ne.mi.fm.lo.ModSorter/]: Configured system mods: [minecraft, forge] [17:35:04] [main/DEBUG] [ne.mi.fm.lo.ModSorter/]: Found system mod: minecraft [17:35:04] [main/DEBUG] [ne.mi.fm.lo.ModSorter/]: Found system mod: forge [17:35:04] [main/DEBUG] [ne.mi.fm.lo.ModSorter/LOADING]: Found 2 mod requirements (2 mandatory, 0 optional) [17:35:04] [main/DEBUG] [ne.mi.fm.lo.ModSorter/LOADING]: Found 0 mod requirements missing (0 mandatory, 0 optional) [17:35:05] [main/DEBUG] [ne.mi.fm.lo.MCPNamingService/CORE]: Loaded 34318 method mappings from methods.csv [17:35:05] [main/DEBUG] [ne.mi.fm.lo.MCPNamingService/CORE]: Loaded 31014 field mappings from fields.csv [17:35:05] [main/DEBUG] [cp.mo.mo.TransformationServicesHandler/MODLAUNCHER]: Transformation services loading transformers [17:35:05] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: Initializing transformers for transformation service mixin [17:35:05] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: Initialized transformers for transformation service mixin [17:35:05] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: Initializing transformers for transformation service fml [17:35:05] [main/DEBUG] [ne.mi.fm.lo.FMLServiceProvider/CORE]: Loading coremod transformers [17:35:05] [main/DEBUG] [ne.mi.co.CoreModEngine/COREMOD]: Loading CoreMod from coremods/field_to_method.js [17:35:05] [main/DEBUG] [ne.mi.co.CoreModEngine/COREMOD]: CoreMod loaded successfully [17:35:05] [main/DEBUG] [ne.mi.co.CoreModEngine/COREMOD]: Loading CoreMod from coremods/field_to_instanceof.js [17:35:05] [main/DEBUG] [ne.mi.co.CoreModEngine/COREMOD]: CoreMod loaded successfully [17:35:05] [main/DEBUG] [ne.mi.co.CoreModEngine/COREMOD]: Loading CoreMod from coremods/add_bouncer_method.js [17:35:05] [main/DEBUG] [ne.mi.co.CoreModEngine/COREMOD]: CoreMod loaded successfully [17:35:05] [main/DEBUG] [ne.mi.co.CoreModEngine/COREMOD]: Loading CoreMod from coremods/method_redirector.js [17:35:05] [main/DEBUG] [ne.mi.co.CoreModEngine/COREMOD]: CoreMod loaded successfully [17:35:05] [main/DEBUG] [cp.mo.mo.TransformStore/MODLAUNCHER]: Adding transformer net.minecraftforge.coremod.transformer.CoreModClassTransformer@9b76b60 to Target : CLASS {Lnet/minecraft/world/level/biome/Biome;} {} {V} [17:35:05] [main/DEBUG] [cp.mo.mo.TransformStore/MODLAUNCHER]: Adding transformer net.minecraftforge.coremod.transformer.CoreModClassTransformer@493ac8d3 to Target : CLASS {Lnet/minecraft/world/level/levelgen/structure/Structure;} {} {V} [17:35:05] [main/DEBUG] [cp.mo.mo.TransformStore/MODLAUNCHER]: Adding transformer net.minecraftforge.coremod.transformer.CoreModClassTransformer@13dbed9e to Target : CLASS {Lnet/minecraft/world/effect/MobEffectInstance;} {} {V} [17:35:05] [main/DEBUG] [cp.mo.mo.TransformStore/MODLAUNCHER]: Adding transformer net.minecraftforge.coremod.transformer.CoreModClassTransformer@67531e3a to Target : CLASS {Lnet/minecraft/world/level/block/LiquidBlock;} {} {V} [17:35:05] [main/DEBUG] [cp.mo.mo.TransformStore/MODLAUNCHER]: Adding transformer net.minecraftforge.coremod.transformer.CoreModClassTransformer@2b38b1f to Target : CLASS {Lnet/minecraft/world/item/BucketItem;} {} {V} [17:35:05] [main/DEBUG] [cp.mo.mo.TransformStore/MODLAUNCHER]: Adding transformer net.minecraftforge.coremod.transformer.CoreModClassTransformer@1d50a7ca to Target : CLASS {Lnet/minecraft/world/level/block/StairBlock;} {} {V} [17:35:05] [main/DEBUG] [cp.mo.mo.TransformStore/MODLAUNCHER]: Adding transformer net.minecraftforge.coremod.transformer.CoreModClassTransformer@51ab1ee3 to Target : CLASS {Lnet/minecraft/world/level/block/FlowerPotBlock;} {} {V} [17:35:05] [main/DEBUG] [cp.mo.mo.TransformStore/MODLAUNCHER]: Adding transformer net.minecraftforge.coremod.transformer.CoreModClassTransformer@2e766822 to Target : CLASS {Lnet/minecraft/world/item/ItemStack;} {} {V} [17:35:05] [main/DEBUG] [cp.mo.mo.TransformStore/MODLAUNCHER]: Adding transformer net.minecraftforge.coremod.transformer.CoreModClassTransformer@3003e580 to Target : CLASS {Lnet/minecraft/network/play/client/CClientSettingsPacket;} {} {V} [17:35:05] [main/DEBUG] [cp.mo.mo.TransformStore/MODLAUNCHER]: Adding transformer net.minecraftforge.coremod.transformer.CoreModClassTransformer@28757abd to Target : CLASS {Lnet/minecraft/world/entity/monster/Evoker$EvokerSummonSpellGoal;} {} {V} [17:35:05] [main/DEBUG] [cp.mo.mo.TransformStore/MODLAUNCHER]: Adding transformer net.minecraftforge.coremod.transformer.CoreModClassTransformer@28757abd to Target : CLASS {Lnet/minecraft/world/entity/npc/CatSpawner;} {} {V} [17:35:05] [main/DEBUG] [cp.mo.mo.TransformStore/MODLAUNCHER]: Adding transformer net.minecraftforge.coremod.transformer.CoreModClassTransformer@28757abd to Target : CLASS {Lnet/minecraft/world/level/levelgen/structure/structures/OceanRuinPieces$OceanRuinPiece;} {} {V} [17:35:05] [main/DEBUG] [cp.mo.mo.TransformStore/MODLAUNCHER]: Adding transformer net.minecraftforge.coremod.transformer.CoreModClassTransformer@28757abd to Target : CLASS {Lnet/minecraft/world/entity/animal/horse/SkeletonTrapGoal;} {} {V} [17:35:05] [main/DEBUG] [cp.mo.mo.TransformStore/MODLAUNCHER]: Adding transformer net.minecraftforge.coremod.transformer.CoreModClassTransformer@28757abd to Target : CLASS {Lnet/minecraft/world/entity/ai/village/VillageSiege;} {} {V} [17:35:05] [main/DEBUG] [cp.mo.mo.TransformStore/MODLAUNCHER]: Adding transformer net.minecraftforge.coremod.transformer.CoreModClassTransformer@28757abd to Target : CLASS {Lnet/minecraft/world/entity/monster/Strider;} {} {V} [17:35:05] [main/DEBUG] [cp.mo.mo.TransformStore/MODLAUNCHER]: Adding transformer net.minecraftforge.coremod.transformer.CoreModClassTransformer@28757abd to Target : CLASS {Lnet/minecraft/world/entity/monster/Spider;} {} {V} [17:35:05] [main/DEBUG] [cp.mo.mo.TransformStore/MODLAUNCHER]: Adding transformer net.minecraftforge.coremod.transformer.CoreModClassTransformer@28757abd to Target : CLASS {Lnet/minecraft/world/entity/monster/ZombieVillager;} {} {V} [17:35:05] [main/DEBUG] [cp.mo.mo.TransformStore/MODLAUNCHER]: Adding transformer net.minecraftforge.coremod.transformer.CoreModClassTransformer@28757abd to Target : CLASS {Lnet/minecraft/world/level/NaturalSpawner;} {} {V} [17:35:05] [main/DEBUG] [cp.mo.mo.TransformStore/MODLAUNCHER]: Adding transformer net.minecraftforge.coremod.transformer.CoreModClassTransformer@28757abd to Target : CLASS {Lnet/minecraft/world/entity/npc/Villager;} {} {V} [17:35:05] [main/DEBUG] [cp.mo.mo.TransformStore/MODLAUNCHER]: Adding transformer net.minecraftforge.coremod.transformer.CoreModClassTransformer@28757abd to Target : CLASS {Lnet/minecraft/server/commands/RaidCommand;} {} {V} [17:35:05] [main/DEBUG] [cp.mo.mo.TransformStore/MODLAUNCHER]: Adding transformer net.minecraftforge.coremod.transformer.CoreModClassTransformer@28757abd to Target : CLASS {Lnet/minecraft/world/level/levelgen/structure/structures/SwampHutPiece;} {} {V} [17:35:05] [main/DEBUG] [cp.mo.mo.TransformStore/MODLAUNCHER]: Adding transformer net.minecraftforge.coremod.transformer.CoreModClassTransformer@28757abd to Target : CLASS {Lnet/minecraft/world/entity/monster/Zombie;} {} {V} [17:35:05] [main/DEBUG] [cp.mo.mo.TransformStore/MODLAUNCHER]: Adding transformer net.minecraftforge.coremod.transformer.CoreModClassTransformer@28757abd to Target : CLASS {Lnet/minecraft/world/entity/raid/Raid;} {} {V} [17:35:05] [main/DEBUG] [cp.mo.mo.TransformStore/MODLAUNCHER]: Adding transformer net.minecraftforge.coremod.transformer.CoreModClassTransformer@28757abd to Target : CLASS {Lnet/minecraft/world/level/levelgen/structure/structures/WoodlandMansionPieces$WoodlandMansionPiece;} {} {V} [17:35:05] [main/DEBUG] [cp.mo.mo.TransformStore/MODLAUNCHER]: Adding transformer net.minecraftforge.coremod.transformer.CoreModClassTransformer@28757abd to Target : CLASS {Lnet/minecraft/world/entity/EntityType;} {} {V} [17:35:05] [main/DEBUG] [cp.mo.mo.TransformStore/MODLAUNCHER]: Adding transformer net.minecraftforge.coremod.transformer.CoreModClassTransformer@28757abd to Target : CLASS {Lnet/minecraft/world/level/levelgen/PatrolSpawner;} {} {V} [17:35:05] [main/DEBUG] [cp.mo.mo.TransformStore/MODLAUNCHER]: Adding transformer net.minecraftforge.coremod.transformer.CoreModClassTransformer@28757abd to Target : CLASS {Lnet/minecraft/world/level/levelgen/PhantomSpawner;} {} {V} [17:35:05] [main/DEBUG] [cp.mo.mo.TransformStore/MODLAUNCHER]: Adding transformer net.minecraftforge.coremod.transformer.CoreModClassTransformer@28757abd to Target : CLASS {Lnet/minecraft/world/level/levelgen/structure/structures/OceanMonumentPieces$OceanMonumentPiece;} {} {V} [17:35:05] [main/DEBUG] [cp.mo.mo.TransformStore/MODLAUNCHER]: Adding transformer net.minecraftforge.coremod.transformer.CoreModClassTransformer@28757abd to Target : CLASS {Lnet/minecraft/server/commands/SummonCommand;} {} {V} [17:35:05] [main/DEBUG] [cp.mo.mo.TransformStore/MODLAUNCHER]: Adding transformer net.minecraftforge.coremod.transformer.CoreModClassTransformer@28757abd to Target : CLASS {Lnet/minecraft/world/level/levelgen/structure/templatesystem/StructureTemplate;} {} {V} [17:35:05] [main/DEBUG] [cp.mo.mo.TransformStore/MODLAUNCHER]: Adding transformer net.minecraftforge.coremod.transformer.CoreModClassTransformer@28757abd to Target : CLASS {Lnet/minecraft/world/entity/animal/frog/Tadpole;} {} {V} [17:35:05] [main/DEBUG] [cp.mo.mo.TransformationServiceDecorator/MODLAUNCHER]: Initialized transformers for transformation service fml Exception in thread "main" java.lang.module.ResolutionException: Modules classes and livestock export package net.s3alampr3y.livestockmod.entity.client to module minecraft at java.base/java.lang.module.Resolver.resolveFail(Resolver.java:901) at java.base/java.lang.module.Resolver.failTwoSuppliers(Resolver.java:815) at java.base/java.lang.module.Resolver.checkExportSuppliers(Resolver.java:736) at java.base/java.lang.module.Resolver.finish(Resolver.java:380) at java.base/java.lang.module.Configuration.<init>(Configuration.java:140) at java.base/java.lang.module.Configuration.resolveAndBind(Configuration.java:494) at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.ModuleLayerHandler.buildLayer(ModuleLayerHandler.java:75) at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.TransformationServicesHandler.buildTransformingClassLoader(TransformationServicesHandler.java:60) at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.run(Launcher.java:106) at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.main(Launcher.java:78) at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) at [email protected]/cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) Process finished with exit code 1  
  • Topics

×
×
  • Create New...

Important Information

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