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.
  • Joined

  • Last visited

  1. I tried this in init Blocks.farmland.setTickRandomly(false); It seems to work fine. Is there any issues I may not have seen yet?
  2. I am trying to make farmland not require water. The idea is if you rightclick a dirt block with hoe it becomes tilled. I want to cancel any update on the tilled soil so it doesn't revert to dirt if no water is present. Is there an event that gets called when a block changes states? Is there another way recommended if no event exist? I want to do this for minecraft 1.7.10
  3. I use copydataold to copy the information from the entityIn to cell.mob(i'll try cell.mob=entityIn). I don't know what to initialize as because the entity could be a creeper villager or any other mob.
  4. I tried and I get a crash. I updated main post with the code and crash report. I tested it with a villager by having water push the villager into the block. looking at report null pointer from Entity's Rider: ~~ERROR~~ NullPointerException: null Entity's Vehicle: ~~ERROR~~ NullPointerException: null
  5. I have this "AlienCell" that is a tileEntity. I want to capture any entity that hits the block.I already have it setup, It crashes when saving though. TileEntity Block Crash
  6. I do not know what a lambda is or anything. That is java far more advanced then what I am trying to do which is add fluids. Can you just show how to make an anonymous class out of the interface
  7. Can you point me to your example i do not understand anonymous from java docs the terminology seems confusing.
  8. i have never heard of an anonymous class what is it. How would I make it?
  9. So i am using the fix as choonster example shows.I can run minecraft fine in eclipse and the texture loads fluids perfectly. The problem comes when i try to gradlew build the error i get is attached as a screenshot. http://www.mediafire.com/view/81y6pgvsa9c67q7/Screenshot_%2811%29.png
  10. UPDATE:my bad forge was not updated OP your code seems to have Fluid fluid = new Fluid(name); instead of choonster code. Fluid fluid = new Fluid(name, still, flowing); in private static Fluid createFluid(String name, String textureName, boolean hasFlowIcon) in Modfluids The constructor Fluid(String, ResourceLocation, ResourceLocation) is undefined
  11. @Override public boolean isAIEnabled() { return true; } I have an entity that extends entityTameable I have made a couple entity for 1.7.10 and those required me to use aiEnable to activate new Ai. My eclipse can't overide it Did it change in 1.8. Am I doing it wrong
  12. I have already tried ai task for my custom entity (i added a villager in the EntityAINearestAttackableTarget ai) the mob won't target them for some reason.the only time the mob attacks is if it was attacked first. That is why i was hoping to implement the target manually. I have tried darybob suggestion of adding superMethod on livingupdate it didn't fix it.
  13. How would I search for the nearest entity from this entity point of view and set it target. I tried this code but all it does is crash minecraft. I thought this would search within 10 blocks of the entity i could not find documentation on what is supposed to be passed in the parameters so i did take take a guess @Override public void onLivingUpdate() { if(this.getAttackTarget()==null) { Entity target=worldObj.findNearestEntityWithinAABB(redAlienBossEntity.class,this.getBoundingBox().expand(10, 10, 10), this); this.setTarget(target); } }
  14. @Override public boolean attackEntityAsMob(Entity entity) { System.out.println("Attacking " + entity.getClass().getSimpleName()); return true; } I added this statement they do not attack each other, I get no console output.If i Attack I do get console output of them attack me I HAve also tested it with villager class my mob doesn't attack anyone through targeting Updated code for the class
  15. This entity throwable renders and has a texture.When I throw it out of my item it passes through my target(cow) and hits the floor. I have system.out and Is hit gets called is remote gets called but not is entity. I visually see my texture pass through the cow. I see it hit the floor passing through the cow. I would like to know why it doesn't hit the cow on impact. are there boundingbox on throwable (possible problem) but i literally hit dead on EnityFireAttack

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.