Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a431e2a65c | ||
|
|
aa803a1e51 | ||
|
|
d08e48b73b | ||
|
|
3d3260cd71 | ||
|
|
ff70c8b2e3 | ||
|
|
c1ac213eab | ||
|
|
54c339e03e | ||
|
|
d34cd0445a | ||
|
|
8655f8b0a8 | ||
|
|
886c8819c0 | ||
|
|
539ddce15f |
No files matched your search
@@ -3,9 +3,9 @@ name: Build and test
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [ master, main ]
|
||||
branches: [ master, main, release/** ]
|
||||
push:
|
||||
branches: [ master, main ]
|
||||
branches: [ master, main, release/** ]
|
||||
|
||||
jobs:
|
||||
build-and-test:
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
Contributing
|
||||
============
|
||||
Before contributing, make sure you're familiar with the [GT:NH Contribution Guidelines](https://github.com/GTNewHorizons/.github/blob/master/CONTRIBUTING.md)
|
||||
___
|
||||
Setting up a Development Environment
|
||||
------------------------------------
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.cricketcraft.chisel.api;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
|
||||
/**
|
||||
* To be implemented on an {@link IBlockAccess} that renders blocks which are only part of a block space, so it can
|
||||
* decide connected textures itself instead of reporting the blocks around it.
|
||||
* <p>
|
||||
* Connected textures ask this for every location they check, while rendering in this world. Render bounds smaller than
|
||||
* the block are then a part of the block: they show the matching part of the block's connected texture, instead of the
|
||||
* whole texture squeezed into the bounds.
|
||||
*/
|
||||
public interface IConnectionAccess {
|
||||
|
||||
/**
|
||||
* Whether the given location shows the block being rendered, as seen from the block being rendered.
|
||||
*
|
||||
* @param x X coord of the block to check against. NOT the position of the block being rendered.
|
||||
* @param y Y coord of the block to check against.
|
||||
* @param z Z coord of the block to check against.
|
||||
* @param side The side being rendered, NOT the side being connected from.
|
||||
* <p>
|
||||
* This value can be -1 if no side is specified. Please handle this appropriately.
|
||||
* @param fromX X coord of the block being rendered. It is not necessarily adjacent, it can also be diagonal to the
|
||||
* location.
|
||||
* @param fromY Y coord of the block being rendered.
|
||||
* @param fromZ Z coord of the block being rendered.
|
||||
* @param block The block being rendered.
|
||||
* @param meta The metadata of the block being rendered.
|
||||
* @return True if the location shows the given block and metadata.
|
||||
*/
|
||||
boolean matches(int x, int y, int z, int side, int fromX, int fromY, int fromZ, Block block, int meta);
|
||||
}
|
||||
@@ -36,4 +36,57 @@ public interface IFacade {
|
||||
* @return The metadata of your facade block.
|
||||
*/
|
||||
int getFacadeMetadata(IBlockAccess world, int x, int y, int z, int side);
|
||||
|
||||
/**
|
||||
* Gets the block this facade is acting as towards the block that is checking for a connection. Implement this if
|
||||
* the facade can show different blocks to different neighbours.
|
||||
* <p>
|
||||
* Defaults to {@link #getFacade(IBlockAccess, int, int, int, int)}.
|
||||
*
|
||||
* @param world {@link World}
|
||||
* @param x X coord of your block
|
||||
* @param y Y coord of your block
|
||||
* @param z Z coord of your block
|
||||
* @param side The side being rendered, NOT the side being connected from.
|
||||
* <p>
|
||||
* This value can be -1 if no side is specified. Please handle this appropriately.
|
||||
* @param fromX X coord of the block being rendered, which is checking for a connection. NOT the position of
|
||||
* your block. It is not necessarily adjacent, it can also be diagonal to your block.
|
||||
* @param fromY Y coord of the block being rendered.
|
||||
* @param fromZ Z coord of the block being rendered.
|
||||
* @param fromBlock The block being rendered.
|
||||
* @param fromMeta The metadata of the block being rendered.
|
||||
* @return The block inside of your facade block, as seen from the block being rendered.
|
||||
*/
|
||||
default Block getFacade(IBlockAccess world, int x, int y, int z, int side, int fromX, int fromY, int fromZ,
|
||||
Block fromBlock, int fromMeta) {
|
||||
return getFacade(world, x, y, z, side);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the metadata of the block that this facade is acting as towards the block that is checking for a
|
||||
* connection. Implement this together with
|
||||
* {@link #getFacade(IBlockAccess, int, int, int, int, int, int, int, Block, int)}.
|
||||
* <p>
|
||||
* Defaults to {@link #getFacadeMetadata(IBlockAccess, int, int, int, int)}.
|
||||
*
|
||||
* @param world {@link World}
|
||||
* @param x X coord of your block
|
||||
* @param y Y coord of your block
|
||||
* @param z Z coord of your block
|
||||
* @param side The side being rendered, NOT the side being connected from.
|
||||
* <p>
|
||||
* This value can be -1 if no side is specified. Please handle this appropriately.
|
||||
* @param fromX X coord of the block being rendered, which is checking for a connection. NOT the position of
|
||||
* your block. It is not necessarily adjacent, it can also be diagonal to your block.
|
||||
* @param fromY Y coord of the block being rendered.
|
||||
* @param fromZ Z coord of the block being rendered.
|
||||
* @param fromBlock The block being rendered.
|
||||
* @param fromMeta The metadata of the block being rendered.
|
||||
* @return The metadata of your facade block, as seen from the block being rendered.
|
||||
*/
|
||||
default int getFacadeMetadata(IBlockAccess world, int x, int y, int z, int side, int fromX, int fromY, int fromZ,
|
||||
Block fromBlock, int fromMeta) {
|
||||
return getFacadeMetadata(world, x, y, z, side);
|
||||
}
|
||||
}
|
||||
@@ -6,6 +6,10 @@ import net.minecraft.block.Block;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.client.resources.FallbackResourceManager;
|
||||
import net.minecraft.client.resources.IResourceManager;
|
||||
import net.minecraft.client.resources.IResourcePack;
|
||||
import net.minecraft.client.resources.SimpleReloadableResourceManager;
|
||||
import net.minecraft.launchwrapper.Launch;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
@@ -86,8 +90,8 @@ public enum TextureType {
|
||||
return data.getRight();
|
||||
|
||||
Block block = world.getBlock(x, y, z);
|
||||
boolean topConnected = ctm.isConnected(world, x, y + 1, z, side, block, meta);
|
||||
boolean botConnected = ctm.isConnected(world, x, y - 1, z, side, block, meta);
|
||||
boolean topConnected = ctm.isConnected(world, x, y + 1, z, side, x, y, z, block, meta);
|
||||
boolean botConnected = ctm.isConnected(world, x, y - 1, z, side, x, y, z, block, meta);
|
||||
|
||||
TextureSubmap map = data.getLeft();
|
||||
if (topConnected && botConnected)
|
||||
@@ -138,11 +142,11 @@ public enum TextureType {
|
||||
boolean reverse = side == 3 || side == 4;
|
||||
|
||||
if (side < 4) {
|
||||
p = ctm.isConnected(world, x - 1, y, z, side, block, meta);
|
||||
n = ctm.isConnected(world, x + 1, y, z, side, block, meta);
|
||||
p = ctm.isConnected(world, x - 1, y, z, side, x, y, z, block, meta);
|
||||
n = ctm.isConnected(world, x + 1, y, z, side, x, y, z, block, meta);
|
||||
} else {
|
||||
p = ctm.isConnected(world, x, y, z - 1, side, block, meta);
|
||||
n = ctm.isConnected(world, x, y, z + 1, side, block, meta);
|
||||
p = ctm.isConnected(world, x, y, z - 1, side, x, y, z, block, meta);
|
||||
n = ctm.isConnected(world, x, y, z + 1, side, x, y, z, block, meta);
|
||||
}
|
||||
|
||||
TextureSubmap map = data.getLeft();
|
||||
@@ -384,11 +388,25 @@ public enum TextureType {
|
||||
return CUSTOM;
|
||||
}
|
||||
|
||||
// This is ugly, but faster than class.getResource
|
||||
private static boolean exists(String modid, String path, String postfix) {
|
||||
ResourceLocation rl = new ResourceLocation(modid, "textures/blocks/" + path + postfix + ".png");
|
||||
|
||||
final IResourceManager resMan = Minecraft.getMinecraft().getResourceManager();
|
||||
if (resMan instanceof SimpleReloadableResourceManager simple) {
|
||||
FallbackResourceManager fallback = (FallbackResourceManager)simple.domainResourceManagers.get(rl.getResourceDomain());
|
||||
if (fallback != null) {
|
||||
for (Object obj : fallback.resourcePacks) {
|
||||
if (obj instanceof IResourcePack rp && rp.resourceExists(rl)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// Fallback
|
||||
try {
|
||||
Minecraft.getMinecraft().getResourceManager().getAllResources(rl);
|
||||
resMan.getAllResources(rl);
|
||||
return true;
|
||||
} catch (Throwable t) {
|
||||
return false;
|
||||
|
||||
@@ -88,6 +88,7 @@ public class BlockNameConversion {
|
||||
namingConversion.put("blockFft", "fantasyblock");
|
||||
namingConversion.put("blockCarpetFloor", "carpet");
|
||||
namingConversion.put("blockLaboratory", "laboratoryblock");
|
||||
namingConversion.put("wroughtironblock", "castironblock");
|
||||
}
|
||||
|
||||
public static Item findItem(String oldname) {
|
||||
|
||||
@@ -208,6 +208,11 @@ public enum Features {
|
||||
andesite.carverHelper.addVariation("tile.andesite.4.desc", 4, "andesite/andesiteOrnate");
|
||||
andesite.carverHelper.addVariation("tile.andesite.5.desc", 5, "andesite/andesitePrism");
|
||||
andesite.carverHelper.addVariation("tile.andesite.6.desc", 6, "andesite/andesiteTiles");
|
||||
andesite.carverHelper.addVariation("tile.andesite.7.desc", 7, "andesite/andesiteCobblestone");
|
||||
andesite.carverHelper.addVariation("tile.andesite.8.desc", 8, "andesite/andesiteMossy");
|
||||
andesite.carverHelper.addVariation("tile.andesite.9.desc", 9, "andesite/andesiteModern");
|
||||
andesite.carverHelper.addVariation("tile.andesite.10.desc", 10, "andesite/polished_andesite");
|
||||
andesite.carverHelper.addVariation("tile.andesite.11.desc", 11, "andesite/andesite_weathered");
|
||||
andesite.carverHelper.registerAll(andesite, "andesite");
|
||||
andesite.carverHelper.registerOre("blockAndesite");
|
||||
andesite.carverHelper.registerOre("stoneAndesite");
|
||||
@@ -458,10 +463,27 @@ public enum Features {
|
||||
brickCustom.carverHelper.addVariation("tile.brickCustom.1.desc", 1, "brickCustom/large");
|
||||
brickCustom.carverHelper.addVariation("tile.brickCustom.2.desc", 2, "brickCustom/mortarless");
|
||||
brickCustom.carverHelper.addVariation("tile.brickCustom.3.desc", 3, "brickCustom/varied");
|
||||
// brickCustom.carverHelper.addVariation("tile.brickCustom.4.desc",
|
||||
// 4, "brickCustom/cracked");
|
||||
brickCustom.carverHelper.addVariation("tile.brickCustom.4.desc", 4, "brickCustom/mortar");
|
||||
brickCustom.carverHelper.addVariation("tile.brickCustom.5.desc", 5, "brickCustom/aged");
|
||||
brickCustom.carverHelper.addVariation("tile.brickCustom.6.desc", 6, "brickCustom/yellow");
|
||||
brickCustom.carverHelper.addVariation("tile.brickCustom.7.desc", 7, "brickCustom/brick_tile");
|
||||
brickCustom.carverHelper.addVariation("tile.brickCustom.8.desc", 8, "brickCustom/brick_panel");
|
||||
brickCustom.carverHelper.addVariation("tile.brickCustom.9.desc", 9, "brickCustom/brown_bricks");
|
||||
brickCustom.carverHelper.addVariation("tile.brickCustom.10.desc", 10, "brickCustom/modern");
|
||||
brickCustom.carverHelper.addVariation("tile.brickCustom.11.desc", 11, "brickCustom/white_bricks");
|
||||
brickCustom.carverHelper.addVariation("tile.brickCustom.12.desc", 12, "brickCustom/black_bricks");
|
||||
brickCustom.carverHelper.addVariation("tile.brickCustom.13.desc", 13, "brickCustom/sooty");
|
||||
brickCustom.carverHelper.addVariation("tile.brickCustom.14.desc", 14, "brickCustom/mossy");
|
||||
brickCustom.carverHelper.addVariation("tile.brickCustom.15.desc", 15, "brickCustom/neutral");
|
||||
|
||||
BlockCarvable brickCustom2 = (BlockCarvable) new BlockCarvable(Material.rock)
|
||||
.setStepSound(Block.soundTypeStone)
|
||||
.setCreativeTab(ChiselTabs.tabStoneChiselBlocks);
|
||||
brickCustom2.carverHelper.addVariation("tile.brickCustom2.0.desc", 0, "brickCustom/left_bricks");
|
||||
brickCustom2.carverHelper.addVariation("tile.brickCustom2.1.desc", 1, "brickCustom/right_bricks");
|
||||
brickCustom2.carverHelper.registerBlock(brickCustom2, "brickCustom2");
|
||||
brickCustom2.carverHelper.registerVariations("brickCustom");
|
||||
|
||||
brickCustom.carverHelper.registerAll(brickCustom, "brickCustom");
|
||||
Carving.chisel.registerOre("brickCustom", "brickCustom");
|
||||
}
|
||||
@@ -994,6 +1016,7 @@ public enum Features {
|
||||
diamond_block.carverHelper.addVariation("tile.diamond.10.desc", 10, "diamond/terrain-diamond-fourornate");
|
||||
diamond_block.carverHelper.addVariation("tile.diamond.11.desc", 11, "diamond/terrain-diamond-zelda");
|
||||
diamond_block.carverHelper.addVariation("tile.diamond.12.desc", 12, "diamond/terrain-diamond-ornatelayer");
|
||||
diamond_block.carverHelper.addVariation("tile.diamond.13.desc", 13, "diamond/modern");
|
||||
diamond_block.carverHelper.registerAll(diamond_block, "diamond_block");
|
||||
Carving.chisel.registerOre("diamond_block", "blockDiamond");
|
||||
}
|
||||
@@ -1017,6 +1040,12 @@ public enum Features {
|
||||
diorite.carverHelper.addVariation("tile.diorite.4.desc", 4, "diorite/dioriteOrnate");
|
||||
diorite.carverHelper.addVariation("tile.diorite.5.desc", 5, "diorite/dioritePrism");
|
||||
diorite.carverHelper.addVariation("tile.diorite.6.desc", 6, "diorite/dioriteTiles");
|
||||
diorite.carverHelper.addVariation("tile.diorite.7.desc", 7, "diorite/dioriteCobblestone");
|
||||
diorite.carverHelper.addVariation("tile.diorite.8.desc", 8, "diorite/dioriteMossy");
|
||||
diorite.carverHelper.addVariation("tile.diorite.9.desc", 9, "diorite/dioriteModern");
|
||||
diorite.carverHelper.addVariation("tile.diorite.10.desc", 10, "diorite/polished_diorite");
|
||||
diorite.carverHelper.addVariation("tile.diorite.11.desc", 11, "diorite/diorite_black");
|
||||
diorite.carverHelper.addVariation("tile.diorite.12.desc", 12, "diorite/diorite_hornblende");
|
||||
diorite.carverHelper.registerAll(diorite, "diorite");
|
||||
diorite.carverHelper.registerOre("blockDiorite");
|
||||
diorite.carverHelper.registerOre("stoneDiorite");
|
||||
@@ -1092,6 +1121,7 @@ public enum Features {
|
||||
emerald_block.carverHelper.addVariation("tile.emerald.9.desc", 9, "emerald/four");
|
||||
emerald_block.carverHelper.addVariation("tile.emerald.10.desc", 10, "emerald/fourornate");
|
||||
emerald_block.carverHelper.addVariation("tile.emerald.11.desc", 11, "emerald/ornate");
|
||||
emerald_block.carverHelper.addVariation("tile.emerald.12.desc", 12, "emerald/modern");
|
||||
emerald_block.carverHelper.registerAll(emerald_block, "emerald_block");
|
||||
Carving.chisel.registerOre("emerald_block", "emerald");
|
||||
}
|
||||
@@ -1350,6 +1380,7 @@ public enum Features {
|
||||
.setHardness(0.3F)
|
||||
.setStepSound(Block.soundTypeGlass);
|
||||
glass2.carverHelper.addVariation("tile.glass2.0.desc", 0, "glass/chrono", 20);
|
||||
glass2.carverHelper.addVariation("tile.glass2.1.desc", 1, "glass/modern_glass", 1);
|
||||
glass2.carverHelper.registerBlock(glass2, "glass2");
|
||||
glass2.carverHelper.registerVariations("glass");
|
||||
}
|
||||
@@ -1581,6 +1612,7 @@ public enum Features {
|
||||
gold_block.carverHelper.addVariation("tile.gold.12.desc", 12, "gold/terrain-gold-space");
|
||||
gold_block.carverHelper.addVariation("tile.gold.13.desc", 13, "gold/terrain-gold-spaceblack");
|
||||
gold_block.carverHelper.addVariation("tile.gold.14.desc", 14, "gold/terrain-gold-simple");
|
||||
gold_block.carverHelper.addVariation("tile.gold.15.desc", 15, "gold/modern");
|
||||
|
||||
BlockCarvable gold2 = (BlockCarvable) new BlockBeaconBase(Material.iron).setStepSound(Block.soundTypeMetal)
|
||||
.setCreativeTab(ChiselTabs.tabModdedChiselBlocks)
|
||||
@@ -1618,6 +1650,11 @@ public enum Features {
|
||||
granite.carverHelper.addVariation("tile.granite.4.desc", 4, "granite/graniteOrnate");
|
||||
granite.carverHelper.addVariation("tile.granite.5.desc", 5, "granite/granitePrism");
|
||||
granite.carverHelper.addVariation("tile.granite.6.desc", 6, "granite/graniteTiles");
|
||||
granite.carverHelper.addVariation("tile.granite.7.desc", 7, "granite/graniteCobblestone");
|
||||
granite.carverHelper.addVariation("tile.granite.8.desc", 8, "granite/graniteMossy");
|
||||
granite.carverHelper.addVariation("tile.granite.9.desc", 9, "granite/graniteModern");
|
||||
granite.carverHelper.addVariation("tile.granite.10.desc", 10, "granite/graniteModernPolished");
|
||||
granite.carverHelper.addVariation("tile.granite.11.desc", 11, "granite/graniteMineralSand");
|
||||
granite.carverHelper.registerAll(granite, "granite");
|
||||
granite.carverHelper.registerOre("blockGranite");
|
||||
granite.carverHelper.registerOre("stoneGranite");
|
||||
@@ -2204,6 +2241,7 @@ public enum Features {
|
||||
lapis_block.carverHelper.addVariation("tile.lapis.6.desc", 6, "lapis/a1-blocklapis-panel");
|
||||
lapis_block.carverHelper.addVariation("tile.lapis.7.desc", 7, "lapis/a1-blocklapis-smooth");
|
||||
lapis_block.carverHelper.addVariation("tile.lapis.8.desc", 8, "lapis/a1-blocklapis-ornatelayer");
|
||||
lapis_block.carverHelper.addVariation("tile.lapis.9.desc", 9, "lapis/modern");
|
||||
|
||||
lapis_block.carverHelper.registerAll(lapis_block, "lapis_block");
|
||||
Carving.chisel.registerOre("lapis_block", "lapis");
|
||||
@@ -4653,6 +4691,49 @@ public enum Features {
|
||||
new ItemStack(Blocks.dirt, 1));
|
||||
}
|
||||
},
|
||||
MOSS_CARPET {
|
||||
|
||||
@Override
|
||||
void addBlocks() {
|
||||
BlockCarvableCarpet moss_carpet = (BlockCarvableCarpet) new BlockCarvableCarpet(Material.grass)
|
||||
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
|
||||
.setHardness(1.0F)
|
||||
.setResistance(1.0F);
|
||||
|
||||
moss_carpet.carverHelper.addVariation("tile.moss.0.desc", 0, "moss/moss");
|
||||
moss_carpet.carverHelper.addVariation("tile.moss.1.desc", 1, "moss/pale_moss");
|
||||
moss_carpet.carverHelper.addVariation("tile.moss.2.desc", 2, "moss/dark_moss");
|
||||
moss_carpet.carverHelper.addVariation("tile.moss.3.desc", 3, "moss/dry_moss");
|
||||
moss_carpet.carverHelper.addVariation("tile.moss.4.desc", 4, "moss/golden_moss");
|
||||
moss_carpet.carverHelper.addVariation("tile.moss.5.desc", 5, "moss/infused_moss");
|
||||
moss_carpet.carverHelper.addVariation("tile.moss.6.desc", 6, "moss/mutated_moss");
|
||||
moss_carpet.carverHelper.addVariation("tile.moss.7.desc", 7, "moss/scorched_moss");
|
||||
moss_carpet.carverHelper.addVariation("tile.moss.8.desc", 8, "moss/vivid_moss");
|
||||
moss_carpet.carverHelper.addVariation("tile.moss.9.desc", 9, "moss/peat_moss");
|
||||
moss_carpet.carverHelper.addVariation("tile.moss.10.desc", 10, "moss/pink_sphagnum_moss");
|
||||
if (!Configurations.allowChiselCrossColors) {
|
||||
moss_carpet.carverHelper.forbidChiseling = true;
|
||||
}
|
||||
moss_carpet.carverHelper.registerAll(moss_carpet, "moss_carpet");
|
||||
OreDictionary.registerOre("blockMossCarpet", moss_carpet);
|
||||
}
|
||||
|
||||
@Override
|
||||
void addRecipes() {
|
||||
GameRegistry.addRecipe(
|
||||
new ItemStack(moss_carpet, 8, meta),
|
||||
"YY ",
|
||||
" ",
|
||||
" ",
|
||||
'Y',
|
||||
new ItemStack(ChiselBlocks.moss, 1, meta));
|
||||
}
|
||||
|
||||
@Override
|
||||
boolean needsMetaRecipes() {
|
||||
return true;
|
||||
}
|
||||
},
|
||||
ELECTRUM {
|
||||
|
||||
@Override
|
||||
@@ -4731,33 +4812,25 @@ public enum Features {
|
||||
Carving.chisel.registerOre("platinumblock", "blockPlatinum");
|
||||
}
|
||||
},
|
||||
WROUGHT_IRON {
|
||||
CAST_IRON {
|
||||
|
||||
@Override
|
||||
void addBlocks() {
|
||||
BlockCarvable wrought_iron = (BlockCarvable) new BlockBeaconBase(Material.iron)
|
||||
BlockCarvable cast_iron = (BlockCarvable) new BlockBeaconBase(Material.iron)
|
||||
.setStepSound(Block.soundTypeMetal)
|
||||
.setCreativeTab(ChiselTabs.tabModdedChiselBlocks)
|
||||
.setHardness(5F)
|
||||
.setResistance(10F);
|
||||
wrought_iron.carverHelper
|
||||
.addVariation("tile.newmetalOre.0.desc", 0, "metals/wrought_iron/wrought_iron_0", 0);
|
||||
wrought_iron.carverHelper
|
||||
.addVariation("tile.newmetalOre.1.desc", 1, "metals/wrought_iron/wrought_iron_1", 1);
|
||||
wrought_iron.carverHelper
|
||||
.addVariation("tile.newetalOre.2.desc", 2, "metals/wrought_iron/wrought_iron_2", 2);
|
||||
wrought_iron.carverHelper
|
||||
.addVariation("tile.newetalOre.3.desc", 3, "metals/wrought_iron/wrought_iron_3", 3);
|
||||
wrought_iron.carverHelper
|
||||
.addVariation("tile.newetalOre.4.desc", 4, "metals/wrought_iron/wrought_iron_4", 4);
|
||||
wrought_iron.carverHelper
|
||||
.addVariation("tile.newetalOre.5.desc", 5, "metals/wrought_iron/wrought_iron_5", 5);
|
||||
wrought_iron.carverHelper
|
||||
.addVariation("tile.newetalOre.6.desc", 6, "metals/wrought_iron/wrought_iron_6", 6);
|
||||
wrought_iron.carverHelper
|
||||
.addVariation("tile.newetalOre.7.desc", 7, "metals/wrought_iron/wrought_iron_7", 6);
|
||||
wrought_iron.carverHelper.registerAll(wrought_iron, "wroughtironblock");
|
||||
Carving.chisel.registerOre("wroughtironblock", "blockWroughtIron");
|
||||
cast_iron.carverHelper.addVariation("tile.newmetalOre.0.desc", 0, "metals/cast_iron/cast_iron_0", 0);
|
||||
cast_iron.carverHelper.addVariation("tile.newmetalOre.1.desc", 1, "metals/cast_iron/cast_iron_1", 1);
|
||||
cast_iron.carverHelper.addVariation("tile.newetalOre.2.desc", 2, "metals/cast_iron/cast_iron_2", 2);
|
||||
cast_iron.carverHelper.addVariation("tile.newetalOre.3.desc", 3, "metals/cast_iron/cast_iron_3", 3);
|
||||
cast_iron.carverHelper.addVariation("tile.newetalOre.4.desc", 4, "metals/cast_iron/cast_iron_4", 4);
|
||||
cast_iron.carverHelper.addVariation("tile.newetalOre.5.desc", 5, "metals/cast_iron/cast_iron_5", 5);
|
||||
cast_iron.carverHelper.addVariation("tile.newetalOre.6.desc", 6, "metals/cast_iron/cast_iron_6", 6);
|
||||
cast_iron.carverHelper.addVariation("tile.newetalOre.7.desc", 7, "metals/cast_iron/cast_iron_7", 6);
|
||||
cast_iron.carverHelper.registerAll(cast_iron, "castironblock");
|
||||
Carving.chisel.registerOre("castironblock", "blockCastIron");
|
||||
}
|
||||
},
|
||||
TITANIUM {
|
||||
@@ -4919,8 +4992,320 @@ public enum Features {
|
||||
cobalt.carverHelper.registerAll(cobalt, "cobaltblock");
|
||||
Carving.chisel.registerOre("cobaltblock", "blockCobalt");
|
||||
}
|
||||
},
|
||||
|
||||
CORAL {
|
||||
|
||||
@Override
|
||||
void addBlocks() {
|
||||
BlockCarvable coral = (BlockCarvable) new BlockCarvable(Material.ground).setStepSound(Block.soundTypeStone)
|
||||
.setCreativeTab(ChiselTabs.tabStoneChiselBlocks)
|
||||
.setHardness(2F)
|
||||
.setResistance(4F);
|
||||
coral.carverHelper.addVariation("tile.coral.0.desc", 0, "coral/brain_coral", 0);
|
||||
coral.carverHelper.addVariation("tile.coral.1.desc", 1, "coral/bubble_coral", 1);
|
||||
coral.carverHelper.addVariation("tile.coral.2.desc", 2, "coral/fire_coral", 2);
|
||||
coral.carverHelper.addVariation("tile.coral.3.desc", 3, "coral/horn_coral", 3);
|
||||
coral.carverHelper.addVariation("tile.coral.4.desc", 4, "coral/tube_coral", 4);
|
||||
coral.carverHelper.addVariation("tile.coral.5.desc", 5, "coral/dead_brain_coral", 5);
|
||||
coral.carverHelper.addVariation("tile.coral.6.desc", 6, "coral/dead_bubble_coral", 6);
|
||||
coral.carverHelper.addVariation("tile.coral.7.desc", 7, "coral/dead_fire_coral", 7);
|
||||
coral.carverHelper.addVariation("tile.coral.8.desc", 8, "coral/dead_horn_coral", 8);
|
||||
coral.carverHelper.addVariation("tile.coral.9.desc", 9, "coral/dead_tube_coral", 9);
|
||||
coral.carverHelper.addVariation("tile.coral.10.desc", 10, "coral/brain_coral_bricks", 10);
|
||||
coral.carverHelper.addVariation("tile.coral.11.desc", 11, "coral/bubble_coral_bricks", 11);
|
||||
coral.carverHelper.addVariation("tile.coral.12.desc", 12, "coral/fire_coral_bricks", 12);
|
||||
coral.carverHelper.addVariation("tile.coral.13.desc", 13, "coral/horn_coral_bricks", 13);
|
||||
coral.carverHelper.addVariation("tile.coral.14.desc", 14, "coral/tube_coral_bricks", 14);
|
||||
coral.carverHelper.addVariation("tile.coral.15.desc", 15, "coral/dead_coral_bricks", 15);
|
||||
coral.carverHelper.registerAll(coral, "coral");
|
||||
Carving.chisel.registerOre("coral", "blockCoral");
|
||||
}
|
||||
|
||||
@Override
|
||||
void addRecipes() {
|
||||
GameRegistry.addRecipe(
|
||||
new ItemStack(coral, 8, 0),
|
||||
"ggg",
|
||||
"gMg",
|
||||
"ggg",
|
||||
'M',
|
||||
new ItemStack(Items.water_bucket, 1),
|
||||
'g',
|
||||
new ItemStack(Items.bone, 1));
|
||||
}
|
||||
},
|
||||
|
||||
MUD {
|
||||
|
||||
@Override
|
||||
void addBlocks() {
|
||||
BlockCarvable mud = (BlockCarvable) new BlockCarvable().setStepSound(Block.soundTypeGrass)
|
||||
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
|
||||
.setHardness(1F)
|
||||
.setResistance(1F);
|
||||
|
||||
mud.carverHelper.addVariation("tile.mud.0.desc", 0, "mud/mud");
|
||||
mud.carverHelper.addVariation("tile.mud.1.desc", 1, "mud/loamy_mud");
|
||||
mud.carverHelper.addVariation("tile.mud.2.desc", 2, "mud/marl");
|
||||
mud.carverHelper.addVariation("tile.mud.3.desc", 3, "mud/brown_mud");
|
||||
mud.carverHelper.addVariation("tile.mud.4.desc", 4, "mud/packed_mud");
|
||||
mud.carverHelper.addVariation("tile.mud.5.desc", 5, "mud/rooted_mud");
|
||||
mud.carverHelper.addVariation("tile.mud.6.desc", 6, "mud/mud_bricks");
|
||||
|
||||
mud.carverHelper.registerAll(mud, "mud");
|
||||
}
|
||||
|
||||
@Override
|
||||
void addRecipes() {
|
||||
GameRegistry.addRecipe(
|
||||
new ItemStack(mud, 8, 0),
|
||||
"iii",
|
||||
"ixi",
|
||||
"iii",
|
||||
'x',
|
||||
new ItemStack(Items.water_bucket, 1),
|
||||
'i',
|
||||
new ItemStack(Blocks.dirt, 1));
|
||||
}
|
||||
},
|
||||
ALBUMBLOCK {
|
||||
|
||||
@Override
|
||||
void addBlocks() {
|
||||
BlockCarvable albumblock = (BlockCarvable) new BlockCarvable(Material.wood)
|
||||
.setStepSound(Block.soundTypeWood)
|
||||
.setCreativeTab(ChiselTabs.tabModdedChiselBlocks)
|
||||
.setHardness(5F)
|
||||
.setResistance(10F);
|
||||
albumblock.carverHelper.addVariation("tile.album.0.desc", 0, "album/pretty_odd_0");
|
||||
albumblock.carverHelper.addVariation("tile.album.1.desc", 1, "album/pretty_odd_1");
|
||||
albumblock.carverHelper.addVariation("tile.album.2.desc", 2, "album/laminated_denim");
|
||||
albumblock.carverHelper.addVariation("tile.album.3.desc", 3, "album/man_bites_dog");
|
||||
albumblock.carverHelper.addVariation("tile.album.4.desc", 4, "album/danger_days_0");
|
||||
albumblock.carverHelper.addVariation("tile.album.5.desc", 5, "album/danger_days_1");
|
||||
albumblock.carverHelper.addVariation("tile.album.6.desc", 6, "album/infinity_on_high");
|
||||
albumblock.carverHelper.addVariation("tile.album.7.desc", 7, "album/from_under_the_cork_tree");
|
||||
albumblock.carverHelper.addVariation("tile.album.8.desc", 8, "album/polygondwanaland");
|
||||
albumblock.carverHelper.addVariation("tile.album.9.desc", 9, "album/chunky_shrapnel");
|
||||
albumblock.carverHelper.addVariation("tile.album.10.desc", 10, "album/omnium_gatherium");
|
||||
albumblock.carverHelper.addVariation("tile.album.11.desc", 11, "album/phantom_island");
|
||||
albumblock.carverHelper.addVariation("tile.album.12.desc", 12, "album/reactor");
|
||||
albumblock.carverHelper.addVariation("tile.album.13.desc", 13, "album/black_parade_0");
|
||||
albumblock.carverHelper.addVariation("tile.album.14.desc", 14, "album/black_parade_1");
|
||||
albumblock.carverHelper.addVariation("tile.album.15.desc", 15, "album/collide_with_the_sky");
|
||||
|
||||
BlockCarvable albumblock2 = (BlockCarvable) new BlockCarvable(Material.wood)
|
||||
.setStepSound(Block.soundTypeWood)
|
||||
.setCreativeTab(ChiselTabs.tabModdedChiselBlocks)
|
||||
.setHardness(5F)
|
||||
.setResistance(10F);
|
||||
albumblock2.carverHelper.addVariation("tile.album2.16.desc", 0, "album/cork_tree");
|
||||
albumblock2.carverHelper.addVariation("tile.album2.17.desc", 1, "album/folie_a_deux");
|
||||
albumblock2.carverHelper.addVariation("tile.album2.18.desc", 2, "album/a_fever_you_cant_sweat_out");
|
||||
albumblock2.carverHelper.registerBlock(albumblock2, "albumblock2");
|
||||
albumblock2.carverHelper.registerVariations("albumblock");
|
||||
|
||||
albumblock.carverHelper.registerAll(albumblock, "albumblock");
|
||||
Carving.chisel.registerOre("albumblock", "albumblock");
|
||||
}
|
||||
|
||||
@Override
|
||||
void addRecipes() {
|
||||
GameRegistry.addRecipe(
|
||||
new ItemStack(albumblock, 8, 0),
|
||||
"iii",
|
||||
"ixi",
|
||||
"iii",
|
||||
'x',
|
||||
new ItemStack(Blocks.wool, 1),
|
||||
'i',
|
||||
new ItemStack(Blocks.noteblock, 1));
|
||||
}
|
||||
},
|
||||
|
||||
BRUTALISM {
|
||||
|
||||
@Override
|
||||
void addBlocks() {
|
||||
BlockCarvable brutalism = (BlockCarvable) new BlockCarvable().setStepSound(Block.soundTypeStone)
|
||||
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
|
||||
.setHardness(1F)
|
||||
.setResistance(1F);
|
||||
|
||||
brutalism.carverHelper.addVariation("tile.brutalism.0.desc", 0, "brutalism/brutalist_concrete");
|
||||
brutalism.carverHelper.addVariation("tile.brutalism.1.desc", 1, "brutalism/brutalist_bricks");
|
||||
brutalism.carverHelper.addVariation("tile.brutalism.2.desc", 2, "brutalism/ecobrutalist");
|
||||
brutalism.carverHelper.addVariation("tile.brutalism.3.desc", 3, "brutalism/ecobrutalist_flowers");
|
||||
brutalism.carverHelper.addVariation("tile.brutalism.4.desc", 4, "brutalism/faux_window");
|
||||
brutalism.carverHelper.addVariation("tile.brutalism.5.desc", 5, "brutalism/heavily_weathered");
|
||||
brutalism.carverHelper.addVariation("tile.brutalism.6.desc", 6, "brutalism/heavily_weathered_bricks");
|
||||
brutalism.carverHelper.addVariation("tile.brutalism.7.desc", 7, "brutalism/reinforced");
|
||||
brutalism.carverHelper.addVariation("tile.brutalism.8.desc", 8, "brutalism/rimmed_concrete");
|
||||
brutalism.carverHelper.addVariation("tile.brutalism.9.desc", 9, "brutalism/weathered_concrete");
|
||||
|
||||
brutalism.carverHelper.registerAll(brutalism, "brutalism");
|
||||
}
|
||||
|
||||
@Override
|
||||
void addRecipes() {
|
||||
GameRegistry.addRecipe(
|
||||
new ItemStack(brutalism, 8, 0),
|
||||
"iii",
|
||||
"ixi",
|
||||
"iii",
|
||||
'x',
|
||||
new ItemStack(hempcrete, 1),
|
||||
'i',
|
||||
new ItemStack(Blocks.stone, 1));
|
||||
}
|
||||
},
|
||||
|
||||
PORCELAIN {
|
||||
|
||||
@Override
|
||||
void addBlocks() {
|
||||
BlockCarvable porcelain = (BlockCarvable) new BlockCarvable().setStepSound(Block.soundTypeStone)
|
||||
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
|
||||
.setHardness(1F)
|
||||
.setResistance(1F);
|
||||
|
||||
porcelain.carverHelper.addVariation("tile.porcelain.0.desc", 0, "porcelain/porcelain0");
|
||||
porcelain.carverHelper.addVariation("tile.porcelain.1.desc", 1, "porcelain/porcelain1");
|
||||
porcelain.carverHelper.addVariation("tile.porcelain.2.desc", 2, "porcelain/porcelain2");
|
||||
porcelain.carverHelper.addVariation("tile.porcelain.3.desc", 3, "porcelain/porcelain3");
|
||||
porcelain.carverHelper.addVariation("tile.porcelain.4.desc", 4, "porcelain/porcelain4");
|
||||
porcelain.carverHelper.addVariation("tile.porcelain.5.desc", 5, "porcelain/porcelain5");
|
||||
porcelain.carverHelper.addVariation("tile.porcelain.6.desc", 6, "porcelain/porcelain6");
|
||||
porcelain.carverHelper.addVariation("tile.porcelain.7.desc", 7, "porcelain/porcelain7");
|
||||
porcelain.carverHelper.addVariation("tile.porcelain.9.desc", 9, "porcelain/porcelain9");
|
||||
porcelain.carverHelper.addVariation("tile.porcelain.10.desc", 10, "porcelain/porcelain10");
|
||||
porcelain.carverHelper.addVariation("tile.porcelain.11.desc", 11, "porcelain/porcelain11");
|
||||
porcelain.carverHelper.addVariation("tile.porcelain.12.desc", 12, "porcelain/porcelain12");
|
||||
porcelain.carverHelper.addVariation("tile.porcelain.13.desc", 13, "porcelain/porcelain13");
|
||||
|
||||
porcelain.carverHelper.registerAll(porcelain, "porcelain");
|
||||
}
|
||||
|
||||
@Override
|
||||
void addRecipes() {
|
||||
GameRegistry.addRecipe(
|
||||
new ItemStack(porcelain, 8, 0),
|
||||
"iii",
|
||||
"ixi",
|
||||
"iii",
|
||||
'x',
|
||||
new ItemStack(Items.clay_ball, 1),
|
||||
'i',
|
||||
new ItemStack(Items.brick, 1));
|
||||
}
|
||||
},
|
||||
|
||||
ALABASTER {
|
||||
|
||||
@Override
|
||||
void addBlocks() {
|
||||
BlockCarvable alabaster = (BlockCarvable) new BlockCarvable().setStepSound(Block.soundTypeStone)
|
||||
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
|
||||
.setHardness(1F)
|
||||
.setResistance(1F);
|
||||
|
||||
alabaster.carverHelper.addVariation("tile.alabaster.0.desc", 0, "alabaster/alabasterCalcic");
|
||||
alabaster.carverHelper.addVariation("tile.alabaster.1.desc", 1, "alabaster/alabasterChartreuse");
|
||||
alabaster.carverHelper.addVariation("tile.alabaster.2.desc", 2, "alabaster/alabasterLavender");
|
||||
alabaster.carverHelper.addVariation("tile.alabaster.3.desc", 3, "alabaster/alabasterLilac");
|
||||
alabaster.carverHelper.addVariation("tile.alabaster.4.desc", 4, "alabaster/alabasterMauve");
|
||||
alabaster.carverHelper.addVariation("tile.alabaster.5.desc", 5, "alabaster/alabasterPale");
|
||||
alabaster.carverHelper.addVariation("tile.alabaster.6.desc", 6, "alabaster/alabasterPeach");
|
||||
alabaster.carverHelper.addVariation("tile.alabaster.7.desc", 7, "alabaster/alabasterPeriwinkle");
|
||||
alabaster.carverHelper.addVariation("tile.alabaster.8.desc", 8, "alabaster/alabasterSageGreen");
|
||||
alabaster.carverHelper.addVariation("tile.alabaster.9.desc", 9, "alabaster/alabasterSkyBlue");
|
||||
alabaster.carverHelper.addVariation("tile.alabaster.10.desc", 10, "alabaster/alabasterYellow");
|
||||
|
||||
alabaster.carverHelper.registerAll(alabaster, "alabaster");
|
||||
}
|
||||
|
||||
@Override
|
||||
void addRecipes() {
|
||||
GameRegistry.addRecipe(
|
||||
new ItemStack(alabaster, 8, 0),
|
||||
"iii",
|
||||
"ixi",
|
||||
"iii",
|
||||
'x',
|
||||
new ItemStack(porcelain, 1),
|
||||
'i',
|
||||
new ItemStack(Blocks.sandstone, 1));
|
||||
}
|
||||
},
|
||||
|
||||
ROAD {
|
||||
|
||||
@Override
|
||||
void addBlocks() {
|
||||
BlockCarvable road = (BlockCarvable) new BlockConcrete().setStepSound(Block.soundTypeStone)
|
||||
.setCreativeTab(ChiselTabs.tabModdedChiselBlocks)
|
||||
.setHardness(5F)
|
||||
.setResistance(10F);
|
||||
road.carverHelper.addVariation("tile.road.0.desc", 0, "road/asphalt");
|
||||
road.carverHelper.addVariation("tile.road.1.desc", 1, "road/crosswalk");
|
||||
road.carverHelper.addVariation("tile.road.2.desc", 2, "road/dashed_white");
|
||||
road.carverHelper.addVariation("tile.road.3.desc", 3, "road/dashed_yellow");
|
||||
road.carverHelper.addVariation("tile.road.4.desc", 4, "road/dirt_road");
|
||||
road.carverHelper.addVariation("tile.road.5.desc", 5, "road/diverging");
|
||||
road.carverHelper.addVariation("tile.road.6.desc", 6, "road/dotted_white");
|
||||
road.carverHelper.addVariation("tile.road.7.desc", 7, "road/dotted_yellow");
|
||||
road.carverHelper.addVariation("tile.road.8.desc", 8, "road/half_line_east");
|
||||
road.carverHelper.addVariation("tile.road.9.desc", 9, "road/half_line_north");
|
||||
road.carverHelper.addVariation("tile.road.10.desc", 10, "road/half_line_south");
|
||||
road.carverHelper.addVariation("tile.road.11.desc", 11, "road/half_line_west");
|
||||
road.carverHelper.addVariation("tile.road.12.desc", 12, "road/left_lane");
|
||||
road.carverHelper.addVariation("tile.road.13.desc", 13, "road/right_lane");
|
||||
road.carverHelper.addVariation("tile.road.14.desc", 14, "road/lined_white");
|
||||
road.carverHelper.addVariation("tile.road.15.desc", 15, "road/outline_white");
|
||||
|
||||
BlockCarvable road2 = (BlockCarvable) new BlockConcrete().setStepSound(Block.soundTypeStone)
|
||||
.setCreativeTab(ChiselTabs.tabModdedChiselBlocks)
|
||||
.setHardness(5F)
|
||||
.setResistance(10F);
|
||||
road2.carverHelper.addVariation("tile.road.16.desc", 0, "road/passing_east");
|
||||
road2.carverHelper.addVariation("tile.road.17.desc", 1, "road/passing_north");
|
||||
road2.carverHelper.addVariation("tile.road.18.desc", 2, "road/passing_south");
|
||||
road2.carverHelper.addVariation("tile.road.19.desc", 3, "road/passing_west");
|
||||
road2.carverHelper.addVariation("tile.road.20.desc", 4, "road/reflecting");
|
||||
road2.carverHelper.addVariation("tile.road.21.desc", 5, "road/solid_east");
|
||||
road2.carverHelper.addVariation("tile.road.22.desc", 6, "road/solid_north");
|
||||
road2.carverHelper.addVariation("tile.road.23.desc", 7, "road/converging");
|
||||
road2.carverHelper.addVariation("tile.road.24.desc", 8, "road/full_white");
|
||||
road2.carverHelper.addVariation("tile.road.25.desc", 9, "road/full_yellow");
|
||||
road2.carverHelper.addVariation("tile.road.26.desc", 10, "road/gravel_road");
|
||||
road2.carverHelper.addVariation("tile.road.27.desc", 11, "road/solid_white_east");
|
||||
road2.carverHelper.addVariation("tile.road.28.desc", 12, "road/solid_white_north");
|
||||
road2.carverHelper.addVariation("tile.road.29.desc", 13, "road/weathered_asphalt");
|
||||
road2.carverHelper.addVariation("tile.road.30.desc", 14, "road/weathering_asphalt");
|
||||
road2.carverHelper.addVariation("tile.road.31.desc", 15, "road/overgrown_road");
|
||||
road2.carverHelper.registerBlock(road2, "road2");
|
||||
road2.carverHelper.registerVariations("road");
|
||||
|
||||
road.carverHelper.registerAll(road, "road");
|
||||
Carving.chisel.registerOre("road", "road");
|
||||
}
|
||||
|
||||
@Override
|
||||
void addRecipes() {
|
||||
GameRegistry.addRecipe(
|
||||
new ItemStack(road, 32, 0),
|
||||
"iii",
|
||||
"ixi",
|
||||
"iii",
|
||||
'x',
|
||||
new ItemStack(Blocks.gravel, 1),
|
||||
'i',
|
||||
new ItemStack(hempcrete, 1));
|
||||
}
|
||||
};
|
||||
|
||||
public static final Features[] VALUES = values();
|
||||
private static final String[] dyeOres = { "dyeBlack", "dyeRed", "dyeGreen", "dyeBrown", "dyeBlue", "dyePurple",
|
||||
"dyeCyan", "dyeLightGray", "dyeGray", "dyePink", "dyeLime", "dyeYellow", "dyeLightBlue", "dyeMagenta",
|
||||
"dyeOrange", "dyeWhite" };
|
||||
@@ -4936,7 +5321,7 @@ public enum Features {
|
||||
private static void loadBlocks() {
|
||||
Chisel.logger.info("Loading blocks...");
|
||||
int num = 0;
|
||||
for (Features f : values()) {
|
||||
for (Features f : VALUES) {
|
||||
if (f.enabled()) {
|
||||
f.addBlocks();
|
||||
++num;
|
||||
@@ -4953,7 +5338,7 @@ public enum Features {
|
||||
private static void loadItems() {
|
||||
Chisel.logger.info("Loading items...");
|
||||
int num = 0;
|
||||
for (Features f : values()) {
|
||||
for (Features f : VALUES) {
|
||||
if (f.enabled()) {
|
||||
f.addItems();
|
||||
++num;
|
||||
@@ -4967,7 +5352,7 @@ public enum Features {
|
||||
private static void loadRecipes() {
|
||||
Chisel.logger.info("Loading recipes...");
|
||||
int num = 0;
|
||||
for (Features f : values()) {
|
||||
for (Features f : VALUES) {
|
||||
if (f.enabled()) {
|
||||
if (f.needsMetaRecipes()) {
|
||||
for (int i = 0; i < 16; i++) {
|
||||
@@ -5003,7 +5388,7 @@ public enum Features {
|
||||
}
|
||||
|
||||
public static boolean oneModdedFeatureLoaded() {
|
||||
for (Features f : values()) {
|
||||
for (Features f : VALUES) {
|
||||
if (f.hasRequiredMod()) {
|
||||
return true;
|
||||
}
|
||||
@@ -5039,17 +5424,11 @@ public enum Features {
|
||||
this.parent = parent;
|
||||
}
|
||||
|
||||
void addBlocks() {
|
||||
;
|
||||
}
|
||||
void addBlocks() {}
|
||||
|
||||
void addItems() {
|
||||
;
|
||||
}
|
||||
void addItems() {}
|
||||
|
||||
void addRecipes() {
|
||||
;
|
||||
}
|
||||
void addRecipes() {}
|
||||
|
||||
public boolean enabled() {
|
||||
return Configurations.featureEnabled(this) && hasRequiredMod() && hasParentFeature();
|
||||
|
||||
@@ -33,6 +33,11 @@ public class BlockCarvableGlowstone extends BlockCarvable {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getDamageValue(World world, int x, int y, int z) {
|
||||
return world.getBlockMetadata(x, y, z);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z, EntityPlayer player) {
|
||||
Block glowstone = world.getBlock(x, y, z);
|
||||
|
||||
@@ -6,6 +6,7 @@ import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockSand;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.entity.EnumCreatureType;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
@@ -19,6 +20,7 @@ import com.cricketcraft.chisel.api.rendering.ClientUtils;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import team.chisel.Chisel;
|
||||
import team.chisel.config.Configurations;
|
||||
|
||||
public class BlockCarvableSand extends BlockSand implements ICarvable {
|
||||
|
||||
@@ -83,6 +85,11 @@ public class BlockCarvableSand extends BlockSand implements ICarvable {
|
||||
return carverHelper.getVariation(meta);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canCreatureSpawn(EnumCreatureType type, IBlockAccess world, int x, int y, int z) {
|
||||
return Configurations.canMobsSpawnOnTheChiselBlocks;
|
||||
}
|
||||
|
||||
public static class SoundType extends Block.SoundType {
|
||||
|
||||
public final String soundNameStep;
|
||||
|
||||
@@ -6,6 +6,7 @@ import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.entity.EnumCreatureType;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
@@ -14,6 +15,8 @@ import com.cricketcraft.chisel.api.ICarvable;
|
||||
import com.cricketcraft.chisel.api.carving.CarvableHelper;
|
||||
import com.cricketcraft.chisel.api.carving.IVariationInfo;
|
||||
|
||||
import team.chisel.config.Configurations;
|
||||
|
||||
public class BlockMultiLayer extends BlockMultiLayerBase implements ICarvable {
|
||||
|
||||
public CarvableHelper carverHelper;
|
||||
@@ -62,4 +65,9 @@ public class BlockMultiLayer extends BlockMultiLayerBase implements ICarvable {
|
||||
public IVariationInfo getManager(int meta) {
|
||||
return carverHelper.getVariation(meta);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canCreatureSpawn(EnumCreatureType type, IBlockAccess world, int x, int y, int z) {
|
||||
return Configurations.canMobsSpawnOnTheChiselBlocks;
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,6 @@ import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraftforge.client.ForgeHooksClient;
|
||||
|
||||
import team.chisel.client.render.RendererMultiLayer;
|
||||
|
||||
@@ -43,7 +42,6 @@ public abstract class BlockMultiLayerBase extends Block {
|
||||
|
||||
@Override
|
||||
public boolean canRenderInPass(int pass) {
|
||||
ForgeHooksClient.setRenderPass(pass);
|
||||
return pass == 1 || pass == 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -37,6 +37,8 @@ public class TileEntityAutoChisel extends TileEntity implements ISidedInventory
|
||||
STACK,
|
||||
REVERSION;
|
||||
|
||||
public static final Upgrade[] VALUES = values();
|
||||
|
||||
public String getUnlocalizedName() {
|
||||
if (Features.AUTO_CHISEL_UPGRADES.enabled()) {
|
||||
return "item.upgrade_" + this.name()
|
||||
@@ -380,7 +382,7 @@ public class TileEntityAutoChisel extends TileEntity implements ISidedInventory
|
||||
return itemStack.getItem() instanceof IChiselItem;
|
||||
default:
|
||||
return Features.AUTO_CHISEL_UPGRADES.enabled() && itemStack.getItem() == ChiselItems.upgrade
|
||||
&& Upgrade.values()[slot - MIN_UPGRADE].ordinal() == itemStack.getItemDamage();
|
||||
&& Upgrade.VALUES[slot - MIN_UPGRADE].ordinal() == itemStack.getItemDamage();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -465,7 +467,7 @@ public class TileEntityAutoChisel extends TileEntity implements ISidedInventory
|
||||
String unloc = name == null ? null : String.format(base, name);
|
||||
return StatCollector.translateToLocal(unloc);
|
||||
} else {
|
||||
return Upgrade.values()[slotNumber - MIN_UPGRADE].getLocalizedName();
|
||||
return Upgrade.VALUES[slotNumber - MIN_UPGRADE].getLocalizedName();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -40,13 +40,28 @@ public class RendererLayeredGlow implements ISimpleBlockRenderingHandler {
|
||||
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId,
|
||||
RenderBlocks renderer) {
|
||||
final Tessellator tessellator = Tessellator.instance;
|
||||
tessellator.setColorOpaque_I(Configurations.configColors[world.getBlockMetadata(x, y, z)]);
|
||||
final boolean prevEnableAO = renderer.enableAO;
|
||||
final int tint = Configurations.configColors[world.getBlockMetadata(x, y, z)];
|
||||
tessellator.setColorOpaque_I(tint);
|
||||
tessellator.setBrightness(0xF000F0);
|
||||
setFullbrightColor(renderer, tint);
|
||||
Drawing.renderAllFaces(renderer, block, x, y, z, ((BlockCarvableGlow) block).getGlowTexture());
|
||||
renderer.enableAO = prevEnableAO;
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
return true;
|
||||
}
|
||||
|
||||
private static void setFullbrightColor(RenderBlocks renderer, int color) {
|
||||
final float r = (color >> 16 & 255) / 255.0F;
|
||||
final float g = (color >> 8 & 255) / 255.0F;
|
||||
final float b = (color & 255) / 255.0F;
|
||||
renderer.enableAO = true;
|
||||
renderer.colorRedTopLeft = renderer.colorRedBottomLeft = renderer.colorRedBottomRight = renderer.colorRedTopRight = r;
|
||||
renderer.colorGreenTopLeft = renderer.colorGreenBottomLeft = renderer.colorGreenBottomRight = renderer.colorGreenTopRight = g;
|
||||
renderer.colorBlueTopLeft = renderer.colorBlueBottomLeft = renderer.colorBlueBottomRight = renderer.colorBlueTopRight = b;
|
||||
renderer.brightnessTopLeft = renderer.brightnessBottomLeft = renderer.brightnessTopRight = renderer.brightnessBottomRight = 0xF000F0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean shouldRender3DInInventory(int modelId) {
|
||||
return true;
|
||||
|
||||
@@ -14,7 +14,7 @@ import net.minecraft.block.Block;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraftforge.client.MinecraftForgeClient;
|
||||
import net.minecraftforge.client.ForgeHooksClient;
|
||||
|
||||
import com.gtnewhorizons.angelica.api.ThreadSafeISBRH;
|
||||
|
||||
@@ -57,7 +57,7 @@ public class RendererMultiLayer implements ISimpleBlockRenderingHandler {
|
||||
RenderBlocks renderer) {
|
||||
if (!(blck instanceof BlockMultiLayerBase block)) return false;
|
||||
|
||||
if (MinecraftForgeClient.getRenderPass() == 0) {
|
||||
if (ForgeHooksClient.getWorldRenderPass() == 0) {
|
||||
if (block.icon != null) {
|
||||
renderer.overrideBlockTexture = block.icon;
|
||||
renderer.renderStandardBlock(block, x, y, z);
|
||||
|
||||
@@ -303,7 +303,7 @@ public class Configurations {
|
||||
}
|
||||
|
||||
/* features */
|
||||
for (Features feature : Features.values()) {
|
||||
for (Features feature : Features.VALUES) {
|
||||
features.put(
|
||||
featureName(feature),
|
||||
config.get("features", featureName(feature), true)
|
||||
|
||||
@@ -16,6 +16,7 @@ import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
|
||||
import com.cricketcraft.chisel.api.IConnectable;
|
||||
import com.cricketcraft.chisel.api.IConnectionAccess;
|
||||
import com.cricketcraft.chisel.api.IFacade;
|
||||
import com.google.common.base.Optional;
|
||||
import com.google.common.collect.Maps;
|
||||
@@ -191,24 +192,30 @@ public class CTM {
|
||||
}
|
||||
|
||||
/**
|
||||
* A simple check for if the given block can connect to the given direction on the given side.
|
||||
* A check for if the block being rendered can connect to the given location on the given side. Passes the block
|
||||
* being rendered on to {@link IFacade} blocks, so they can decide per neighbour.
|
||||
*
|
||||
* @param world
|
||||
* @param x The x coordinate of the block to check <i>against</i>. This is not the position of your block.
|
||||
* @param y The y coordinate of the block to check <i>against</i>. This is not the position of your block.
|
||||
* @param z The z coordinate of the block to check <i>against</i>. This is not the position of your block.
|
||||
* @param side The side of the block to check for connection status. This is <i>not</i> the direction to check in.
|
||||
* @param block The block to check against for connection.
|
||||
* @param meta The metadata to check against for connection.
|
||||
* @param fromX The x coordinate of your block, the block being rendered.
|
||||
* @param fromY The y coordinate of your block, the block being rendered.
|
||||
* @param fromZ The z coordinate of your block, the block being rendered.
|
||||
* @param block The block being rendered.
|
||||
* @param meta The metadata of the block being rendered.
|
||||
* @return True if the given block can connect to the given location on the given side.
|
||||
*/
|
||||
public boolean isConnected(IBlockAccess world, int x, int y, int z, int side, Block block, int meta) {
|
||||
public boolean isConnected(IBlockAccess world, int x, int y, int z, int side, int fromX, int fromY, int fromZ,
|
||||
Block block, int meta) {
|
||||
ForgeDirection dir = ForgeDirection.VALID_DIRECTIONS[side];
|
||||
return isConnected(world, x, y, z, dir, block, meta);
|
||||
return isConnected(world, x, y, z, dir, fromX, fromY, fromZ, block, meta);
|
||||
}
|
||||
|
||||
/**
|
||||
* A simple check for if the given block can connect to the given direction on the given side.
|
||||
* A check for if the block being rendered can connect to the given location on the given side. Passes the block
|
||||
* being rendered on to {@link IFacade} blocks, so they can decide per neighbour.
|
||||
*
|
||||
* @param world
|
||||
* @param x The x coordinate of the block to check <i>against</i>. This is not the position of your block.
|
||||
@@ -216,41 +223,72 @@ public class CTM {
|
||||
* @param z The z coordinate of the block to check <i>against</i>. This is not the position of your block.
|
||||
* @param dir The {@link ForgeDirection side} of the block to check for connection status. This is <i>not</i> the
|
||||
* direction to check in.
|
||||
* @param block The block to check against for connection.
|
||||
* @param meta The metadata to check against for connection.
|
||||
* @param fromX The x coordinate of your block, the block being rendered.
|
||||
* @param fromY The y coordinate of your block, the block being rendered.
|
||||
* @param fromZ The z coordinate of your block, the block being rendered.
|
||||
* @param block The block being rendered.
|
||||
* @param meta The metadata of the block being rendered.
|
||||
* @return True if the given block can connect to the given location on the given side.
|
||||
*/
|
||||
public boolean isConnected(IBlockAccess world, int x, int y, int z, ForgeDirection dir, Block block, int meta) {
|
||||
|
||||
public boolean isConnected(IBlockAccess world, int x, int y, int z, ForgeDirection dir, int fromX, int fromY,
|
||||
int fromZ, Block block, int meta) {
|
||||
if (CTMLib.chiselLoaded() && connectionBlocked(world, x, y, z, dir.ordinal())) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!matches(world, x, y, z, dir.ordinal(), fromX, fromY, fromZ, block, meta)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (disableObscuredFaceCheck.or(disableObscuredFaceCheckConfig)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// check that we aren't already connected outwards from this side
|
||||
int x2 = x + dir.offsetX;
|
||||
int y2 = y + dir.offsetY;
|
||||
int z2 = z + dir.offsetZ;
|
||||
return !matches(world, x2, y2, z2, dir.ordinal(), fromX, fromY, fromZ, block, meta);
|
||||
}
|
||||
|
||||
boolean disableObscured = disableObscuredFaceCheck.or(disableObscuredFaceCheckConfig);
|
||||
/**
|
||||
* Whether the given location shows the block being rendered, as seen from the block being rendered. Asks the world
|
||||
* if it is an {@link IConnectionAccess}, otherwise compares the block or {@link IFacade} at that location.
|
||||
*
|
||||
* @param world
|
||||
* @param x The x coordinate of the block to check <i>against</i>. This is not the position of your block.
|
||||
* @param y The y coordinate of the block to check <i>against</i>. This is not the position of your block.
|
||||
* @param z The z coordinate of the block to check <i>against</i>. This is not the position of your block.
|
||||
* @param side The side being rendered. -1 for unknown.
|
||||
* @param fromX The x coordinate of your block, the block being rendered.
|
||||
* @param fromY The y coordinate of your block, the block being rendered.
|
||||
* @param fromZ The z coordinate of your block, the block being rendered.
|
||||
* @param block The block being rendered.
|
||||
* @param meta The metadata of the block being rendered.
|
||||
* @return True if the given location shows the given block and metadata.
|
||||
*/
|
||||
public boolean matches(IBlockAccess world, int x, int y, int z, int side, int fromX, int fromY, int fromZ,
|
||||
Block block, int meta) {
|
||||
if (CTMLib.chiselLoaded()) {
|
||||
return matchesAccess(world, x, y, z, side, fromX, fromY, fromZ, block, meta);
|
||||
}
|
||||
return block.equals(world.getBlock(x, y, z)) && world.getBlockMetadata(x, y, z) == meta;
|
||||
}
|
||||
|
||||
Block con = getBlockOrFacade(world, x, y, z, dir.ordinal());
|
||||
Block obscuring = disableObscured ? null : getBlockOrFacade(world, x2, y2, z2, dir.ordinal());
|
||||
private boolean matchesAccess(IBlockAccess world, int x, int y, int z, int side, int fromX, int fromY, int fromZ,
|
||||
Block block, int meta) {
|
||||
if (world instanceof IConnectionAccess) {
|
||||
return ((IConnectionAccess) world).matches(x, y, z, side, fromX, fromY, fromZ, block, meta);
|
||||
}
|
||||
Block blk = world.getBlock(x, y, z);
|
||||
Block con = getFacade(blk, world, x, y, z, side, fromX, fromY, fromZ, block, meta);
|
||||
|
||||
// no block or a bad API user
|
||||
if (con == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
boolean ret = con.equals(block) && getBlockOrFacadeMetadata(world, x, y, z, dir.ordinal()) == meta;
|
||||
|
||||
// no block obscuring this face
|
||||
if (obscuring == null) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
// check that we aren't already connected outwards from this side
|
||||
ret &= !(obscuring.equals(block) && getBlockOrFacadeMetadata(world, x2, y2, z2, dir.ordinal()) == meta);
|
||||
|
||||
return ret;
|
||||
return con.equals(block) && getFacadeMeta(blk, world, x, y, z, side, fromX, fromY, fromZ, block, meta) == meta;
|
||||
}
|
||||
|
||||
private boolean connectionBlocked(IBlockAccess world, int x, int y, int z, int side) {
|
||||
@@ -310,4 +348,20 @@ public class CTM {
|
||||
}
|
||||
return blk;
|
||||
}
|
||||
|
||||
private int getFacadeMeta(Block blk, IBlockAccess world, int x, int y, int z, int side, int fromX, int fromY,
|
||||
int fromZ, Block fromBlock, int fromMeta) {
|
||||
if (blk instanceof IFacade) {
|
||||
return ((IFacade) blk).getFacadeMetadata(world, x, y, z, side, fromX, fromY, fromZ, fromBlock, fromMeta);
|
||||
}
|
||||
return world.getBlockMetadata(x, y, z);
|
||||
}
|
||||
|
||||
private Block getFacade(Block blk, IBlockAccess world, int x, int y, int z, int side, int fromX, int fromY,
|
||||
int fromZ, Block fromBlock, int fromMeta) {
|
||||
if (blk instanceof IFacade) {
|
||||
blk = ((IFacade) blk).getFacade(world, x, y, z, side, fromX, fromY, fromZ, fromBlock, fromMeta);
|
||||
}
|
||||
return blk;
|
||||
}
|
||||
}
|
||||
@@ -61,12 +61,15 @@ public enum Dir {
|
||||
public boolean isConnected(CTM inst, IBlockAccess world, int x, int y, int z, int sideIdx, Block block, int meta) {
|
||||
ForgeDirection side = getOrientation(sideIdx);
|
||||
ForgeDirection[] dirs = getNormalizedDirs(side);
|
||||
int fromX = x;
|
||||
int fromY = y;
|
||||
int fromZ = z;
|
||||
for (ForgeDirection dir : dirs) {
|
||||
x += dir.offsetX;
|
||||
y += dir.offsetY;
|
||||
z += dir.offsetZ;
|
||||
}
|
||||
return inst.isConnected(world, x, y, z, side, block, meta);
|
||||
return inst.isConnected(world, x, y, z, side, fromX, fromY, fromZ, block, meta);
|
||||
}
|
||||
|
||||
private ForgeDirection[] getNormalizedDirs(ForgeDirection normal) {
|
||||
|
||||
@@ -58,6 +58,8 @@ import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
|
||||
import com.cricketcraft.chisel.api.IConnectionAccess;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
public class RenderBlocksCTM extends RenderBlocks {
|
||||
@@ -110,8 +112,13 @@ public class RenderBlocksCTM extends RenderBlocks {
|
||||
this.z = z;
|
||||
}
|
||||
|
||||
void render(RenderBlocksCTM inst, ForgeDirection normal, int cacheID) {
|
||||
double get(int axis) {
|
||||
return axis == 0 ? x : axis == 1 ? y : z;
|
||||
}
|
||||
|
||||
void render(RenderBlocksCTM inst, SubSide side, int cacheID) {
|
||||
final Tessellator tessellator = Tessellator.instance;
|
||||
final ForgeDirection normal = side.normal;
|
||||
|
||||
if (inst.enableAO) {
|
||||
tessellator.setColorOpaque_F(inst.redCache[cacheID], inst.grnCache[cacheID], inst.bluCache[cacheID]);
|
||||
@@ -121,6 +128,26 @@ public class RenderBlocksCTM extends RenderBlocks {
|
||||
double u = cacheID == 1 || cacheID == 2 ? inst.maxU : inst.minU;
|
||||
double v = cacheID < 2 ? inst.maxV : inst.minV;
|
||||
|
||||
if (inst.renderPart) {
|
||||
// only the part inside the bounds, showing the texture where it lies in the block
|
||||
double px = Math.min(Math.max(x, inst.renderMinX), inst.renderMaxX);
|
||||
double py = Math.min(Math.max(y, inst.renderMinY), inst.renderMaxY);
|
||||
double pz = Math.min(Math.max(z, inst.renderMinZ), inst.renderMaxZ);
|
||||
double uMoved = Math.abs(normal.offsetX != 0 ? pz - z : px - x);
|
||||
double vMoved = Math.abs(normal.offsetY != 0 ? pz - z : py - y);
|
||||
// a sub-side is half a block wide
|
||||
u += (u == inst.minU ? 2 : -2) * (inst.maxU - inst.minU) * uMoved;
|
||||
v += (v == inst.minV ? 2 : -2) * (inst.maxV - inst.minV) * vMoved;
|
||||
if (inst.enableAO) {
|
||||
// the caches hold the light at the sub-side's corners, the vertex moved, so take the light there
|
||||
double lightX = inst.boundsFraction(side.lightAxisX, px, py, pz);
|
||||
double lightY = inst.boundsFraction(side.lightAxisY, px, py, pz);
|
||||
inst.mixLight(side.lightRisingX ? lightX : 1 - lightX, side.lightRisingY ? lightY : 1 - lightY);
|
||||
}
|
||||
tessellator.addVertexWithUV(px, py, pz, u, v);
|
||||
return;
|
||||
}
|
||||
|
||||
double uDiff = inst.maxU - inst.minU;
|
||||
double vDiff = inst.maxV - inst.minV;
|
||||
|
||||
@@ -181,6 +208,9 @@ public class RenderBlocksCTM extends RenderBlocks {
|
||||
// @formatter:on
|
||||
private final Vert xmin, xmax, ymin, ymax;
|
||||
private final ForgeDirection normal;
|
||||
/** The block axes the light maps' x and y run along, and whether they run towards 1. */
|
||||
private final int lightAxisX, lightAxisY;
|
||||
private final boolean lightRisingX, lightRisingY;
|
||||
|
||||
SubSide(Vert xmin, Vert ymin, Vert ymax, Vert xmax) {
|
||||
this.xmin = xmin;
|
||||
@@ -188,6 +218,15 @@ public class RenderBlocksCTM extends RenderBlocks {
|
||||
this.ymax = ymax;
|
||||
this.xmax = xmax;
|
||||
this.normal = calcNormal();
|
||||
// the caches step along the light maps' x from xmin to ymin, and along their y from xmin to xmax
|
||||
this.lightAxisX = axis(xmin, ymin);
|
||||
this.lightAxisY = axis(xmin, xmax);
|
||||
this.lightRisingX = ymin.get(lightAxisX) > xmin.get(lightAxisX);
|
||||
this.lightRisingY = xmax.get(lightAxisY) > xmin.get(lightAxisY);
|
||||
}
|
||||
|
||||
private static int axis(Vert from, Vert to) {
|
||||
return from.x != to.x ? 0 : from.y != to.y ? 1 : 2;
|
||||
}
|
||||
|
||||
private ForgeDirection calcNormal() {
|
||||
@@ -205,10 +244,10 @@ public class RenderBlocksCTM extends RenderBlocks {
|
||||
}
|
||||
|
||||
void render(RenderBlocksCTM inst) {
|
||||
xmin.render(inst, normal, 0);
|
||||
ymin.render(inst, normal, 1);
|
||||
ymax.render(inst, normal, 2);
|
||||
xmax.render(inst, normal, 3);
|
||||
xmin.render(inst, this, 0);
|
||||
ymin.render(inst, this, 1);
|
||||
ymax.render(inst, this, 2);
|
||||
xmax.render(inst, this, 3);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -247,6 +286,12 @@ public class RenderBlocksCTM extends RenderBlocks {
|
||||
@Getter
|
||||
protected boolean inWorld = false;
|
||||
|
||||
/**
|
||||
* Whether the render bounds are a part of the block, which shows its part of the block's texture instead of the
|
||||
* whole texture squeezed in. Set when rendering in an {@link IConnectionAccess}.
|
||||
*/
|
||||
protected boolean renderPart = false;
|
||||
|
||||
@Override
|
||||
public boolean renderStandardBlock(Block block, int x, int y, int z) {
|
||||
bx = x;
|
||||
@@ -258,7 +303,9 @@ public class RenderBlocksCTM extends RenderBlocks {
|
||||
tessellator.setColorOpaque_F(1.0F, 1.0F, 1.0F);
|
||||
tessellator.addTranslation(x, y, z);
|
||||
inWorld = true;
|
||||
renderPart = CTMLib.chiselLoaded() && blockAccess instanceof IConnectionAccess;
|
||||
boolean res = super.renderStandardBlock(block, x, y, z);
|
||||
renderPart = false;
|
||||
inWorld = false;
|
||||
tessellator.addTranslation(-x, -y, -z);
|
||||
|
||||
@@ -356,6 +403,39 @@ public class RenderBlocksCTM extends RenderBlocks {
|
||||
| ((sunlightBitChannel / lightVals.length) & 0xF00000);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return where the point lies between the render bounds along the axis, from 0 at their min to 1 at their max
|
||||
*/
|
||||
protected double boundsFraction(int axis, double x, double y, double z) {
|
||||
double min = axis == 0 ? renderMinX : axis == 1 ? renderMinY : renderMinZ;
|
||||
double max = axis == 0 ? renderMaxX : axis == 1 ? renderMaxY : renderMaxZ;
|
||||
double pos = axis == 0 ? x : axis == 1 ? y : z;
|
||||
return max > min ? (pos - min) / (max - min) : 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the color and brightness at a point of the face, mixed from the corners of the light maps, which are the
|
||||
* corners of the render bounds. The point is given in the maps' x and y, from 0 to 1.
|
||||
*/
|
||||
protected void mixLight(double x, double y) {
|
||||
double w00 = (1 - x) * (1 - y);
|
||||
double w20 = x * (1 - y);
|
||||
double w22 = x * y;
|
||||
double w02 = (1 - x) * y;
|
||||
final Tessellator tessellator = Tessellator.instance;
|
||||
tessellator.setColorOpaque_F(
|
||||
mixColor(redmap, w00, w20, w22, w02),
|
||||
mixColor(grnmap, w00, w20, w22, w02),
|
||||
mixColor(blumap, w00, w20, w22, w02));
|
||||
// vanilla mixes the corners of partial bounds the same way
|
||||
tessellator.setBrightness(
|
||||
mixAoBrightness(lightmap[0][0], lightmap[2][0], lightmap[2][2], lightmap[0][2], w00, w20, w22, w02));
|
||||
}
|
||||
|
||||
private static float mixColor(float[][] map, double w00, double w20, double w22, double w02) {
|
||||
return (float) (map[0][0] * w00 + map[2][0] * w20 + map[2][2] * w22 + map[0][2] * w02);
|
||||
}
|
||||
|
||||
protected void side(Block block, SubSide side, int iconIndex) {
|
||||
|
||||
// If we have an overridden texture when we're supposed to render a CTM texture,
|
||||
|
||||
@@ -23,9 +23,8 @@ public class RenderBlocksColumn extends RenderBlocks {
|
||||
super();
|
||||
}
|
||||
|
||||
boolean connected(IBlockAccess world, int x, int y, int z, Block block, int meta) {
|
||||
Block inWorld = ctm.getBlockOrFacade(world, x, y, z, -1);
|
||||
return inWorld != null && inWorld.equals(block) && ctm.getBlockOrFacadeMetadata(world, x, y, z, -1) == meta;
|
||||
boolean connected(IBlockAccess world, int x, int y, int z, int fromX, int fromY, int fromZ, Block block, int meta) {
|
||||
return ctm.matches(world, x, y, z, -1, fromX, fromY, fromZ, block, meta);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -33,8 +32,8 @@ public class RenderBlocksColumn extends RenderBlocks {
|
||||
int metadata = blockAccess.getBlockMetadata(x, y, z);
|
||||
inWorld = true;
|
||||
|
||||
boolean yp = connected(blockAccess, x, y + 1, z, block, metadata);
|
||||
boolean yn = connected(blockAccess, x, y - 1, z, block, metadata);
|
||||
boolean yp = connected(blockAccess, x, y + 1, z, x, y, z, block, metadata);
|
||||
boolean yn = connected(blockAccess, x, y - 1, z, x, y, z, block, metadata);
|
||||
|
||||
if (yp || yn) {
|
||||
sides[0] = iconTop;
|
||||
@@ -46,13 +45,13 @@ public class RenderBlocksColumn extends RenderBlocks {
|
||||
|
||||
sides[3] = sides[4] = sides[5] = sides[2];
|
||||
} else {
|
||||
boolean xp = connected(blockAccess, x + 1, y, z, block, metadata);
|
||||
boolean xn = connected(blockAccess, x - 1, y, z, block, metadata);
|
||||
boolean xp = connected(blockAccess, x + 1, y, z, x, y, z, block, metadata);
|
||||
boolean xn = connected(blockAccess, x - 1, y, z, x, y, z, block, metadata);
|
||||
|
||||
if (xp && (connected(blockAccess, x + 1, y + 1, z, block, metadata)
|
||||
|| connected(blockAccess, x + 1, y - 1, z, block, metadata))) xp = false;
|
||||
if (xn && (connected(blockAccess, x - 1, y + 1, z, block, metadata)
|
||||
|| connected(blockAccess, x - 1, y - 1, z, block, metadata))) xn = false;
|
||||
if (xp && (connected(blockAccess, x + 1, y + 1, z, x + 1, y, z, block, metadata)
|
||||
|| connected(blockAccess, x + 1, y - 1, z, x + 1, y, z, block, metadata))) xp = false;
|
||||
if (xn && (connected(blockAccess, x - 1, y + 1, z, x - 1, y, z, block, metadata)
|
||||
|| connected(blockAccess, x - 1, y - 1, z, x - 1, y, z, block, metadata))) xn = false;
|
||||
|
||||
if (xp || xn) {
|
||||
uvRotateEast = 2;
|
||||
@@ -76,17 +75,17 @@ public class RenderBlocksColumn extends RenderBlocks {
|
||||
}
|
||||
sides[2] = sides[3] = sides[1];
|
||||
} else {
|
||||
boolean zp = connected(blockAccess, x, y, z + 1, block, metadata);
|
||||
boolean zn = connected(blockAccess, x, y, z - 1, block, metadata);
|
||||
boolean zp = connected(blockAccess, x, y, z + 1, x, y, z, block, metadata);
|
||||
boolean zn = connected(blockAccess, x, y, z - 1, x, y, z, block, metadata);
|
||||
|
||||
if (zp && (connected(blockAccess, x, y + 1, z + 1, block, metadata)
|
||||
|| connected(blockAccess, x, y - 1, z + 1, block, metadata))) zp = false;
|
||||
if (zp && (connected(blockAccess, x + 1, y, z + 1, block, metadata)
|
||||
|| connected(blockAccess, x - 1, y, z + 1, block, metadata))) zp = false;
|
||||
if (zn && (connected(blockAccess, x, y + 1, z - 1, block, metadata)
|
||||
|| connected(blockAccess, x, y - 1, z - 1, block, metadata))) zn = false;
|
||||
if (zn && (connected(blockAccess, x + 1, y, z - 1, block, metadata)
|
||||
|| connected(blockAccess, x - 1, y, z - 1, block, metadata))) zn = false;
|
||||
if (zp && (connected(blockAccess, x, y + 1, z + 1, x, y, z + 1, block, metadata)
|
||||
|| connected(blockAccess, x, y - 1, z + 1, x, y, z + 1, block, metadata))) zp = false;
|
||||
if (zp && (connected(blockAccess, x + 1, y, z + 1, x, y, z + 1, block, metadata)
|
||||
|| connected(blockAccess, x - 1, y, z + 1, x, y, z + 1, block, metadata))) zp = false;
|
||||
if (zn && (connected(blockAccess, x, y + 1, z - 1, x, y, z - 1, block, metadata)
|
||||
|| connected(blockAccess, x, y - 1, z - 1, x, y, z - 1, block, metadata))) zn = false;
|
||||
if (zn && (connected(blockAccess, x + 1, y, z - 1, x, y, z - 1, block, metadata)
|
||||
|| connected(blockAccess, x - 1, y, z - 1, x, y, z - 1, block, metadata))) zn = false;
|
||||
|
||||
if (zp || zn) {
|
||||
uvRotateSouth = 1;
|
||||
|
||||
@@ -189,13 +189,22 @@ public final class ChiselBlocks {
|
||||
public static final BlockCarvable invar = null;
|
||||
public static final BlockCarvable nickel = null;
|
||||
public static final BlockCarvable platinum = null;
|
||||
public static final BlockCarvable wrought_iron = null;
|
||||
public static final BlockCarvable cast_iron = null;
|
||||
public static final BlockCarvable stainless_steel = null;
|
||||
public static final BlockCarvable titanium = null;
|
||||
public static final BlockCarvable tungstensteel = null;
|
||||
public static final BlockCarvable rpp = null;
|
||||
public static final BlockCarvable iridium = null;
|
||||
public static final BlockCarvable osmium = null;
|
||||
public static final BlockCarvable coral = null;
|
||||
public static final BlockCarvable mud = null;
|
||||
public static final BlockCarvable albumblock = null;
|
||||
public static final BlockCarvable albumblock2 = null;
|
||||
public static final BlockCarvable brickCustom2 = null;
|
||||
public static final BlockCarvable brutalism = null;
|
||||
public static final BlockConcrete road = null;
|
||||
public static final BlockCarvable porcelain = null;
|
||||
public static final BlockCarvable alabaster = null;
|
||||
|
||||
private ChiselBlocks() {}
|
||||
}
|
||||
@@ -26,12 +26,12 @@ public class ItemUpgrade extends BaseItem {
|
||||
@Override
|
||||
public IIcon getIconFromDamage(int meta) {
|
||||
// using modulo throughout to prevent AIOB
|
||||
return this.icons[meta % Upgrade.values().length];
|
||||
return this.icons[meta % Upgrade.VALUES.length];
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerIcons(IIconRegister reg) {
|
||||
Upgrade[] upgrades = Upgrade.values();
|
||||
Upgrade[] upgrades = Upgrade.VALUES;
|
||||
for (int i = 0; i < upgrades.length; i++) {
|
||||
this.icons[i] = reg.registerIcon(
|
||||
Chisel.MOD_ID + ":upgrade_"
|
||||
@@ -43,14 +43,14 @@ public class ItemUpgrade extends BaseItem {
|
||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||
@Override
|
||||
public void getSubItems(Item item, CreativeTabs tab, List list) {
|
||||
for (int i = 0; i < Upgrade.values().length; i++) {
|
||||
for (int i = 0; i < Upgrade.VALUES.length; i++) {
|
||||
list.add(new ItemStack(item, 1, i));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUnlocalizedName(ItemStack stack) {
|
||||
Upgrade[] upgrades = Upgrade.values();
|
||||
Upgrade[] upgrades = Upgrade.VALUES;
|
||||
return upgrades[stack.getItemDamage() % upgrades.length].getUnlocalizedName();
|
||||
}
|
||||
}
|
||||
@@ -5,3 +5,7 @@ public net.minecraft.client.renderer.Tessellator field_78417_x
|
||||
|
||||
# GUI stuff for item scale
|
||||
protected net.minecraft.client.gui.inventory.GuiContainer func_146977_a(Lnet/minecraft/inventory/Slot;)V # drawSlot
|
||||
|
||||
# Checking if a resource exists
|
||||
public net.minecraft.client.resources.SimpleReloadableResourceManager field_110548_a # domainResourceManagers
|
||||
public net.minecraft.client.resources.FallbackResourceManager field_110540_a # resourcePacks
|
||||
@@ -101,6 +101,12 @@ tile.diorite.3.desc=Diorite Bricks
|
||||
tile.diorite.4.desc=Ornate Diorite
|
||||
tile.diorite.5.desc=Prismatic Diorite
|
||||
tile.diorite.6.desc=Diorite Small Tiles
|
||||
tile.diorite.7.desc=Cobbled Diorite
|
||||
tile.diorite.8.desc=Mossy Diorite
|
||||
tile.diorite.9.desc=Modern Diorite
|
||||
tile.diorite.10.desc=Modern Polished Diorite
|
||||
tile.diorite.11.desc=Biotite-Rich Diorite
|
||||
tile.diorite.12.desc=Hornblende-Rich Diorite
|
||||
|
||||
#Andesite
|
||||
tile.chisel.andesite.name=Andesite
|
||||
@@ -111,6 +117,11 @@ tile.andesite.3.desc=Andesite Bricks
|
||||
tile.andesite.4.desc=Ornate Andesite
|
||||
tile.andesite.5.desc=Prismatic Andesite
|
||||
tile.andesite.6.desc=Andesite Small Tiles
|
||||
tile.andesite.7.desc=Cobbled Andesite
|
||||
tile.andesite.8.desc=Mossy Andesite
|
||||
tile.andesite.9.desc=Modern Andesite
|
||||
tile.andesite.10.desc=Modern Polished Andesite
|
||||
tile.andesite.11.desc=Weathered Andesite
|
||||
|
||||
#Granite
|
||||
tile.chisel.granite.name=Granite
|
||||
@@ -121,6 +132,11 @@ tile.granite.3.desc=Granite Bricks
|
||||
tile.granite.4.desc=Ornate Granite
|
||||
tile.granite.5.desc=Prismatic Granite
|
||||
tile.granite.6.desc=Granite Small Tiles
|
||||
tile.granite.7.desc=Cobbled Granite
|
||||
tile.granite.8.desc=Mossy Granite
|
||||
tile.granite.9.desc=Modern Granite
|
||||
tile.granite.10.desc=Modern Polished Granite
|
||||
tile.granite.11.desc=Granitic Mineral Sand
|
||||
|
||||
#Auto Chisel
|
||||
tile.chisel.autoChisel.name=Auto Chisel
|
||||
@@ -949,11 +965,24 @@ tile.chisel.present.desc=A pretty present chest
|
||||
|
||||
#Brick
|
||||
tile.chisel.brickCustom.name=Brick Block
|
||||
tile.chisel.brickCustom2.name=Brick Block
|
||||
tile.brickCustom.1.desc=Large Bricks
|
||||
tile.brickCustom.2.desc=Mortarless Bricks
|
||||
tile.brickCustom.3.desc=Varied Bricks
|
||||
tile.brickCustom.4.desc=Oops! All Mortar!
|
||||
tile.brickCustom.5.desc=Aged Bricks
|
||||
tile.brickCustom.6.desc=Yellow Bricks
|
||||
tile.brickCustom.7.desc=Brick Tile
|
||||
tile.brickCustom.8.desc=Brick Panel
|
||||
tile.brickCustom.9.desc=Brown Bricks
|
||||
tile.brickCustom.10.desc=Modern Bricks
|
||||
tile.brickCustom.11.desc=White Bricks
|
||||
tile.brickCustom.12.desc=Black Bricks
|
||||
tile.brickCustom.13.desc=Sooty Bricks
|
||||
tile.brickCustom.14.desc=Mossy Bricks
|
||||
tile.brickCustom.15.desc=Neutral Bricks
|
||||
tile.brickCustom2.0.desc=Left-Bordered Bricks
|
||||
tile.brickCustom2.1.desc=Right-Bordered Bricks
|
||||
|
||||
#Chisel 1
|
||||
|
||||
@@ -1224,6 +1253,7 @@ tile.diamond.9.desc=Small Diamond Blocks
|
||||
tile.diamond.10.desc=Small Ornate Diamond Blocks
|
||||
tile.diamond.11.desc=Zelda Diamond Block
|
||||
tile.diamond.12.desc=Diamond Block with Ornate Layer
|
||||
tile.diamond.13.desc=Modern Diamond Block
|
||||
|
||||
#Snakestone
|
||||
tile.chisel.snakestoneSand.name=Sand Snakestone
|
||||
@@ -1250,6 +1280,7 @@ tile.glass.15.desc=Modern Iron Fence
|
||||
|
||||
tile.chisel.glass2.name=Glass
|
||||
tile.glass2.0.desc=Asymmetrical Leaded Glass
|
||||
tile.glass2.1.desc=Modern Glass
|
||||
|
||||
#Sandstone
|
||||
tile.chisel.sandstone.name=Sandstone
|
||||
@@ -1374,6 +1405,7 @@ tile.gold.11.desc=Gold Block with Star Decoration
|
||||
tile.gold.12.desc=Golden Star in Purple Obsidian
|
||||
tile.gold.13.desc=Golden Star in Obsidian
|
||||
tile.gold.14.desc=Simple Gold Block
|
||||
tile.gold.15.desc=Modern Gold Block
|
||||
|
||||
#Glowstone
|
||||
tile.chisel.glowstone.name=Glowstone
|
||||
@@ -1403,6 +1435,7 @@ tile.lapis.5.desc=Lapis Tile
|
||||
tile.lapis.6.desc=Lapis Panel
|
||||
tile.lapis.7.desc=Smooth Lapis
|
||||
tile.lapis.8.desc=Lapis with Ornate Layer
|
||||
tile.lapis.9.desc=Modern Lapis
|
||||
|
||||
#Emerald Blocks
|
||||
tile.chisel.emerald_block.name=Emerald Block
|
||||
@@ -1417,6 +1450,7 @@ tile.emerald.8.desc=Emerald Bismuth
|
||||
tile.emerald.9.desc=Small Emerald Blocks
|
||||
tile.emerald.10.desc=Small Ornate Emerald Blocks
|
||||
tile.emerald.11.desc=Ornate Emerald Block
|
||||
tile.emerald.12.desc=Modern Emerald Block
|
||||
|
||||
#Nether Brick
|
||||
tile.chisel.nether_brick.name=Nether Brick
|
||||
@@ -2767,6 +2801,7 @@ tile.sheetmetal.9.desc=Treading (Rusty)
|
||||
|
||||
#Moss
|
||||
tile.chisel.moss.name=Moss
|
||||
tile.chisel.moss_carpet.name=Moss Carpet
|
||||
tile.moss.0.desc=Lush
|
||||
tile.moss.1.desc=Pale
|
||||
tile.moss.2.desc=Dark
|
||||
@@ -2785,7 +2820,7 @@ tile.chisel.invarblock.name=Block of Invar
|
||||
tile.chisel.electrumblock.name=Block of Electrum
|
||||
tile.chisel.nickelblock.name=Block of Nickel
|
||||
tile.chisel.platinumblock.name=Block of Platinum
|
||||
tile.chisel.wroughtironblock.name=Block of Wrought Iron
|
||||
tile.chisel.castironblock.name=Block of Cast Iron
|
||||
tile.chisel.stainlesssteelblock.name=Block of Stainless Steel
|
||||
tile.chisel.titaniumblock.name=Block of Titanium
|
||||
tile.chisel.tungstensteelblock.name=Block of Tungstensteel
|
||||
@@ -2810,6 +2845,129 @@ tile.newetalOre.5.desc=Egregious
|
||||
tile.newetalOre.6.desc=Scaffolding
|
||||
tile.newetalOre.7.desc=Thermal
|
||||
|
||||
tile.chisel.coral.name=Coral
|
||||
tile.coral.0.desc=Brain Coral
|
||||
tile.coral.1.desc=Bubble Coral
|
||||
tile.coral.2.desc=Fire Coral
|
||||
tile.coral.3.desc=Horn Coral
|
||||
tile.coral.4.desc=Tube Coral
|
||||
tile.coral.5.desc=Dead Brain Coral
|
||||
tile.coral.6.desc=Dead Bubble Coral
|
||||
tile.coral.7.desc=Dead Fire Coral
|
||||
tile.coral.8.desc=Dead Horn Coral
|
||||
tile.coral.9.desc=Dead Tube Coral
|
||||
tile.coral.10.desc=Brain Coral Bricks
|
||||
tile.coral.11.desc=Bubble Coral Bricks
|
||||
tile.coral.12.desc=Fire Coral Bricks
|
||||
tile.coral.13.desc=Horn Coral Bricks
|
||||
tile.coral.14.desc=Tube Coral Bricks
|
||||
tile.coral.15.desc=Dead Coral Bricks
|
||||
|
||||
tile.chisel.mud.name=Mud
|
||||
tile.mud.0.desc=Black Mud
|
||||
tile.mud.1.desc=Loamy Mud
|
||||
tile.mud.2.desc=Carbonate Mud (Marl)
|
||||
tile.mud.3.desc=Brown Mud
|
||||
tile.mud.4.desc=Packed Mud
|
||||
tile.mud.5.desc=Rooted Mud
|
||||
tile.mud.6.desc=Mud Bricks
|
||||
|
||||
tile.chisel.albumblock.name=Musical Block
|
||||
tile.chisel.albumblock2.name=Musical Block
|
||||
tile.album.0.desc=That Green Gentleman
|
||||
tile.album.1.desc=Pretty Odd
|
||||
tile.album.2.desc=Laminated Denim
|
||||
tile.album.3.desc=Dogmatica
|
||||
tile.album.4.desc=And the Sky Opened Up
|
||||
tile.album.5.desc=Route Guano
|
||||
tile.album.6.desc=A Spell Over the West
|
||||
tile.album.7.desc=I Built With Someone In Fall Out Boy And All I Got Was This Stupid Block Made About Me
|
||||
tile.album.8.desc=Crumbling Castle
|
||||
tile.album.9.desc=Evil Star
|
||||
tile.album.10.desc=Gaia
|
||||
tile.album.11.desc=Spacesick
|
||||
tile.album.12.desc=Reactor
|
||||
tile.album.13.desc=Resignation
|
||||
tile.album.14.desc=Dead!
|
||||
tile.album.15.desc=Having Too Much Fun
|
||||
tile.album2.16.desc=The Cork Tree
|
||||
tile.album2.17.desc=Cooperstown
|
||||
tile.album2.18.desc=The Most Fun a Girl Can Have
|
||||
|
||||
tile.chisel.brutalism.name=Brutalist Block
|
||||
tile.brutalism.0.desc=Plain Cement
|
||||
tile.brutalism.1.desc=Cement Bricks
|
||||
tile.brutalism.2.desc=Leafy Ecobrutalism
|
||||
tile.brutalism.3.desc=Flowering Ecobrutalism
|
||||
tile.brutalism.4.desc=Faux Window
|
||||
tile.brutalism.5.desc=Heavily Weathered Cement
|
||||
tile.brutalism.6.desc=Heavily Weathered Cement Bricks
|
||||
tile.brutalism.7.desc=Reinforced Cement
|
||||
tile.brutalism.8.desc=Rimmed Cement
|
||||
tile.brutalism.9.desc=Lightly Weathered Cement
|
||||
|
||||
tile.chisel.porcelain.name=Porcelain Block
|
||||
tile.porcelain.0.desc=Plain Porcelain
|
||||
tile.porcelain.1.desc=Cracked Porcelain
|
||||
tile.porcelain.2.desc=Kintsugi
|
||||
tile.porcelain.3.desc=Blue Porcelain Tiles
|
||||
tile.porcelain.4.desc=Red Porcelain Tiles
|
||||
tile.porcelain.5.desc=Blue Porcelain Fish
|
||||
tile.porcelain.6.desc=Blue Porcelain Flower
|
||||
tile.porcelain.7.desc=Red Porcelain Dragon
|
||||
tile.porcelain.9.desc=Red Porcelain Pillar
|
||||
tile.porcelain.10.desc=Red And Blue Porcelain Tiles
|
||||
tile.porcelain.11.desc=Kintsugi Tiles
|
||||
tile.porcelain.12.desc=Polished Porcelain
|
||||
tile.porcelain.13.desc=Faux Ivory
|
||||
|
||||
tile.chisel.alabaster.name=Alabaster Block
|
||||
tile.alabaster.0.desc=Calcite-Rich
|
||||
tile.alabaster.1.desc=Chartreuse
|
||||
tile.alabaster.2.desc=Lavender
|
||||
tile.alabaster.3.desc=Lilac
|
||||
tile.alabaster.4.desc=Mauve
|
||||
tile.alabaster.5.desc=French Grey
|
||||
tile.alabaster.6.desc=Peach
|
||||
tile.alabaster.7.desc=Periwinkle
|
||||
tile.alabaster.8.desc=Sage Green
|
||||
tile.alabaster.9.desc=Sky Blue
|
||||
tile.alabaster.10.desc=Cream
|
||||
|
||||
tile.chisel.road.name=Road Block
|
||||
tile.chisel.road2.name=Road Block
|
||||
tile.road.0.desc=Asphalt
|
||||
tile.road.1.desc=Crosswalk
|
||||
tile.road.2.desc=Double White Lines
|
||||
tile.road.3.desc=Double Yellow Lines
|
||||
tile.road.4.desc=Dirt Road
|
||||
tile.road.5.desc=Diverging Lane Marking
|
||||
tile.road.6.desc=Dotted White Line
|
||||
tile.road.7.desc=Dotted Yellow Line
|
||||
tile.road.8.desc=Single Yellow Line - East
|
||||
tile.road.9.desc=Single Yellow Line - North
|
||||
tile.road.10.desc=Single Yellow Line - South
|
||||
tile.road.11.desc=Single Yellow Line - West
|
||||
tile.road.12.desc=Left Lane
|
||||
tile.road.13.desc=Right Lane
|
||||
tile.road.14.desc=Thick White Line
|
||||
tile.road.15.desc=White Outlined Road
|
||||
tile.road.16.desc=Passing Lane - East
|
||||
tile.road.17.desc=Passing Lane - North
|
||||
tile.road.18.desc=Passing Lane - South
|
||||
tile.road.19.desc=Passing Lane - West
|
||||
tile.road.20.desc=Double Yellow Lines With Reflectors
|
||||
tile.road.21.desc=Solid Yellow Line - East/West
|
||||
tile.road.22.desc=Solid Yellow Line - North/South
|
||||
tile.road.23.desc=Converging Lane Marking
|
||||
tile.road.24.desc=White Painted Asphalt
|
||||
tile.road.25.desc=Yellow Painted Asphalt
|
||||
tile.road.26.desc=Gravel Road
|
||||
tile.road.27.desc=Solid White Line - North/South
|
||||
tile.road.28.desc=Solid White Line - East/West
|
||||
tile.road.29.desc=Weathered Asphalt
|
||||
tile.road.30.desc=Weathering Asphalt
|
||||
tile.road.31.desc=Overgrown Dirt Road
|
||||
|
||||
tile.chisel.amber.name=Block of Amber
|
||||
tile.chisel.bloodBrick.name=Bloodstone Brick
|
||||
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 198 B |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 222 B |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 284 B |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 272 B |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 267 B |
|
After Width: | Height: | Size: 268 B |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 262 B |
|
After Width: | Height: | Size: 273 B |
|
After Width: | Height: | Size: 272 B |
|
After Width: | Height: | Size: 266 B |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 278 B |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 277 B |