Jump to content

Recommended Posts

Posted

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

 

 

Posted

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");
  }
}

Posted

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.