mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-23 21:49:50 +00:00
Generate red string blocks' models
This commit is contained in:
1 parent
967e88e160
commit
78317f6c2a
20 files changed
+66
-62
No files matched your search
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"parent": "block/orientable",
|
||||
"textures": {
|
||||
"side": "botania:block/red_string_comparator",
|
||||
"front": "botania:block/red_string_sender",
|
||||
"top": "botania:block/red_string_comparator"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"parent": "block/orientable",
|
||||
"textures": {
|
||||
"side": "botania:block/red_string_container",
|
||||
"front": "botania:block/red_string_sender",
|
||||
"top": "botania:block/red_string_container"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"parent": "block/orientable",
|
||||
"textures": {
|
||||
"side": "botania:block/red_string_dispenser",
|
||||
"front": "botania:block/red_string_sender",
|
||||
"top": "botania:block/red_string_dispenser"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"parent": "block/orientable",
|
||||
"textures": {
|
||||
"side": "botania:block/red_string_fertilizer",
|
||||
"front": "botania:block/red_string_sender",
|
||||
"top": "botania:block/red_string_fertilizer"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"parent": "block/orientable",
|
||||
"textures": {
|
||||
"side": "botania:block/red_string_interceptor",
|
||||
"front": "botania:block/red_string_sender",
|
||||
"top": "botania:block/red_string_interceptor"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"parent": "block/orientable",
|
||||
"textures": {
|
||||
"side": "botania:block/red_string_relay",
|
||||
"front": "botania:block/red_string_sender",
|
||||
"top": "botania:block/red_string_relay"
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"parent": "botania:block/red_string_comparator"
|
||||
{
|
||||
"parent": "botania:block/red_string_comparator"
|
||||
}
|
||||
+2
-2
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"parent": "botania:block/red_string_container"
|
||||
{
|
||||
"parent": "botania:block/red_string_container"
|
||||
}
|
||||
+2
-2
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"parent": "botania:block/red_string_dispenser"
|
||||
{
|
||||
"parent": "botania:block/red_string_dispenser"
|
||||
}
|
||||
+2
-2
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"parent": "botania:block/red_string_fertilizer"
|
||||
{
|
||||
"parent": "botania:block/red_string_fertilizer"
|
||||
}
|
||||
+2
-2
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"parent": "botania:block/red_string_interceptor"
|
||||
{
|
||||
"parent": "botania:block/red_string_interceptor"
|
||||
}
|
||||
+2
-2
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"parent": "botania:block/red_string_relay"
|
||||
{
|
||||
"parent": "botania:block/red_string_relay"
|
||||
}
|
||||
@@ -167,7 +167,10 @@ public class BlockstateProvider extends BlockStateProvider {
|
||||
}
|
||||
|
||||
private void redStringBlock(Block b) {
|
||||
ModelFile file = models().getExistingFile(prefix("block/" + Registry.BLOCK.getKey(b).getPath()));
|
||||
String name = Registry.BLOCK.getKey(b).getPath();
|
||||
ResourceLocation selfName = prefix("block/" + name);
|
||||
ResourceLocation front = prefix("block/red_string_sender");
|
||||
ModelFile file = models().orientable(name, selfName, front, selfName);
|
||||
getVariantBuilder(b)
|
||||
.partialState().with(BlockStateProperties.FACING, Direction.NORTH).setModels(new ConfiguredModel(file))
|
||||
.partialState().with(BlockStateProperties.FACING, Direction.SOUTH).setModels(new ConfiguredModel(file, 0, 180, false))
|
||||
|
||||
@@ -16,6 +16,7 @@ import net.minecraftforge.client.model.generators.ExistingFileHelper;
|
||||
|
||||
import vazkii.botania.common.block.BlockSpecialFlower;
|
||||
import vazkii.botania.common.block.decor.BlockFloatingFlower;
|
||||
import vazkii.botania.common.block.string.BlockRedString;
|
||||
import vazkii.botania.common.lib.LibMisc;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
@@ -37,7 +38,7 @@ public class ItemModelProvider extends net.minecraftforge.client.model.generator
|
||||
String name = Registry.ITEM.getKey(i).getPath();
|
||||
if (b instanceof BlockSpecialFlower) {
|
||||
withExistingParent(name, "item/generated").texture("layer0", prefix("block/" + name));
|
||||
} else if (b instanceof BlockFloatingFlower) {
|
||||
} else if (b instanceof BlockFloatingFlower || b instanceof BlockRedString) {
|
||||
withExistingParent(name, prefix("block/" + name));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"parent": "minecraft:block/orientable",
|
||||
"textures": {
|
||||
"top": "botania:block/red_string_comparator",
|
||||
"front": "botania:block/red_string_sender",
|
||||
"side": "botania:block/red_string_comparator"
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"parent": "minecraft:block/orientable",
|
||||
"textures": {
|
||||
"top": "botania:block/red_string_container",
|
||||
"front": "botania:block/red_string_sender",
|
||||
"side": "botania:block/red_string_container"
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"parent": "minecraft:block/orientable",
|
||||
"textures": {
|
||||
"top": "botania:block/red_string_dispenser",
|
||||
"front": "botania:block/red_string_sender",
|
||||
"side": "botania:block/red_string_dispenser"
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"parent": "minecraft:block/orientable",
|
||||
"textures": {
|
||||
"top": "botania:block/red_string_fertilizer",
|
||||
"front": "botania:block/red_string_sender",
|
||||
"side": "botania:block/red_string_fertilizer"
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"parent": "minecraft:block/orientable",
|
||||
"textures": {
|
||||
"top": "botania:block/red_string_interceptor",
|
||||
"front": "botania:block/red_string_sender",
|
||||
"side": "botania:block/red_string_interceptor"
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"parent": "minecraft:block/orientable",
|
||||
"textures": {
|
||||
"top": "botania:block/red_string_relay",
|
||||
"front": "botania:block/red_string_sender",
|
||||
"side": "botania:block/red_string_relay"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user