Jump to content

GotoLink

Members
  • Posts

    2012
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by GotoLink

  1. ItemSlab isn't a Block, so no, this isn't going to work.

     

    blockHalfboneslab = new blockSlab(blockHalfboneslab);
    

    You should also get a compiler warning from that kind of stuff. Guess why ?

     

    You need to use

    GameRegistry.registerBlock(block,  itemClass, name);
    

    or equivalent.

  2. I want to be able to have the adjusted 'gravity' from the moment the mod loads (no travelling to other dimensions, like with Galacticraft.)

    You mean, before the world or any entity is loaded ? That isn't possible.

     

    As you said, each entity handles its own gravity. Meaning "gravity" only operates in game ticks.

    You might be interested in the LivingFallEvent and LivingJumpEvent.

     

    I kinda want to point out that Minecraft gravity isn't close to the Earth's.

  3. LivingSpawnEvent event) 
    {
      	 EntityPlayer player = (EntityPlayer)event.getPlayer();
    if(event.entity == EntityCutstomMob && StorageLevel.getPlayer().GetMasterLevel() < 5)
    }
    

    You can't get a EntityPlayer instance from those event. They are for mobs.

     

    Your entity check could be

    if(event.entity.getClass().equals(EntityCustomMob.class))
    

×
×
  • Create New...

Important Information

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