Jump to content

megabitus

Members
  • Posts

    28
  • Joined

  • Last visited

Everything posted by megabitus

  1. When I open the GUI minecraft crashes with this: TileEntityInterChest: https://github.com/megabitus98/Blocks-Items-Revolution/blob/master/src/main/java/com/mega/bir/block/tileentity/TileEntityInterChest.java GuiInterChest: https://github.com/megabitus98/Blocks-Items-Revolution/blob/master/src/main/java/com/mega/bir/client/interfaces/interchest/GuiInterChest.java
  2. Thanks for the fast answers. I have a chest that it will synchronize the items between worlds.
  3. Hi! As the title says is there a way to save data between saves?
  4. Hi! I've made a custom crafting for my Machine and when I place the items It doesn't craft, I get no error, can you help me? This is my ContainerMachine: This is my GuiMachine: This is my MachineComparator: This is my MachineCraftingManager: This is my MachineShapedRecipes: This my MachineShapelessRecipes: And here is my Github with the last commit: https://github.com/megabitus98/Blocks-Items-Revolution
  5. Thanks for the help, now it works perfectly!
  6. I've tried to do like this @Override public void onContainerClosed(EntityPlayer entityplayer) { super.onContainerClosed(entityplayer); for(int i = 0; i < TileEntityInterChest.INVENTORY_SIZE; i++) { ItemStack itemstack = craftMatrix.getStackInSlot(i); if(itemstack != null && worldObj.isRemote) { entityplayer.entityDropItem(itemstack, 0.05F); } } } But it crashes now: And here is my entire class: https://github.com/megabitus98/Blocks-Items-Revolution/blob/master/src/main/java/com/mega/bir/client/interfaces/machine/ContainerMachine.java
  7. Hi! I have a block that when I close the GUI I drop the items that are in slots, they drop but they leave ghost blocks, here is the code: @Override public void onContainerClosed(EntityPlayer entityplayer) { super.onContainerClosed(entityplayer); for(int i = 0; i < TileEntityInterChest.INVENTORY_SIZE; i++) { ItemStack itemstack = craftMatrix.getStackInSlot(i); if(itemstack != null) { entityplayer.entityDropItem(itemstack, 0.05F); } } } Can someone help me?
  8. Thanks! I've done it like this: @Override public void onBlockPlacedBy(World world, int par2, int par3, int par4, EntityLivingBase entity, ItemStack itemstack) { if(entity instanceof EntityPlayer){ EntityPlayer player = (EntityPlayer) entity; PlayerName = player.getDisplayName(); } }
  9. Hi! How can I get the player name that placed a block?
  10. Hello! I have a Gui with 2 slots and I want to block one of them so the player can only take items from one and put items in the other, does anybody know how to do this?
  11. stop, stop. How it how it helps, if GUI closes while typing 'e' letter? Is right we want to stop closing the Gui when we press E.
  12. THX so much for the fast reply but, when I press 'e', I exit the GUI while I was typing, how can this be fixed?
  13. Hi! I have an GUI made, and I want to add a text box to it but I don't know how, can someone help me?
  14. Now it crashes, that's a start and here is Block: Game_Registry And the crash:
  15. As I sad it gives no crash,no error, nothing.
  16. I want to make a GUI, I have the textures the code gives no error but it doesn't work. The main class: The TileEntity: Gui Handeler: Container: Gui: Can someone help me?
  17. thx for the help,I've made an conditionthat checks if the source of the event is a player and now it works!
  18. Hi! My game crashes when this line EntityPlayer player = (EntityPlayer) event.entity; runs and I don't know why. Here is my class: And here is the crash:
  19. Ive changed: FMLCommonHandler.instance().bus().register(new Drop_Event()); to MinecraftForge.EVENT_BUS.register(new Drop_Event()); and now works. Thanks!!
  20. I've tried to make it but it doesn't work. The event class: Main Class:
  21. When the players kills any kind of mob he will get an item in inventory.Can someone help me?
  22. Hi!I've been trying to make a custom model for a block in my mod and when I place it it's invisible.I don't know why It's not working. I've made a TileEntity,a model,here is my mod: - Block: https://github.com/megabitus/BIMod/blob/master/bi/bi_Blocks/LittleGlowstone.java - TileEntity: https://github.com/megabitus/BIMod/blob/master/bi/bi_Entitys/TileEntityLittleGlowstone.java - Entity: https://github.com/megabitus/BIMod/blob/master/bi/bi_Entitys/EntityLittleGlowstone.java - Render: https://github.com/megabitus/BIMod/blob/master/bi/bi_Renders/LittleGlowstoneRender.java - Model: https://github.com/megabitus/BIMod/blob/master/bi/bi_Models/LittleGlowstoneModel.java - BaseClass: https://github.com/megabitus/BIMod/blob/master/bi/bi_BasePackage/BaseClass.java - ClientProxy: https://github.com/megabitus/BIMod/blob/master/bi/bi_BasePackage/ClientProxy.java
  23. Try to change @Init to @EventHandler
×
×
  • Create New...

Important Information

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