Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Im quite new to Js and ive been trying to make a mod myself, i tried going about it without help and tested for 12 hours of different codes (including tutorials, my own tests and source codes). I am having trouble trying to blink minecraft skin layers.

 

I have knowledge of other coding languages so im not completely new to coding. If someone could help me out that would be great. All i need is to make the skin layers (all except hat/cape) to flicker/blink at a set rate the entire time (preferred .5 seconds)

 

Im using forge-1.8-11.14.4.1563-mdk, ive tried:

Minecraft.getMinecraft().gameSettings.getModelParts(); 
for(EnumPlayerModelParts part : EnumPlayerModelParts.values()) 
Minecraft.getMinecraft().gameSettings.setModelPartEnabled(part, !activeParts.contains(part)); 

 

  for(EnumPlayerModelParts part : EnumPlayerModelParts.values()) 
   Minecraft.getMinecraft().gameSettings.setModelPartEnabled(part, true); 

 

 EnumPlayerModelParts.JACKET.equals(false);
EnumPlayerModelParts.JACKET.func_179326_d().equals(false);
Minecraft.getMinecraft().gameSettings.setModelPartEnabled(EnumPlayerModelParts.JACKET , false);
Minecraft.getMinecraft().gameSettings.switchModelPartEnabled(EnumPlayerModelParts.HAT);

 

All that builds, runs well but does nothing (i attempted to keybind it too and still nothing)

 

 

For some reason this func_179326 seems to be the prefered choice when i search source codes but it doest work for me.

EnumPlayerModelParts.JACKET.equals(false);
EnumPlayerModelParts.JACKET.func_179326_d().equals(false);
Minecraft.getMinecraft().gameSettings.setModelPartEnabled(EnumPlayerModelParts.JACKET , false);

 

Any help would be appreciated.

I'm not even 100% sure what you're trying to access here... Though from what I see I'm guessing you'll want to look into the RenderPlayerEvent

I think its my java of the variables.

  • Author

I'm not even 100% sure what you're trying to access here... Though from what I see I'm guessing you'll want to look into the RenderPlayerEvent

 

im trying to make the skin layers blink. So jacket, left arm, left left, right arm, right leg turn off then on constantly. so far its not working.

what im trying to ask for too is code that would work/am i putting the code in the right spot.

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.