First textures
This commit is contained in:
parent
6ec1a3711e
commit
2bc84f65a1
14 changed files with 14 additions and 4 deletions
BIN
psd/aeternium.psd
Normal file
BIN
psd/aeternium.psd
Normal file
Binary file not shown.
BIN
psd/ender_block.psd
Normal file
BIN
psd/ender_block.psd
Normal file
Binary file not shown.
BIN
psd/terminite_block.psd
Normal file
BIN
psd/terminite_block.psd
Normal file
Binary file not shown.
BIN
psd/terminite_ingot.psd
Normal file
BIN
psd/terminite_ingot.psd
Normal file
Binary file not shown.
|
@ -1,6 +1,7 @@
|
|||
package ru.betterend;
|
||||
|
||||
import net.fabricmc.api.ModInitializer;
|
||||
import ru.betterend.config.MainConfig;
|
||||
import ru.betterend.registry.BiomeRegistry;
|
||||
import ru.betterend.registry.BlockRegistry;
|
||||
import ru.betterend.registry.FeatureRegistry;
|
||||
|
@ -11,6 +12,7 @@ import ru.betterend.world.generator.BetterEndBiomeSource;
|
|||
public class BetterEnd implements ModInitializer {
|
||||
public static final String MOD_ID = "betterend";
|
||||
public static final Logger LOGGER = Logger.get();
|
||||
public static final MainConfig CONFIG = MainConfig.getInstance();
|
||||
|
||||
@Override
|
||||
public void onInitialize() {
|
||||
|
|
|
@ -64,6 +64,13 @@ public class ConfigWriter {
|
|||
JsonFactory.storeJson(configFile, config);
|
||||
}
|
||||
|
||||
public static String scrubFileName(String input) {
|
||||
input = input.replaceAll("[/\\ ]+", "_");
|
||||
input = input.replaceAll("[,:&\"\\|\\<\\>\\?\\*]", "_");
|
||||
|
||||
return input;
|
||||
}
|
||||
|
||||
static {
|
||||
if (!MOD_CONFIG_DIR.exists()) {
|
||||
MOD_CONFIG_DIR.mkdirs();
|
||||
|
|
|
@ -9,7 +9,6 @@ import org.spongepowered.asm.mixin.injection.At;
|
|||
import org.spongepowered.asm.mixin.injection.Inject;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
|
||||
import com.mojang.blaze3d.platform.GlStateManager;
|
||||
import com.mojang.blaze3d.systems.RenderSystem;
|
||||
|
||||
import net.minecraft.client.MinecraftClient;
|
||||
|
@ -28,6 +27,7 @@ import net.minecraft.client.util.math.Vector3f;
|
|||
import net.minecraft.client.world.ClientWorld;
|
||||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.math.Quaternion;
|
||||
|
||||
import ru.betterend.BetterEnd;
|
||||
import ru.betterend.util.MHelper;
|
||||
|
||||
|
@ -80,7 +80,7 @@ public class WorldRendererMixin {
|
|||
BackgroundRenderer.setFogBlack();
|
||||
|
||||
RenderSystem.enableAlphaTest();
|
||||
GlStateManager.alphaFunc(516, 0.0F);
|
||||
RenderSystem.alphaFunc(516, 0.0F);
|
||||
RenderSystem.enableBlend();
|
||||
RenderSystem.enableTexture();
|
||||
|
||||
|
|
|
@ -20,7 +20,8 @@ public class BiomeConfig extends Config {
|
|||
public BiomeConfig(EndBiome biome) {
|
||||
this.biome = biome;
|
||||
Identifier biomeId = biome.getID();
|
||||
this.configFile = new File(BIOME_CONFIG_DIR.toFile(), biomeId.getPath());
|
||||
String folder = ConfigWriter.scrubFileName(biomeId.toString());
|
||||
this.configFile = new File(BIOME_CONFIG_DIR.toFile(), folder + ".json");
|
||||
this.configWriter = new ConfigWriter();
|
||||
this.registerEntries();
|
||||
JsonObject config = configWriter.loadConfig(configFile);
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 498 B |
Binary file not shown.
After Width: | Height: | Size: 543 B |
Binary file not shown.
After Width: | Height: | Size: 520 B |
Binary file not shown.
After Width: | Height: | Size: 397 B |
Binary file not shown.
After Width: | Height: | Size: 468 B |
Loading…
Add table
Add a link
Reference in a new issue