All users will need to merge their Minecraft Forum account with a new or existing Twitch account starting October 23rd. You can merge your accounts by clicking here. Have questions? Learn more here.
Dismiss
  • 0

    posted a message on [1.11.2] Custom TNT block not rendering when placed.

    Thanks for that, however this was solved ages ago.

    Posted in: Modification Development
  • 0

    posted a message on Entity not setting on fire when fired from custom bow [1.11.2] [solved]

    Use World#addWeatherEffect instead. I have an example use of it here where I spawn lightning on right click of an item.


    Thank you so much Bright_Spark you are a life saver, if it wasn't for you i'd still be stuck with a lot of errors. I just want to take to time to say thank you for all that you have helped me with.
    Posted in: Modification Development
  • 0

    posted a message on Entity not setting on fire when fired from custom bow [1.11.2] [solved]

    Basically I have it where when my custom projectile hits a block it spawns lightning, however the lightning bolt itself is not rendered and is invisible, lightning spawned using the command /summon lightning_bolt is rendered but the one spawned from my entity isn't can anyone help?


    /**
    * Called when this EntityThrowable hits a block or entity.
    */
    protected void onImpact(RayTraceResult result)
    {
    if (result.entityHit != null)
    {
    int i = 0;

    if (result.entityHit instanceof EntityBlaze)
    {
    i = 3;
    }

    result.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), 41.0F);

    }

    if (!this.world.isRemote)
    {
    this.world.setEntityState(this, (byte)3);
    world.spawnEntity(new EntityLightningBolt(world, this.posX, this.posY, this.posZ, false));
    this.setDead();
    }
    }
    }


    Full EntityLightningArrow class:
    http://pastebin.com/Djqu8dTg

    Posted in: Modification Development
  • 0

    posted a message on Custom entity not spawning block on impact 1.11.2

    Custom Entity:

    http://pastebin.com/UZgtj5jq



    I have ran into some errors with a method that worked perfectly fine before the update, now it is throwing a weird error in the area of code:

    super.onUpdate();

    int i1 = MathHelper.floor_double(this.getEntityBoundingBox().minX + 0.001D);

    int j = MathHelper.floor_double(this.getEntityBoundingBox().minY + 0.001D);

    int k1 = MathHelper.floor_double(this.getEntityBoundingBox().minZ + 0.001D);


    Saying that The method floor_double(double) is undefined for the type MathHelper. Is there anyway to fix this or will I have to change it completely?

    Posted in: Modification Development
  • 0

    posted a message on Better Than Wolves (Now With Bloody Stumps) Total Conversion! [V4.A2 Timing Rodent b upd: Nov 27th]

    Does anyone know why this mod has been stuck on version 1.5.2 for 3 years?

    Posted in: Minecraft Mods
  • 0

    posted a message on Bow aiming hands animation

    Can you show us how you did it? I am in a similar predicament.

    Posted in: Modification Development
  • 0

    posted a message on [1.11.2] Custom Fertiliser not working (solved)

    package top.mod.item;

    import java.util.List;
    import net.minecraft.block.Block;
    import net.minecraft.block.BlockOldLog;
    import net.minecraft.block.BlockPlanks;
    import net.minecraft.block.IGrowable;
    import net.minecraft.block.material.Material;
    import net.minecraft.block.state.IBlockState;
    import net.minecraft.creativetab.CreativeTabs;
    import net.minecraft.entity.EntityLivingBase;
    import net.minecraft.entity.passive.EntitySheep;
    import net.minecraft.entity.player.EntityPlayer;
    import net.minecraft.init.Blocks;
    import net.minecraft.item.EnumDyeColor;
    import net.minecraft.item.Item;
    import net.minecraft.item.ItemDye;
    import net.minecraft.item.ItemStack;
    import net.minecraft.util.EnumActionResult;
    import net.minecraft.util.EnumFacing;
    import net.minecraft.util.EnumHand;
    import net.minecraft.util.EnumParticleTypes;
    import net.minecraft.util.math.BlockPos;
    import net.minecraft.world.World;
    import net.minecraftforge.fml.relauncher.Side;
    import net.minecraftforge.fml.relauncher.SideOnly;

    public class GrowthItem extends Item
    {

    public GrowthItem()
    {
    this.setMaxDamage(0);

    }

    /**
    * Called when a Block is right-clicked with this Item
    */
    public EnumActionResult onItemUse(EntityPlayer player, World worldIn, BlockPos pos, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ)
    {
    ItemStack itemstack = player.getHeldItem(hand);

    if (!player.canPlayerEdit(pos.offset(facing), facing, itemstack))
    {
    return EnumActionResult.FAIL;
    }
    else
    {
    EnumDyeColor enumdyecolor = EnumDyeColor.byDyeDamage(itemstack.getMetadata());

    if (enumdyecolor == EnumDyeColor.BLACK)
    {
    if (applyBonemeal(itemstack, worldIn, pos, player))
    {
    if (!worldIn.isRemote)
    {
    worldIn.playEvent(2005, pos, 0);
    }

    return EnumActionResult.SUCCESS;
    }
    }
    }
    return EnumActionResult.FAIL;

    }

    public static boolean applyBonemeal(ItemStack stack, World worldIn, BlockPos target)
    {
    if (worldIn instanceof net.minecraft.world.WorldServer)
    return applyBonemeal(stack, worldIn, target, net.minecraftforge.common.util.FakePlayerFactory.getMinecraft((net.minecraft.world.WorldServer)worldIn));
    return false;
    }

    public static boolean applyBonemeal(ItemStack stack, World worldIn, BlockPos target, EntityPlayer player)
    {
    IBlockState iblockstate = worldIn.getBlockState(target);

    int hook = net.minecraftforge.event.ForgeEventFactory.onApplyBonemeal(player, worldIn, target, iblockstate, stack);
    if (hook != 0) return hook > 0;

    if (iblockstate.getBlock() instanceof IGrowable)
    {
    IGrowable igrowable = (IGrowable)iblockstate.getBlock();

    if (igrowable.canGrow(worldIn, target, iblockstate, worldIn.isRemote))
    {
    if (!worldIn.isRemote)
    {
    if (igrowable.canUseBonemeal(worldIn, worldIn.rand, target, iblockstate))
    {
    igrowable.grow(worldIn, worldIn.rand, target, iblockstate);
    }

    stack.shrink(1);
    }

    return true;
    }
    }

    return false;
    }

    @SideOnly(Side.CLIENT)
    public static void spawnBonemealParticles(World worldIn, BlockPos pos, int amount)
    {
    if (amount == 0)
    {
    amount = 15;
    }

    IBlockState iblockstate = worldIn.getBlockState(pos);

    if (iblockstate.getMaterial() != Material.AIR)
    {
    for (int i = 0; i < amount; ++i)
    {
    double d0 = itemRand.nextGaussian() * 0.02D;
    double d1 = itemRand.nextGaussian() * 0.02D;
    double d2 = itemRand.nextGaussian() * 0.02D;
    worldIn.spawnParticle(EnumParticleTypes.VILLAGER_HAPPY, (double)((float)pos.getX() + itemRand.nextFloat()), (double)pos.getY() + (double)itemRand.nextFloat() * iblockstate.getBoundingBox(worldIn, pos).maxY, (double)((float)pos.getZ() + itemRand.nextFloat()), d0, d1, d2, new int[0]);
    }
    }
    else
    {
    for (int i1 = 0; i1 < amount; ++i1)
    {
    double d0 = itemRand.nextGaussian() * 0.02D;
    double d1 = itemRand.nextGaussian() * 0.02D;
    double d2 = itemRand.nextGaussian() * 0.02D;
    worldIn.spawnParticle(EnumParticleTypes.VILLAGER_HAPPY, (double)((float)pos.getX() + itemRand.nextFloat()), (double)pos.getY() + (double)itemRand.nextFloat() * 1.0f, (double)((float)pos.getZ() + itemRand.nextFloat()), d0, d1, d2, new int[0]);
    }
    }
    }
    }

    I fixed the issue, if anyone needs to code here it is.

    Posted in: Modification Development
  • 0

    posted a message on [1.11.2] Custom Fertiliser not working (solved)

    Ok its on pastebin with correct syntax highlighting, can someone help?

    Posted in: Modification Development
  • 0

    posted a message on Does anyone know the best picture setting for a Samsung LED TV when playing Minecraft?

    Thanks for the reply, I think I've finally found the right settings after about 2 hours, its a shame that the forums have become deserted, mod are taking longer update etc. Generally you can agree that over the last 3 or 4 years this forum has gone down the toilet literally.

    Posted in: Discussion
  • 0

    posted a message on Does anyone know the best picture setting for a Samsung LED TV when playing Minecraft?

    Are the forums dead today?

    Posted in: Discussion
  • 0

    posted a message on Does anyone know the best picture setting for a Samsung LED TV when playing Minecraft?

    Recently I just got a new samsung tv (te310, 32 inch) I have tried fiddling with the picture settings, but to my dismay it either looks too bright or dark. I have also tried looking on many sites but to no avail, if anyone could help me out it would be greatly appreciated.


    Current settings

    Blacklight: 12/2


    Contrast: 70/100


    Brightness: 50/100


    Sharpness: 60/100


    Colour: 100/100


    Tint: G50, R50

    Posted in: Discussion
  • 0

    posted a message on [1.11.2] Custom TNT block not rendering when placed.

    Can anyone help.

    Posted in: Modification Development
  • 0

    posted a message on [1.11.2] Custom TNT block not rendering when placed.

    I need help please

    Posted in: Modification Development
  • To post a comment, please or register a new account.