Everything posted by Draco18s
-
[1.9.4][Solved] Block not updating when world re-entered
Its funny how you don't override writeToNBT or readFromNBT and still expect your data to get saved.
-
Missing Block Texture When Block is Placed
Your package name should include your mod name and your name. e.g. I use package com.draco18s.artifacts for one of my mods (modID is "artifacts"). Although I technically shouldn't use "com.draco18s" unless I actually own "draco18s.com"
-
[1.7.10] [solved] calling attackEntityFrom multiple times at once
The last attack shouldn't reset the hurt time, just FYI
-
[1.10]Items duping when i drop them[solved]
And what code is calling this code?
-
[1.9/1.8] Custom Crafting Machine Tutorials?
Technically speaking, you don't have to get that complex. Its only if you want to be able to have 3x3 crafting bench recipes. If your goal is to turn a "N-stack of Foo" into a "Y-stack of Bar" you can get away with a lot less. Container Slot GuiContainer IGuiHandler CraftingManager (this is just a class that stores the hashmap of ingredients -> results, allows you to add recipes and get recipe results).
-
[1.10/1.9.4] Block climb-able like a ladder
Note: For isLadder to work, two things must be true about your block: 1) Your block must be less than a full cube in the X-Z directions (player must be able to be inside the the standard block volume) 2) Your block must be solid
-
Forced to use Function/Field ID when calling vanilla code
I think he's trying to use Reflection and needs the SRG name. http://export.mcpbot.bspk.rs/
-
Update item in gui with inventory
Post the crash log.
-
[1.9.4] [SOLVED] Singular item class, change block placed upon registry
No, the question I'm asking is: Why do you have a HashMap at all?
-
Mod for 1.9.4 (Give the Item a Texture)
Do not use event.getSide() Use proxies.
-
[1.9.4] Velocity & Ammo Requirements
I think that method got removed in 1.9, but if you look at the bow you should be able to find the replacement code (its just a loop over the inventory looking for the right item).
-
How do you have a item take damage after used in a crafting table?
Did you set your item to override hasContainerItem and getContainerItem?
-
Using a group of items as potential ingredients in a recipe?
hasContainerItem and getContainerItem
-
[Solved] [1.9.4] Attack speed/damage
this.damageVsEntity(100) ?
-
[1.9.4][Solved!] Make custom shield take damage when blocking a attack
...You don't? You need to implement the method.
-
[1.7.10] importing mods to make addons
Signature
-
[SOLVED][1.9.4]Can't export a Java8 project
Its right there in the error: "lambda expression sare not supported in -source 1.6" You aren't compiling for Java 8, you're compiling for Java 6.
-
[1.9.4] Random items on right click
What part are you having trouble with? What have you tried?
-
[1.9.4]Player immune to damage from Wither
Look at the event class and figure it out.
-
[1.9.4]Player immune to damage from Wither
You're still trying to get an EntityPlayer from nowhere.
-
[1.9.4]Player immune to damage from Wither
Well, an ArmorTickEvent isn't likely to include a damage source is it? Also, you can't just add parameters to an event function and expect them to get filled in magically. Not to mention that your onArmorTick method has LivingAttackEvent as its event object.
-
[1.7.10] importing mods to make addons
Straight decompiling is insufficient. You need to deobfuscate. What you are seeing is SRG names and the development environment operates on MCP names.
-
[1.9.4] [SOLVED] Singular item class, change block placed upon registry
...What are you doing there? No really, I'm confused. Why are you doing that?
-
[1.9.4]Player immune to damage from Wither
if(event.souce == Damage.wither && event.entity is EntityPlayer && player.getEquipment == MyAntiWitherChest) { event.setCanceled(true); }
-
[1.9.4] [SOLVED] Singular item class, change block placed upon registry
*Facepalm* What if you do this in your preInit: myStoneItem = new ItemClass(Blocks.stone); myWoodItem = new ItemClass(Blocks.planks); What do you expect to happen?
IPS spam blocked by CleanTalk.