Posted January 24, 20205 yr Hello In 1.14.3 i used this to scale down some of my entities: @Override public float prepareScale(BluesEntity entitylivingbaseIn, float partialTicks) { GlStateManager.scalef(0.5F, 0.5F, 0.5F); return super.prepareScale(entitylivingbaseIn, partialTicks); } but now it does not know "prepareScale" or "scalef" any more... How do i write this now? Maybe i can use MatrixStack instead of GlStateManager now. But how? Edited January 25, 20205 yr by Drachenbauer
January 26, 20205 yr MatrixStack#scale 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)
January 26, 20205 yr Author I don´t know, where to place this in my code. In the entity-class, or in the renderer-class, and in wich method there? Edited January 26, 20205 yr by Drachenbauer
January 26, 20205 yr Where you used to have GLStateManager.scale 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)
January 26, 20205 yr Author That was the method in the startpost, but it does not exist any more... This is, why i ask.
January 26, 20205 yr Yes I realise. What I told you to do is replace calls to GlStateManager.scale with calls to MatrixStack#scale. If you don’t have a matrix stack and can’t get one then you’re probably in the clear (for now) to use RenderSystem.scale 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)
January 26, 20205 yr Author I don´t know, where to call it since i don´t have the method any more, where i called it bevore. Can you please tell me, where exactly i can call MatrixStack#scale now?
January 26, 20205 yr Where you used to have calls to GLStateManager.scale. Where exactly depends on your code Edited January 26, 20205 yr by Cadiboo 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)
January 26, 20205 yr Author I have no place for it any more, so i need to find a new pace, that does not exist in my code so far. Can you please tell me for example, wich method replaces public float prepareScale now? Then this will be the place now. Edited January 26, 20205 yr by Drachenbauer
January 26, 20205 yr I don’t know. If you look at vanilla’s code you should be able to figure it out though 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)
January 26, 20205 yr Author There are so many methods, wich have weird coded names, that the forge-people not have renamed yet. This makes it difficult for me to find the right one.
February 10, 20205 yr What kind of entity do you have? In living entities you can override getSize to scale it: @Override public EntitySize getSize(Pose poseIn) { return super.getSize(poseIn).scale(0.5F, 0.5F); } Not sure if there is such a thing for other entities. Edited February 10, 20205 yr by Cerandior
February 13, 20205 yr On 2/11/2020 at 5:15 AM, Redstoneguy129 said: How would you do this but edit the size of child models instead. Add an if (entity.isChild())? 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)
February 18, 20205 yr No child models as in body or head and the models i want to resize are cow and sheep.
February 2, 20223 yr On 2/10/2020 at 3:23 PM, Cerandior said: What kind of entity do you have? In living entities you can override getSize to scale it: @Override public EntitySize getSize(Pose poseIn) { return super.getSize(poseIn).scale(0.5F, 0.5F); } Not sure if there is such a thing for other entities. in which package does found it method?
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.