Everything posted by Draco18s
-
Mob attack all other mobs but not itself.
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.
-
[1.8.9] Armor makes me unvulnerable ... how to change it?
It was added in 1.9.1
-
Minecraft [1.10.2] Cusome Menu Need Help
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?
-
[1.8.9] Armor makes me unvulnerable ... how to change it?
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.
-
[1.8.9] Armor makes me unvulnerable ... how to change it?
Again, that's what armor toughness is for.
-
Problem with setting up workspace, and eclipse
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).
-
[1.8.9] Armor makes me unvulnerable ... how to change it?
http://minecraft.gamepedia.com/Armor#Armor_Toughness
-
[1.8.9] Armor makes me unvulnerable ... how to change it?
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).
-
Problem with setting up workspace, and eclipse
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!)
-
[1.10.2][Capabilities]How do I create my own capability?
Why are you recreating a UUID system? The game already has UUIDs for entities.
-
Capability are not saving
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.
-
Make one item consume another while in the inventory?
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.
-
[1.10.2] Event not working at all.
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.
-
Capability are not saving
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!"
-
[1.9] Having Problem with Capabilities System
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).
-
[1.9] Having Problem with Capabilities System
public static final Capability<IDestruction> DESTRUCTION_CAP = null; Do you ever make this field not-null?
-
[1.10.2] Event not working at all.
You should still do this and are not.
-
[1.10.2] Event not working at all.
java.lang.NullPointerException at bloopers.spearmod.reach.MessageExtendedReachAttack$Handler.onMessage(MessageExtendedReachAttack.java:59)
-
[1.10.2] Event not working at all.
Can you show your main class ( SprearMod )?
-
[1.10.2] Event not working at all.
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
-
[1.10.2] Event not working at all.
Mhm
-
[1.10.2] Event not working at all.
Your goal is to locate a player object.
-
[1.10.2] Event not working at all.
Of course there's not an error. Eclipse can't tell that you're referencing a null object, that's a runtime problem.
-
Forge Error Reached end of file while parsing
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.
-
[1.10.2] Event not working at all.
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.
IPS spam blocked by CleanTalk.