As the title says I need help figuring out how to add a hidden blockstate to a block(in my case the glass block)so that you can only get the blockstate with the /setblock command. The only problem is that if i just add another blockstate it randomly picks one of them, but if I make it a 1/1,000,000 chance to get the hidden blockstate it wont place with /setblock. I tried making a new variable but it won't work that way either. I don't have any experience with blockstates before so don't blame me if I ask stupid questions or do/say stupid things.
As the title says I need help figuring out how to add a hidden blockstate to a block(in my case the glass block)so that you can only get the blockstate with the /setblock command. The only problem is that if i just add another blockstate it randomly picks one of them, but if I make it a 1/1,000,000 chance to get the hidden blockstate it wont place with /setblock. I tried making a new variable but it won't work that way either. I don't have any experience with blockstates before so don't blame me if I ask stupid questions or do/say stupid things.
It's not a stupid question. This is something that you should logically be able to do. Unfortunately you're designing a resource pack for Minecraft so logic goes right out the window as soon as flexibility becomes involved.
Sadly, what you want is impossible to do. The blockstates are locked to only respond to specific hard-coded values. This was a major bone of contention between the RP community and Mojang when the system was introduced since many packs used "junk" DVs to accomplish what you're trying to, all of which were eliminated with the block models system. Updates give and updates take away I'm afraid.
So the closest thing to what I want would be to add a blockstate but name it something that minecraft doesn't recognize and leave instructions on how to rename it to see it in the game.
So the closest thing to what I want would be to add a blockstate but name it something that minecraft doesn't recognize and leave instructions on how to rename it to see it in the game.
You mean my original idea isn't possible right. lol
I mean neither one is possible. Adding a blockstate that Minecraft doesn't recognize is pointless since it'll be disregarded. There's no way to set the values of a block to values that cannot exist. Attempts to do so will cause it to either revert to the block's default state or just cause an error state for the block.
If you want to add a totally new blockstate, you need to mod the game.
I mean neither one is possible. Adding a blockstate that Minecraft doesn't recognize is pointless since it'll be disregarded. There's no way to set the values of a block to values that cannot exist. Attempts to do so will cause it to either revert to the block's default state or just cause an error state for the block.
If you want to add a totally new blockstate, you need to mod the game.
No, in this essence alvoria you misunderstood his context. he said added in a block state with a non-sensical name and then leaving instructions as to how to enable it to see in game ie *name minecraft:grass to minecraft:grassyblock then leave the instructions to change the name back to enable the disregarded blockstate. the easter egg would reward people who snoop around in the resource pack folders and change the name back atleast i think thats what he was intending to say. i could be wrong.
No, in this essence alvoria you misunderstood his context. he said added in a block state with a non-sensical name and then leaving instructions as to how to enable it to see in game ie *name minecraft:grass to minecraft:grassyblock then leave the instructions to change the name back to enable the disregarded blockstate. the easter egg would reward people who snoop around in the resource pack folders and change the name back atleast i think thats what he was intending to say. i could be wrong.
If that's what was meant then yes, that would work. Basically a text version of the good old alts folder.
As the title says I need help figuring out how to add a hidden blockstate to a block(in my case the glass block)so that you can only get the blockstate with the /setblock command. The only problem is that if i just add another blockstate it randomly picks one of them, but if I make it a 1/1,000,000 chance to get the hidden blockstate it wont place with /setblock. I tried making a new variable but it won't work that way either. I don't have any experience with blockstates before so don't blame me if I ask stupid questions or do/say stupid things.
It's not a stupid question. This is something that you should logically be able to do. Unfortunately you're designing a resource pack for Minecraft so logic goes right out the window as soon as flexibility becomes involved.
Sadly, what you want is impossible to do. The blockstates are locked to only respond to specific hard-coded values. This was a major bone of contention between the RP community and Mojang when the system was introduced since many packs used "junk" DVs to accomplish what you're trying to, all of which were eliminated with the block models system. Updates give and updates take away I'm afraid.
Sorry to be the bearer of bad news.
So there is no way of adding an "easter egg" to my resource pack that won't appear in everyday minecraft?
If you want an "easter egg" what's wrong with an extremely rare variant?
From your description it seemed like you want something functional which isn't possible.
So the closest thing to what I want would be to add a blockstate but name it something that minecraft doesn't recognize and leave instructions on how to rename it to see it in the game.
Then no, that's not possible.
You mean my original idea isn't possible right. lol
I mean neither one is possible. Adding a blockstate that Minecraft doesn't recognize is pointless since it'll be disregarded. There's no way to set the values of a block to values that cannot exist. Attempts to do so will cause it to either revert to the block's default state or just cause an error state for the block.
If you want to add a totally new blockstate, you need to mod the game.
No, in this essence alvoria you misunderstood his context. he said added in a block state with a non-sensical name and then leaving instructions as to how to enable it to see in game ie *name minecraft:grass to minecraft:grassyblock then leave the instructions to change the name back to enable the disregarded blockstate. the easter egg would reward people who snoop around in the resource pack folders and change the name back atleast i think thats what he was intending to say. i could be wrong.
If that's what was meant then yes, that would work. Basically a text version of the good old alts folder.
Sorry for any confusion.
You mean you can assign multiple textures to a block, so that it doesn't always look the same?
@NDR147 yes you can add random models for blocks
@Licoifi yes that is what i meant/did.
And if any of you want to check out the resource pack i am adding this to you can find it here.