Everything posted by Draco18s
-
[1.8.9] Updating 1.7 to 1.8.9
All of the methods you have indicated no longer take integer x y z parameters but a single BlockPos object, which is a wrapper around integer x y z.
-
Looking for tutorial on "version": "${version}"
Gradle has a replace method/option. I use it for my mod versions, but I can't get at my code atm to provide an example.
-
(Solved) [1.8.9] TESR Animation is smooth but speed changes depending on FPS
Partial ticks is what happens when you take "1.73489 ticks elapsed" (13ms left until next tick) and express it as "1 tick" (plus a little bit). So you add, not multiply.
-
[1.7.10] Access transformer issue
Reflection's setAccessible(true); would have done that too.
-
[1.7.10] Changing texture based on item in Gui slot
You really need to go learn programming before modding. What you are trying to do is really quite straight forward. This won't solve your problem, but it will show you how I handled something similar. @Override public IIcon getIcon(ItemStack stack, int pass) { IIcon i = itemIcon; if(pass == 0) { if(stack.stackTagCompound == null) { return itemIcon; } i = (IIcon) ArtifactsAPI.itemicons.icons.get(stack.stackTagCompound.getString("icon").toLowerCase()); if(i == null) { i = itemIcon; } } else { if(stack.stackTagCompound == null) { return (IIcon) ArtifactsAPI.itemicons.icons.get("overlay_artifact1"); } i = (IIcon) ArtifactsAPI.itemicons.icons.get("overlay_"+stack.stackTagCompound.getString("icon").toLowerCase()); if(i == null) { i = (IIcon) ArtifactsAPI.itemicons.icons.get("overlay_artifact1"); } } return i; }
-
[1.7.10] Changing texture based on item in Gui slot
What part of "read the NBT inside getIconIndex" have you not understood?
-
[1.7.10] Changing texture based on item in Gui slot
You compare it to the date stored in the NBT!
-
[1.8.9] Basic method @Override not working?
You can't override a static method
-
Multiple Potion effect bug ??
If anyone doesn't get that this is a joke... then I don't even know. Roughly equal to a Euro, calling them equal is good enough for forum work. It's really about 8 cents weak on the dollar side ($1.08 = 1€)
-
[1.7.10] Changing texture based on item in Gui slot
Your getIconIndex method hasn't changed.
-
Multiple Potion effect bug ??
$25? That's far too low. I'm getting $35 contract right now, I wouldn't take less than $75/hr freelance.
-
[1.7.10] Problem with NBT not properly saving
I'm sure it would help if writeSettingsToNBT and readSettingsFromNBT was actually being called somewhere.
-
Multiple Potion effect bug ??
- Multiple Potion effect bug ??
This is kiiiiiind of a big deal with the regeneration effect. Because regeneration heals you when the ticks remaining % 10 == 0. If it's always 400 ticks left, then it's always %10==0, ergo it heals every tick.- 1.8.9 getExtendedState performance - neighbor block state vs. tile entity
Due note that the tradeoff here is more memory required to maintain the TE. Many things are a trade between CPU and RAM.- [1.8.9] Custom Enchantments
Did you override canApply(ItemStack) ?- 1.8.9 getExtendedState performance - neighbor block state vs. tile entity
3000 nanos is NOTHING. A TE will have more overhead than that.- [1.8.9] Animation only updates when opening GUI
I bet the value returned by getDeviceWashTime() is only calculated server side and synced south detectAndSemdChanges()- [1.8.9] Animation only updates when opening GUI
Show your rendering code- [1.7.10]Newly Modded Saplings don't Render Properly at a Distance [SOLVED]
Java != Javascript- [1.7.10] Changing texture based on item in Gui slot
Nope. You need to return an existing icon. Setting the texture string does jack shit after the texture map has been finalized.- [1.7.10] Changing texture based on item in Gui slot
You want to do the same thing as that function, see, it extracts ItemStacks, and compare THAT.- Question about max health
Everything you could ever want https://github.com/Draco18s/Artifacts/blob/master/main/java/com/draco18s/artifacts/components/ComponentHealth.java- [1.7.10] Changing texture based on item in Gui slot
You see that "read from nbt" method? That looks kind of important and related to what you're doing.- [1.7.10] Changing texture based on item in Gui slot
If your item stores another item inside it, that item is stored in the nbt data of the item stack passed to that function. - Multiple Potion effect bug ??
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.