Posted February 16, 20196 yr Hallo as i watched the youtube-channel of "ExplodingTNT", i saw the players "Pink Sheep" and "Purple Shep", who managed to turn into sheeps with wired moustaches in Minecraft. So i wonder, how can i add an additional custom player-model into my mod? I want to switch between the common player-model and one of my Angry Birds-models by hitting a key on my keyboard. It should be still pussible to wear all pieces of armour, but chestplate, leggings and boots should be invisible, if worn. I made a specific model for this with Blockbench: For holding items, i added two invisible cubes (in separate folders) to the sides of the bird, because i want to recreate the effect from the Angry Birds toons, where the characters have things, they use, hovering near their sides (i like to call that telecinetic powers). And is it possible to enter other player´s server-worlds with this special appearence, that other players can see it too?
February 21, 20196 yr Author i´m still waiting for help with this (for 1.13.2) that entire model is much smaller than the common player model (just a cube with the zize of the commen head with tiny detail-elements) so i want to display holded items (especially the shield) in half of the size, they are on the common model. and is there any application, that allows me to add some player-propertys to the model like telling it wich box-groups should be the arms (for holding items), head,...or setup custom animations for using items/shield,... ?
February 27, 20196 yr Subscribe to the RenderPlayerEvent.Pre, cancel the event, and render your model and items in hand. Some tips: Spoiler Modder Support: Spoiler 1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code. 2. Always post your code. 3. Never copy and paste code. You won't learn anything from doing that. 4. Quote Programming via Eclipse's hotfixes will get you nowhere 5. Learn to use your IDE, especially the debugger. 6. Quote The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it. Support & Bug Reports: Spoiler 1. Read the EAQ before asking for help. Remember to provide the appropriate log(s). 2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.
February 27, 20196 yr Author Is it possible to have invisible parts as arms? In the Angry Birds toons the birds can use objects with some kind of tenecinetic powers, what makes them hover next to their body. And i want to have this effect here too.
February 27, 20196 yr Yes. After canceling the event, you can render the player yourself with whatever effect you want. Some tips: Spoiler Modder Support: Spoiler 1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code. 2. Always post your code. 3. Never copy and paste code. You won't learn anything from doing that. 4. Quote Programming via Eclipse's hotfixes will get you nowhere 5. Learn to use your IDE, especially the debugger. 6. Quote The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it. Support & Bug Reports: Spoiler 1. Read the EAQ before asking for help. Remember to provide the appropriate log(s). 2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.
February 28, 20196 yr Author how do i make worn chestplates, leggings and boots from the armour-sets invisible for my custom model? and how do i make a "switch player models with a key on the keyboard" funktion? Edited February 28, 20196 yr by Drachenbauer
March 8, 20196 yr Author how exactly do i subscribe and cancel the RenderPlayerEvent.Pre ? Sample, please
March 8, 20196 yr 16 minutes ago, Drachenbauer said: Sample, please There isn't an example for everything. You need to learn to read documentations. Here is the forge documentation on events: https://mcforge.readthedocs.io/en/latest/events/intro/ Edited March 8, 20196 yr by DavidM Some tips: Spoiler Modder Support: Spoiler 1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code. 2. Always post your code. 3. Never copy and paste code. You won't learn anything from doing that. 4. Quote Programming via Eclipse's hotfixes will get you nowhere 5. Learn to use your IDE, especially the debugger. 6. Quote The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it. Support & Bug Reports: Spoiler 1. Read the EAQ before asking for help. Remember to provide the appropriate log(s). 2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.
March 8, 20196 yr Author Now i got this together: @SubscribeEvent public static void onRenderPlayer(RenderPlayerEvent.Pre event) { event.setCanceled(true); } And how do i now render my model in there? Do i need an entity-class for this? Now i made one, that extends EntityPlayer. But i still have no idea, how i tell it, wich parts of my model are the arms to attach items, if holding them Edited March 8, 20196 yr by Drachenbauer
March 8, 20196 yr If you cancel the event you need to render the player’s model. I suggest having 2 subscribers. 1 in which you render the normal model at Priority=NORMAL, and another that only cancels the event, with priority=LOWEST About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
March 8, 20196 yr 2 subscribe event methods with different priorities. The @SubscribeEvent accepts a priority About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
March 9, 20196 yr Author i don´t know, who a subscribe event method with priority has to look like. I never used priorities there bevore.
March 9, 20196 yr @SubscribeEvent(priority=blah) About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
March 10, 20196 yr Look at how vanilla does it About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
March 10, 20196 yr Author i´m not sure, in wich file there i find it Edited March 10, 20196 yr by Drachenbauer
July 21, 20196 yr Author Now i have two own payer-entity-classes with renderers and models. How can i switch between them by pressing a key or using a button on the gui?
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.