Vswe's Summer Courses | You're not logged in. Sign up or log in | Server time: | Donate
One can now see other persons' badge hunts. Simply head over to their profiles to access them.

Go back to sub forum page

General forum

Non-course related subjects

4. Mod discussion

Connected textures

  • 2013-08-08 23:23:03
    How can i make connected textures?
  • 2013-08-08 23:34:27
    I've never done it myself but what you wanna do is simply give different blocks different textures depending on its neighbors. Just check the four direction of a face if there's a block of the same type there.
  • 2013-08-09 00:00:03
    Thanks teacher
  • 2013-08-17 16:27:22
    But that would require 16 different textures, isnt there a trick to draw the border of the blcock (if the texture has that) when there isnt the same block next to that side
  • 2013-08-17 17:34:54
    What do you define as the border then?
  • 2013-08-17 17:50:24
    well, for example Xycraft, the glass in Xycraft has a little border around it, i cant imagine he drew 16 textures?
  • 2013-08-17 17:50:53
    because arent coders lazy ;)?
  • 2013-08-17 18:16:09
    Well, ask Soaryn about it then. Like I said, I've never done it myself.
  • 2013-08-18 03:44:01
    you might want to take a look at the tinker's construct connected texture for glass.


    it seems like it uses getBlockTexture instead of on neighbour block changed so it will show the correct texture even when you remove/add blocks with external tools like mcedit.

    also, it looks like mDiyo creates 16 different textures and return different icons for every single possible combination.
  • 2013-08-18 09:21:19
    Doesnt look that hard
  • 2013-08-21 11:18:25
    it should be a matter of checking the block around the placed block and if it's the same block return icon 2 else return icon 1
  • 2013-08-21 14:22:34
    Except there are 16 different icons since there are 16 (2^4) combinations of nearby blocks.
  • Log in or sign up to reply to this thread