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

megabitus

Members
  • Posts

    28
  • Joined

  • Last visited

Converted

  • Gender
    Male
  • Location
    Romaina
  • Personal Text
    I am a new Modder!

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

megabitus's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  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?
×
×
  • Create New...

Important Information

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