Everything posted by shadowfacts
-
Block mapping texture
Override the method that takes an int for the side and returns an IIcon and return the correct icon for the side. You'll also need to register your icons in the registerIcons method of your block.
-
[Solved][1.8.0]Forge 1.8 crashes with optifine 1.8, on eclipse & intelij
Optifine isn't going to work in the Forge development environment. It might happen to work in a Forge normal env, but it won't work in the deobfuscated environment, just develop without Optifine. Unless you're running on a potato (in which case you shouldn't be trying to play modded MC), you'll be fine.
-
[Solved][1.8.0]Forge 1.8 crashes with optifine 1.8, on eclipse & intelij
Optifine isn't going to work in the Forge development environment. It might happen to work in a Forge normal env, but it won't work in the deobfuscated environment, just develop without Optifine. Unless you're running on a potato (in which case you shouldn't be trying to play modded MC), you'll be fine.
-
[1.9.4] [UNSOLVED] Build Number
I'm not just going to give you code, but what you'll need to do is: Create a custom task that: Reads the gradle.properties file Increments the version number found the in the file and saves it to the properties object and increments the project version property Saves the updated properties back to the gradle.properties[code] file
-
1.7 Animated fluid in gui? UNSOLVED
minecraft:lava_still and minecraft:water_still , IIRC
-
1.7 Animated fluid in gui? UNSOLVED
If you want to just draw the animating lava texture (like how it is in the world), you don't need to do something that complicated. You'll want to: Bind the blocks texture (TextureMap.locationBlocksTexture , IIRC) Get the TextureAtlasSprite for the fluid from the texture map Use the getInterpolatedU and getInterpolatedV methods to get the U and V coords to use when you draw the texture onto the screen This is how I did it for my GUI fluid indicator, but it's for 1.8.9 so yours (mostly just the drawFluidQuad method) will be a bit different: https://github.com/shadowfacts/ShadowMC/blob/master/src/main/java/net/shadowfacts/shadowmc/gui/component/GUIFluidIndicator.java#L31-L69
-
[1.9.4] [UNSOLVED] Build Number
You could have Gradle increment your version and save it to a file every time you run the build task, however, you'd probably be better off just incrementing it manually.
-
[1.8.9] Custom Item Change
Add one of the formatting codes to the beginning of the localized name in your localization file.
-
[1.7.10] Removing RF from storage as item is receiving energy
Just store the amount returned from the item's receive method and pass it into your extract method.
-
Introduction and New Server for Forums!
There's a slight bug with the syntax highlighter: // Tools (After Enum it's; Harvest Level, Durability/Uses The highlighter thinks everything after the ' is in a string, but it's not because the line is commented.
-
[1.9] How do I add a multi-layer texture to multiple items
In 1.9 it has changed to item/generated which includes the default transformations.
-
1.7.10 crash report
1. Wrong section 2. You're trying to use a 1.8(.9) mod on 1.7.10.
-
[1.9] EnumHelper
Here's an example: The vanilla ArmorMaterial enum. The addArmorMaterial method takes the exact same parameters as the ArmorMaterial constructor.
-
[1.9] en_US.lang/json - Anyway to pull names from a library/reference class?
XKCD 1319 is applicable. But yes, you could use a script to generate things like JSON files and language files. However as Lex said, they are fundamentally different things.
-
[1.9] en_US.lang/json - Anyway to pull names from a library/reference class?
No. (But you shouldn't be changing registry names in the first place.)
-
I got a problem about how to make a dynamic item icon?
Post the log from when the game crashed.
-
[1.7.10] ASM. Class Transformer. Coremod. A few questions
Don't, update. Seriously. ASM transformers are bad and you should never use them. Update to 1.9 and use Forge's BrewingRecipeRegistry .
-
A lot of errors in my Item Class [1.9]
You don't create a different tool/armor material for each tool/armor piece. Create 1 for each material. e.g. Copper tool material, tin tool material, bronze tool material, etc.
-
Mod Crash Report Help
1. Wrong section 2. You need to install Baubles
-
[1.9 and 1.8] Compiling Mod
FYI, both forms work.
-
Minecraft W/ Forge Won't Load
1. Post logs 2. If you're on 1.8, use 1.8 mods, if you're on 1.8.9, use 1.8.9 mods. It's really not that complicated.
-
[1.9 and 1.8] Compiling Mod
To force Gradle to compile/target Java 8, you need to add this to your build.gradle or gradle.properties file: sourceCompatibility = 1.8 targetCompatibility = 1.8
-
[1.9 and 1.8] Compiling Mod
How did you change the Java version, using sourceCompatibility and targetCompatibility in your build.gradle file?
-
[1.9 and 1.8] Compiling Mod
It looks like the Gradle daemon is having problems, try running gradlew build with the daemon disabled, as described here.
-
[Semi-Solved] [1.7.10] Getting RF item to charge in a custom charge
Why are you storing the energy as a string in NBT then calling parseInt instead of just storing it as an int (using setInteger & getInteger)?
IPS spam blocked by CleanTalk.