Everything posted by shadowfacts
-
[1.10.2] [SOLVED] Gui That Doesn't Pause Game
You should just render your stuff directly inside the event handler.
-
[1.11] Issues with Tab Icon Item
How is returning an ItemStack incompatible with your code? Just change the return type and return a new ItemStack(ModItems.coke) .
-
[1.9.4] Blocks not rendering change
Items are singletons (only one instance of them ever exists), so instance fields can't be used to store per-stack data. The ItemStack's NBTTagCompound should be used to store data that is per-stack.
-
[1.10.2] Sending Packets from Client to Server
Your packet needs to have a no-arguments constructor.
-
[1.8.9] BreakEvent.block cannot be resolved or is not a field
In 1.8+ this was replaced with an IBlockState field named state . You must also use the getter ( getState() ) instead of accessing the field directly.
-
[1.10.2] Custom Config Files
Why do you want to use your own format? Is something wrong with any of the existing ones? There's Forge's builtin configuration format (see net.minecraftforge.common.config.Configuration ), there's JSON which can be used easily because Google's Gson is provided. There's also Typesafe's Config which is provided because Scala is present. You could also use Java's builtin properties system.
-
[SOLVED] how do you export the jar file?
Of course it worked. You're using a Java 8 feature (lambdas) so you need to target Java 8 when you're building.
-
Where are .srg files in 1.10.2?
They're in the Gradle cache for me: ~/.gradle/caches/minecraft/de/oceanlabs/mcp/mcp_snapshot/20161016/1.10.2/srgs/ I presume there are also SRG files for non-snapshot mappings, I just don't have any on my computer.
-
[1.9.4] Using the Mekanism API
1. Your RF API is fine. You may want to remove it so the copy in the Mekanism jar is used so there's 1 less copy of the API floating around. 2. You can clone the repository from GitHub and attach the sources to the jar. 3. You'll be able to access any of the classes in the jar, so all of them. It's perfectly safe to do so, however, you should avoid using internal Mekanism classes as they are more likely to change and break your mod.
-
[solved] Change vanilla block textures without resource pack
Why would you want to do it in code? You could accomplish this with 0 lines of code, just by adding your replaced resources to src/main/resources/assets/minecraft in the correct subdirectory from there. As long as your built mod is in the mods directory and being loaded by Forge, users won't have to do anything to enable the resource pack.
-
Ore/World Generation Help {SOLVED}
1. You should really name your classes using PascalCase as is Java convention. 2. Show how you're registering your world generator.
-
[1.10.2] [SOLVED] Custom Parent JSON
The cube and cube_all models are just normal models, you can use whatever model you like for the parent, even minecraft:furnace .
-
[1.10.2] How do I get started with Forge Energy?
Create an IEnergyStorage implementation (or use the default Forge one, EnergyStorage ), expose it via hasCapability and getCapability and use it the same way you'd use Tesla or RF using the receiveEnergy and extractEnergy methods.
-
[1.10.2] NPE on getRegistryName
That's completely personal preference and doesn't have any affect on the compiled code (excepting overloaded parameters). I personally don't use this because I feel it's unnecessarily verbose and doesn't provide any valuable information.
-
[1.10] Items' icon size
Did you change the parent and remove the transformations from your model? If so, post the updated code.
-
-
In your build.gradle file, you need to set the sourceCompatibility and targetCompatibility properties like so: sourceCompatibility = 1.8 targetCompatibility = 1.8
-
[1.10] Items' icon size
The parent for your model should be item/generated so it inherits the transformations used by all vanilla models.
-
[SOLVED] Wait (x) seconds *WITHOUT PAUSING GAME*
That's not at all how Thread.sleep works. Thread.sleep, as the name implies blocks the entire thread for the duration. As diesieben07 said, you have to use a tick handler and count the number of ticks that have passed to determine the amount of time that has passed.
-
[1.10.2][IBlockState][SOLVED] getStateFromMeta is deprecated. What should I use?
Nothing, use that. Mojang is using the @Deprecated annotation to mean that nobody should be using it unless they're overriding it or they absolutely have to.
-
[1.8.9] Could not find or load main class GRADLE_OPTS=-Xmx3072m
Run gradlew build with the --stacktrace option and post the entire log.
-
[1.8.9] Could not find or load main class GRADLE_OPTS=-Xmx3072m
That's not how you allocate more memory. Use the org.gradle.jvmargs property in the ~/.gradle/gradle.properties file as described here
-
[1.10.2] [SOLVED] How to test block is air or fire etc.
Mojang uses @Deprecated wrongly, they use it to mean nobody should use it unless they are Mojang or are overriding the method. The IBlockState parameter is necessary so blocks can change their material based on their state. Use IBlockState#getMaterial to get the material of a given state.
-
Minecraft Overwrites Forge Files [1.4.6]
Did you read the EAQ? 1.4.6 is nowhere near the latest version.
-
Solved [1.10.2] ClientProxy Error
You need to create a class at that specific package with that specific name ( net.dtm450.bigindustry.proxy.ClientProxy ) that extends your CommonProxy class.
-
[1.7.2] How to have an item's texture change while holding
Update to 1.10.2, 1.7 is ancient.
IPS spam blocked by CleanTalk.