
Everything posted by Cadiboo
-
java.lang.NullPointerException: Ticking entity crash when i die
Problem with
-
[1.13] How to set HarvestLevel for a block?
This means to override those two methods and return the values you want (if you don't know how to override methods you need to learn basic Java). The two methods are and You can use vanilla's pre-made ToolTypes such as Harvest levels are
-
Building Mod With Referenced Libraries
Why. “1.0” is not a valid variable name in any language. Neither is “1.12.2”. “${1.0}” is not a valid version. Neither is “${1.12.2}”. the syntax is “${variableNameFrom build.gradle}”
-
Building Mod With Referenced Libraries
post your build.gradle and your mcmod.info.
-
Building Mod With Referenced Libraries
- Building Mod With Referenced Libraries
The whole error. Where is the pixelmon library?- [1.13.2] Rotation code in classes?
Everything is the same except #2 which has been moved to its own method (fillStateContainer)- Sound Not Working
You need - the SoundHandler instance from getSoundHandler - Field Objects for sndManager and playingSounds Then get the value of each field using Field#get on the appropriate instance. Critique: Why do you store this in a variable? You only use it once Why is this fully qualified? Isn’t this method public? What is soundH? The SoundHandler doesn’t have this value, the SoundManager does. The SoundHandler has an instance of the SoundManager which you need to get though (sndManager). You also need to use the SRG name of the field which you can look up at many places.- Sound Not Working
Example of something similar (getting and then setting Minecraft#blockRendererDispatcher#fluidRenderer) https://github.com/Cadiboo/NoCubes/blob/ef2968d83544597fd5d267e476742beb2ec9a177/src/main/java/io/github/cadiboo/nocubes/client/ClientProxy.java#L89- LiteLoader+Forge 1.12.2 crash with Lapito's Galacticraft Modpack Version 8.6.6
LiteLoader appears to be providing an older version of Mixins (a library for coremodding) than is required by SGCraft. Sollution: uninstall one of the mods or get a LiteLoader version that includes a Mixin version greater than or equal to 0.7.10.- Sound Not Working
Minecraft.getMinecraft().getSoundHandler().sndManager.playingSounds. As diesieben07 said, sndManager and playingSounds are private, so you will need to use Reflection or an Access Transformer to access them.- Sound Not Working
My bad, It doesn't have to be a method, it can also be a field.- Sound Not Working
The "#" is the same as a ".", it just means "instance method" "instance" rather than "static method" "static" Read https://stackoverflow.com/questions/37628/what-is-reflection-and-why-is-it-useful Then use the ObfuscationReflectionHelper (only in Forge versions above 2782)- LiteLoader+Forge 1.12.2 crash with Lapito's Galacticraft Modpack Version 8.6.6
Post you logs- Cannot install forge for windows 10
You need to install Java- Trouble with Cadiboo's example mod.
I explicitly left automating itemblock and model registration out of my 1.12.2 example mod, it’s still in there though just commented out in one of the registration loops (the models IIRC)- 1.12.2 Use 2 blockstates
The above code won't quite work with OptiFine because it replaces ChunkCache with its own implementation, you can ignore this if you don't particularly care about compatibility. I can't think of how to solve this problem easily otherwise I would provide a solution- [1.12] World.getTileEntity returns null allthough TileEntity is loaded
Those are expensive operations, cache the result of them.- [1.12] World.getTileEntity returns null allthough TileEntity is loaded
Don't in short. If you need that for logic on the client, you should probably be doing that logic on the server and sending the result to the client.- 1.12.2 Use 2 blockstates
You can’t store blockstates as a tile entity. You can have an infinite amount of variables in a tile entity though which is probably what you meant.- It looks like you are using an unsupported modified version of the game. PLZ HELP
Blood magic requires a newer forge version than the one you are using.- [1.12.2] What is the difference between using a String key for tile entities vs ResourceLocation?
Not safer, but better. Feel free to read about the concepts at http://wiki.c2.com/?StringlyTyped- [1.12.2] What is the difference between using a String key for tile entities vs ResourceLocation?
The string version of a ResourceLocation is "domain:path". Using this correctly is fine, but the problem with this is that "path" turns into "minecraft:path" when parsed into a ResourceLocation which can lead to lots of bugs.- registerExtendedProperties in 1.10.2
Capabilities are the replacement for that system in 1.12.2, I'm not sure about 1.10.2 though- Trouble with Cadiboo's example mod.
You don't actually register any of your objects. What I'm doing //Registration event.getRegistry().registerAll( setup(new ItemNewApproach(), "new_approach"), setup(new ItemNewApproach(), "new_approach2") ); What you're doing setup(new ItemNewApproach(), "new_approach"); setup(new ItemNewApproach(), "new_approach2"); - Building Mod With Referenced Libraries
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.