Jump to content

HoBoS_TaCo

Forge Modder
  • Posts

    140
  • Joined

  • Last visited

Posts posted by HoBoS_TaCo

  1. Taking a stab as I look at redstone code. It looks like you do a scheduleBlockUpdate and rename your onUpdate() method to be updateTick() instead.

     

    updateTick() is client-side only; it says so in the annotations.

     

    You can just use your chests tile entity onUpdate() instead if it's a custom tile entity.

    I've been using TileEntityChest, it looks like adding a custom tile entity will do the trick. Thanks to both of you.
  2. I've been trying to get my chest to regenerate items for a while and i'm having a problem. I have the generation code completed but I can figure out how to run the block's onUpdate() method on every tick. Is there a way to get every instance of the block's onUpdate() to run every tick or should I look in a different direction? If anyone can point me in the right direction it'll be appreciated. :)

  3. If I were you I would use:

    EntityRegistry.registerGlobalEntityID(EntityDigimob.class, "EntityDigimob", EntityRegistry.findGlobalUniqueEntityId(), 1, 2); //Last 2 digits are spawn egg colours, remove them if you don't want spawn eggs.
    EntityRegistry.addSpawn(EntityDigimob.class, 25, 1, 1, EnumCreatureType.creature, WorldType.base12Biomes);
    

  4. Ok first off please don't respond read EAQ because I did. I downloaded the latest recommended forge from this websit date (11/25/2012 at 3:30 pm Eastern time and I get this error message

    You can find the error in capitals in the middle of your log. Did you even read it?

  5. There is a way, but I can't get it to work, you can use

    @Metadata("MyModID")
    public static ModMetadata meta;
    

    And modify that, or you can get the metadata from @PreInit.

    I had a mess around with it, also with DummyContainer, and didn't have much luck.

     

     

    The mcmod.info is for custom launchers. They can search for that file and read the information directly without searching in the class files for it.

    Ahh. Do you have any ideas on how I would include the metadata in the code anyway?
  6. For some reason my entities spawn fine on the client but on a server they don't spawn properly. On my servers they spawn normally in a small radius around the spawn but as I move away they stop spawning. I register my entities with:

    
    EntityRegistry.addSpawn(EntityZombieDayZ.class, 200, 1, 4, EnumCreatureType.creature, DayZ.dayzForest, DayZ.dayzPlains, DayZ.dayzRiver);
    
    
    

    Anyone have an idea why this is occurring?

×
×
  • Create New...

Important Information

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