Jump to content

Shalashalska

Members
  • Posts

    11
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Shalashalska's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. The renderer is registered in clientProxy. Also, I have done some work with break points, and found out that the doRender method is being called, however, the clientside entity's block is null, therefore it can't get a texture and can't render.
  2. I made it use the registerModEntity method, but it still doesn't render. New EntityManager.java package com.simpleframes.entity; import com.simpleframes.lib.Reference; import net.minecraft.client.renderer.entity.RenderSnowball; import net.minecraft.item.Item; import cpw.mods.fml.client.registry.RenderingRegistry; import cpw.mods.fml.common.registry.EntityRegistry; public class EntityManager { public static void preInit() { registerEntities(); } private static void registerEntities() { createEntity(EntityMovingBlock.class, "MovingBlock", 0, 100, 1, true); } public static void createEntity(Class entityClass, String entityName, int entityID, int trackingRange, int updateFrequency, boolean sendVelocityUpdates) { EntityRegistry.registerModEntity(entityClass, entityName, entityID, Reference.MOD_ID, trackingRange, updateFrequency, sendVelocityUpdates); } } Edit: However, it now does exist in the client world.
  3. I can't seem to figure out what to put in for the mod object.
  4. For some odd reason, the entity I created is spawning on the server, but not on the client. I have verified this with breakpoints (The loadedEntityList in the server world has the entity, the one on the client does not have the entity) Code of relevant classes: The rest of the code is here: https://www.dropbox.com/s/3rth16yn14qzlk0/SimpleFrames.zip
  5. For some reason, I cannot get addPotionEffect to work correctly. The method that I had working in 1.5.2: [/code public boolean onLeftClickEntity(ItemStack stack, EntityPlayer player, Entity entity) { if (entity instanceof EntityLiving) { EntityLiving entityLiving = (EntityLiving) entity; entityLiving.addPotionEffect(potionEffect); } return false; } And this is the code for the item. [code] thoriumSword = new ItemPotionSword(ItemIds.THORIUM_SWORD_ID, TOOL_THORIUM, Strings.THORIUM_SWORD_NAME, new PotionEffect(Potion.wither.id, 1000, 1, true), Strings.TEXTURE_FOLDER + ":" + Strings.THORIUM_SWORD_NAME); Note: I stepped through it and nothing went wrong, it just didn't work for some reason. Also, it will occasionally work, but other times it won't work. Source: https://github.com/Shalashalska/Melior-Metallum/blob/master/metallum_common/metallum/item/ItemPotionSword.java Edit: Now it started working properly again.
  6. Melior Metallum is a mod that aims to add many new metals, each with certain unique properties. Download: Adfly: http://adf.ly/Nz78N Direct: https://www.dropbox.com/s/ovzt8hdo4yqqrez/metallum_0.0.1.zip http://i1335.photobucket.com/albums/w670/Shalashalska/2013-04-28_121801_zps542557cd.png[/img] All the items, vanadium ore, and a person wearing vanadium armor. Wiki: https://github.com/Shalashalska/Melior-Metallum/wiki'>https://github.com/Shalashalska/Melior-Metallum/wiki Source: https://github.com/Shalashalska/Melior-Metallum
×
×
  • Create New...

Important Information

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