Everything posted by Animefan8888
-
[1.12] What is @ObjectHolder?
You simply just needed to use reflection to change the values of the fields in your preInit method seeing as how botania still uses an old method of instantiating their IForgeRegistry fields and make your mod load after botania, which it should do anyways. Now what would have made it a pain is if vazkii had updated to the new way because then you would have had to use reflection to change the fields and register them yourself. Of course it's more work than simply overriding the registry, but let's be real here why couldn't you have just done a pull request on vazkii's github to allow for the configuration options. It probably would've been easier to create than an addon.
-
[Solved] Recipe via json not working.
Post your log it should have the error in it. However I think you Json doesn't have the right syntax.
-
[1.12] What is @ObjectHolder?
True, but lets be honest the likelihood of this occurring isn't that high. I can't name a mod that actually does this to modded items or blocks. That's not what I was doing, I had switched to explaining what you could do instead of @ObjectHolder
-
[1.12] What is @ObjectHolder?
The @ObjectHolder annotation populates a static final field that exists in one of the forge registries. IE if I wanted a local instance of the Emerald Item @ObjectHolder("minecraft:emerald") public static final Item EMERALD = null; That field now stores Items.EMERALD in it. You can use this for your Items, but it is by no means required to use to get rid of static initializers. To get rid of static initializers means to not do public static final Item NAME = new Item().setRegistryName...; // OR public static Item NAME; static { NAME = new Item().setRegistryName...; } So instead you should do public static void registryEvent() { ModItems.NAME = new Item().setRegistryName... // Register. }
-
itemContainer in crafting
ItemStacks cannot and should not ever be null. Use ItemStack.EMPTY.
-
Can someone explain how/when chunk unloading occurs?
I believe there is a class called ForgeChunkLoader or ForgeChunkManager? That allows you to do something with them. I'm not really sure.
-
Can someone explain how/when chunk unloading occurs?
If it is not being manually kept loaded, ie spawn chunks or chunk loader. Then once they are a distance away from the player they unload, in singleplayer it is the render distance (I believe) in multiplayer it's a "render distance" that is specified in the server.properties file.
-
My item texture is not loading!!
Learn Java before making a mod. Try a different tutorial possibly in vain. Or better yet, learn Java.
-
Different version when cloning forge repo.
- [1.7.10] how to apply 3d models to item´s for minecraft 1.7.10
Sorry, 1.7.10 is no longer supported on here due to it's age. It's more than 4 years old. Please update to the latest version to receive assistance.- [SOLVED] [1.12.2] GUI Help
Its a class you have to make. It can be named anything you want, but it needs to have the @Mod annotation.- [SOLVED] [1.12.2] GUI Help
Any Java tutorial really. Stanford has a really good YouTube playlist of their Java course. That code looks good.- [SOLVED] [1.12.2] GUI Help
He meant a StackOverFlow Exception. You shouldn't be calling a method inside of itself unless you know what you are doing. You need to call your register method from your @Mod class.- [SOLVED] [1.12.2] GUI Help
What is in here?- [1.12.2] Changing the player's food and saturation levels
Post the log for the server. Uh, no. Where did you hear that?- We need help!!
I assume you mean for 1.13, in which case. "The update for 1.13 is being worked on, but there is no release date for it yet. Updates to a new version of Minecraft take a lot of work, so please be patient. Please refrain from making "is it done yet?" threads. The update will be ready when it is ready." If not post what you did after you downloaded the mdk.- Add a slot to a GUI .
Dont post your code as a download, use the built in code format(<>), or an online code site(github, bit bucket, etc.). There is a method in the Container class called addSlot use that.- [SOLVED]Huge amount of mobs in custom biome
What did you get from the debug session.- Custom block not dropping when broken by hand
Well, don't follow it. You don't always find the correct answer on YouTube. Instead do what V0idWa1k3r said.- [1.12.2] Blocks and Items won't show in creative tab
Dont do this, to use ObjectHolder they have to be null. Plus they shouldn't be instantiated using a static initializer. Use a HashSet, then iterate when you register. You can literally add it to the set from inside the constructor. You also need to set the registry name there.- [SOLVED]Huge amount of mobs in custom biome
My last recommendation is to step through the mob spawning code with the debugger built into your IDE.- [SOLVED]Huge amount of mobs in custom biome
Try removing your BiomeDictionary registries.- [1.2.5] Setting up a mod in this really old version?
It's probably java 6 as that's really old, but it might be java 7. Definitely not 8.- [SOLVED]Huge amount of mobs in custom biome
Could you tell me what the parameter names for Biome.SpawnListEntry are, that may solve your problem.- [1.2.5] Setting up a mod in this really old version?
@Vert3x I'm sorry but that version isn't supported here because of its age. No one on here is going to remember how to set it up or even mod for it. - [1.7.10] how to apply 3d models to item´s for minecraft 1.7.10
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.