mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-26 15:03:03 +00:00
Fix missing random rotations for altgrasses
This commit is contained in:
1 parent
3d0fd19d1e
commit
3f43b02686
7 files changed
+110
-19
No files matched your search
@@ -1,7 +1,21 @@
|
||||
{
|
||||
"variants": {
|
||||
"": {
|
||||
"model": "botania:block/dry_grass"
|
||||
}
|
||||
"": [
|
||||
{
|
||||
"model": "botania:block/dry_grass"
|
||||
},
|
||||
{
|
||||
"model": "botania:block/dry_grass",
|
||||
"y": 90
|
||||
},
|
||||
{
|
||||
"model": "botania:block/dry_grass",
|
||||
"y": 180
|
||||
},
|
||||
{
|
||||
"model": "botania:block/dry_grass",
|
||||
"y": 270
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,21 @@
|
||||
{
|
||||
"variants": {
|
||||
"": {
|
||||
"model": "botania:block/golden_grass"
|
||||
}
|
||||
"": [
|
||||
{
|
||||
"model": "botania:block/golden_grass"
|
||||
},
|
||||
{
|
||||
"model": "botania:block/golden_grass",
|
||||
"y": 90
|
||||
},
|
||||
{
|
||||
"model": "botania:block/golden_grass",
|
||||
"y": 180
|
||||
},
|
||||
{
|
||||
"model": "botania:block/golden_grass",
|
||||
"y": 270
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,21 @@
|
||||
{
|
||||
"variants": {
|
||||
"": {
|
||||
"model": "botania:block/infused_grass"
|
||||
}
|
||||
"": [
|
||||
{
|
||||
"model": "botania:block/infused_grass"
|
||||
},
|
||||
{
|
||||
"model": "botania:block/infused_grass",
|
||||
"y": 90
|
||||
},
|
||||
{
|
||||
"model": "botania:block/infused_grass",
|
||||
"y": 180
|
||||
},
|
||||
{
|
||||
"model": "botania:block/infused_grass",
|
||||
"y": 270
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,21 @@
|
||||
{
|
||||
"variants": {
|
||||
"": {
|
||||
"model": "botania:block/mutated_grass"
|
||||
}
|
||||
"": [
|
||||
{
|
||||
"model": "botania:block/mutated_grass"
|
||||
},
|
||||
{
|
||||
"model": "botania:block/mutated_grass",
|
||||
"y": 90
|
||||
},
|
||||
{
|
||||
"model": "botania:block/mutated_grass",
|
||||
"y": 180
|
||||
},
|
||||
{
|
||||
"model": "botania:block/mutated_grass",
|
||||
"y": 270
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,21 @@
|
||||
{
|
||||
"variants": {
|
||||
"": {
|
||||
"model": "botania:block/scorched_grass"
|
||||
}
|
||||
"": [
|
||||
{
|
||||
"model": "botania:block/scorched_grass"
|
||||
},
|
||||
{
|
||||
"model": "botania:block/scorched_grass",
|
||||
"y": 90
|
||||
},
|
||||
{
|
||||
"model": "botania:block/scorched_grass",
|
||||
"y": 180
|
||||
},
|
||||
{
|
||||
"model": "botania:block/scorched_grass",
|
||||
"y": 270
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,21 @@
|
||||
{
|
||||
"variants": {
|
||||
"": {
|
||||
"model": "botania:block/vivid_grass"
|
||||
}
|
||||
"": [
|
||||
{
|
||||
"model": "botania:block/vivid_grass"
|
||||
},
|
||||
{
|
||||
"model": "botania:block/vivid_grass",
|
||||
"y": 90
|
||||
},
|
||||
{
|
||||
"model": "botania:block/vivid_grass",
|
||||
"y": 180
|
||||
},
|
||||
{
|
||||
"model": "botania:block/vivid_grass",
|
||||
"y": 270
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -15,6 +15,7 @@ import net.minecraftforge.client.model.generators.ConfiguredModel;
|
||||
import net.minecraftforge.client.model.generators.ExistingFileHelper;
|
||||
import net.minecraftforge.client.model.generators.ModelFile;
|
||||
import vazkii.botania.api.state.BotaniaStateProps;
|
||||
import vazkii.botania.common.block.BlockAltGrass;
|
||||
import vazkii.botania.common.block.BlockAltar;
|
||||
import vazkii.botania.common.block.BlockModDoubleFlower;
|
||||
import vazkii.botania.common.block.ModBlocks;
|
||||
@@ -55,7 +56,13 @@ public class BlockstateProvider extends BlockStateProvider {
|
||||
|| b == ModBlocks.pump || b == ModBlocks.incensePlate || b == ModBlocks.felPumpkin || b == ModBlocks.solidVines)
|
||||
return;
|
||||
|
||||
if (b == ModBlocks.gaiaHead || b == ModBlocks.gaiaHeadWall) {
|
||||
if (b instanceof BlockAltGrass) {
|
||||
ModelFile model = models().getExistingFile(prefix("block/" + b.getRegistryName().getPath()));
|
||||
getVariantBuilder(b).partialState().setModels(new ConfiguredModel(model),
|
||||
new ConfiguredModel(model, 0, 90, false),
|
||||
new ConfiguredModel(model, 0, 180, false),
|
||||
new ConfiguredModel(model, 0, 270, false));
|
||||
} else if (b == ModBlocks.gaiaHead || b == ModBlocks.gaiaHeadWall) {
|
||||
ModelFile file = models().getExistingFile(new ResourceLocation("block/soul_sand"));
|
||||
getVariantBuilder(b).partialState().setModels(new ConfiguredModel(file));
|
||||
} else if (b instanceof BlockPetalBlock) {
|
||||
|
||||
Reference in new issue
Block a user