Posted December 23, 20168 yr This serves to register the entities ?, and if so, could you explain how to modify it? I'm starting to create mobs a little help? public class MobRegistry { public MobRegistry(){ register(); } public static void register(){ MobRegistry.registerRender(); MobRegistry.registerEntity(); } public static void registerRender(){ } public static void registerEntity(){ } private static void registerRender(Entity entity){ Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(block), 0, new ModelResourceLocation(block.getRegistryName(), "inventory"));} }
December 23, 20168 yr 1) Your first two mob register methods do fucknothing. 2) The third method both takes in an Entity (so it's not being called), AND looks for a block+item, AND is using an outdated method of registering an item model anyway. You should be using ModelLoader.setCustomModelResourceLocation(...) Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
December 24, 20168 yr Author Thank you, it cost me his but in the end I got it !! :D http://s2.subirimagenes.com/imagen/previo/thump_96648992016122400.png[/img] Do you know how to add the effect of charm to an object, but not enchanted?
December 24, 20168 yr Thank you, it cost me his but in the end I got it !! :D http://s2.subirimagenes.com/imagen/previo/thump_96648992016122400.png[/img] Do you know how to add the effect of charm to an object, but not enchanted? @SideOnly(Side.CLIENT) public boolean hasEffect(ItemStack stack) { return true; } VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.