Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

averysumner

Members
  • Content Count

    33
  • Joined

  • Last visited

Community Reputation

0 Neutral

About averysumner

  • Rank
    Tree Puncher

Converted

  • Gender
    Male
  • Location
    USA
  • Personal Text
    I make Minecraft mods.
  1. It is called in PreInit: package com.averysumner.randomstuff; import net.minecraft.util.datafix.DataFixer; import net.minecraftforge.fml.client.registry.RenderingRegistry; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; public class ClientProxy extends CommonProxy { @Override public void preInit(FMLPreInitializationEvent e) { super.preInit(e); ModItems.init(); ModEntities.registerEntities();
  2. My Slimeball Entity's texture isn't loading, heres the code: EntitySlimeball.class: package com.averysumner.randomstuff; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.monster.EntityBlaze; import net.minecraft.entity.projectile.EntityThrowable; import net.minecraft.util.DamageSource; import net.minecraft.util.EnumParticleTypes; import net.minecraft.util.datafix.DataFixer; import net.minecraft.util.math.RayTraceResult; import net.minecraft.world.World; public class EntitySlimeball extends EntityThrowable { public EntitySlimeball(World worldIn) { s
  3. Hey fireplace, I made it a lot more simple by modifying your simpler render class, but I still get no textures. I posted my registry in an older post.
  4. Entity/Render Registry: package com.averysumner.randomstuff; import net.minecraft.client.renderer.entity.RenderSnowball; import net.minecraft.entity.Entity; import net.minecraft.entity.EnumCreatureType; import net.minecraft.entity.projectile.EntitySnowball; import net.minecraft.init.Biomes; import net.minecraft.init.Items; import net.minecraftforge.fml.client.registry.RenderingRegistry; import net.minecraftforge.fml.common.registry.EntityRegistry; public class ModEntities { public static int id = 0; public static int index; public static Entity brownbear; public static Entity slimeball;
  5. Everything is working besides the texture. Also, if I get in front of the hitbox, it pushes me forwards as I shoot. Heres the code for my renderer, my render factory, and my entity class, can you tell me what's wrong?: Renderer package com.averysumner.randomstuff; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.GlStateManager; import net.minecraft.client.renderer.RenderItem; import net.minecraft.client.renderer.block.model.ItemCameraTransforms; import net.minecraft.client.renderer.entity.Render; import net.minecraft.client.renderer.entity.RenderManager; import net
  6. I got everything working, besides rendering my slimeball entity. When I use "RenderingRegistry.registerEntityRenderingHandler" I get @Deprecated, even if I use the factory version.
  7. I'm an idiot. I didn't register the EventHandler. Thanks!
  8. itemRand wont work if it is not extending item. Besides that, there is no reason.
  9. Still not getting it to work even with everything you said, heres the code: package com.averysumner.randomstuff; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.projectile.EntitySnowball; import net.minecraft.init.Items; import net.minecraft.init.SoundEvents; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.stats.StatList; import net.minecraft.util.ActionResult; import net.minecraft.util.EnumActionResult; import net.minecraft.util.EnumHand; import net.minecraft.util.SoundCa
  10. I may just be being stupid, but I don't think this is supposed to happen. In this code it tells me that "getCurrectEquippedItem" is undefined for EntityPlayer: package com.averysumner.randomstuff; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.projectile.EntitySnowball; import net.minecraft.init.Items; import net.minecraft.init.SoundEvents; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.stats.StatList; import net.minecraft.util.ActionResult; import net.minecraft.util.Enu
  11. Im not creating and registering an item. Im using the vanilla slimeball.
  12. package com.averysumner.randomstuff; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.projectile.EntitySnowball; import net.minecraft.init.Items; import net.minecraft.init.SoundEvents; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; 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;
  13. So, I want to make slimeballs throwable. I have a class and everything for throwables that works, only problem is I only know how to turn my custom items into throwables. Can someone tell me how to turn a vanilla item into a throwable without breaking other mods? -Avery
  14. Can someone point me to an example, tutorial or just explain how to use getArmorModel? -Avery
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.