Everything posted by Animefan8888
-
[1.12] What changed with the Model Loader?
Show where you call ModelLoader.setCustomModelResourceLocation
-
[1.12] BlockContainer wont show block when placed
It also overrides the method and returns a more proper value.
-
[1.12] BlockContainer wont show block when placed
That can all be done in the Block class. Look at BlockFurnace for an example of the particles. And you can look at the vanillas json files for examples of those.
-
[1.12] What changed with the Model Loader?
The registry name should follow these two rules It should contain the modid as the domainName. It should be unique. Though i need to clear something up and it will be easier done through this modding video I made for 1.10.2, which doesn't use the events so ignore that part, but what it does do correctly is how to call the ModelLoader.setCustomModelResourceLocation method. At the bottom you will see how it is called, you may need to pause the video.
-
[1.12] What changed with the Model Loader?
Don't do new ResourceLocation(String, String) Block#getRegistryName() returns a ResourceLocation.
-
[1.12] BlockContainer wont show block when placed
Do you plan on having movement or the model being dynamic? If not use the JSON system.
-
Need help with rendering .obj models 1.11
What is the registry name of your Block and the unlocalized name of your block.
-
[1.12] What changed with the Model Loader?
You didn't do it for the ItemBlock though.
-
[1.12] BlockContainer wont show block when placed
Also why are you using a TESR?
-
[1.12] BlockContainer wont show block when placed
Don't extend BlockContainer instead extend Block and override createTileEntity(World, IBlockState) and hasTileEntity(IBlockState)
-
[1.12] What changed with the Model Loader?
It is necessary because we need some form of id that will not change. Numerical ids will change and are not mod specific, while using a ResourceLocation allows a Block, Item, etc to be traced easily back to its mod, and they are also mod specific because of the modid. So in other words a register name is just an id. You make two new ItemBlock instances in your ModBlocks class. Every time you make a new instance of any Item, Block, etc you need to set it's registry name.
-
Need help with rendering .obj models 1.11
What went wrong was it is looking for beeboxers.mtl not bee_box.mtl
-
[1.11.2] Proper Way to Do SubItems Textures Issue
If you are going to call ModelLoader.setCustomModelResourceLocation do not call ModelBakery.registerItemVariants. The later overrides the other. The problem is that you do new ResourceLocation(Reference.MODID, "items/essence_chariot") having the "items/" there adds it to the path so instead of looking for assets/modid/models/item/model.json it instead looks for assets/modid/models/item/items/model.json.
-
[1.12] What changed with the Model Loader?
new ItemBlock(block).setRegistryName(block.getRegistryName);
-
[1.12] What changed with the Model Loader?
That is not true, what it says is You never set the registry name for the ItemBlock.
-
Need help with rendering .obj models 1.11
OBJLoader.INSTANCE.addDomain(Reference.MODID.toLowerCase()); is already called in your proxy.preInit class.
-
Need help with rendering .obj models 1.11
And you call it in the init method, so you should call proxy.preInit in your ancientmod class's preInit method.
-
Need help with rendering .obj models 1.11
Look at where you call proxy.init
-
[1.12] What changed with the Model Loader?
I think you will also need a Item Registry event to register the ItemBlocks, but I am not really sure. I haven't started updating to 1.12 just yet.
-
[1.12] What changed with the Model Loader?
Also are you calling ModelLoader.setCustomModelResourceLocation in the Block Registry event? If so it has its own event ModelRegistryEvent. You are not registering the ItemBlock for them.
-
Need help with rendering .obj models 1.11
Where do you call proxy.preInit
-
[1.12] What changed with the Model Loader?
I do not believe so but you register your models the same way you did before, it just needs to be in the event.
-
[1.12] What changed with the Model Loader?
Code and ModelLoader.setCustomModelResourceLocation needs to be called from ModelRegistryEvent.
-
Need help with rendering .obj models 1.11
In your block object/field/variable call getRegistryName() instead of getUnlocalizedName() as you do right here You are the one with the code...check. You call it in your ClientProxy, it is just you never call the method ClientProxy#preInit
-
Need help with rendering .obj models 1.11
getRegistryName is from IRegistryEntry.Impl which all registry types (Block, Item, etc) extend.
IPS spam blocked by CleanTalk.