Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

sudwood

Members
  • Joined

  • Last visited

Everything posted by sudwood

  1. Hello, I have been having a problem with my mod since I updated to mc 1.6.2. I'm using forge version 791 and since I updated if I enter a world in survival mode or switch to survival after entering, the world stops rendering. If i create a world as a survival world it renders the world for half a second before it stops rendering it. If i disable the entirety of my mod it stops having the error but I am unable to pinpoint where the error is because the console is not showing any errors while minecraft is running. bellow are screenshots of a world generated as a creative world the second being after I switched to survival mode. Console output: Creative mode: Survival mode: Thanks for any and all help provided!
  2. All you need to do is make a event handler and register it then add this code. @ForgeSubscribe public void entityAttacked(LivingAttackEvent event) { EntityLiving attackedEnt = event.entityLiving; DamageSource attackSource = event.source; if(attackedEnt instanceof EntityPlayer) { if(attackSource == DamageSource.fall) { if(attackedEnt.getActivePotionEffect(Potion.jump)!=null) { event.setCanceled(true); } } } }
  3. Hey, I threw together something that might help, the function returns the spaces that are free in the chest and the ones that have the same item or block whose stacksize is less then the max stack size for that item or block. with this it should be pretty easy to add an item to the correct slot in the chest. public List<Integer> checkSpace(int x, int y, int z, ItemStack stack) { List<Integer> freeSpaces = new ArrayList(); try { TileEntity tempTile = worldObj.getBlockTileEntity(x, y, z); if(tempTile!=null&&tempTile instanceof IInventory) { int i =0; int num = 0; boolean didFail = false; while(!didFail) { try { ((IInventory) tempTile).getStackInSlot(i); i++; num++; } catch(Exception e) { didFail = true; } } for(int ix = 0; ix<num; ix++) { if(((IInventory) tempTile).getStackInSlot(ix)==null) { freeSpaces.add(ix); } else if (((IInventory) tempTile).getStackInSlot(ix).itemID == stack.itemID) { if(stack.stackSize+((IInventory) tempTile).getStackInSlot(ix).stackSize<stack.getItem().getItemStackLimit()) { freeSpaces.add(ix); } } } } } catch(Exception e) { e.printStackTrace(); } return freeSpaces; }
  4. That is all I am getting for a crash report, minecraft itself just says that I am disconnected from the integrated server.
  5. I have been working on my mod for a while and one of the last problems is getting my dimension to work. I currently am getting the following crash in the eclipse console, it is not generating one in the jars/crash-reports file. Crash: @mod file: WoldProvider: Biome: If anything other files are needed just ask. Thanks for any help you can give
  6. sudwood replied to DjTamo's topic in Modder Support
    The only ideas I can come up with are: 1. If the item displaying the hud is armor then in the servertick handler check for the armor being worn then if it is display the hud. 2. If the item is right clicked you could just save the true/false that the item makes to the player nbt data and display it that way.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.