-
Posts
588 -
Joined
-
Last visited
Posts posted by shadowfacts
-
-
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.
-
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.
-
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
- Create a custom task that:
-
minecraft:lava_still
and
minecraft:water_still
, IIRC
-
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:
- Bind the blocks texture (
-
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.
-
Add one of the formatting codes to the beginning of the localized name in your localization file.
-
Just store the amount returned from the item's receive method and pass it into your extract method.
-
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.
-
Look at pretty much any vanilla item model, e.g. the spawn egg. Almost all of them extend
builtin/generated
.
In 1.9 it has changed to
item/generated
which includes the default transformations.
-
1. Wrong section
2. You're trying to use a 1.8(.9) mod on 1.7.10.
-
Here's an example: The vanilla
ArmorMaterial
enum. The
addArmorMaterial
method takes the exact same parameters as the
ArmorMaterial
constructor.
-
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.
-
No. (But you shouldn't be changing registry names in the first place.)
-
Post the log from when the game crashed.
But there is a bug that will cause game crashes when you put your mouse cursor on the item.
-
Don't, update. Seriously. ASM transformers are bad and you should never use them. Update to 1.9 and use Forge's
BrewingRecipeRegistry
.
-
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.
-
1. Wrong section
2. You need to install Baubles
-
-
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.
-
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
-
How did you change the Java version, using
sourceCompatibility
and
targetCompatibility
in your
build.gradle
file?
-
It looks like the Gradle daemon is having problems, try running
gradlew build
with the daemon disabled, as described here.
-
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)?
Block mapping texture
in Modder Support
Posted
Override the method that takes an
for the side and returns an
and return the correct icon for the side. You'll also need to register your icons in the
method of your block.