• 0

    posted a message on how much does a dollar bill really cost?
    Quote from Schmoople

    Sources on the prices? It doesn't cost seven dollars to make a dollar bill.

    This is just simple algebra.


    You're right on the simple algebra. I think, though, that he means that 6 dollar bills would cost 1$. His math is off, though - I don't know why he ignored the 25% linen that he said the bill was.
    Posted in: General Off Topic
  • 0

    posted a message on Let's talk about the hardness scale: Clearing things up
    How in the world is this a suggestion? This could go in discussion, but might fit better in the "science" section of off topic. Not sure where you're coming from by deciding to put it here.
    Posted in: Suggestions
  • 5

    posted a message on The Barrels Mod
    Um, did you ask permission from the author of Factorization first? Seeing as this is nearly a direct copy of his mod, with a few extra features.
    I mean, cool mod and all, but I'd feel better using it if I knew that he didn't mind spin-offs.

    Edit: If you're going to talk about "innovation", your mod doesn't have much. You don't improve on the interface, the textures, the idea, you just add a higher tier barrel. At the very least ask neptunepink first, so that he knows you're using his stuff.

    Btw, don't give me all the "intellectual property patent/copyright shouldn't exist" crap. It doesn't matter: you copied him directly without even asking.
    Posted in: Minecraft Mods
  • 0

    posted a message on Brewing overhaul: meet Corpse Ash
    I like this, mostly. The main issue that I have with it is that as far as I know, lapis spawns more rarely than diamond - certainly not even comparable to redstone or glowstone. This makes it a rather needlessly difficult-to-get item.

    I do like the change to make progression more gradual - however, I do like the current concept that brewing can only be done after going and fighting some blazes. So, I'm not sure overall on this idea.
    Posted in: Suggestions
  • 0

    posted a message on Former Illuminati programmer speaks about the cult
    Some basic readings of this guy make it seem like he's planning to write a book on it, if he didn't present it as fact. Seriously, guy, you have to read through what you've written - I won't list all the reasons, but this "svali" is obviously you, not your friend as you say. This is pretty unbelievable, but that's a LOT of writing. Not sure what the motivation is.
    Posted in: General Off Topic
  • 0

    posted a message on Former Illuminati programmer speaks about the cult
    Seems legit.



    Seriously though, I have no way to tell if this guy is credible at all.
    Posted in: General Off Topic
  • 0

    posted a message on Witch Overhaul! Broomsticks, Bat-splosions,Snowman Power-Up, Hats, and Cats! (Derpy Concept Art Included!)
    First of all, witches are currently pretty stupid. Good for you for actually making them have a purpose. However:

    The fight's too complicated. How in the world would I remember to do all the cat-killing etc? I don't know if I would bother. It seems like something for a mod. Would be good if it was simpler, though.
    Difficulty seems good without the flying away part (we already have 2 flying bosses).

    The broom is overpowered. No getting around it, even with magical fuel. Again, it feels like something from a mod - as much as it would be awesome, I don't know if it fits. Maybe Mojang could find a way to make it feel more like vanilla? Possibly giving some effect akin to jump boost? I don't know.

    I don't support it in its current form, but I agree the witches should be changed (or removed).
    Posted in: Suggestions
  • 0

    posted a message on Do you think this is ridiculous ?
    Quote from Winter_Mage

    Why did you donate in the first place?!?!?

    I can hardly believe you donated $500 dollars unless you didn't know that the only thing you would get was creative(which is basically your fault though.... seems fishy).


    He didn't say he donated, just that the rank existed.

    OT: Kind of stupid. Not many people will have that kind of money laying around.
    Posted in: Discussion
  • 0

    posted a message on Sulfur
    Quote from Frog81

    Yeah. Or maybe not in the middle layers of the nether... But the very low layers of the nether. Where if you mine one, you risk flooding your mine with lava.


    I actually wasn't going to support a "peaceful" method of getting gunpowder, but this seems pretty interesting, fairly balanced, and would add some flavour. But definitely not as a common overworld ore.
    Posted in: Suggestions
  • 0

    posted a message on How and Why Minecraft is Being Ruined
    Quote from ChrisPerson

    In fact, if you were to replicate that Donkey Kong game with no command blocks, you'd need a lot more space. Did I mention that even the creator of the map himself acknowledges (in the video) that there is no redstone it it?

    So? Your arguments against more possibilities don't make a lot of sense.

    Quote from ChrisPerson

    There's an interesting effect going on in here: the more effort it takes to make something, the more likely you are to polish it up, make it better, and make it look good. The opposite is true also – if something takes you 30 minutes to create, are you really going to spend 3 hours working on it when the functional aspects are already done?

    Yes, if I were to release a map to the community, I would make it look good. Especially because I don't have to spend all my time doing redstone.

    Quote from ChrisPerson

    In short, what they're doing is shifting a large amount of the actual load, the stuff that lags your computer out, over to the server side. You can't host a server for a small group of friends without the server hogging every single bit of computing power under this kind of change, so that's the small servers blasted off the maps. What about the huge servers, as in 100-200+ players-on-at-a-time servers? Well, those are kind of gone too, considering that the requirements of hosting a server will go up drastically.

    AFAIK, they are not "gone". Instead of all the work being duplicated across all the clients, it gets done on the server once... which are mostly beast machines anyway. I haven't seen drops in very large servers because of this.

    Quote from ChrisPerson

    There's a very interesting change going on in Minecraft at the moment: Mojang is effectively attempting to get rid of singleplayer, and one of the first steps in that process was adding integrated LAN servers. Even the info release on the modding API shows it – client side only mods, or in other words any mod that can't work with Multiplayer, will not be supported by Mojang's upcoming API. This means that not only will your SSP only mods not work, but neither will things like NotEnoughItems, or any kind of minimap mod. The writing is on the walls, people.

    Huh? NEI works with servers just fine.

    Quote from ChrisPerson

    Not Multiplayer though. Unless somebody gives you their account info (unlikely and rare), you cannot play multiplayer in Minecraft if you are offline, only singleplayer. So wait, doesn't this mean... Minecraft is becoming an always-online game? Join the ranks of Diablo 3 and SimCity 5, Minecraft. Always online, always multiplayer... I know, this sounds a bit.... conspiracy theory-ish?

    Yes, you sound like a conspiracy theorist. I see nothing to say that they are outlawing offline mode. Sorry.


    Overall, I'm not sure you understand singleplayer-multiplayer "merge". A locally hosted server is a very common way of not having to create, essentially, two games and codebases. There is nothing stopping you from not playing with anyone else! You can still play "multiplayer" (localhost singleplayer) in offline mode. As for making "multiplayer more like singleplayer", that would be bugfixes due to the codebase merge. Nothing gameplay wise; in fact, the opposite.
    Posted in: Discussion
  • 0

    posted a message on Ability to shoot coco beans out of trees with a bow and arrow.
    Totally useless, and I would never use it seriously. But awesome, so full support.

    However, I think the reason that paintings drop is because they are entities... and cocoa beans aren't. So might take more effort than necessary, given the usefulness.
    (However, given the effort expended on fireworks...)
    Posted in: Suggestions
  • 0

    posted a message on Stone Tools, no Cobblestone Tools
    As much as the tools wouldn't be "hard" to make, it would remove the ability to make tools on the fly as easily. In my opinion, that's what makes stone tools great; it's why anyone would use them. No need to cook anything, and still have some digging power.
    If this is to make the tools more balanced, I don't see the need - they're already slow.
    If this is to have more of a "use" for the wood step, I don't see the point: I seriously doubt anyone would use them any more, except as an "on-the-fly" tool. Which brings me to the next issue:
    Why make it take longer for the player to dig things? There is no way I would use a 60-use wood tool instead of just cooking stone. All this has done, then, has made my life more annoying.
    Yes, I do agree it opens some interesting resource-limiting possibilities. But so does the current setup; and overall, I don't see the benefit that would come from such a fundamental change.

    By the way, if you're going to say that it won't affect much, simple recipe change etc - it does. That's the point, right? It changes a fundamental tech path of the game. And I don't understand the overarching benefit.
    Posted in: Suggestions
  • 0

    posted a message on Charred Hand (Nether mob) New fortress variant and item!
    I really like this idea. I would picture it as not too big actually, kind of a manageable size.
    Two things:
    -Maybe bubbles etc. where it's located, so as to make it visible to attentive players
    -How would the bottom look? Say, if in multiplayer, someone swam down to the base of the arm.

    Sounds pretty cool though, and kind of fitting. Maybe a little on the creepy side, but ghasts are pretty creepy, so...
    Posted in: Suggestions
  • 0

    posted a message on Verical and upside down minecart rails.
    Since it's no longer a complete necro, I'll post my thought:
    The rendering engine, afaik, cannot support upside-down players/viewpoints etc. Of course, it could be re-written, but that seems like a LOT of work for one addition. We could then however have nice falling animations, but for now seems to be not worth it.
    Posted in: Suggestions
  • 0

    posted a message on Render Throwable Bomb Error
    I'm trying to make a throwable bomb of hunger, similar to a splash potion. The items show up in game, and I can have them in my inventory etc (they use the wrong icon, but that's a separate issue). However, when I rightclick one it crashes with this:


    2013-01-29 15:50:10 [SEVERE] [ForgeModLoader] A severe problem occurred during the spawning of an entity
    java.lang.NoSuchMethodException: hungerTweaks.EntityBomb.<init>(net.minecraft.world.World)
    at java.lang.Class.getConstructor0(Class.java:2706)
    at java.lang.Class.getConstructor(Class.java:1657)
    at cpw.mods.fml.client.FMLClientHandler.spawnEntityIntoClientWorld(FMLClientHandler.java:341)
    at cpw.mods.fml.common.FMLCommonHandler.spawnEntityIntoClientWorld(FMLCommonHandler.java:334)
    at cpw.mods.fml.common.network.EntitySpawnPacket.execute(EntitySpawnPacket.java:183)
    at cpw.mods.fml.common.network.FMLNetworkHandler.handleFMLPacket(FMLNetworkHandler.java:102)
    at cpw.mods.fml.common.network.FMLNetworkHandler.handlePacket250Packet(FMLNetworkHandler.java:67)
    at net.minecraft.client.multiplayer.NetClientHandler.handleCustomPayload(NetClientHandler.java:1483)
    at net.minecraft.network.packet.Packet250CustomPayload.processPacket(Packet250CustomPayload.java:70)
    at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:80)
    at net.minecraft.client.multiplayer.NetClientHandler.processReadPackets(NetClientHandler.java:240)
    at net.minecraft.client.multiplayer.WorldClient.tick(WorldClient.java:92)
    at net.minecraft.client.Minecraft.runTick(Minecraft.java:1872)
    at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:846)
    at net.minecraft.client.Minecraft.run(Minecraft.java:771)
    at java.lang.Thread.run(Thread.java:662)
    2013-01-29 15:50:11 [INFO] [ForgeModLoader] Unloading dimension 0
    2013-01-29 15:50:11 [INFO] [ForgeModLoader] Unloading dimension -1
    2013-01-29 15:50:11 [INFO] [ForgeModLoader] Unloading dimension 1
    2013-01-29 15:50:12 [INFO] [STDERR] net.minecraft.util.ReportedException: Exception in world tick
    2013-01-29 15:50:12 [INFO] [STDERR] at net.minecraft.client.Minecraft.runTick(Minecraft.java:1888)
    2013-01-29 15:50:12 [INFO] [STDERR] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:846)
    2013-01-29 15:50:12 [INFO] [STDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:771)
    2013-01-29 15:50:12 [INFO] [STDERR] at java.lang.Thread.run(Thread.java:662)
    2013-01-29 15:50:12 [INFO] [STDERR] Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodException: hungerTweaks.EntityBomb.<init>(net.minecraft.world.World)
    2013-01-29 15:50:12 [INFO] [STDERR] at com.google.common.base.Throwables.propagate(Throwables.java:160)
    2013-01-29 15:50:12 [INFO] [STDERR] at cpw.mods.fml.client.FMLClientHandler.spawnEntityIntoClientWorld(FMLClientHandler.java:394)
    2013-01-29 15:50:12 [INFO] [STDERR] at cpw.mods.fml.common.FMLCommonHandler.spawnEntityIntoClientWorld(FMLCommonHandler.java:334)
    2013-01-29 15:50:12 [INFO] [STDERR] at cpw.mods.fml.common.network.EntitySpawnPacket.execute(EntitySpawnPacket.java:183)
    2013-01-29 15:50:12 [INFO] [STDERR] at cpw.mods.fml.common.network.FMLNetworkHandler.handleFMLPacket(FMLNetworkHandler.java:102)
    2013-01-29 15:50:12 [INFO] [STDERR] at cpw.mods.fml.common.network.FMLNetworkHandler.handlePacket250Packet(FMLNetworkHandler.java:67)
    2013-01-29 15:50:12 [INFO] [STDERR] at net.minecraft.client.multiplayer.NetClientHandler.handleCustomPayload(NetClientHandler.java:1483)
    2013-01-29 15:50:12 [INFO] [STDERR] at net.minecraft.network.packet.Packet250CustomPayload.processPacket(Packet250CustomPayload.java:70)
    2013-01-29 15:50:12 [INFO] [STDERR] at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:80)
    2013-01-29 15:50:12 [INFO] [STDERR] at net.minecraft.client.multiplayer.NetClientHandler.processReadPackets(NetClientHandler.java:240)
    2013-01-29 15:50:12 [INFO] [STDERR] at net.minecraft.client.multiplayer.WorldClient.tick(WorldClient.java:92)
    2013-01-29 15:50:12 [INFO] [STDERR] at net.minecraft.client.Minecraft.runTick(Minecraft.java:1872)
    2013-01-29 15:50:12 [INFO] [STDERR] ... 3 more
    2013-01-29 15:50:12 [INFO] [STDERR] Caused by: java.lang.NoSuchMethodException: hungerTweaks.EntityBomb.<init>(net.minecraft.world.World)
    2013-01-29 15:50:12 [INFO] [STDERR] at java.lang.Class.getConstructor0(Class.java:2706)
    2013-01-29 15:50:12 [INFO] [STDERR] at java.lang.Class.getConstructor(Class.java:1657)
    2013-01-29 15:50:12 [INFO] [STDERR] at cpw.mods.fml.client.FMLClientHandler.spawnEntityIntoClientWorld(FMLClientHandler.java:341)
    2013-01-29 15:50:12 [INFO] [STDERR] ... 13 more


    Here is my mod class, item class, and entity class:

    Ignore the first item modification part in load, that doesn't have any problems.
    package hungerTweaks;
    
    import java.util.Map;
    
    import net.minecraft.client.renderer.entity.RenderSnowball;
    import net.minecraft.item.Item;
    import net.minecraft.item.ItemFood;
    import net.minecraft.potion.Potion;
    import cpw.mods.fml.client.registry.RenderingRegistry;
    import cpw.mods.fml.common.Mod;
    import cpw.mods.fml.common.Mod.Init;
    import cpw.mods.fml.common.SidedProxy;
    import cpw.mods.fml.common.event.FMLInitializationEvent;
    import cpw.mods.fml.common.network.NetworkMod;
    import cpw.mods.fml.common.registry.EntityRegistry;
    import cpw.mods.fml.common.registry.LanguageRegistry;
    
    @Mod(modid = "Ikkalyzte_HungerTweaks", name = "HungerTweaks", version = "0.9")
    @NetworkMod(clientSideRequired = true, serverSideRequired = false)
    public class HungerTweaks
    {
    
    @SidedProxy(clientSide = "hungerTweaks.ClientProxyHungerTweaks", serverSide = "hungerTweaks.CommonProxyHungerTweaks")
    public static CommonProxyHungerTweaks proxy;
    
    public static Item hungerBomb;
    public static Item hungerBomb2;
    public static Item hungerBombInstant;
    public static Item hungerBombInstant2;
    public static Item foodBomb;
    public static Item foodBomb2;
    
    @Init
    public void load(FMLInitializationEvent Event)
    {
    proxy.registerRenderStuff();
    
    ((ItemFood) net.minecraft.item.Item.appleRed).setHeartAmount(3);
    ((ItemFood) net.minecraft.item.Item.bread).setHeartAmount(5).setSaturationModifier(0.6F);
    ((ItemFood) net.minecraft.item.Item.porkRaw).setHeartAmount(2);
    ((ItemFood) net.minecraft.item.Item.porkCooked).setHeartAmount(7).setHealAmount(9).setSaturationModifier(1.0F).setPotionEffect(Potion.digSpeed.id, 30, 0, 0.5F);
    ((ItemFood) net.minecraft.item.Item.appleGold).setHealAmount(16).setSaturationModifier(1.2F).setAlwaysEdible().setPotionEffect(Potion.regeneration.id, 12, 0, 1.0F);
    ((ItemFood) net.minecraft.item.Item.fishRaw).setHeartAmount(1);
    ((ItemFood) net.minecraft.item.Item.fishCooked).setHeartAmount(5).setSaturationModifier(0.8F);
    ((ItemFood) net.minecraft.item.Item.cookie).setHeartAmount(3).setPotionEffect(Potion.moveSpeed.id, 30, 0, 0.5F);
    ((ItemFood) net.minecraft.item.Item.melon).setHeartAmount(1).setHealAmount(3);
    ((ItemFood) net.minecraft.item.Item.beefRaw).setHeartAmount(2);
    ((ItemFood) net.minecraft.item.Item.beefCooked).setHeartAmount(9).setHealAmount(7).setSaturationModifier(1.0F).setPotionEffect(Potion.damageBoost.id, 30, 0, 0.5F);
    ((ItemFood) net.minecraft.item.Item.chickenRaw).setHeartAmount(1);
    ((ItemFood) net.minecraft.item.Item.chickenCooked).setHeartAmount(6).setSaturationModifier(0.8F);
    ((ItemFood) net.minecraft.item.Item.carrot).setHeartAmount(1).setHealAmount(3);
    ((ItemFood) net.minecraft.item.Item.potato).setHeartAmount(1);
    ((ItemFood) net.minecraft.item.Item.bakedPotato).setHeartAmount(4);
    ((ItemFood) net.minecraft.item.Item.goldenCarrot).setHeartAmount(4).setHealAmount(8).setSaturationModifier(2F);
    ((ItemFood) net.minecraft.item.Item.pumpkinPie).setHeartAmount(10).setSaturationModifier(0.6F).setAlwaysEdible();
    
    hungerBomb = new Bomb(8200).setIconIndex(0).setItemName("BombOfHunger");
    hungerBomb2 = new Bomb(8201).setAmplifier(1).setIconIndex(1).setItemName("BombOfHunger2");
    hungerBombInstant = new Bomb(8202).setIsInstant().setIconIndex(2).setItemName("BombOfInstantHunger");
    hungerBombInstant2 = new Bomb(8203).setAmplifier(1).setIsInstant().setIconIndex(3).setItemName("BombOfInstantHunger2");
    foodBomb = new Bomb(8204).setIsInstant().setIconIndex(4).setItemName("BombOfFood");
    foodBomb2 = new Bomb(8205).setAmplifier(1).setIsInstant().setIconIndex(5).setItemName("BombOfFood2");
    EntityRegistry.registerModEntity(EntityBomb.class, "EntityBomb", 1, this, 64, 10, true);
    LanguageRegistry.addName(hungerBomb, "Bomb of Hunger");
    LanguageRegistry.addName(hungerBomb2, "Bomb of Hunger II");
    LanguageRegistry.addName(hungerBombInstant, "Bomb of Instant Hunger");
    LanguageRegistry.addName(hungerBombInstant2, "Bomb of Instant Hunger II");
    LanguageRegistry.addName(foodBomb, "Bomb of Food");
    LanguageRegistry.addName(foodBomb2, "Bomb of Food II");
    RenderingRegistry.registerEntityRenderingHandler(EntityBomb.class, new RenderBomb(0));
    }
    }



    package hungerTweaks;
    
    import net.minecraft.creativetab.CreativeTabs;
    import net.minecraft.entity.EntityLiving;
    import net.minecraft.entity.item.EntityExpBottle;
    import net.minecraft.entity.player.EntityPlayer;
    import net.minecraft.item.Item;
    import net.minecraft.item.ItemStack;
    import net.minecraft.world.World;
    
    public class Bomb extends Item
    {
    private boolean isHarmful = true;
    private boolean isInstant = false;
    private double duration;
    private int amplifier;
    
    public Bomb(int id)
    {
    super(id);
    this.setCreativeTab(CreativeTabs.tabCombat);
    }
    
    public String getTextureFile()
    {
    return "/HungerTweaksItems.png";
    }
    
    public Bomb setAmplifier(int par1)
    {
    this.amplifier = par1;
    return this;
    }
    public Bomb setDuration(double par1)
    {
    this.duration = par1;
    return this;
    }
    public Bomb setIsHarmful()
    {
    this.isHarmful = false;
    return this;
    }
    public Bomb setIsInstant()
    {
    this.isInstant = false;
    return this;
    }
    
    public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
    {
    if (!par3EntityPlayer.capabilities.isCreativeMode)
    {
    --par1ItemStack.stackSize;
    }
    
    par2World.playSoundAtEntity(par3EntityPlayer, "random.bow", 0.5F, 0.4F / (itemRand.nextFloat() * 0.4F + 0.8F));
    
    if (!par2World.isRemote)
    {
    if (isInstant)
    {
    par2World.spawnEntityInWorld(new EntityBomb(par2World, par3EntityPlayer, this.amplifier, this.isHarmful));
    }
    else
    {
    par2World.spawnEntityInWorld(new EntityBomb(par2World, par3EntityPlayer, this.amplifier, this.duration));
    }
    }
    
    return par1ItemStack;
    }
    
    }



    package hungerTweaks;
    
    import java.util.Iterator;
    import java.util.List;
    
    import cpw.mods.fml.common.registry.IThrowableEntity;
    
    import net.minecraft.entity.Entity;
    import net.minecraft.entity.EntityLiving;
    import net.minecraft.entity.player.EntityPlayer;
    import net.minecraft.entity.projectile.EntityThrowable;
    import net.minecraft.potion.Potion;
    import net.minecraft.potion.PotionEffect;
    import net.minecraft.util.AxisAlignedBB;
    import net.minecraft.util.MovingObjectPosition;
    import net.minecraft.world.World;
    
    public class EntityBomb extends EntityThrowable implements IThrowableEntity
    {
    
    private boolean isHarmful = true;
    private boolean isInstant;
    private double duration;
    private int amplifier;
    private EntityLiving thrower;
    
    public EntityBomb(World par1World, EntityLiving par2EntityLiving, int amplifier, double duration)
    {
    super(par1World, par2EntityLiving);
    this.renderDistanceWeight = 10.0D;
    this.setSize(1F, 1F);
    this.amplifier = amplifier;
    this.duration = duration;
    this.isInstant = false;
    }
    public EntityBomb(World par1World, EntityLiving par2EntityLiving, int amplifier, boolean isHarmful)
    {
    super(par1World, par2EntityLiving);
    this.renderDistanceWeight = 10.0D;
    this.setSize(1F, 1F);
    this.amplifier = amplifier;
    this.isHarmful = isHarmful;
    }
    
    @Override
    protected void onImpact(MovingObjectPosition par1MovingObjectPosition)
    {
    AxisAlignedBB boundingBox = this.boundingBox.expand(4.0D, 2.0D, 4.0D);
    List entityList = this.worldObj.getEntitiesWithinAABB(EntityLiving.class, boundingBox);
    
    if (entityList != null && !entityList.isEmpty())
    {
    Iterator entityIterator = entityList.iterator();
    
    while (entityIterator.hasNext())
    {
    EntityLiving entity = (EntityLiving)entityIterator.next();
    if (entity.getClass().isAssignableFrom(EntityPlayer.class))
    {
    double distanceModifier = this.getDistanceSqToEntity(entity);
    
    if (distanceModifier < 16.0D)
    {
    distanceModifier = Math.sqrt(distanceModifier);
    
    if (entity == par1MovingObjectPosition.entityHit)
    {
    distanceModifier = 3.0D;
    }
    
    if (this.getIsInstant())
    {
    this.affectEntity(this.getThrower(), this.getAmplifier(), distanceModifier, this.getIsHarmful());
    }
    else
    {
    int durationModifier = (int)(this.getDuration() + 0.5D);
    
    if (durationModifier > 1)
    {
    entity.addPotionEffect(new PotionEffect(17, durationModifier, this.getAmplifier()));
    }
    }
    }
    }
    }
    }
    this.worldObj.playAuxSFX(2002, (int)Math.round(this.posX), (int)Math.round(this.posY), (int)Math.round(this.posZ), this.amplifier);
    if (!this.worldObj.isRemote)
    {
    this.setDead();
    }
    }
    
    private void affectEntity(EntityLiving par1EntityLiving, int amplifier, double distance, boolean isHarmful)
    {
    double foodChange = (amplifier + 2) * 3 - (distance/2);
    int foodChangeInt = (int) Math.floor(foodChange);
    if (isHarmful)
    {
    foodChangeInt *= -1;
    }
    ((EntityPlayer)par1EntityLiving).getFoodStats().addFood(foodChangeInt);
    }
    
    public double getDuration()
    {
    return duration;
    }
    
    public int getAmplifier()
    {
    return amplifier;
    }
    
    public boolean getIsInstant()
    {
    return isInstant;
    }
    
    public boolean getIsHarmful()
    {
    return isHarmful ;
    }
    @Override
    public void setThrower(Entity entity)
    {
    this.thrower = (EntityLiving) entity;
    }
    public EntityLiving getThrower()
    {
    return this.thrower;
    }
    
    
    }



    And here is my render file. Most of this is copied from the snowball's, 'cause I don't understand too well how it works.


    package hungerTweaks;
    
    import org.lwjgl.opengl.GL11;
    import org.lwjgl.opengl.GL12;
    
    import net.minecraft.client.renderer.Tessellator;
    import net.minecraft.entity.Entity;
    import net.minecraft.client.renderer.entity.Render;
    
    public class RenderBomb extends Render
    {
    /**
    * Have the icon index (in items.png) that will be used to render the image. Currently, eggs and snowballs uses this
    * classes.
    */
    private int itemIconIndex;
    public RenderBomb(int par1)
    {
    this.itemIconIndex = par1;
    }
    /**
    * Actually renders the given argument. This is a synthetic bridge method, always casting down its argument and then
    * handing it off to a worker function which does the actual work. In all probabilty, the class Render is generic
    * (Render<T extends Entity) and this method has signature public void doRender(T entity, double d, double d1,
    * double d2, float f, float f1). But JAD is pre 1.5 so doesn't do that.
    */
    public void doRender(Entity par1Entity, double par2, double par4, double par6, float par8, float par9)
    {
    GL11.glPushMatrix();
    GL11.glTranslatef((float)par2, (float)par4, (float)par6);
    GL11.glEnable(GL12.GL_RESCALE_NORMAL);
    GL11.glScalef(0.5F, 0.5F, 0.5F);
    this.loadTexture("/HungerTweaksItems.png");
    Tessellator var10 = Tessellator.instance;
    this.func_77026_a(var10, this.itemIconIndex);
    GL11.glDisable(GL12.GL_RESCALE_NORMAL);
    GL11.glPopMatrix();
    }
    private void func_77026_a(Tessellator par1Tessellator, int par2)
    {
    float var3 = (float)(par2 % 16 * 16 + 0) / 256.0F;
    float var4 = (float)(par2 % 16 * 16 + 16) / 256.0F;
    float var5 = (float)(par2 / 16 * 16 + 0) / 256.0F;
    float var6 = (float)(par2 / 16 * 16 + 16) / 256.0F;
    float var7 = 1.0F;
    float var8 = 0.5F;
    float var9 = 0.25F;
    GL11.glRotatef(180.0F - this.renderManager.playerViewY, 0.0F, 1.0F, 0.0F);
    GL11.glRotatef(-this.renderManager.playerViewX, 1.0F, 0.0F, 0.0F);
    par1Tessellator.startDrawingQuads();
    par1Tessellator.setNormal(0.0F, 1.0F, 0.0F);
    par1Tessellator.addVertexWithUV((double)(0.0F - var8), (double)(0.0F - var9), 0.0D, (double)var3, (double)var6);
    par1Tessellator.addVertexWithUV((double)(var7 - var8), (double)(0.0F - var9), 0.0D, (double)var4, (double)var6);
    par1Tessellator.addVertexWithUV((double)(var7 - var8), (double)(var7 - var9), 0.0D, (double)var4, (double)var5);
    par1Tessellator.addVertexWithUV((double)(0.0F - var8), (double)(var7 - var9), 0.0D, (double)var3, (double)var5);
    par1Tessellator.draw();
    }
    }


    Can anyone help? What have I not registered? It seems a lot of people have throwing item problems, but none the same as this.

    Edit: Whoops, did the spoilers wrong.
    Posted in: Modification Development
  • To post a comment, please .