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


  • Content Count

  • Joined

  • Last visited

Community Reputation

17 Good

About Jdb100

  • Rank
    Creeper Killer


  • Gender
  • Personal Text
    Creator of Jobo's ModLoader
  1. Ok i removed setting the default values even though I had no variables in the block besides the instance of the tile entity which I get with world.getTileEntity(). I never make the tile entity in the block it just contains the instance of it. The tile entity is created in the world with the createNewTileEntity(). All the other parts are working with multiple blocks down just not spawning the entity item on server.
  2. That is set in the constructor. That variable seems to work fine as by default it is saved as false which I could see when debugging. Also a println in there saw it being called. All the other parts seem to work, I just provided them in case there was something wrong but the problematic section is: @Override public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ) if(player.inventory.getCurrentItem().getItem() instanceof ItemKnife && tileEntity.getEscapeTime() == -100) { tileEntity.se
  3. http://www.minecraftforge.net/wiki/Netty_Packet_Handling Literally the same website had the tutorial you needed. Please look before posting.
  4. Sorry but I don't understand what you are trying to say as I think all the variables exist and they all have there data saved by nbt either in the tile entity or itemstack. Also I am not storing any data in the block all the data is stored in the tile entity and storing the item data in the item stack. Thanks for explaining the arguments I couldn't figure out even though I won't be needing them after I found what they do.
  5. I have a block replacing itself with an item when clicked but it isn't called server side so any entities added would be client side and the blocks isn't set to air because it is only removed client side then syncs with the server and reappears. i should easily be able to make it spawn client side only with. if(!world.isRemote) however the onBlockActivated() seems to only be called client side even though it is supposed to be on both onBlockActivated() @Override public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int what, float are, floa
  6. First how are you getting sent to your dimension. Second p = MinecraftServer.getServer().getConfigurationManager().getPlayerForUsername(pls); should be p = MinecraftServer.getServer().getConfigurationManager().getPlayerForUsername(pls[i]); . Third if (itemDropped.getEntityItem().getItem().equals(VoidMod.nullVoidAlloy)) should be if (itemDropped.getEntityItem().getItem() instanceof ItemNullVoidAlloy))
  7. I have been working on getting the id of the mob but for some reason when i check to see if the item is null or my item it crashes. @SubscribeEvent public void OnEntityDeath(LivingDeathEvent event) { if(event.source.getSourceOfDamage() instanceof EntityPlayer) { EntityPlayer player = (EntityPlayer) event.source.getSourceOfDamage(); int size = player.inventory.mainInventory.length; for(int i = 0; i < size; i++) { ItemStack itemStack = player.inventory.mainInventory[i]; if(itemStack.getItem() != null) { if(itemStack.getItem() instanceof ItemSoulJar) { /
  8. Like San said you are emitting a light level of 15 and your block melts at light level of 14. See the problem?
  9. Time in minecraft is static and not per dimension though the easiest way is to make a sky handler for your dimension.
  10. Easiest way would be to copy the large oak tree generation and remove the leaf spawning code then set the trees that spawn in your biome to be your new tree without leaves.
  11. I know the mob spawning would be fine but say you place a block that uses the time in always dark world it will still be at the power for the middle of the day well it appears to be night. Also if you get the time separate make sure that it doesn't mess up the clock.
  12. When generating get the chunk it is in then when a new one tries to spawn check to see if it is within a certain amount of chunks to your other one.
  13. This maybe incorrect because last time I did ore gen not in the overworld was 1.4 but from what I remember worldgenmineable finds stone and replaces it with the ore that is specified. In the end however there is no stone to replace so nothing happens. So you will need to create your own worldgen class to replace endstone with your ore.
  14. Adding some null checks in getResult should work.
  15. Post your code we need to see what you did to fix them.
  • Create New...

Important Information

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