mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 02:45:13 +00:00
Fix more blocks, fix shaders
This commit is contained in:
1 parent
34369a9bcc
commit
9e6a19218f
70 files changed
+414
-114
No files matched your search
@@ -135,8 +135,6 @@ public final class ModelHandler {
|
||||
RenderingRegistry.registerEntityRenderingHandler(EntityVineBall.class, renderManager -> new RenderSprite<>(renderManager, ModItems.vineBall, Minecraft.getInstance().getItemRenderer()));
|
||||
RenderingRegistry.registerEntityRenderingHandler(EntityEnderAirBottle.class, renderManager -> new RenderSprite<>(renderManager, ModItems.enderAirBottle, Minecraft.getInstance().getItemRenderer()));
|
||||
|
||||
ShaderHelper.initShaders();
|
||||
|
||||
IMultiblockRenderHook.renderHooks.put(ModBlocks.manaPylon, renderTilePylon);
|
||||
IMultiblockRenderHook.renderHooks.put(ModBlocks.naturaPylon, renderTilePylon);
|
||||
IMultiblockRenderHook.renderHooks.put(ModBlocks.gaiaPylon, renderTilePylon);
|
||||
|
||||
@@ -14,7 +14,9 @@ import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.GlStateManager;
|
||||
import net.minecraft.client.renderer.OpenGlHelper;
|
||||
|
||||
import net.minecraft.resources.IResourceManager;
|
||||
import net.minecraft.resources.SimpleReloadableResourceManager;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraftforge.fml.ModList;
|
||||
import org.lwjgl.opengl.ARBFragmentShader;
|
||||
import org.lwjgl.opengl.ARBShaderObjects;
|
||||
@@ -25,6 +27,7 @@ import vazkii.botania.client.core.handler.ClientTickHandler;
|
||||
import vazkii.botania.client.lib.LibResources;
|
||||
import vazkii.botania.common.Botania;
|
||||
import vazkii.botania.common.core.handler.ConfigHandler;
|
||||
import vazkii.botania.common.lib.LibMisc;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.InputStream;
|
||||
@@ -73,26 +76,26 @@ public final class ShaderHelper {
|
||||
deleteShader(categoryButton); categoryButton = 0;
|
||||
deleteShader(alpha); alpha = 0;
|
||||
|
||||
loadShaders();
|
||||
loadShaders(manager);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
private static void loadShaders() {
|
||||
private static void loadShaders(IResourceManager manager) {
|
||||
if(!useShaders())
|
||||
return;
|
||||
|
||||
pylonGlow = createProgram(null, LibResources.SHADER_PYLON_GLOW_FRAG);
|
||||
enchanterRune = createProgram(null, LibResources.SHADER_ENCHANTER_RUNE_FRAG);
|
||||
manaPool = createProgram(null, LibResources.SHADER_MANA_POOL_FRAG);
|
||||
doppleganger = createProgram(LibResources.SHADER_DOPLLEGANGER_VERT, LibResources.SHADER_DOPLLEGANGER_FRAG);
|
||||
halo = createProgram(null, LibResources.SHADER_HALO_FRAG);
|
||||
dopplegangerBar = createProgram(null, LibResources.SHADER_DOPLLEGANGER_BAR_FRAG);
|
||||
terraPlateRune = createProgram(null, LibResources.SHADER_TERRA_PLATE_RUNE_FRAG);
|
||||
filmGrain = createProgram(null, LibResources.SHADER_FILM_GRAIN_FRAG);
|
||||
gold = createProgram(null, LibResources.SHADER_GOLD_FRAG);
|
||||
categoryButton = createProgram(null, LibResources.SHADER_CATEGORY_BUTTON_FRAG);
|
||||
alpha = createProgram(LibResources.SHADER_ALPHA_VERT, LibResources.SHADER_ALPHA_FRAG);
|
||||
pylonGlow = createProgram(manager, null, LibResources.SHADER_PYLON_GLOW_FRAG);
|
||||
enchanterRune = createProgram(manager, null, LibResources.SHADER_ENCHANTER_RUNE_FRAG);
|
||||
manaPool = createProgram(manager, null, LibResources.SHADER_MANA_POOL_FRAG);
|
||||
doppleganger = createProgram(manager, LibResources.SHADER_DOPLLEGANGER_VERT, LibResources.SHADER_DOPLLEGANGER_FRAG);
|
||||
halo = createProgram(manager, null, LibResources.SHADER_HALO_FRAG);
|
||||
dopplegangerBar = createProgram(manager, null, LibResources.SHADER_DOPLLEGANGER_BAR_FRAG);
|
||||
terraPlateRune = createProgram(manager, null, LibResources.SHADER_TERRA_PLATE_RUNE_FRAG);
|
||||
filmGrain = createProgram(manager, null, LibResources.SHADER_FILM_GRAIN_FRAG);
|
||||
gold = createProgram(manager, null, LibResources.SHADER_GOLD_FRAG);
|
||||
categoryButton = createProgram(manager, null, LibResources.SHADER_CATEGORY_BUTTON_FRAG);
|
||||
alpha = createProgram(manager, LibResources.SHADER_ALPHA_VERT, LibResources.SHADER_ALPHA_FRAG);
|
||||
}
|
||||
|
||||
public static void useShader(int shader, ShaderCallback callback) {
|
||||
@@ -139,12 +142,12 @@ public final class ShaderHelper {
|
||||
// Most of the code taken from the LWJGL wiki
|
||||
// http://lwjgl.org/wiki/index.php?title=GLSL_Shaders_with_LWJGL
|
||||
|
||||
private static int createProgram(String vert, String frag) {
|
||||
private static int createProgram(IResourceManager manager, String vert, String frag) {
|
||||
int vertId = 0, fragId = 0, program;
|
||||
if(vert != null)
|
||||
vertId = createShader(vert, VERT);
|
||||
vertId = createShader(manager, vert, VERT);
|
||||
if(frag != null)
|
||||
fragId = createShader(frag, FRAG);
|
||||
fragId = createShader(manager, frag, FRAG);
|
||||
|
||||
program = ARBShaderObjects.glCreateProgramObjectARB();
|
||||
if(program == 0)
|
||||
@@ -170,7 +173,7 @@ public final class ShaderHelper {
|
||||
return program;
|
||||
}
|
||||
|
||||
private static int createShader(String filename, int shaderType){
|
||||
private static int createShader(IResourceManager manager, String filename, int shaderType){
|
||||
int shader = 0;
|
||||
try {
|
||||
shader = ARBShaderObjects.glCreateShaderObjectARB(shaderType);
|
||||
@@ -178,7 +181,7 @@ public final class ShaderHelper {
|
||||
if(shader == 0)
|
||||
return 0;
|
||||
|
||||
ARBShaderObjects.glShaderSourceARB(shader, readFileAsString(filename));
|
||||
ARBShaderObjects.glShaderSourceARB(shader, readFileAsString(manager, filename));
|
||||
ARBShaderObjects.glCompileShaderARB(shader);
|
||||
|
||||
if (ARBShaderObjects.glGetObjectParameteriARB(shader, ARBShaderObjects.GL_OBJECT_COMPILE_STATUS_ARB) == GL11.GL_FALSE)
|
||||
@@ -197,11 +200,8 @@ public final class ShaderHelper {
|
||||
return ARBShaderObjects.glGetInfoLogARB(obj, ARBShaderObjects.glGetObjectParameteriARB(obj, ARBShaderObjects.GL_OBJECT_INFO_LOG_LENGTH_ARB));
|
||||
}
|
||||
|
||||
private static String readFileAsString(String filename) throws Exception {
|
||||
InputStream in = ShaderHelper.class.getResourceAsStream(filename);
|
||||
|
||||
if(in == null)
|
||||
return "";
|
||||
private static String readFileAsString(IResourceManager manager, String filename) throws Exception {
|
||||
InputStream in = manager.getResource(new ResourceLocation(LibMisc.MOD_ID, filename)).getInputStream();
|
||||
|
||||
try (BufferedReader reader = new BufferedReader(new InputStreamReader(in, "UTF-8"))) {
|
||||
return reader.lines().collect(Collectors.joining("\n"));
|
||||
|
||||
@@ -174,6 +174,7 @@ public class ClientProxy implements IProxy {
|
||||
|
||||
private void loadComplete(FMLLoadCompleteEvent event) {
|
||||
DeferredWorkQueue.runLater(() -> {
|
||||
ShaderHelper.initShaders();
|
||||
initAuxiliaryRender();
|
||||
ColorHandler.init();
|
||||
});
|
||||
|
||||
@@ -17,7 +17,7 @@ public final class LibResources {
|
||||
public static final String PREFIX_MOD = LibMisc.MOD_ID + ":";
|
||||
|
||||
public static final String PREFIX_LANG = "/assets/botania/lang/";
|
||||
public static final String PREFIX_SHADER = "/assets/botania/shader/";
|
||||
public static final String PREFIX_SHADER = "shader/";
|
||||
|
||||
public static final String PREFIX_GUI = PREFIX_MOD + "textures/gui/";
|
||||
public static final String PREFIX_ENTRIES = PREFIX_GUI + "entries/";
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"variants": {
|
||||
"half=lower": { "model": "botania:block/plants/black_double_flower" },
|
||||
"half=upper": { "model": "botania:block/plants/black_double_flower_top" }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"variants": {
|
||||
"half=lower": { "model": "botania:block/plants/blue_double_flower" },
|
||||
"half=upper": { "model": "botania:block/plants/blue_double_flower_top" }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"variants": {
|
||||
"half=lower": { "model": "botania:block/plants/brown_double_flower" },
|
||||
"half=upper": { "model": "botania:block/plants/brown_double_flower_top" }
|
||||
}
|
||||
}
|
||||
@@ -1,21 +1,14 @@
|
||||
{
|
||||
"forge_marker": 1,
|
||||
"defaults": {
|
||||
"model": "botania:block/crate",
|
||||
"textures": { "bottom": "botania:blocks/crate_crafty_bottom", "side": "botania:blocks/crate_crafty", "particle": "botania:blocks/crate_crafty" }
|
||||
},
|
||||
"variants": {
|
||||
"pattern": {
|
||||
"none": {},
|
||||
"crafty_1_1": { "textures": { "side": "botania:blocks/crate_crafty_pattern_0" } },
|
||||
"crafty_2_2": { "textures": { "side": "botania:blocks/crate_crafty_pattern_1" } },
|
||||
"crafty_1_2": { "textures": { "side": "botania:blocks/crate_crafty_pattern_2" } },
|
||||
"crafty_2_1": { "textures": { "side": "botania:blocks/crate_crafty_pattern_3" } },
|
||||
"crafty_1_3": { "textures": { "side": "botania:blocks/crate_crafty_pattern_4" } },
|
||||
"crafty_3_1": { "textures": { "side": "botania:blocks/crate_crafty_pattern_5" } },
|
||||
"crafty_2_3": { "textures": { "side": "botania:blocks/crate_crafty_pattern_6" } },
|
||||
"crafty_3_2": { "textures": { "side": "botania:blocks/crate_crafty_pattern_7" } },
|
||||
"crafty_donut": { "textures": { "side": "botania:blocks/crate_crafty_pattern_8" } }
|
||||
}
|
||||
"pattern=none": { "model": "botania:block/crafty_crate" },
|
||||
"pattern=crafty_1_1": { "model": "botania:block/crafty_crate_1_1" },
|
||||
"pattern=crafty_2_2": { "model": "botania:block/crafty_crate_2_2" },
|
||||
"pattern=crafty_1_2": { "model": "botania:block/crafty_crate_1_2" },
|
||||
"pattern=crafty_2_1": { "model": "botania:block/crafty_crate_2_1" },
|
||||
"pattern=crafty_1_3": { "model": "botania:block/crafty_crate_1_3" },
|
||||
"pattern=crafty_3_1": { "model": "botania:block/crafty_crate_3_1" },
|
||||
"pattern=crafty_2_3": { "model": "botania:block/crafty_crate_2_3" },
|
||||
"pattern=crafty_3_2": { "model": "botania:block/crafty_crate_3_2" },
|
||||
"pattern=crafty_donut": { "model": "botania:block/crafty_crate_donut" }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"variants": {
|
||||
"half=lower": { "model": "botania:block/plants/cyan_double_flower" },
|
||||
"half=upper": { "model": "botania:block/plants/cyan_double_flower_top" }
|
||||
}
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
{
|
||||
"forge_marker": 1,
|
||||
"defaults": {
|
||||
"model": "minecraft:cross"
|
||||
},
|
||||
"variants": {
|
||||
"df_variant=white,half=lower": [{ "textures": { "cross": "botania:blocks/flower0tall0" } }],
|
||||
"df_variant=white,half=upper": [{ "textures": { "cross": "botania:blocks/flower0tall1" } }],
|
||||
"df_variant=orange,half=lower": [{ "textures": { "cross": "botania:blocks/flower1tall0" } }],
|
||||
"df_variant=orange,half=upper": [{ "textures": { "cross": "botania:blocks/flower1tall1" } }],
|
||||
"df_variant=magenta,half=lower": [{ "textures": { "cross": "botania:blocks/flower2tall0" } }],
|
||||
"df_variant=magenta,half=upper": [{ "textures": { "cross": "botania:blocks/flower2tall1" } }],
|
||||
"df_variant=light_blue,half=lower": [{ "textures": { "cross": "botania:blocks/flower3tall0" } }],
|
||||
"df_variant=light_blue,half=upper": [{ "textures": { "cross": "botania:blocks/flower3tall1" } }],
|
||||
"df_variant=yellow,half=lower": [{ "textures": { "cross": "botania:blocks/flower4tall0" } }],
|
||||
"df_variant=yellow,half=upper": [{ "textures": { "cross": "botania:blocks/flower4tall1" } }],
|
||||
"df_variant=lime,half=lower": [{ "textures": { "cross": "botania:blocks/flower5tall0" } }],
|
||||
"df_variant=lime,half=upper": [{ "textures": { "cross": "botania:blocks/flower5tall1" } }],
|
||||
"df_variant=pink,half=lower": [{ "textures": { "cross": "botania:blocks/flower6tall0" } }],
|
||||
"df_variant=pink,half=upper": [{ "textures": { "cross": "botania:blocks/flower6tall1" } }],
|
||||
"df_variant=gray,half=lower": [{ "textures": { "cross": "botania:blocks/flower7tall0" } }],
|
||||
"df_variant=gray,half=upper": [{ "textures": { "cross": "botania:blocks/flower7tall1" } }]
|
||||
}
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
{
|
||||
"forge_marker": 1,
|
||||
"defaults": {
|
||||
"model": "minecraft:cross"
|
||||
},
|
||||
"variants": {
|
||||
"df_variant=silver,half=lower": [{ "textures": { "cross": "botania:blocks/flower8tall0" } }],
|
||||
"df_variant=silver,half=upper": [{ "textures": { "cross": "botania:blocks/flower8tall1" } }],
|
||||
"df_variant=cyan,half=lower": [{ "textures": { "cross": "botania:blocks/flower9tall0" } }],
|
||||
"df_variant=cyan,half=upper": [{ "textures": { "cross": "botania:blocks/flower9tall1" } }],
|
||||
"df_variant=purple,half=lower": [{ "textures": { "cross": "botania:blocks/flower10tall0" } }],
|
||||
"df_variant=purple,half=upper": [{ "textures": { "cross": "botania:blocks/flower10tall1" } }],
|
||||
"df_variant=blue,half=lower": [{ "textures": { "cross": "botania:blocks/flower11tall0" } }],
|
||||
"df_variant=blue,half=upper": [{ "textures": { "cross": "botania:blocks/flower11tall1" } }],
|
||||
"df_variant=brown,half=lower": [{ "textures": { "cross": "botania:blocks/flower12tall0" } }],
|
||||
"df_variant=brown,half=upper": [{ "textures": { "cross": "botania:blocks/flower12tall1" } }],
|
||||
"df_variant=green,half=lower": [{ "textures": { "cross": "botania:blocks/flower13tall0" } }],
|
||||
"df_variant=green,half=upper": [{ "textures": { "cross": "botania:blocks/flower13tall1" } }],
|
||||
"df_variant=red,half=lower": [{ "textures": { "cross": "botania:blocks/flower14tall0" } }],
|
||||
"df_variant=red,half=upper": [{ "textures": { "cross": "botania:blocks/flower14tall1" } }],
|
||||
"df_variant=black,half=lower": [{ "textures": { "cross": "botania:blocks/flower15tall0" } }],
|
||||
"df_variant=black,half=upper": [{ "textures": { "cross": "botania:blocks/flower15tall1" } }]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"variants": {
|
||||
"half=lower": { "model": "botania:block/plants/gray_double_flower" },
|
||||
"half=upper": { "model": "botania:block/plants/gray_double_flower_top" }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"variants": {
|
||||
"half=lower": { "model": "botania:block/plants/green_double_flower" },
|
||||
"half=upper": { "model": "botania:block/plants/green_double_flower_top" }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"variants": {
|
||||
"half=lower": { "model": "botania:block/plants/light_blue_double_flower" },
|
||||
"half=upper": { "model": "botania:block/plants/light_blue_double_flower_top" }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"variants": {
|
||||
"half=lower": { "model": "botania:block/plants/light_gray_double_flower" },
|
||||
"half=upper": { "model": "botania:block/plants/light_gray_double_flower_top" }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"variants": {
|
||||
"half=lower": { "model": "botania:block/plants/lime_double_flower" },
|
||||
"half=upper": { "model": "botania:block/plants/lime_double_flower_top" }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"variants": {
|
||||
"half=lower": { "model": "botania:block/plants/magenta_double_flower" },
|
||||
"half=upper": { "model": "botania:block/plants/magenta_double_flower_top" }
|
||||
}
|
||||
}
|
||||
@@ -1,10 +1,5 @@
|
||||
{
|
||||
"forge_marker": 1,
|
||||
"defaults": {
|
||||
"model": "botania:block/crate",
|
||||
"textures": { "bottom": "botania:blocks/crate_open_bottom", "side": "botania:blocks/crate_open", "particle": "botania:blocks/crate_open" }
|
||||
},
|
||||
"variants": {
|
||||
"": [{}]
|
||||
"": { "model": "botania:block/open_crate" }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"variants": {
|
||||
"half=lower": { "model": "botania:block/plants/orange_double_flower" },
|
||||
"half=upper": { "model": "botania:block/plants/orange_double_flower_top" }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"variants": {
|
||||
"half=lower": { "model": "botania:block/plants/pink_double_flower" },
|
||||
"half=upper": { "model": "botania:block/plants/pink_double_flower_top" }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"variants": {
|
||||
"half=lower": { "model": "botania:block/plants/purple_double_flower" },
|
||||
"half=upper": { "model": "botania:block/plants/purple_double_flower_top" }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"variants": {
|
||||
"half=lower": { "model": "botania:block/plants/red_double_flower" },
|
||||
"half=upper": { "model": "botania:block/plants/red_double_flower_top" }
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"variants": {
|
||||
"": { "model": "botania:teru_teru_bozu" }
|
||||
"": { "model": "botania:block/teru_teru_bozu" }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"variants": {
|
||||
"half=lower": { "model": "botania:block/plants/white_double_flower" },
|
||||
"half=upper": { "model": "botania:block/plants/white_double_flower_top" }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"variants": {
|
||||
"half=lower": { "model": "botania:block/plants/yellow_double_flower" },
|
||||
"half=upper": { "model": "botania:block/plants/yellow_double_flower_top" }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"parent": "botania:block/shapes/crate",
|
||||
"textures": {
|
||||
"bottom": "botania:blocks/crate_crafty_bottom",
|
||||
"side": "botania:blocks/crate_crafty"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"parent": "botania:block/shapes/crate",
|
||||
"textures": {
|
||||
"bottom": "botania:blocks/crate_crafty_bottom",
|
||||
"side": "botania:blocks/crate_crafty_pattern_0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"parent": "botania:block/shapes/crate",
|
||||
"textures": {
|
||||
"bottom": "botania:blocks/crate_crafty_bottom",
|
||||
"side": "botania:blocks/crate_crafty_pattern_2"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"parent": "botania:block/shapes/crate",
|
||||
"textures": {
|
||||
"bottom": "botania:blocks/crate_crafty_bottom",
|
||||
"side": "botania:blocks/crate_crafty_pattern_4"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"parent": "botania:block/shapes/crate",
|
||||
"textures": {
|
||||
"bottom": "botania:blocks/crate_crafty_bottom",
|
||||
"side": "botania:blocks/crate_crafty_pattern_3"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"parent": "botania:block/shapes/crate",
|
||||
"textures": {
|
||||
"bottom": "botania:blocks/crate_crafty_bottom",
|
||||
"side": "botania:blocks/crate_crafty_pattern_1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"parent": "botania:block/shapes/crate",
|
||||
"textures": {
|
||||
"bottom": "botania:blocks/crate_crafty_bottom",
|
||||
"side": "botania:blocks/crate_crafty_pattern_6"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"parent": "botania:block/shapes/crate",
|
||||
"textures": {
|
||||
"bottom": "botania:blocks/crate_crafty_bottom",
|
||||
"side": "botania:blocks/crate_crafty_pattern_5"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"parent": "botania:block/shapes/crate",
|
||||
"textures": {
|
||||
"bottom": "botania:blocks/crate_crafty_bottom",
|
||||
"side": "botania:blocks/crate_crafty_pattern_7"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"parent": "botania:block/shapes/crate",
|
||||
"textures": {
|
||||
"bottom": "botania:blocks/crate_crafty_bottom",
|
||||
"side": "botania:blocks/crate_crafty_pattern_8"
|
||||
}
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
{
|
||||
"parent": "minecraft:block/block",
|
||||
"elements": [
|
||||
{ "from": [ 0, 0, 0 ],
|
||||
"to": [ 16, 16, 16 ],
|
||||
"faces": {
|
||||
"down": { "texture": "#bottom", "cullface": "down" },
|
||||
"up": { "texture": "#side", "cullface": "up" },
|
||||
"north": { "texture": "#side", "cullface": "north" },
|
||||
"south": { "texture": "#side", "cullface": "south" },
|
||||
"west": { "texture": "#side", "cullface": "west" },
|
||||
"east": { "texture": "#side", "cullface": "east" }
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"parent": "botania:block/shapes/crate",
|
||||
"textures": {
|
||||
"bottom": "botania:blocks/crate_open_bottom",
|
||||
"side": "botania:blocks/crate_open"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cross",
|
||||
"textures": {
|
||||
"cross": "botania:blocks/flower15tall0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cross",
|
||||
"textures": {
|
||||
"cross": "botania:blocks/flower15tall1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cross",
|
||||
"textures": {
|
||||
"cross": "botania:blocks/flower11tall0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cross",
|
||||
"textures": {
|
||||
"cross": "botania:blocks/flower11tall1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cross",
|
||||
"textures": {
|
||||
"cross": "botania:blocks/flower12tall0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cross",
|
||||
"textures": {
|
||||
"cross": "botania:blocks/flower12tall1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cross",
|
||||
"textures": {
|
||||
"cross": "botania:blocks/flower9tall0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cross",
|
||||
"textures": {
|
||||
"cross": "botania:blocks/flower9tall1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cross",
|
||||
"textures": {
|
||||
"cross": "botania:blocks/flower7tall0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cross",
|
||||
"textures": {
|
||||
"cross": "botania:blocks/flower7tall1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cross",
|
||||
"textures": {
|
||||
"cross": "botania:blocks/flower13tall0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cross",
|
||||
"textures": {
|
||||
"cross": "botania:blocks/flower13tall1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cross",
|
||||
"textures": {
|
||||
"cross": "botania:blocks/flower3tall0"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cross",
|
||||
"textures": {
|
||||
"cross": "botania:blocks/flower3tall1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cross",
|
||||
"textures": {
|
||||
"cross": "botania:blocks/flower8tall0"
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cross",
|
||||
"textures": {
|
||||
"cross": "botania:blocks/flower8tall1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cross",
|
||||
"textures": {
|
||||
"cross": "botania:blocks/flower5tall0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cross",
|
||||
"textures": {
|
||||
"cross": "botania:blocks/flower5tall1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cross",
|
||||
"textures": {
|
||||
"cross": "botania:blocks/flower2tall0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cross",
|
||||
"textures": {
|
||||
"cross": "botania:blocks/flower2tall1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cross",
|
||||
"textures": {
|
||||
"cross": "botania:blocks/flower1tall0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cross",
|
||||
"textures": {
|
||||
"cross": "botania:blocks/flower1tall1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cross",
|
||||
"textures": {
|
||||
"cross": "botania:blocks/flower6tall0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cross",
|
||||
"textures": {
|
||||
"cross": "botania:blocks/flower6tall1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cross",
|
||||
"textures": {
|
||||
"cross": "botania:blocks/flower10tall0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cross",
|
||||
"textures": {
|
||||
"cross": "botania:blocks/flower10tall1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cross",
|
||||
"textures": {
|
||||
"cross": "botania:blocks/flower14tall0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cross",
|
||||
"textures": {
|
||||
"cross": "botania:blocks/flower14tall1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cross",
|
||||
"textures": {
|
||||
"cross": "botania:blocks/flower0tall0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cross",
|
||||
"textures": {
|
||||
"cross": "botania:blocks/flower0tall1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cross",
|
||||
"textures": {
|
||||
"cross": "botania:blocks/flower4tall0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cross",
|
||||
"textures": {
|
||||
"cross": "botania:blocks/flower4tall1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"parent": "minecraft:block/cube",
|
||||
"textures": {
|
||||
"down": "#bottom",
|
||||
"up": "#side",
|
||||
"north": "#side",
|
||||
"south": "#side",
|
||||
"west": "#side",
|
||||
"east": "#side",
|
||||
"particle": "#side"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user