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.

Draco18s

Members
  • Joined

  • Last visited

Everything posted by Draco18s

  1. You will need to write a custom AI task that does what EntityAINearestAttackableTarget does, except it also includes an "exclude class" parameter and checks against it.
  2. Break* Also, that still doesn't explain what you mean by "animate." Do you want one tab to slide in and another one slide out (tweening), or do you just want to switch which tab is sticking out?
  3. Before 1.9, armor works on the 4% model. 24 points of armor is 96% damage reduction, meaning your 50 damage attack only does 2 actual damage.
  4. Again, that's what armor toughness is for.
  5. Keep changing the number of megabytes of ram up and down, depending on the behavior when run. You'll either get "unable to allocate" or "out of memory." If you get "unable to allocate" you need to reduce the value in the config file, if you get "out of memory" you need to increase it. It is possible that there is no value that will work, because your computer is from the dark ages and you need a new system (or possibly, just buy more ram).
  6. http://minecraft.gamepedia.com/Armor#Armor_Toughness
  7. Armor is not flat damage reduction, it's percentage. 24 points of armor times 0.04 is 96%. 50 * 0.96 is 48. 50 - 48 is 2. 2 damage is taken. (Note: the math is actually more complicated than that due to the change in how the percentage is calculated, in that the more damage you take at once, the less effective armor is, but even so, there's a maximum armor rating. Instead you need to look at what diamond armor does for "armor toughness" which reduces that reduction).
  8. You're going to have trouble. Your computer only has 2GB and Gradle wants 2GB. Mind, 2 GB isn't actually how much that's needed, it's really down around 1.6GB, but you'll have to play around with the numbers until either it works or you find out that you can't. (I can't even allocate 2GB on my machine that has 3.25 total!)
  9. Why are you recreating a UUID system? The game already has UUIDs for entities.
  10. Lets see here... When the inventory changes, you're saying "I need to be saved!" Good. When writeToNBT is called, you save the inventory. Good. When readFromNBT is called, you read it back out again. Good. When the TE needs to send a description packet to tell the client what the TE data is....you do fuck all. Derp.
  11. You never call onUsingTick from a method that actually gets called every tick. Like updateTick() Also, update. 1.7.10 is 2 years old and no longer supported on this forum. Every 1.7.10 thread is getting locked by diesieben07 or other moderators when found. We tell you to update because we can only support so many versions. If you want help for a really old version of Minecraft, you aren't going to find it here.
  12. I know for myself it comes from having used IDEs that don't have debuggers* or which have really shitty ones.** So I had to resort to other techniques of getting at the same information. So I forget it exists, but I'm recovering slowly. *Unity, because the engine where you run things isn't the same program where you write code. **Flash's debugger is ungodly piss-poor at showing you anything useful.
  13. Because that method totally knows about your custom fields. Go to that method and go look at the source behind it. You'll find that all it does it say "hey! I need to be saved to disk!"
  14. Gotcha. I haven't quite figured out all the things with capabilities yet. Definitely haven't done any based on entityConstructing (that is, I've done a custom Cap on a TE of my own design and used the ItemHandler one).
  15. public static final Capability<IDestruction> DESTRUCTION_CAP = null; Do you ever make this field not-null?
  16. You should still do this and are not.
  17. java.lang.NullPointerException at bloopers.spearmod.reach.MessageExtendedReachAttack$Handler.onMessage(MessageExtendedReachAttack.java:59)
  18. Can you show your main class ( SprearMod )?
  19. No, that is not what you do. MessageContext is not an IMessage. And you still haven't posted a crash log. Try looking at this: http://www.minecraftforge.net/forum/index.php?topic=20135.0
  20. Your goal is to locate a player object.
  21. Of course there's not an error. Eclipse can't tell that you're referencing a null object, that's a runtime problem.
  22. Well, public class VarlistNecromance isn't a valid class. If you want a valid, empty class, you need package [...]; public class VarlistNecromance { } Where the [...] is a package declaration and the file is located there.
  23. You still didn't post the error, however that's likely your problem: You call this method here, storing the result: final EntityPlayerMP thePlayer = (EntityPlayerMP) SpearMod.proxy.getPlayerEntityFromContext(ctx); Then you do this: thePlayer.getServer() Which won't work because: return null; You need to make that method return something other than null. Take a look at the MessageContext object.

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.