Forumskeyboard_arrow_right Minecraft - Java Edition keyboard_arrow_right Modding

Create Forum Thread
2

More than 1 texture for a block?

2 emeralds9 replies92 views
created 08/25/2019 3:33 pm by Jadu108
last reply 08/25/2019 6:57 pm
Am I able to have the game cycle through different variations of a block? Such as I have two separate dirt textures I want to use, is it able to randomly cycle between the two?



2nd? if not randomly, can I have both textures, and intentionally choose between them in game? Such as say, I have 4 separate textures im intending for a particular color of glass, and when together is a mural?
Posted by avatar
Jadu108
Level 1 : New Miner
0

comment Login or register to post a reply.

9 replies

2
08/25/2019 4:48 pm
Level 60 : High Grandmaster Artist
oakar258
You can achieve this with blockstates, here's the article on Minecraft Wiki explaining it:

minecraft.gamepedia.com/Model#Block_states

Remember to use version.jar files as reference
1
08/25/2019 5:06 pm
Level 1 : New Miner
Jadu108
Okay, so it seems like Im wanting Multipart for what im using, like the fence...

Example of fence follows for illustrating my question
Multipart code

So, in there there is a state for each direction, N, S, E, W... but what im trying to do glass isn't along the X, Y planes like the fence is, but a long the Z... so what what I put instead of when south or when north etc?
1
08/25/2019 5:38 pm
Level 60 : High Grandmaster Artist
oakar258
You can do something like this to randomize the models:

{
  "variants": {
    "": [
    { "model": "block/glass" },
    { "model": "block/glass2" }
    ]
   }
}
1
08/25/2019 6:02 pm
Level 1 : New Miner
Jadu108
is randomizing my only option?

I feel like multipart will work if I can use variables of direction aside from N/S/E/W, but also Up and down, because glass is placed vertically...
1
08/25/2019 6:13 pmhistory
Level 60 : High Grandmaster Artist
oakar258
Colored glass and glass does not have states like fence, only glass pane have those directional states but without up/down so yes, probably only randomizing is the option here
1
08/25/2019 6:57 pm
Level 1 : New Miner
Jadu108
hm, ill play around with it
thank you
1
08/25/2019 4:54 pm
Level 1 : New Miner
Jadu108
oh that's what im looking for. thanks!
1
08/25/2019 3:43 pm
Level 34 : Artisan Fisherman
Marjory
Pretty sure optifine can have different random block textures. For the choosing which texture you want thing, you could just tell people to swap the textures in the files.
1
08/25/2019 4:15 pm
Level 1 : New Miner
Jadu108
well, I was wondering if I can have all the alternative textures in the game at once, with out swapping the files back n forth

Planet Minecraft

Browse

Site

© 2010 - 2019
planetminecraft.com

Welcome