• 0

    posted a message on Ultimate Ores - Ores, processing, powerful tools, clear glass, metal grid, METAL UNIVERSALIZATION, METAL FURNACES and more!

    Good mod, it's a shame no one has replied to in over a year.

    Posted in: Minecraft Mods
  • 0

    posted a message on The Time Machine Mod

    By any chance, was this mod made with McCreator?

    Posted in: Minecraft Mods
  • 0

    posted a message on (DISCONTINUED)

    Great revival, I personally loved this mod back in the day, you should really remaster mystic ruins as well.

    Posted in: Minecraft Mods
  • 0

    posted a message on How do I make it so that when I eat i get the bowl back?

    Well link me to them, im not exactly sure what to learn, iltelliJ/???

    Posted in: Modification Development
  • 0

    posted a message on How do I make it so that when I eat i get the bowl back?

    Put it in your food class, heres ItemBucketMilk as an example, btw if you need any help with code message me.


    package net.minecraft.item;

    import javax.annotation.Nullable;
    import net.minecraft.creativetab.CreativeTabs;
    import net.minecraft.entity.EntityLivingBase;
    import net.minecraft.entity.player.EntityPlayer;
    import net.minecraft.init.Items;
    import net.minecraft.stats.StatList;
    import net.minecraft.util.ActionResult;
    import net.minecraft.util.EnumActionResult;
    import net.minecraft.util.EnumHand;
    import net.minecraft.world.World;

    public class ItemBucketMilk extends Item
    {
    public ItemBucketMilk()
    {
    this.setMaxStackSize(1);
    this.setCreativeTab(CreativeTabs.MISC);
    }

    /**
    * Called when the player finishes using this Item (E.g. finishes eating.). Not called when the player stops using
    * the Item before the action is complete.
    */
    @Nullable
    public ItemStack onItemUseFinish(ItemStack stack, World worldIn, EntityLivingBase entityLiving)
    {
    if (entityLiving instanceof EntityPlayer && !((EntityPlayer)entityLiving).capabilities.isCreativeMode)
    {
    --stack.stackSize;
    }

    if (!worldIn.isRemote)
    {
    entityLiving.curePotionEffects(stack);
    }

    if (entityLiving instanceof EntityPlayer)
    {
    ((EntityPlayer)entityLiving).addStat(StatList.getObjectUseStats(this));
    }

    return stack.stackSize <= 0 ? new ItemStack(Items.BUCKET) : stack;
    }

    /**
    * How long it takes to use or consume an item
    */
    public int getMaxItemUseDuration(ItemStack stack)
    {
    return 32;
    }

    /**
    * returns the action that specifies what animation to play when the items is being used
    */
    public EnumAction getItemUseAction(ItemStack stack)
    {
    return EnumAction.DRINK;
    }

    public ActionResult<ItemStack> onItemRightClick(ItemStack itemStackIn, World worldIn, EntityPlayer playerIn, EnumHand hand)
    {
    playerIn.setActiveHand(hand);
    return new ActionResult(EnumActionResult.SUCCESS, itemStackIn);
    }

    @Override
    public net.minecraftforge.common.capabilities.ICapabilityProvider initCapabilities(ItemStack stack, net.minecraft.nbt.NBTTagCompound nbt) {
    return new net.minecraftforge.fluids.capability.wrappers.FluidBucketWrapper(stack);
    }
    }

    Posted in: Modification Development
  • 0

    posted a message on How do I get my item to consume another item on right click?

    I fixed it, just took some parts of the bow code


    package top.mod.item;

    import net.minecraftforge.fml.relauncher.SideOnly;
    import net.minecraftforge.fml.relauncher.Side;
    import net.minecraftforge.fml.common.registry.GameRegistry;
    import net.minecraftforge.fml.common.registry.EntityRegistry;
    import net.minecraftforge.fml.common.event.FMLServerStartingEvent;
    import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
    import net.minecraftforge.fml.common.event.FMLInitializationEvent;
    import net.minecraftforge.fml.client.registry.RenderingRegistry;

    import net.minecraft.world.World;
    import net.minecraft.util.math.MathHelper;
    import net.minecraft.util.math.BlockPos;
    import net.minecraft.util.SoundCategory;
    import net.minecraft.util.ResourceLocation;
    import net.minecraft.util.EnumHand;
    import net.minecraft.util.EnumActionResult;
    import net.minecraft.util.ActionResult;
    import net.minecraft.item.ItemStack;
    import net.minecraft.item.Item;
    import net.minecraft.item.EnumAction;
    import net.minecraft.init.Enchantments;
    import net.minecraft.init.Items;
    import net.minecraft.init.Blocks;
    import net.minecraft.entity.projectile.EntityTippedArrow;
    import net.minecraft.entity.projectile.EntityArrow;
    import net.minecraft.entity.player.EntityPlayer;
    import net.minecraft.entity.EntityLivingBase;
    import net.minecraft.entity.Entity;
    import net.minecraft.enchantment.EnchantmentHelper;
    import net.minecraft.client.renderer.entity.RenderSnowball;
    import net.minecraft.client.renderer.block.model.ModelResourceLocation;
    import net.minecraft.client.Minecraft;
    import net.minecraft.block.Block;

    import java.util.Random;

    public class ModBowPlatinum extends Item{

    public ModBowPlatinum() {
    this.maxStackSize = 1;
    this.setMaxDamage(1000);
    }


    @Override
    public int getMaxItemUseDuration(ItemStack par1ItemStack) {
    return 72000;
    }

    @Override
    public ActionResult<ItemStack> onItemRightClick(final ItemStack par1ItemStack, final World par2World, final EntityPlayer par3EntityPlayer,
    EnumHand hand) {

    par3EntityPlayer.setActiveHand(hand);

    boolean flag = par3EntityPlayer.capabilities.isCreativeMode
    || EnchantmentHelper.getEnchantmentLevel(Enchantments.INFINITY, par1ItemStack) > 0;

    if (flag || par3EntityPlayer.inventory.hasItemStack(new ItemStack(Items.ARROW))) {
    float f = 1.3F;

    EntityPlatinum entityarrow = new EntityPlatinum(par2World, par3EntityPlayer) {
    @Override
    public void onCollideWithPlayer(EntityPlayer entity) {
    super.onCollideWithPlayer(entity);
    int i = MathHelper.floor_double(this.getEntityBoundingBox().minX + 0.001D);
    int j = MathHelper.floor_double(this.getEntityBoundingBox().minY + 0.001D);
    int k = MathHelper.floor_double(this.getEntityBoundingBox().minZ + 0.001D);
    World world = this.worldObj;

    }

    @Override
    public void onUpdate() {
    super.onUpdate();
    int i = MathHelper.floor_double(this.getEntityBoundingBox().minX + 0.001D);
    int j = MathHelper.floor_double(this.getEntityBoundingBox().minY + 0.001D);
    int k = MathHelper.floor_double(this.getEntityBoundingBox().minZ + 0.001D);
    World world = this.worldObj;
    Entity entity = (Entity) par3EntityPlayer;

    if (getBlock(this.worldObj, i, j, k) != Blocks.AIR || getBlock(this.worldObj, i, j - 1, k) != Blocks.AIR
    || getBlock(this.worldObj, i, j + 1, k) != Blocks.AIR || getBlock(this.worldObj, i + 1, j, k) != Blocks.AIR
    || getBlock(this.worldObj, i - 1, j, k) != Blocks.AIR || getBlock(this.worldObj, i, j, k + 1) != Blocks.AIR
    || getBlock(this.worldObj, i, j, k - 1) != Blocks.AIR) {

    this.kill();
    }

    }


    };

    entityarrow.setThrowableHeading(par3EntityPlayer.getLookVec().xCoord, par3EntityPlayer.getLookVec().yCoord,
    par3EntityPlayer.getLookVec().zCoord, f * 2.0F, 0);


    par1ItemStack.damageItem(1, par3EntityPlayer);
    int i = (int) par3EntityPlayer.posX;
    int j = (int) par3EntityPlayer.posY;
    int k = (int) par3EntityPlayer.posZ;
    par2World.playSound((EntityPlayer) null, (double) i + 0.5D, (double) j + 0.5D, (double) k + 0.5D,
    (net.minecraft.util.SoundEvent) net.minecraft.util.SoundEvent.REGISTRY.getObject(new ResourceLocation(
    ("block.dispenser.dispense"))), SoundCategory.NEUTRAL, 1.0F, 1.0F / (itemRand.nextFloat() * 0.4F + 1.2F) + f * 0.5F);

    if (flag) {

    } else {
    par3EntityPlayer.inventory.clearMatchingItems(new ItemStack(Items.ARROW).getItem(), -1, 1, null);
    }

    if (!par2World.isRemote) {
    par2World.spawnEntityInWorld(entityarrow);
    }
    World world = par2World;
    EntityPlayer entity = par3EntityPlayer;

    }

    return new ActionResult(EnumActionResult.SUCCESS, par1ItemStack);
    }

    public Block getBlock(World par1World, int i, int j, int k) {
    return par1World.getBlockState(new BlockPos(i, j, k)).getBlock();
    }

    @Override
    public EnumAction getItemUseAction(ItemStack par1ItemStack) {
    return EnumAction.BOW;
    }



    }


    Posted in: Modification Development
  • 0

    posted a message on How do I make it so that when I eat i get the bowl back?

    Here's the code enjoy


    /**
    * Called when the player finishes using this Item (E.g. finishes eating.). Not called when the player stops using
    * the Item before the action is complete.
    */
    @Nullable
    public ItemStack onItemUseFinish(ItemStack stack, World worldIn, EntityLivingBase entityLiving)
    {
    if (entityLiving instanceof EntityPlayer && !((EntityPlayer)entityLiving).capabilities.isCreativeMode)
    {
    --stack.stackSize;
    }

    if (!worldIn.isRemote)
    {
    entityLiving.curePotionEffects(stack);
    }

    if (entityLiving instanceof EntityPlayer)
    {
    ((EntityPlayer)entityLiving).addStat(StatList.getObjectUseStats(this));
    }

    return stack.stackSize <= 0 ? new ItemStack(Items.BUCKET) : stack;
    }

    Posted in: Modification Development
  • 0

    posted a message on How do I get my item to consume another item on right click?

    Well I have come this far, im not stopping now, if you could link me a video that tackles these kind of statements that would be great

    Posted in: Modification Development
  • 0

    posted a message on How do I get my item to consume another item on right click?

    How exactly is it supposed to be set up then? I have tried looking around for it and I have found nothing, hopefully I will find a solution soon.

    Posted in: Modification Development
  • 0

    posted a message on How do I get my item to consume another item on right click?

    So is it supposed to be like this, as I tried changing the numbers around



    EntityPlatinum entityplatinum = new EntityPlatinum(worldIn, playerIn);
    entityplatinum.setHeadingFromThrower(playerIn, playerIn.rotationPitch, playerIn.rotationYaw, 0.0F, 1.5F, 1.0F);
    int arrowsRemoved = playerIn.inventory.clearMatchingItems(Items.ARROW, 1, 1, null);
    worldIn.spawnEntityInWorld(entityplatinum);
    worldIn.playSound((EntityPlayer)null, playerIn.posX, playerIn.posY, playerIn.posZ, SoundEvents.ENTITY_ARROW_SHOOT, SoundCategory.NEUTRAL, 1.0F, 1.0F / (itemRand.nextFloat() * 0.4F + 1.2F) + maxStackSize * 0.5F);

    }

    Posted in: Modification Development
  • 0

    posted a message on How do I get my item to consume another item on right click?

    Here's my current code, I tried tweaking it and nothing happened, it still shoots my entity even when the item is not in my inventory


    package top.mod.item;
    import javax.annotation.Nullable;
    import net.minecraft.creativetab.CreativeTabs;
    import net.minecraft.entity.EntityLivingBase;
    import net.minecraft.entity.player.EntityPlayer;
    import net.minecraft.init.Items;
    import net.minecraft.init.SoundEvents;
    import net.minecraft.item.IItemPropertyGetter;
    import net.minecraft.item.Item;
    import net.minecraft.item.ItemStack;
    import net.minecraft.item.ItemSword;
    import net.minecraft.stats.StatList;
    import net.minecraft.util.ActionResult;
    import net.minecraft.util.EnumActionResult;
    import net.minecraft.util.EnumHand;
    import net.minecraft.util.SoundCategory;
    import net.minecraft.world.World;
    import net.minecraftforge.fml.relauncher.Side;
    import net.minecraftforge.fml.relauncher.SideOnly;

    public class ModBowPlatinum extends Item
    {
    public ModBowPlatinum()
    {
    this.maxStackSize = 1;
    this.setMaxDamage(1000);
    }
    public ActionResult<ItemStack> onItemRightClick(ItemStack itemStackIn, World worldIn, EntityPlayer playerIn, EnumHand hand)
    {

    if (!worldIn.isRemote)
    {
    EntityPlatinum entityplatinum = new EntityPlatinum(worldIn, playerIn);
    entityplatinum.setHeadingFromThrower(playerIn, playerIn.rotationPitch, playerIn.rotationYaw, 0.0F, 1.5F, 1.0F);
    worldIn.spawnEntityInWorld(entityplatinum);
    int arrowsRemoved = playerIn.inventory.clearMatchingItems(Items.ARROW, 0, 1, null);
    worldIn.playSound((EntityPlayer)null, playerIn.posX, playerIn.posY, playerIn.posZ, SoundEvents.ENTITY_ARROW_SHOOT, SoundCategory.NEUTRAL, 1.0F, 1.0F / (itemRand.nextFloat() * 0.4F + 1.2F) + maxStackSize * 0.5F);

    }

    itemStackIn.damageItem(1, playerIn);
    playerIn.addStat(StatList.getObjectUseStats(this));
    return new ActionResult(EnumActionResult.SUCCESS, itemStackIn);

    }
    }

    Posted in: Modification Development
  • 0

    posted a message on [1.5.2] [Forge] TooManyGems mod! [now with coloured monster spawners!] (DISCONTINUED)

    Sir why are you ripping off CustomNPCs textures and Project Red textures.

    Also this looks very amateurishly built.


    This mod is just a mashup of gems+, some textures from crazy ores, and it looks like it was made with McCreator.
    Posted in: Minecraft Mods
  • 0

    posted a message on How do I get my item to consume another item on right click?

    It still shoots out my entity even when there's no arrows in my inventory, any help?

    Posted in: Modification Development
  • 0

    posted a message on How do I get my item to consume another item on right click?

    tried increasing it playerIn.inventory.clearMatchingItems(new ItemStack(Items.ARROW).getItem(), 1, 3, null); and still nothing

    Posted in: Modification Development
  • 0

    posted a message on How do I get my item to consume another item on right click?

    I'll wait another hour if I need to

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