Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Rotating A Block's Texture
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 0
Malkierian

Rotating A Block's Texture

By Malkierian, December 12, 2016 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

Malkierian    0

Malkierian

Malkierian    0

  • Tree Puncher
  • Malkierian
  • Members
  • 0
  • 42 posts
Posted December 12, 2016

Say, for example, I wanted to make a block that looked exactly like the oak planks in Minecraft, except that the slats should go vertically instead of horizontally.  Is there a way to accomplish this in model or blockstate files?  All I've seen is the ability to rotate the block itself.

  • Quote

Share this post


Link to post
Share on other sites

Draco18s    2406

Draco18s

Draco18s    2406

  • Reality Controller
  • Draco18s
  • Members
  • 2406
  • 15936 posts
Posted December 12, 2016

Change uvlock to false, now model rotation will also rotate texture.

  • Quote

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Share this post


Link to post
Share on other sites

Malkierian    0

Malkierian

Malkierian    0

  • Tree Puncher
  • Malkierian
  • Members
  • 0
  • 42 posts
Posted December 12, 2016

But I want to keep the UV lock, I just also want to keep the organization, such as the four cardinal faces having the up and down textures, and then the top and bottom having linked textures.  Basically, I want to be able to rotate the texture before or during application to a block's model without having to make a custom texture just to rotate it 90 degrees.

  • Quote

Share this post


Link to post
Share on other sites

Draco18s    2406

Draco18s

Draco18s    2406

  • Reality Controller
  • Draco18s
  • Members
  • 2406
  • 15936 posts
Posted December 12, 2016

You can't.

  • Quote

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Share this post


Link to post
Share on other sites

Leviathan143    40

Leviathan143

Leviathan143    40

  • Creeper Killer
  • Leviathan143
  • Forge Modder
  • 40
  • 211 posts
Posted December 12, 2016

This can be done in the json model. You can write it manually, but it's easier to use MCMC. What you're looking for is Rotation, which can be found under Faces.

 

  • Quote

Share this post


Link to post
Share on other sites

Draco18s    2406

Draco18s

Draco18s    2406

  • Reality Controller
  • Draco18s
  • Members
  • 2406
  • 15936 posts
Posted December 12, 2016

Yes, but you can't rotate the texture based on block state.  It's baked in.

  • Quote

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Share this post


Link to post
Share on other sites

trollworkout    4

trollworkout

trollworkout    4

  • Diamond Finder
  • trollworkout
  • Members
  • 4
  • 300 posts
Posted December 12, 2016

What about forge's own blockstate json. Can it do that? It has some nifty things . Otherwise you can deff do this using an entity model custom renderer stuff like that.

  • Quote

Disclaimer:  I been told to keep my opinions to myself, to shut up and that I am spreading lies and misinformation or even that my methods are unorthodox and or too irregular. Here are my suggestions take it or leave it.

Share this post


Link to post
Share on other sites

Leviathan143    40

Leviathan143

Leviathan143    40

  • Creeper Killer
  • Leviathan143
  • Forge Modder
  • 40
  • 211 posts
Posted December 13, 2016

Yes, but you can't rotate the texture based on block state.  It's baked in.

 

The OP doesn't want to rotate it from the blockstate though. The OP just wants to rotate the texture.

  • Quote

Share this post


Link to post
Share on other sites

Malkierian    0

Malkierian

Malkierian    0

  • Tree Puncher
  • Malkierian
  • Members
  • 0
  • 42 posts
Posted December 13, 2016

This can be done in the json model. You can write it manually, but it's easier to use MCMC. What you're looking for is Rotation, which can be found under Faces.

Yeah, there was another model creator that I use that I remembered having that, so I looked there.  Needed to make a custom model, but yes, that is exactly what I was looking for.

  • Quote

Share this post


Link to post
Share on other sites

TheSunCat    11

TheSunCat

TheSunCat    11

  • Diamond Finder
  • TheSunCat
  • Forge Modder
  • 11
  • 451 posts
Posted December 13, 2016

Does your model creator create models for the itemblock, too? Any itemblock that I make that is not from a "simple" block show the missing model model. By simple, I mean either directional, with more than one texture, or with a custom model. The console log says that it has failed loading the model for block variant fast_cooker#inventory. I am not sure because I don't have my PC right now.

  • Quote

YouTube:

https://www.youtube.com/channel/UCaK5oRw4yd7PurBWww9tVhA

Kuribo64 (where I am most active):

http://kuribo64.net/board/profile.php?id=1423

 

Thanks for your answer!

 

Current projects:

 

3D Geometry Dash: 13%

Terracraft (MC Mod): 8%

New Super Kaizo Bros DS: 100% (no download for now :'( )

New Super Kaizo Bros. Wii: 12%

Super Mario Galaxy 1.5: 96%

New Super Mario Bros Galaxy: 85%

Kerbal Space Program Advance: 47%

MC CREATE: 20%

Mystery Projects: 10%, 40%, 13%, and 94%

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • Draco18s
      Method to get the current durability?

      By Draco18s · Posted just now

      Note that it counts up towards ItemStack#getMaxDamage, so an undamaged item will return 0 out of X and a fully damaged item will be X out of X (next use breaks it).
    • BobbyLikesCake
      1.16.4 Modded not loading singleplayer worlds

      By BobbyLikesCake · Posted 1 minute ago

      Its still not working, Here is the latest debug log. Link
    • ChampionAsh5357
      [1.16.5] Properly using DistExecutor with arguments

      By ChampionAsh5357 · Posted 23 minutes ago

      From what I understand, this is not the correct way to use DistExecutor. For the case where you can't supply a runnable or supplier, DistExecutor#unsafe* should be used instead. This will supply a runnable of what you want to execute (e.g. () -> () -> //Do things). This does not verify nor guarantee that the code is completely safe to access; however, if the runnable executes another method that is isolated in a different class, it is 'safe' since classloading will not occur. So, the proper way to implement the code above is DistExecutor.unsafeRunWhenOn(Dist.CLIENT, () -> () -> ClientScreenManager#openScreen).
    • diesieben07
      have an error when trying to connect to LAN server with mods

      By diesieben07 · Posted 30 minutes ago

      I guess talk to the Biomes O Plenty people then. This should not be happening if the mod is properly made.
    • Nitrix
      Forge dont want make any profile

      By Nitrix · Posted 32 minutes ago

      Who to have that you cant play minecraft with forge cuz you dont have profile on minecraft launcher? I installed forge 30 times and nothing go    minecraft 1.16.4
  • Topics

    • Dr.Nickenstein
      3
      Method to get the current durability?

      By Dr.Nickenstein
      Started 10 hours ago

    • BobbyLikesCake
      9
      1.16.4 Modded not loading singleplayer worlds

      By BobbyLikesCake
      Started 3 hours ago

    • Choonster
      1
      [1.16.5] Properly using DistExecutor with arguments

      By Choonster
      Started 1 hour ago

    • F0RZera
      9
      have an error when trying to connect to LAN server with mods

      By F0RZera
      Started 4 hours ago

    • Nitrix
      0
      Forge dont want make any profile

      By Nitrix
      Started 32 minutes ago

  • Who's Online (See full list)

    • Draco18s
    • diesieben07
    • Fake_Name131
    • isaac25
    • UltramoxX
    • Nitrix
    • GTAGhostly
    • iHamster
    • ChampionAsh5357
    • F0RZera
    • st4s1k
    • monkeysHK
    • AzizD
    • Chumbanotz
    • P0SCH1T0
    • loordgek
    • vemerion
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Rotating A Block's Texture
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community