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.

TheRealMcrafter

Forge Modder
  • Joined

  • Last visited

  1. Correct me if i'm wrong, but players don't use SharedMonsterAttributes, because player != monster
  2. Can you post the class where you register your tile entity?
  3. Can you post your tile entity class and the crash report please?
  4. You are setting the inventory slot with your item, and then getting the item you just set. You want to do this: ItemStack slotStack = inventory.getStackInSlot(slot); ItemStack currentStack = inventory.getStackInSlot(inventory.currentItem); if (slotStack != null){ inventory.setInventorySlotContents(inventory.currentItem, slotStack); } else { //return here? if you want to } if (currentStack != null){ inventory.setInventorySlotContents(slot, currentStack); } else { //same as above } Also, I dont know if you can do these operations on the client side, since you are using Minecraft.getMinecraft().thePlayer (client side player)
  5. I'd suggest studying in depth EntityAIOwnerHurtByTarget and EntityAIOwnerHurtTarget
  6. Okay, well coolAlias' point still goes, you dont need to make 2 threads about the same thing.
  7. As coolAlias pointed out, he already told you in your other thread that was "SOLVED 100%" that you are not handling cases where the entity can be null.
  8. Also, there isnt any EntityUndead class in 1.7.10 this.tasks.addTask(5, new EntityAIWatchClosest(this, EntityUndead.class, 1.0F)); Do you see any red squares on the right side of your class file?
  9. I believe he wants an auto killing mod, where as long as there is an entity in the crosshairs, attack it (like for a blaze farm, in his case)
  10. Listen to what people are telling you.... if (!this.getAggressive()) { means if this.getAggressive equals false which means as long as the mob IS NOT aggressive, do the following block of code
  11. It actually crashes on expand(10, 10, 10)
  12. You do not handle a case where Minecraft cannot find any entities. What is on this line? at com.ferret.myfirstmod.items.ItemIceMask.onArmorTick(ItemIceMask.java:86) EDIT: Woops, i'm blind. I see it.
  13. Try naming them something like SteamEngineWaterPortChanged, then back to steamEngineWaterPort I had this before, where I had SiliconOre, so I renamed it to siliconOre. Didn't fix the problem. Put it back to SiliconOre, then added something onto it. Then reverted it back to normal.

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.