Posted May 22, 201411 yr Is it possible to have it so that if the player is in creative mode then the block is displayed with a texture and then if they are not in creative mode, then the block would be still there but transparent? http://i.imgur.com/fIxwM65.png[/img] Twitter: https://twitter.com/Sir_Fatal
May 23, 201411 yr Hi Yes it is possible. Minecraft.getMinecraft().playerController.isInCreativeMode() gives the mode You can change the block rendering based on that. The best way would be to use an "animated texture" - it's a bit tricky but there was a series of posts on the forum recently about something very similar to this http://www.minecraftforge.net/forum/index.php/topic,18829.msg95202.html#msg95202 -TGG
May 23, 201411 yr Author Hi Yes it is possible. Minecraft.getMinecraft().playerController.isInCreativeMode() gives the mode You can change the block rendering based on that. The best way would be to use an "animated texture" - it's a bit tricky but there was a series of posts on the forum recently about something very similar to this http://www.minecraftforge.net/forum/index.php/topic,18829.msg95202.html#msg95202 -TGG Thanks GreyGhost, I already solved it with roughly that method of doing it and when it bindstexture I just called the function private ResourceLocation checkGameMode() { if (Minecraft.getMinecraft().playerController.isNotCreative()) { return new ResourceLocation(ModInfo.MODID, "textures/blocks/invBlock.png"); } else { return new ResourceLocation(ModInfo.MODID, "textures/blocks/triggerBlock.png"); } } http://i.imgur.com/fIxwM65.png[/img] Twitter: https://twitter.com/Sir_Fatal
May 24, 201411 yr Keen. One thing though - if you use a console command to change the player's mode mid-game, the blocks won't change appearance immediately; they will be changed when the blocks update (or when you walk a long distance away then come back). If you want them to change immediately, the animated texture will let you do that. -TGG
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.