Compare commits

...
Author SHA1 Message Date
Martin Robertz 7f1602d7b1 Merge branch 'master' into fix-ctm-submap-sprites 2026-11-20 17:32:06 +01:00
9c00a7d61f lots of building blocks + a large backport of architect's palette content (#95)
* more album blocks

* rocks and such

* spootless

* gemz

* gemz

* architect's palette

* spotle-who the hell is playing the goldship song

* optimize images

---------

Co-authored-by: Algent <[email protected]>
Co-authored-by: UltraProdigy <[email protected]>
2026-11-20 17:31:24 +01:00
DarkShadow44andboubou19 a431e2a65c Little Tiles support (#107)
* Refactor: Extract "matches" as method and use early exit

* Extend API to allow Little Tiles support

* Render little tiles with partial textures

* spotless

* Fix LT AO

* Ask for the right block

---------

Co-authored-by: boubou19 <[email protected]>
2026-11-09 11:37:43 +00:00
UltraProdigy aa803a1e51 ci: run build and test on release branches 2026-11-09 01:42:52 -05:00
danyadev 3d764c434c close input stream on cache hit 2026-10-11 13:03:49 +03:00
danyadev 6eed99f030 review fixes 2026-10-11 12:52:19 +03:00
danyadev c1e8606629 make icon loading thread safe
fixes GTNewHorizons/GT-New-Horizons-Modpack/issues/25997
2026-09-28 14:08:10 +03:00
danyadev 9da5b2b6b5 don't ignore mixin json config 2026-09-25 16:26:56 +03:00
danyadev 5d33558697 cache decoded images during stitching 2026-09-25 14:41:12 +03:00
danyadev 36f517cb46 new approach: make each ctm variation sprite a real resource 2026-09-25 02:02:04 +03:00
danyadev 68d65d23ed Preserve custom mipmaps and anisotropic filtering for CTM sprites 2026-09-24 21:34:12 +03:00
danyadev ec607a41ed remove theoretical item submap support and fix memory leak on resource reload 2026-09-24 18:49:17 +03:00
danyadev 3a0676fcf5 Use real atlas sprites for CTM submaps 2026-09-21 23:13:27 +03:00
440 changed files with 1927 additions and 155 deletions

No files matched your search

+2 -2
View File
@@ -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
View File
@@ -25,7 +25,6 @@ whitelist.json
*.iml
*.ipr
*.iws
src/main/resources/mixins.*.json
*.bat
layout.json
.DS_Store
+9 -4
View File
@@ -69,7 +69,7 @@ enableModernJavaSyntax = jabel
# Enables injecting missing generics into the decompiled source code for a better coding experience.
# Turns most publicly visible List, Map, etc. into proper List<E>, Map<K, V> types.
enableGenericInjection = false
enableGenericInjection = true
# Generate a class with a String field for the mod version named as defined below.
# If generateGradleTokenClass is empty or not missing, no such class will be generated.
@@ -107,7 +107,7 @@ apiPackage = api
accessTransformersFile = chisel_compile_at.cfg
# Provides setup for Mixins if enabled. If you don't know what mixins are: Keep it disabled!
usesMixins = false
usesMixins = true
# Set to a non-empty string to configure mixins in a separate source set under src/VALUE, instead of src/main.
# This can speed up compile times thanks to not running the mixin annotation processor on all input sources.
@@ -115,7 +115,7 @@ usesMixins = false
separateMixinSourceSet =
# Adds some debug arguments like verbose output and class export.
usesMixinDebug = false
usesMixinDebug = true
# Specify the location of your implementation of IMixinConfigPlugin. Leave it empty otherwise.
mixinPlugin =
@@ -123,7 +123,7 @@ mixinPlugin =
# Specify the package that contains all of your Mixins. The package must exist or
# the build will fail. If you have a package property defined in your mixins.<modid>.json,
# it must match with this or the build will fail.
mixinsPackage =
mixinsPackage = mixins
# Specify the core mod entry class if you use a core mod. This class must implement IFMLLoadingPlugin!
# This parameter is for legacy compatibility only
@@ -186,6 +186,11 @@ modrinthRelations =
# Leave this empty if you don't want to publish on CurseForge.
curseForgeProjectId =
# Comma-separated supported CurseForge environments: client, server (case-insensitive).
# Use client or server for mods that only support one environment. Defaults to client,server.
# These tags describe where the mod can run, not whether installation is required on both sides.
curseForgeEnvironments = client,server
# The project's relations on CurseForge. You can use this to refer to other projects on CurseForge.
# Syntax: type1:name1;type2:name2;...
# Where type can be one of [requiredDependency, embeddedLibrary, optionalDependency, tool, incompatible],
+10 -10
View File
@@ -1,12 +1,12 @@
#This file is generated by updateDaemonJvm
toolchainUrl.FREE_BSD.AARCH64=https\://api.foojay.io/disco/v3.0/ids/1630f7ebef05444cb27a2709ea0249b3/redirect
toolchainUrl.FREE_BSD.X86_64=https\://api.foojay.io/disco/v3.0/ids/cd495626d2ee49a75447e3fdc6afb287/redirect
toolchainUrl.LINUX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/1630f7ebef05444cb27a2709ea0249b3/redirect
toolchainUrl.LINUX.X86_64=https\://api.foojay.io/disco/v3.0/ids/cd495626d2ee49a75447e3fdc6afb287/redirect
toolchainUrl.MAC_OS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/d4fd992c9557644e637ebe98263e0ae7/redirect
toolchainUrl.MAC_OS.X86_64=https\://api.foojay.io/disco/v3.0/ids/faa12903720d410b387cc69ccafb1a74/redirect
toolchainUrl.UNIX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/1630f7ebef05444cb27a2709ea0249b3/redirect
toolchainUrl.UNIX.X86_64=https\://api.foojay.io/disco/v3.0/ids/cd495626d2ee49a75447e3fdc6afb287/redirect
toolchainUrl.WINDOWS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/a4c09dd2e2d7079373d30e524bbc2829/redirect
toolchainUrl.WINDOWS.X86_64=https\://api.foojay.io/disco/v3.0/ids/8e1d9ee5d0f13e442218f6884a306da1/redirect
toolchainUrl.FREE_BSD.AARCH64=https\://api.foojay.io/disco/v3.0/ids/539ea72837c6244075f8ee037babc29e/redirect
toolchainUrl.FREE_BSD.X86_64=https\://api.foojay.io/disco/v3.0/ids/876dbbf00bf4ef6190f7da074cee903a/redirect
toolchainUrl.LINUX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/539ea72837c6244075f8ee037babc29e/redirect
toolchainUrl.LINUX.X86_64=https\://api.foojay.io/disco/v3.0/ids/876dbbf00bf4ef6190f7da074cee903a/redirect
toolchainUrl.MAC_OS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/9064f22734b42ac03e85df04b632e167/redirect
toolchainUrl.MAC_OS.X86_64=https\://api.foojay.io/disco/v3.0/ids/4d0277c49991306ac78048580fe34bcf/redirect
toolchainUrl.UNIX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/539ea72837c6244075f8ee037babc29e/redirect
toolchainUrl.UNIX.X86_64=https\://api.foojay.io/disco/v3.0/ids/876dbbf00bf4ef6190f7da074cee903a/redirect
toolchainUrl.WINDOWS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/a9fa3b809e484a1e1ac4308a5dda661a/redirect
toolchainUrl.WINDOWS.X86_64=https\://api.foojay.io/disco/v3.0/ids/aa99913fa6d767d899ffc96082da01ca/redirect
toolchainVersion=25
+1 -1
View File
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.0-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.7.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
+1 -1
View File
@@ -17,7 +17,7 @@ pluginManagement {
}
plugins {
id 'com.gtnewhorizons.gtnhsettingsconvention' version '2.0.24'
id 'com.gtnewhorizons.gtnhsettingsconvention' version '2.0.32'
}
@@ -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);
}
}
@@ -31,6 +31,7 @@ import team.chisel.ctmlib.ISubmapManager;
import team.chisel.ctmlib.RenderBlocksCTM;
import team.chisel.ctmlib.RenderBlocksColumn;
import team.chisel.ctmlib.TextureSubmap;
import team.chisel.ctmlib.TextureSubmapCTM;
/**
* Handles all default {@link ISubmapManager} behavior
@@ -90,8 +91,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)
@@ -142,11 +143,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();
@@ -197,8 +198,8 @@ public enum TextureType {
IIcon baseIcon = register.registerIcon(modName + ":" + texturePath);
return Triple.of(
baseIcon,
new TextureSubmap(register.registerIcon(modName + ":" + texturePath + "-ctm"), 4, 4),
new TextureSubmap(baseIcon, 2, 2)
new TextureSubmapCTM(register.registerIcon(modName + ":" + texturePath + "-ctm"), 4),
new TextureSubmapCTM(baseIcon, 2)
);
}
@@ -0,0 +1,63 @@
package com.cricketcraft.chisel.mixins;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import net.minecraft.client.resources.FallbackResourceManager;
import net.minecraft.client.resources.IResource;
import net.minecraft.util.ResourceLocation;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
import team.chisel.ctmlib.TextureSubmapResource;
/**
* Provides generated resources for independently stitched CTM submap sprites.
* <p>
* For example, a request for chisel:textures/blocks/__chisel_submap/2x2/1_0/foo.png is resolved from
* chisel:textures/blocks/foo.png and cropped to its top-right tile. This lets Minecraft and other mods treat each
* submap sprite like an ordinary texture resource.
*/
@Mixin(FallbackResourceManager.class)
public abstract class MixinFallbackResourceManager {
@Shadow
public abstract IResource getResource(ResourceLocation location) throws IOException;
@Shadow
public abstract List<IResource> getAllResources(ResourceLocation location) throws IOException;
@Inject(method = "getResource", at = @At("HEAD"), cancellable = true)
private void chisel$getSubmapResource(ResourceLocation location, CallbackInfoReturnable<IResource> cir)
throws IOException {
TextureSubmapResource.SubmapLocation submap = TextureSubmapResource.parse(location);
if (submap == null) return;
IResource source = getResource(submap.source());
cir.setReturnValue(new TextureSubmapResource(source, submap, true));
}
@Inject(method = "getAllResources", at = @At("HEAD"), cancellable = true)
private void chisel$getAllSubmapResources(ResourceLocation location, CallbackInfoReturnable<List<IResource>> cir)
throws IOException {
TextureSubmapResource.SubmapLocation submap = TextureSubmapResource.parse(location);
if (submap == null) return;
List<IResource> sources = getAllResources(submap.source());
List<IResource> resources = new ArrayList<>(sources.size());
for (IResource source : sources) {
// Different resource packs may provide different images for the same location, so we can't cache them
resources.add(new TextureSubmapResource(source, submap, false));
}
cir.setReturnValue(resources);
}
}
+840
View File
@@ -1017,6 +1017,8 @@ public enum Features {
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.addVariation("tile.diamond.14.desc", 14, "diamond/diamond_ore_bricks");
diamond_block.carverHelper.addVariation("tile.diamond.15.desc", 15, "diamond/chiseled_diamond_ore_bricks");
diamond_block.carverHelper.registerAll(diamond_block, "diamond_block");
Carving.chisel.registerOre("diamond_block", "blockDiamond");
}
@@ -1122,6 +1124,9 @@ public enum Features {
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.addVariation("tile.emerald.13.desc", 13, "emerald/emerald_ore_bricks");
emerald_block.carverHelper.addVariation("tile.emerald.14.desc", 14, "emerald/cracked_emerald_ore_bricks");
emerald_block.carverHelper.addVariation("tile.emerald.15.desc", 15, "emerald/chiseled_emerald_ore_bricks");
emerald_block.carverHelper.registerAll(emerald_block, "emerald_block");
Carving.chisel.registerOre("emerald_block", "emerald");
}
@@ -3520,6 +3525,9 @@ public enum Features {
.addVariation("tile.sandstone.16.desc", 0, "sandstone2/terrain-sandstone-brickflat", 19);
sandstone2.carverHelper
.addVariation("tile.sandstone.17.desc", 1, "sandstone2/a0-sandstonepreview-smoothflat", 20);
sandstone2.carverHelper.addVariation("tile.sandstone.18.desc", 4, "sandstone2/gilded_sandstone");
sandstone2.carverHelper.addVariation("tile.sandstone.19.desc", 5, "sandstone2/gilded_sandstone_pillar");
sandstone2.carverHelper.addVariation("tile.sandstone.20.desc", 6, "sandstone2/chiseled_gilded_sandstone");
sandstone2.carverHelper.registerBlock(sandstone2, "sandstone2");
sandstone2.carverHelper.registerVariations("sandstone");
@@ -4600,6 +4608,16 @@ public enum Features {
lantern.carverHelper.addVariation("tile.lantern.3.desc", 3, "lantern/soullantern");
lantern.carverHelper.addVariation("tile.lantern.4.desc", 4, "lantern/cursedlantern");
lantern.carverHelper.addVariation("tile.lantern.5.desc", 5, "lantern/endlantern");
lantern.carverHelper.addVariation("tile.lantern.6.desc", 6, "tuff/tuff_lamp");
lantern.carverHelper.addVariation("tile.lantern.7.desc", 7, "calcite/calcite_lamp");
lantern.carverHelper.addVariation("tile.lantern.8.desc", 8, "oracle/oracle_lamp");
lantern.carverHelper.addVariation("tile.lantern.9.desc", 9, "dripstone/dripstone_lamp");
lantern.carverHelper.addVariation("tile.lantern.10.desc", 10, "algal/algal_lamp");
lantern.carverHelper.addVariation("tile.lantern.11.desc", 11, "abyssaline/abyssaline_lamp");
lantern.carverHelper.addVariation("tile.lantern.12.desc", 12, "abyssaline/abyssaline_lamp_charged");
lantern.carverHelper.addVariation("tile.lantern.13.desc", 13, "hadaline/hadaline_lamp");
lantern.carverHelper.addVariation("tile.lantern.14.desc", 14, "hadaline/hadaline_lamp_charged");
lantern.carverHelper.addVariation("tile.lantern.14.desc", 13, "lantern/wither_lamp");
lantern.carverHelper.registerAll(lantern, "lantern");
}
@@ -5018,6 +5036,22 @@ public enum Features {
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);
BlockCarvable coral2 = (BlockCarvable) new BlockCarvable(Material.ground).setStepSound(Block.soundTypeStone)
.setCreativeTab(ChiselTabs.tabStoneChiselBlocks)
.setHardness(2F)
.setResistance(4F);
coral2.carverHelper.addVariation("tile.stones.1.desc", 1, "coral/coralstone_bricks");
coral2.carverHelper.addVariation("tile.stones.9.desc", 2, "coral/coralstone_ornate");
coral2.carverHelper.addVariation("tile.stones.3.desc", 3, "coral/coralstone_cobblestone");
coral2.carverHelper.addVariation("tile.stones.4.desc", 4, "coral/coralstone_mossy");
coral2.carverHelper.addVariation("tile.stones.5.desc", 5, "coral/coralstone_pillar");
coral2.carverHelper.addVariation("tile.stones.6.desc", 6, "coral/coralstone_polished");
coral2.carverHelper.addVariation("tile.stones.8.desc", 8, "coral/coralstone_tiles");
coral2.carverHelper.registerBlock(coral2, "coral2");
coral2.carverHelper.registerVariations("iron_block");
coral.carverHelper.registerAll(coral, "coral");
Carving.chisel.registerOre("coral", "blockCoral");
}
@@ -5103,9 +5137,45 @@ public enum Features {
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.addVariation("tile.album2.19.desc", 3, "album/birdbrain");
albumblock2.carverHelper.addVariation("tile.album2.20.desc", 4, "album/fancy_that");
albumblock2.carverHelper.addVariation("tile.album2.21.desc", 5, "album/paper_mache_dream_balloon");
albumblock2.carverHelper.addVariation("tile.album2.22.desc", 6, "album/wallsocket");
albumblock2.carverHelper.addVariation("tile.album2.23.desc", 7, "album/shyga");
albumblock2.carverHelper.addVariation("tile.album2.24.desc", 8, "album/flawless");
albumblock2.carverHelper.addVariation("tile.album2.25.desc", 9, "album/katamari");
albumblock2.carverHelper.addVariation("tile.album2.26.desc", 10, "album/red_barn_radio");
albumblock2.carverHelper.addVariation("tile.album2.27.desc", 11, "album/ceres_and_calypso");
albumblock2.carverHelper.addVariation("tile.album2.28.desc", 12, "album/komm_susser_tod");
albumblock2.carverHelper.addVariation("tile.album2.29.desc", 13, "album/midwest_princess");
albumblock2.carverHelper.addVariation("tile.album2.30.desc", 14, "album/brat");
albumblock2.carverHelper.addVariation("tile.album2.31.desc", 15, "album/perfect_persona");
albumblock2.carverHelper.registerBlock(albumblock2, "albumblock2");
albumblock2.carverHelper.registerVariations("albumblock");
BlockCarvable albumblock3 = (BlockCarvable) new BlockCarvable(Material.wood)
.setStepSound(Block.soundTypeWood)
.setCreativeTab(ChiselTabs.tabModdedChiselBlocks)
.setHardness(5F)
.setResistance(10F);
albumblock3.carverHelper.addVariation("tile.album3.32.desc", 0, "album/float_along");
albumblock3.carverHelper.addVariation("tile.album3.33.desc", 1, "album/chromakopia");
albumblock3.carverHelper.addVariation("tile.album3.34.desc", 2, "album/danganronpa_v2");
albumblock3.carverHelper.addVariation("tile.album3.35.desc", 3, "album/danganronpa_v3");
albumblock3.carverHelper.addVariation("tile.album3.36.desc", 4, "album/bronco");
albumblock3.carverHelper.addVariation("tile.album3.37.desc", 5, "album/plastic_beach");
albumblock3.carverHelper.addVariation("tile.album3.38.desc", 6, "album/triple_baka");
albumblock3.carverHelper.addVariation("tile.album3.39.desc", 7, "album/cowboy_carter");
albumblock3.carverHelper.addVariation("tile.album3.40.desc", 8, "album/phantom_island_1");
albumblock3.carverHelper.addVariation("tile.album3.41.desc", 9, "album/alligator_bites");
albumblock3.carverHelper.addVariation("tile.album3.42.desc", 10, "album/chiseled_baka");
albumblock3.carverHelper.addVariation("tile.album3.43.desc", 11, "album/magnet");
albumblock3.carverHelper.addVariation("tile.album3.44.desc", 12, "album/digital_girl");
albumblock3.carverHelper.addVariation("tile.album3.45.desc", 13, "album/digital_girl_1");
albumblock3.carverHelper.addVariation("tile.album3.46.desc", 14, "album/to_hell_with_it");
albumblock3.carverHelper.registerBlock(albumblock3, "albumblock3");
albumblock3.carverHelper.registerVariations("albumblock");
albumblock.carverHelper.registerAll(albumblock, "albumblock");
Carving.chisel.registerOre("albumblock", "albumblock");
}
@@ -5239,6 +5309,776 @@ public enum Features {
}
},
SULFUR {
@Override
void addBlocks() {
BlockCarvable sulfur = (BlockCarvable) new BlockCarvable().setStepSound(Block.soundTypeStone)
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
.setHardness(1F)
.setResistance(1F);
sulfur.carverHelper.addVariation("tile.stones.0.desc", 0, "sulfur/sulfur_block");
sulfur.carverHelper.addVariation("tile.stones.1.desc", 1, "sulfur/sulfur_bricks");
sulfur.carverHelper.addVariation("tile.stones.2.desc", 2, "sulfur/sulfur_chiseled");
sulfur.carverHelper.addVariation("tile.stones.3.desc", 3, "sulfur/sulfur_cobblestone");
sulfur.carverHelper.addVariation("tile.stones.4.desc", 4, "sulfur/sulfur_mossy");
sulfur.carverHelper.addVariation("tile.stones.5.desc", 5, "sulfur/sulfur_pillar");
sulfur.carverHelper.addVariation("tile.stones.6.desc", 6, "sulfur/sulfur_polished");
sulfur.carverHelper.addVariation("tile.stones.7.desc", 7, "sulfur/sulfur_prism");
sulfur.carverHelper.addVariation("tile.stones.8.desc", 8, "sulfur/sulfur_tiles");
sulfur.carverHelper.addVariation("tile.sulfur.0.desc", 9, "sulfur/sulfur_potent");
sulfur.carverHelper.registerAll(sulfur, "sulfurBlock");
}
},
CINNABAR {
@Override
void addBlocks() {
BlockCarvable cinnabar = (BlockCarvable) new BlockCarvable().setStepSound(Block.soundTypeStone)
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
.setHardness(1F)
.setResistance(1F);
cinnabar.carverHelper.addVariation("tile.stones.0.desc", 0, "cinnabar/cinnabar_block");
cinnabar.carverHelper.addVariation("tile.stones.1.desc", 1, "cinnabar/cinnabar_bricks");
cinnabar.carverHelper.addVariation("tile.stones.2.desc", 2, "cinnabar/cinnabar_chiseled");
cinnabar.carverHelper.addVariation("tile.stones.3.desc", 3, "cinnabar/cinnabar_cobblestone");
cinnabar.carverHelper.addVariation("tile.stones.4.desc", 4, "cinnabar/cinnabar_mossy");
cinnabar.carverHelper.addVariation("tile.stones.5.desc", 5, "cinnabar/cinnabar_pillar");
cinnabar.carverHelper.addVariation("tile.stones.6.desc", 6, "cinnabar/cinnabar_polished");
cinnabar.carverHelper.addVariation("tile.stones.7.desc", 7, "cinnabar/cinnabar_prism");
cinnabar.carverHelper.addVariation("tile.stones.8.desc", 8, "cinnabar/cinnabar_tiles");
cinnabar.carverHelper.registerAll(cinnabar, "cinnabarBlock");
}
},
TUFF {
@Override
void addBlocks() {
BlockCarvable tuff = (BlockCarvable) new BlockCarvable().setStepSound(Block.soundTypeStone)
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
.setHardness(1F)
.setResistance(1F);
tuff.carverHelper.addVariation("tile.stones.3.desc", 0, "tuff/tuff_cobblestone");
tuff.carverHelper.addVariation("tile.stones.4.desc", 1, "tuff/tuff_mossy");
tuff.carverHelper.addVariation("tile.stones.5.desc", 2, "tuff/tuff_pillar");
tuff.carverHelper.addVariation("tile.stones.6.desc", 8, "tuff/tuff_polished");
tuff.carverHelper.addVariation("tile.stones.7.desc", 4, "tuff/tuff_prism");
tuff.carverHelper.addVariation("tile.tuff.0.desc", 5, "tuff/tuff_bricks");
tuff.carverHelper.addVariation("tile.tuff.1.desc", 6, "tuff/tuff_pillar_1");
tuff.carverHelper.addVariation("tile.tuff.2.desc", 7, "tuff/chiseled_tuff");
tuff.carverHelper.registerAll(tuff, "tuffBlock");
}
},
PRISMARINE {
@Override
void addBlocks() {
BlockCarvable prismarine = (BlockCarvable) new BlockCarvable().setStepSound(Block.soundTypeStone)
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
.setHardness(1F)
.setResistance(1F);
prismarine.carverHelper.addVariation("tile.stones.1.desc", 1, "prismarine/prismarine_bricks");
prismarine.carverHelper.addVariation("tile.stones.3.desc", 3, "prismarine/prismarine_cobblestone");
prismarine.carverHelper.addVariation("tile.stones.4.desc", 4, "prismarine/prismarine_mossy");
prismarine.carverHelper.addVariation("tile.stones.5.desc", 5, "prismarine/prismarine_pillar");
prismarine.carverHelper.addVariation("tile.stones.9.desc", 6, "prismarine/prismarine_ornate");
prismarine.carverHelper.addVariation("tile.stones.6.desc", 7, "prismarine/prismarine_polished");
prismarine.carverHelper.addVariation("tile.stones.8.desc", 9, "prismarine/prismarine_tiles");
prismarine.carverHelper.registerAll(prismarine, "prismarineBlock");
}
},
DRIPSTONE {
@Override
void addBlocks() {
BlockCarvable dripstone = (BlockCarvable) new BlockCarvable().setStepSound(Block.soundTypeStone)
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
.setHardness(1F)
.setResistance(1F);
dripstone.carverHelper.addVariation("tile.stones.0.desc", 0, "dripstone/dripstone_block");
dripstone.carverHelper.addVariation("tile.stones.1.desc", 1, "dripstone/dripstone_bricks");
dripstone.carverHelper.addVariation("tile.stones.9.desc", 2, "dripstone/dripstone_ornate");
dripstone.carverHelper.addVariation("tile.stones.3.desc", 3, "dripstone/dripstone_cobblestone");
dripstone.carverHelper.addVariation("tile.stones.4.desc", 4, "dripstone/dripstone_mossy");
dripstone.carverHelper.addVariation("tile.stones.5.desc", 5, "dripstone/dripstone_pillar");
dripstone.carverHelper.addVariation("tile.stones.6.desc", 6, "dripstone/dripstone_polished");
dripstone.carverHelper.addVariation("tile.stones.7.desc", 7, "dripstone/dripstone_prism");
dripstone.carverHelper.addVariation("tile.stones.8.desc", 8, "dripstone/dripstone_tiles");
dripstone.carverHelper.addVariation("tile.dripstone.0.desc", 9, "dripstone/chiseled_dripstone");
dripstone.carverHelper.addVariation("tile.dripstone.1.desc", 10, "dripstone/dripstone_pillar_1");
dripstone.carverHelper.registerAll(dripstone, "dripstoneBlock");
}
},
DARK_PRISMARINE {
@Override
void addBlocks() {
BlockCarvable darkprismarine = (BlockCarvable) new BlockCarvable().setStepSound(Block.soundTypeStone)
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
.setHardness(1F)
.setResistance(1F);
darkprismarine.carverHelper.addVariation("tile.stones.0.desc", 0, "darkprismarine/darkprismarine");
darkprismarine.carverHelper.addVariation("tile.stones.1.desc", 1, "darkprismarine/darkprismarine_bricks");
darkprismarine.carverHelper.addVariation("tile.stones.9.desc", 2, "darkprismarine/darkprismarine_ornate");
darkprismarine.carverHelper
.addVariation("tile.stones.3.desc", 3, "darkprismarine/darkprismarine_cobblestone");
darkprismarine.carverHelper.addVariation("tile.stones.4.desc", 4, "darkprismarine/darkprismarine_mossy");
darkprismarine.carverHelper.addVariation("tile.stones.5.desc", 5, "darkprismarine/darkprismarine_pillar");
darkprismarine.carverHelper.addVariation("tile.stones.6.desc", 6, "darkprismarine/darkprismarine_polished");
darkprismarine.carverHelper.addVariation("tile.stones.7.desc", 7, "darkprismarine/darkprismarine_prism");
darkprismarine.carverHelper.addVariation("tile.stones.8.desc", 8, "darkprismarine/darkprismarine_tiles");
darkprismarine.carverHelper.registerAll(darkprismarine, "darkprismarineBlock");
}
},
DEEPSLATE {
@Override
void addBlocks() {
BlockCarvable deepslate = (BlockCarvable) new BlockCarvable().setStepSound(Block.soundTypeStone)
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
.setHardness(1F)
.setResistance(1F);
deepslate.carverHelper.addVariation("tile.stones.5.desc", 0, "deepslate/deepslate_pillar");
deepslate.carverHelper.addVariation("tile.stones.7.desc", 1, "deepslate/deepslate_prism");
deepslate.carverHelper.addVariation("tile.stones.8.desc", 2, "deepslate/deepslate_tiles");
deepslate.carverHelper.addVariation("tile.stones.4.desc", 3, "deepslate/deepslate_mossy");
deepslate.carverHelper.registerAll(deepslate, "deepslateBlock");
}
},
BASALT {
@Override
void addBlocks() {
BlockCarvable basalt = (BlockCarvable) new BlockCarvable().setStepSound(Block.soundTypeStone)
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
.setHardness(1F)
.setResistance(1F);
basalt.carverHelper.addVariation("tile.stones.0.desc", 0, "basalt/basalt");
basalt.carverHelper.addVariation("tile.stones.1.desc", 1, "basalt/basalt_bricks");
basalt.carverHelper.addVariation("tile.stones.9.desc", 2, "basalt/basalt_ornate");
basalt.carverHelper.addVariation("tile.stones.3.desc", 3, "basalt/basalt_cobblestone");
basalt.carverHelper.addVariation("tile.stones.4.desc", 4, "basalt/basalt_mossy");
basalt.carverHelper.addVariation("tile.stones.5.desc", 5, "basalt/basalt_pillar");
basalt.carverHelper.addVariation("tile.stones.6.desc", 6, "basalt/basalt_polished");
basalt.carverHelper.addVariation("tile.stones.7.desc", 7, "basalt/basalt_prism");
basalt.carverHelper.addVariation("tile.stones.8.desc", 8, "basalt/basalt_tiles");
basalt.carverHelper.registerAll(basalt, "basaltBlock");
}
},
RUBY {
@Override
void addBlocks() {
BlockCarvable ruby = (BlockCarvable) new BlockCarvable().setStepSound(Block.soundTypeStone)
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
.setHardness(1F)
.setResistance(1F);
ruby.carverHelper.addVariation("tile.gems.0.desc", 0, "ruby/rubyBismuth");
ruby.carverHelper.addVariation("tile.gems.1.desc", 1, "ruby/rubyBordered");
ruby.carverHelper.addVariation("tile.gems.9.desc", 2, "ruby/rubyCell");
ruby.carverHelper.addVariation("tile.gems.3.desc", 3, "ruby/rubyFacet");
ruby.carverHelper.addVariation("tile.gems.4.desc", 4, "ruby/rubyOrnate");
ruby.carverHelper.addVariation("tile.gems.5.desc", 5, "ruby/rubyPanel");
ruby.carverHelper.addVariation("tile.gems.6.desc", 6, "ruby/rubyPolished");
ruby.carverHelper.addVariation("tile.gems.7.desc", 7, "ruby/rubyRaw");
ruby.carverHelper.addVariation("tile.gems.8.desc", 8, "ruby/rubySmooth");
ruby.carverHelper.addVariation("tile.gems.9.desc", 9, "ruby/rubySpiral");
ruby.carverHelper.addVariation("tile.gems.10.desc", 10, "ruby/rubyTiles");
ruby.carverHelper.registerAll(ruby, "rubyBlock");
}
},
SPINEL {
@Override
void addBlocks() {
BlockCarvable spinel = (BlockCarvable) new BlockCarvable().setStepSound(Block.soundTypeStone)
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
.setHardness(1F)
.setResistance(1F);
spinel.carverHelper.addVariation("tile.gems.0.desc", 0, "spinel/spinelBismuth");
spinel.carverHelper.addVariation("tile.gems.1.desc", 1, "spinel/spinelBordered");
spinel.carverHelper.addVariation("tile.gems.9.desc", 2, "spinel/spinelCell");
spinel.carverHelper.addVariation("tile.gems.3.desc", 3, "spinel/spinelFacet");
spinel.carverHelper.addVariation("tile.gems.4.desc", 4, "spinel/spinelOrnate");
spinel.carverHelper.addVariation("tile.gems.5.desc", 5, "spinel/spinelPanel");
spinel.carverHelper.addVariation("tile.gems.6.desc", 6, "spinel/spinelPolished");
spinel.carverHelper.addVariation("tile.gems.7.desc", 7, "spinel/spinelRaw");
spinel.carverHelper.addVariation("tile.gems.8.desc", 8, "spinel/spinelSmooth");
spinel.carverHelper.addVariation("tile.gems.9.desc", 9, "spinel/spinelSpiral");
spinel.carverHelper.addVariation("tile.gems.10.desc", 10, "spinel/spinelTiles");
spinel.carverHelper.registerAll(spinel, "spinelBlock");
}
},
RHODOCHROSITE {
@Override
void addBlocks() {
BlockCarvable rhodochrosite = (BlockCarvable) new BlockCarvable().setStepSound(Block.soundTypeStone)
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
.setHardness(1F)
.setResistance(1F);
rhodochrosite.carverHelper.addVariation("tile.gems.0.desc", 0, "rhodochrosite/rhodochrositeBismuth");
rhodochrosite.carverHelper.addVariation("tile.gems.1.desc", 1, "rhodochrosite/rhodochrositeBordered");
rhodochrosite.carverHelper.addVariation("tile.gems.9.desc", 2, "rhodochrosite/rhodochrositeCell");
rhodochrosite.carverHelper.addVariation("tile.gems.3.desc", 3, "rhodochrosite/rhodochrositeFacet");
rhodochrosite.carverHelper.addVariation("tile.gems.4.desc", 4, "rhodochrosite/rhodochrositeOrnate");
rhodochrosite.carverHelper.addVariation("tile.gems.5.desc", 5, "rhodochrosite/rhodochrositePanel");
rhodochrosite.carverHelper.addVariation("tile.gems.6.desc", 6, "rhodochrosite/rhodochrositePolished");
rhodochrosite.carverHelper.addVariation("tile.gems.7.desc", 7, "rhodochrosite/rhodochrositeRaw");
rhodochrosite.carverHelper.addVariation("tile.gems.8.desc", 8, "rhodochrosite/rhodochrositeSmooth");
rhodochrosite.carverHelper.addVariation("tile.gems.9.desc", 9, "rhodochrosite/rhodochrositeSpiral");
rhodochrosite.carverHelper.addVariation("tile.gems.10.desc", 10, "rhodochrosite/rhodochrositeTiles");
rhodochrosite.carverHelper.registerAll(rhodochrosite, "rhodochrositeBlock");
}
},
OPAL {
@Override
void addBlocks() {
BlockCarvable opal = (BlockCarvable) new BlockCarvable().setStepSound(Block.soundTypeStone)
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
.setHardness(1F)
.setResistance(1F);
opal.carverHelper.addVariation("tile.gems.0.desc", 0, "opal/opalBismuth");
opal.carverHelper.addVariation("tile.gems.1.desc", 1, "opal/opalBordered");
opal.carverHelper.addVariation("tile.gems.9.desc", 2, "opal/opalCell");
opal.carverHelper.addVariation("tile.gems.3.desc", 3, "opal/opalFacet");
opal.carverHelper.addVariation("tile.gems.4.desc", 4, "opal/opalOrnate");
opal.carverHelper.addVariation("tile.gems.5.desc", 5, "opal/opalPanel");
opal.carverHelper.addVariation("tile.gems.6.desc", 6, "opal/opalPolished");
opal.carverHelper.addVariation("tile.gems.7.desc", 7, "opal/opalRaw");
opal.carverHelper.addVariation("tile.gems.8.desc", 8, "opal/opalSmooth");
opal.carverHelper.addVariation("tile.gems.9.desc", 9, "opal/opalSpiral");
opal.carverHelper.addVariation("tile.gems.10.desc", 10, "opal/opalTiles");
opal.carverHelper.addVariation("tile.gems.1.desc", 12, "opal/opalBordered1");
opal.carverHelper.addVariation("tile.gems.4.desc", 13, "opal/opalOrnate1");
opal.carverHelper.addVariation("tile.gems.10.desc", 14, "opal/opalTiles1");
opal.carverHelper.registerAll(opal, "opalBlock");
}
},
ONYX {
@Override
void addBlocks() {
BlockCarvable onyx = (BlockCarvable) new BlockCarvable().setStepSound(Block.soundTypeStone)
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
.setHardness(1F)
.setResistance(1F);
onyx.carverHelper.addVariation("tile.gems.0.desc", 0, "onyx/onyxBismuth");
onyx.carverHelper.addVariation("tile.gems.1.desc", 1, "onyx/onyxBordered");
onyx.carverHelper.addVariation("tile.gems.9.desc", 2, "onyx/onyxCell");
onyx.carverHelper.addVariation("tile.gems.3.desc", 3, "onyx/onyxFacet");
onyx.carverHelper.addVariation("tile.gems.4.desc", 4, "onyx/onyxOrnate");
onyx.carverHelper.addVariation("tile.gems.5.desc", 5, "onyx/onyxPanel");
onyx.carverHelper.addVariation("tile.gems.6.desc", 6, "onyx/onyxPolished");
onyx.carverHelper.addVariation("tile.gems.7.desc", 7, "onyx/onyxRaw");
onyx.carverHelper.addVariation("tile.gems.8.desc", 8, "onyx/onyxSmooth");
onyx.carverHelper.addVariation("tile.gems.9.desc", 9, "onyx/onyxSpiral");
onyx.carverHelper.addVariation("tile.gems.10.desc", 10, "onyx/onyxTiles");
onyx.carverHelper.registerAll(onyx, "onyxBlock");
}
},
NETHER_QUARTZ {
@Override
void addBlocks() {
BlockCarvable netherquartz = (BlockCarvable) new BlockCarvable().setStepSound(Block.soundTypeStone)
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
.setHardness(1F)
.setResistance(1F);
netherquartz.carverHelper.addVariation("tile.gems.0.desc", 0, "netherquartz/netherquartzBismuth");
netherquartz.carverHelper.addVariation("tile.gems.1.desc", 1, "netherquartz/netherquartzBordered");
netherquartz.carverHelper.addVariation("tile.gems.9.desc", 2, "netherquartz/netherquartzCell");
netherquartz.carverHelper.addVariation("tile.gems.3.desc", 3, "netherquartz/netherquartzFacet");
netherquartz.carverHelper.addVariation("tile.gems.4.desc", 4, "netherquartz/netherquartzOrnate");
netherquartz.carverHelper.addVariation("tile.gems.5.desc", 5, "netherquartz/netherquartzPanel");
netherquartz.carverHelper.addVariation("tile.gems.6.desc", 6, "netherquartz/netherquartzPolished");
netherquartz.carverHelper.addVariation("tile.gems.7.desc", 7, "netherquartz/netherquartzRaw");
netherquartz.carverHelper.addVariation("tile.gems.8.desc", 8, "netherquartz/netherquartzSmooth");
netherquartz.carverHelper.addVariation("tile.gems.9.desc", 9, "netherquartz/netherquartzSpiral");
netherquartz.carverHelper.addVariation("tile.gems.10.desc", 10, "netherquartz/netherquartzTiles");
netherquartz.carverHelper.registerAll(netherquartz, "netherquartzBlock");
}
},
LABRADORITE {
@Override
void addBlocks() {
BlockCarvable labradorite = (BlockCarvable) new BlockCarvable().setStepSound(Block.soundTypeStone)
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
.setHardness(1F)
.setResistance(1F);
labradorite.carverHelper.addVariation("tile.gems.0.desc", 0, "labradorite/labradoriteBismuth");
labradorite.carverHelper.addVariation("tile.gems.1.desc", 1, "labradorite/labradoriteBordered");
labradorite.carverHelper.addVariation("tile.gems.9.desc", 2, "labradorite/labradoriteCell");
labradorite.carverHelper.addVariation("tile.gems.3.desc", 3, "labradorite/labradoriteFacet");
labradorite.carverHelper.addVariation("tile.gems.4.desc", 4, "labradorite/labradoriteOrnate");
labradorite.carverHelper.addVariation("tile.gems.5.desc", 5, "labradorite/labradoritePanel");
labradorite.carverHelper.addVariation("tile.gems.6.desc", 6, "labradorite/labradoritePolished");
labradorite.carverHelper.addVariation("tile.gems.7.desc", 7, "labradorite/labradoriteRaw");
labradorite.carverHelper.addVariation("tile.gems.8.desc", 8, "labradorite/labradoriteSmooth");
labradorite.carverHelper.addVariation("tile.gems.9.desc", 9, "labradorite/labradoriteSpiral");
labradorite.carverHelper.addVariation("tile.gems.10.desc", 10, "labradorite/labradoriteTiles");
labradorite.carverHelper.registerAll(labradorite, "labradoriteBlock");
}
},
JADE {
@Override
void addBlocks() {
BlockCarvable jade = (BlockCarvable) new BlockCarvable().setStepSound(Block.soundTypeStone)
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
.setHardness(1F)
.setResistance(1F);
jade.carverHelper.addVariation("tile.gems.0.desc", 0, "jade/jadeBismuth");
jade.carverHelper.addVariation("tile.gems.1.desc", 1, "jade/jadeBordered");
jade.carverHelper.addVariation("tile.gems.9.desc", 2, "jade/jadeCell");
jade.carverHelper.addVariation("tile.gems.3.desc", 3, "jade/jadeFacet");
jade.carverHelper.addVariation("tile.gems.4.desc", 4, "jade/jadeOrnate");
jade.carverHelper.addVariation("tile.gems.5.desc", 5, "jade/jadePanel");
jade.carverHelper.addVariation("tile.gems.6.desc", 6, "jade/jadePolished");
jade.carverHelper.addVariation("tile.gems.7.desc", 7, "jade/jadeRaw");
jade.carverHelper.addVariation("tile.gems.8.desc", 8, "jade/jadeSmooth");
jade.carverHelper.addVariation("tile.gems.9.desc", 9, "jade/jadeSpiral");
jade.carverHelper.addVariation("tile.gems.10.desc", 10, "jade/jadeTiles");
jade.carverHelper.registerAll(jade, "jadeBlock");
}
},
FLUORITE {
@Override
void addBlocks() {
BlockCarvable fluorite = (BlockCarvable) new BlockCarvable().setStepSound(Block.soundTypeStone)
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
.setHardness(1F)
.setResistance(1F);
fluorite.carverHelper.addVariation("tile.gems.0.desc", 0, "fluorite/fluoriteBismuth");
fluorite.carverHelper.addVariation("tile.gems.1.desc", 1, "fluorite/fluoriteBordered");
fluorite.carverHelper.addVariation("tile.gems.9.desc", 2, "fluorite/fluoriteCell");
fluorite.carverHelper.addVariation("tile.gems.3.desc", 3, "fluorite/fluoriteFacet");
fluorite.carverHelper.addVariation("tile.gems.4.desc", 4, "fluorite/fluoriteOrnate");
fluorite.carverHelper.addVariation("tile.gems.5.desc", 5, "fluorite/fluoritePanel");
fluorite.carverHelper.addVariation("tile.gems.6.desc", 6, "fluorite/fluoritePolished");
fluorite.carverHelper.addVariation("tile.gems.7.desc", 7, "fluorite/fluoriteRaw");
fluorite.carverHelper.addVariation("tile.gems.8.desc", 8, "fluorite/fluoriteSmooth");
fluorite.carverHelper.addVariation("tile.gems.9.desc", 9, "fluorite/fluoriteSpiral");
fluorite.carverHelper.addVariation("tile.gems.10.desc", 10, "fluorite/fluoriteTiles");
fluorite.carverHelper.registerAll(fluorite, "fluoriteBlock");
}
},
CHAROITE {
@Override
void addBlocks() {
BlockCarvable charoite = (BlockCarvable) new BlockCarvable().setStepSound(Block.soundTypeStone)
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
.setHardness(1F)
.setResistance(1F);
charoite.carverHelper.addVariation("tile.gems.0.desc", 0, "charoite/charoiteBismuth");
charoite.carverHelper.addVariation("tile.gems.1.desc", 1, "charoite/charoiteBordered");
charoite.carverHelper.addVariation("tile.gems.9.desc", 2, "charoite/charoiteCell");
charoite.carverHelper.addVariation("tile.gems.3.desc", 3, "charoite/charoiteFacet");
charoite.carverHelper.addVariation("tile.gems.4.desc", 4, "charoite/charoiteOrnate");
charoite.carverHelper.addVariation("tile.gems.5.desc", 5, "charoite/charoitePanel");
charoite.carverHelper.addVariation("tile.gems.6.desc", 6, "charoite/charoitePolished");
charoite.carverHelper.addVariation("tile.gems.7.desc", 7, "charoite/charoiteRaw");
charoite.carverHelper.addVariation("tile.gems.8.desc", 8, "charoite/charoiteSmooth");
charoite.carverHelper.addVariation("tile.gems.9.desc", 9, "charoite/charoiteSpiral");
charoite.carverHelper.addVariation("tile.gems.10.desc", 10, "charoite/charoiteTiles");
charoite.carverHelper.registerAll(charoite, "charoiteBlock");
}
},
TOPAZ {
@Override
void addBlocks() {
BlockCarvable topaz = (BlockCarvable) new BlockCarvable().setStepSound(Block.soundTypeStone)
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
.setHardness(1F)
.setResistance(1F);
topaz.carverHelper.addVariation("tile.gems.0.desc", 0, "topaz/topazBismuth");
topaz.carverHelper.addVariation("tile.gems.1.desc", 1, "topaz/topazBordered");
topaz.carverHelper.addVariation("tile.gems.9.desc", 2, "topaz/topazCell");
topaz.carverHelper.addVariation("tile.gems.3.desc", 3, "topaz/topazFacet");
topaz.carverHelper.addVariation("tile.gems.4.desc", 4, "topaz/topazOrnate");
topaz.carverHelper.addVariation("tile.gems.5.desc", 5, "topaz/topazPanel");
topaz.carverHelper.addVariation("tile.gems.6.desc", 6, "topaz/topazPolished");
topaz.carverHelper.addVariation("tile.gems.7.desc", 7, "topaz/topazRaw");
topaz.carverHelper.addVariation("tile.gems.8.desc", 8, "topaz/topazSmooth");
topaz.carverHelper.addVariation("tile.gems.9.desc", 9, "topaz/topazSpiral");
topaz.carverHelper.addVariation("tile.gems.10.desc", 10, "topaz/topazTiles");
topaz.carverHelper.registerAll(topaz, "topazBlock");
}
}, // Architect's Palette
BONE_BLOCK {
@Override
void addBlocks() {
BlockCarvable bone_block = (BlockCarvable) new BlockCarvable().setStepSound(Block.soundTypeStone)
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
.setHardness(1F)
.setResistance(1F);
bone_block.carverHelper.addVariation("tile.bone_block.0.desc", 0, "bone/bone_block");
bone_block.carverHelper.addVariation("tile.bone_block.1.desc", 1, "bone/bone_bricks");
bone_block.carverHelper.addVariation("tile.bone_block.2.desc", 2, "bone/bone_pillar");
bone_block.carverHelper.addVariation("tile.bone_block.3.desc", 3, "bone/skull");
bone_block.carverHelper.addVariation("tile.bone_block.4.desc", 4, "bone/withered_bone_block");
bone_block.carverHelper.addVariation("tile.bone_block.5.desc", 5, "bone/withered_bone_bricks");
bone_block.carverHelper.addVariation("tile.bone_block.6.desc", 6, "bone/withered_bone_pillar");
bone_block.carverHelper.addVariation("tile.bone_block.7.desc", 7, "bone/withered_skull");
bone_block.carverHelper.addVariation("tile.bone_block.8.desc", 8, "bone/withered_skull_lit");
bone_block.carverHelper.addVariation("tile.bone_block.9.desc", 9, "bone/modern_bone");
bone_block.carverHelper.registerAll(bone_block, "boneBlock");
}
},
CALCITE {
@Override
void addBlocks() {
BlockCarvable calcite = (BlockCarvable) new BlockCarvable().setStepSound(Block.soundTypeStone)
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
.setHardness(1F)
.setResistance(1F);
calcite.carverHelper.addVariation("tile.calcite.0.desc", 0, "calcite/calcite_bricks");
calcite.carverHelper.addVariation("tile.calcite.1.desc", 1, "calcite/calcite_pillar");
calcite.carverHelper.addVariation("tile.calcite.2.desc", 2, "calcite/chiseled_calcite");
calcite.carverHelper.registerAll(calcite, "calciteBlock");
}
},
FLINT {
@Override
void addBlocks() {
BlockCarvable flint = (BlockCarvable) new BlockCarvable().setStepSound(Block.soundTypeStone)
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
.setHardness(1F)
.setResistance(1F);
flint.carverHelper.addVariation("tile.flint.0.desc", 0, "flint/flint_block");
flint.carverHelper.addVariation("tile.flint.1.desc", 1, "flint/chiseled_flint_block");
flint.carverHelper.addVariation("tile.flint.2.desc", 2, "flint/flint_pillar");
flint.carverHelper.addVariation("tile.flint.3.desc", 3, "flint/flint_tiles");
flint.carverHelper.addVariation("tile.flint.4.desc", 4, "flint/smooth_flint_block");
flint.carverHelper.registerAll(flint, "flintBlock");
}
},
SUNSTONE {
@Override
void addBlocks() {
BlockCarvable sunstone = (BlockCarvable) new BlockCarvable().setStepSound(Block.soundTypeStone)
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
.setHardness(1F)
.setResistance(1F);
sunstone.carverHelper.addVariation("tile.sunstone.0.desc", 0, "sunstone/sunmetal_block");
sunstone.carverHelper.addVariation("tile.sunstone.1.desc", 1, "sunstone/sunmetal_pillar");
sunstone.carverHelper.addVariation("tile.sunstone.2.desc", 2, "sunstone/chiseled_sunmetal_block");
sunstone.carverHelper.addVariation("tile.sunstone.3.desc", 3, "sunstone/sunstone");
sunstone.carverHelper.addVariation("tile.sunstone.4.desc", 4, "sunstone/sunstone_bright");
sunstone.carverHelper.addVariation("tile.sunstone.5.desc", 5, "sunstone/sunstone_dim");
sunstone.carverHelper.registerAll(sunstone, "sunstoneBlock");
}
},
MOONSTONE {
@Override
void addBlocks() {
BlockCarvable moonstone = (BlockCarvable) new BlockCarvable().setStepSound(Block.soundTypeStone)
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
.setHardness(1F)
.setResistance(1F);
moonstone.carverHelper.addVariation("tile.moonstone.0.desc", 0, "moonstone/moonstone");
moonstone.carverHelper.addVariation("tile.moonstone.1.desc", 1, "moonstone/moonstone_dim");
moonstone.carverHelper.addVariation("tile.moonstone.2.desc", 2, "moonstone/moonstone_bright");
moonstone.carverHelper.addVariation("tile.moonstone.3.desc", 3, "moonstone/moonshale");
moonstone.carverHelper.addVariation("tile.moonstone.4.desc", 4, "moonstone/moonshale_bricks");
moonstone.carverHelper.addVariation("tile.moonstone.5.desc", 5, "moonstone/cracked_moonshale_bricks");
moonstone.carverHelper.addVariation("tile.moonstone.6.desc", 6, "moonstone/moonshale_flagstone");
moonstone.carverHelper.addVariation("tile.moonstone.7.desc", 7, "moonstone/chiseled_moonshale");
moonstone.carverHelper.addVariation("tile.moonstone.8.desc", 8, "moonstone/bordered_moonshale");
moonstone.carverHelper.addVariation("tile.moonstone.9.desc", 9, "moonstone/craterstone");
moonstone.carverHelper.addVariation("tile.moonstone.10.desc", 10, "moonstone/nebulite");
moonstone.carverHelper.addVariation("tile.moonstone.11.desc", 11, "moonstone/polished_nebulite");
moonstone.carverHelper.registerAll(moonstone, "moonstoneBlock");
}
},
ENTWINE {
@Override
void addBlocks() {
BlockCarvable entwine = (BlockCarvable) new BlockCarvable().setStepSound(Block.soundTypeStone)
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
.setHardness(1F)
.setResistance(1F);
entwine.carverHelper.addVariation("tile.entwine.0.desc", 0, "entwine/ender_pearl_block");
entwine.carverHelper.addVariation("tile.entwine.1.desc", 1, "entwine/entwine_block");
entwine.carverHelper.addVariation("tile.entwine.2.desc", 2, "entwine/chiseled_entwine");
entwine.carverHelper.addVariation("tile.entwine.3.desc", 3, "entwine/entwine_pillar");
entwine.carverHelper.registerAll(entwine, "entwineBlock");
}
},
ORACLE {
@Override
void addBlocks() {
BlockCarvable oracle = (BlockCarvable) new BlockCarvable().setStepSound(Block.soundTypeStone)
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
.setHardness(1F)
.setResistance(1F);
oracle.carverHelper.addVariation("tile.oracle.0.desc", 0, "oracle/oracle_block");
oracle.carverHelper.addVariation("tile.oracle.1.desc", 1, "oracle/framed_oracle_block");
oracle.carverHelper.addVariation("tile.oracle.2.desc", 2, "oracle/oracle_bricks");
oracle.carverHelper.addVariation("tile.oracle.3.desc", 3, "oracle/dark_oracle_bricks");
oracle.carverHelper.addVariation("tile.oracle.4.desc", 4, "oracle/oracle_pillar");
oracle.carverHelper.addVariation("tile.oracle.5.desc", 5, "oracle/oracle_tiles");
oracle.carverHelper.registerAll(oracle, "oracleBlock");
}
},
ALGAL {
@Override
void addBlocks() {
BlockCarvable algal = (BlockCarvable) new BlockCarvable().setStepSound(Block.soundTypeStone)
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
.setHardness(1F)
.setResistance(1F);
algal.carverHelper.addVariation("tile.algal.0.desc", 0, "algal/algal_bricks");
algal.carverHelper.addVariation("tile.algal.1.desc", 1, "algal/chiseled_algal_bricks");
algal.carverHelper.addVariation("tile.algal.2.desc", 2, "algal/cracked_algal_bricks");
algal.carverHelper.addVariation("tile.algal.3.desc", 3, "algal/overgrown_algal_bricks");
algal.carverHelper.registerAll(algal, "algalBlock");
}
},
CEREBRAL {
@Override
void addBlocks() {
BlockCarvable cerebral = (BlockCarvable) new BlockCarvable().setStepSound(Block.soundTypeStone)
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
.setHardness(1F)
.setResistance(1F);
cerebral.carverHelper.addVariation("tile.cerebral.0.desc", 0, "cerebral/cerebral_block");
cerebral.carverHelper.addVariation("tile.cerebral.1.desc", 1, "cerebral/cerebral_tiles");
cerebral.carverHelper.addVariation("tile.cerebral.2.desc", 2, "cerebral/cerebral_tiles_1");
cerebral.carverHelper.addVariation("tile.cerebral.3.desc", 3, "cerebral/cerebral_tiles_2");
cerebral.carverHelper.addVariation("tile.cerebral.4.desc", 4, "cerebral/cerebral_pillar");
cerebral.carverHelper.registerAll(cerebral, "cerebralBlock");
}
},
NETHER_BRASS {
@Override
void addBlocks() {
BlockCarvable nether_brass = (BlockCarvable) new BlockCarvable().setStepSound(Block.soundTypeStone)
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
.setHardness(1F)
.setResistance(1F);
nether_brass.carverHelper.addVariation("tile.nether_brass.0.desc", 0, "nether_brass/nether_brass_block");
nether_brass.carverHelper.addVariation("tile.nether_brass.1.desc", 1, "nether_brass/cut_nether_brass");
nether_brass.carverHelper.addVariation("tile.nether_brass.2.desc", 2, "nether_brass/nether_brass_pillar");
nether_brass.carverHelper.addVariation("tile.nether_brass.3.desc", 3, "nether_brass/nether_brass_slab");
nether_brass.carverHelper.addVariation("tile.nether_brass.4.desc", 4, "nether_brass/smooth_nether_brass");
nether_brass.carverHelper.registerAll(nether_brass, "nether_brassBlock");
}
},
ESOTERRACK {
@Override
void addBlocks() {
BlockCarvable esoterrack = (BlockCarvable) new BlockCarvable().setStepSound(Block.soundTypeStone)
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
.setHardness(1F)
.setResistance(1F);
esoterrack.carverHelper.addVariation("tile.esoterrack.0.desc", 0, "esoterrack/esoterrack");
esoterrack.carverHelper.addVariation("tile.esoterrack.1.desc", 1, "esoterrack/esoterrack_bricks");
esoterrack.carverHelper.addVariation("tile.esoterrack.2.desc", 2, "esoterrack/esoterrack_pillar");
esoterrack.carverHelper.addVariation("tile.esoterrack.3.desc", 3, "esoterrack/esoterrack_new");
esoterrack.carverHelper.registerAll(esoterrack, "esoterrackBlock");
}
},
WARDSTONE {
@Override
void addBlocks() {
BlockCarvable wardstone = (BlockCarvable) new BlockCarvable().setStepSound(Block.soundTypeStone)
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
.setHardness(1F)
.setResistance(1F);
wardstone.carverHelper.addVariation("tile.wardstone.0.desc", 0, "wardstone/wardstone");
wardstone.carverHelper.addVariation("tile.wardstone.1.desc", 1, "wardstone/wardstone_bricks");
wardstone.carverHelper.addVariation("tile.wardstone.2.desc", 2, "wardstone/wardstone_pillar");
wardstone.carverHelper.addVariation("tile.wardstone.3.desc", 3, "wardstone/wardstone_slab");
wardstone.carverHelper.addVariation("tile.wardstone.4.desc", 4, "wardstone/chiseled_wardstone");
wardstone.carverHelper.addVariation("tile.wardstone.5.desc", 5, "wardstone/wardstone_circle");
wardstone.carverHelper.registerAll(wardstone, "wardstoneBlock");
}
},
OLIVESTONE {
@Override
void addBlocks() {
BlockCarvable olivestone = (BlockCarvable) new BlockCarvable().setStepSound(Block.soundTypeStone)
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
.setHardness(1F)
.setResistance(1F);
olivestone.carverHelper.addVariation("tile.olivestone.0.desc", 0, "olivestone/chiseled_olivestone");
olivestone.carverHelper.addVariation("tile.olivestone.1.desc", 1, "olivestone/cracked_olivestone_bricks");
olivestone.carverHelper.addVariation("tile.olivestone.2.desc", 2, "olivestone/cracked_olivestone_tiles");
olivestone.carverHelper.addVariation("tile.olivestone.3.desc", 3, "olivestone/illuminated_olivestone");
olivestone.carverHelper.addVariation("tile.olivestone.4.desc", 4, "olivestone/olivestone_bricks");
olivestone.carverHelper.addVariation("tile.olivestone.5.desc", 5, "olivestone/olivestone_pillar");
olivestone.carverHelper.addVariation("tile.olivestone.6.desc", 6, "olivestone/olivestone_tiles");
olivestone.carverHelper.addVariation("tile.olivestone.7.desc", 7, "olivestone/warped_chiseled_olivestone");
olivestone.carverHelper.registerAll(olivestone, "olivestoneBlock");
}
},
VISCERA {
@Override
void addBlocks() {
BlockCarvable viscera = (BlockCarvable) new BlockCarvable().setStepSound(Block.soundTypeStone)
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
.setHardness(1F)
.setResistance(1F);
viscera.carverHelper.addVariation("tile.viscera.0.desc", 0, "viscera/entrails");
viscera.carverHelper.addVariation("tile.viscera.1.desc", 1, "viscera/rotten_flesh_block");
viscera.carverHelper.addVariation("tile.viscera.2.desc", 2, "viscera/salmon_log");
viscera.carverHelper.addVariation("tile.viscera.3.desc", 3, "viscera/cod_log");
viscera.carverHelper.registerAll(viscera, "visceraBlock");
}
},
ABYSSALINE {
@Override
void addBlocks() {
BlockCarvable abyssaline = (BlockCarvable) new BlockCarvable().setStepSound(Block.soundTypeStone)
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
.setHardness(1F)
.setResistance(1F);
abyssaline.carverHelper.addVariation("tile.abyssaline.0.desc", 0, "abyssaline/abyssaline_bricks");
abyssaline.carverHelper.addVariation("tile.abyssaline.1.desc", 1, "abyssaline/abyssaline_bricks_charged");
abyssaline.carverHelper.addVariation("tile.abyssaline.2.desc", 2, "abyssaline/abyssaline_pillar");
abyssaline.carverHelper.addVariation("tile.abyssaline.3.desc", 3, "abyssaline/abyssaline_pillar_charged");
abyssaline.carverHelper.addVariation("tile.abyssaline.4.desc", 4, "abyssaline/abyssaline");
abyssaline.carverHelper.addVariation("tile.abyssaline.5.desc", 5, "abyssaline/abyssaline_charged");
abyssaline.carverHelper.addVariation("tile.abyssaline.6.desc", 6, "abyssaline/abyssaline_tiles");
abyssaline.carverHelper.addVariation("tile.abyssaline.7.desc", 7, "abyssaline/abyssaline_tiles_charged");
abyssaline.carverHelper.addVariation("tile.abyssaline.8.desc", 8, "abyssaline/abyssaline_plating");
abyssaline.carverHelper.addVariation("tile.abyssaline.9.desc", 9, "abyssaline/abyssaline_plating_charged");
abyssaline.carverHelper
.addVariation("tile.abyssaline.10.desc", 10, "abyssaline/chiseled_abyssaline_bricks");
abyssaline.carverHelper.registerAll(abyssaline, "abyssalineBlock");
}
},
HADALINE {
@Override
void addBlocks() {
BlockCarvable hadaline = (BlockCarvable) new BlockCarvable().setStepSound(Block.soundTypeStone)
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
.setHardness(1F)
.setResistance(1F);
hadaline.carverHelper.addVariation("tile.hadaline.0.desc", 0, "hadaline/hadaline_bricks");
hadaline.carverHelper.addVariation("tile.hadaline.1.desc", 1, "hadaline/hadaline_bricks_charged");
hadaline.carverHelper.addVariation("tile.hadaline.2.desc", 2, "hadaline/hadaline_pillar");
hadaline.carverHelper.addVariation("tile.hadaline.3.desc", 3, "hadaline/hadaline_pillar_charged");
hadaline.carverHelper.addVariation("tile.hadaline.4.desc", 4, "hadaline/hadaline");
hadaline.carverHelper.addVariation("tile.hadaline.5.desc", 5, "hadaline/hadaline_charged");
hadaline.carverHelper.addVariation("tile.hadaline.6.desc", 6, "hadaline/hadaline_tiles");
hadaline.carverHelper.addVariation("tile.hadaline.7.desc", 7, "hadaline/hadaline_tiles_charged");
hadaline.carverHelper.addVariation("tile.hadaline.8.desc", 8, "hadaline/hadaline_plating");
hadaline.carverHelper.addVariation("tile.hadaline.9.desc", 9, "hadaline/hadaline_plating_charged");
hadaline.carverHelper.addVariation("tile.hadaline.10.desc", 10, "hadaline/chiseled_hadaline_bricks");
hadaline.carverHelper.registerAll(hadaline, "hadalineBlock");
}
},
ROAD {
@Override
@@ -16,6 +16,7 @@ import cpw.mods.fml.relauncher.SideOnly;
import team.chisel.ctmlib.Drawing;
import team.chisel.ctmlib.RenderBlocksCTM;
import team.chisel.ctmlib.TextureSubmap;
import team.chisel.ctmlib.TextureSubmapCTM;
import team.chisel.init.ChiselBlocks;
public class SubmapManagerAntiblock extends SubmapManagerBase {
@@ -93,8 +94,8 @@ public class SubmapManagerAntiblock extends SubmapManagerBase {
@Override
@SideOnly(Side.CLIENT)
public void registerIcons(String modName, Block block, IIconRegister register) {
submap = new TextureSubmap(register.registerIcon(modName + ":antiblock/" + color + "-antiBlock-ctm"), 4, 4);
submapSmall = new TextureSubmap(register.registerIcon(modName + ":antiblock/" + color + "-antiBlock"), 2, 2);
submap = new TextureSubmapCTM(register.registerIcon(modName + ":antiblock/" + color + "-antiBlock-ctm"), 4);
submapSmall = new TextureSubmapCTM(register.registerIcon(modName + ":antiblock/" + color + "-antiBlock"), 2);
}
@Override
@@ -11,6 +11,7 @@ import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import team.chisel.ctmlib.RenderBlocksCTM;
import team.chisel.ctmlib.TextureSubmap;
import team.chisel.ctmlib.TextureSubmapCTM;
public class SubmapManagerCarpetFloor extends SubmapManagerBase {
@@ -39,8 +40,8 @@ public class SubmapManagerCarpetFloor extends SubmapManagerBase {
@SideOnly(Side.CLIENT)
public void registerIcons(String modName, Block block, IIconRegister register) {
String path = modName + ":carpet/" + color;
submap = new TextureSubmap(register.registerIcon(path + "-ctm"), 4, 4);
submapSmall = new TextureSubmap(register.registerIcon(path), 2, 2);
submap = new TextureSubmapCTM(register.registerIcon(path + "-ctm"), 4);
submapSmall = new TextureSubmapCTM(register.registerIcon(path), 2);
}
@Override
@@ -3,6 +3,7 @@ package team.chisel.client.render;
import net.minecraft.block.Block;
import net.minecraft.client.renderer.RenderBlocks;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.client.renderer.texture.TextureMap;
import net.minecraft.util.IIcon;
import net.minecraft.util.MathHelper;
import net.minecraft.world.IBlockAccess;
@@ -89,12 +90,9 @@ public class SubmapManagerCombinedCTM extends SubmapManagerBase {
}
@Override
public void texturesStitched() {
public void registerSubIcons(TextureMap textureMap) {
for (int i = 0; i < icons.length; i++) {
for (int j = 0; j < icons[i].length; j++) {
icons[i][j] = submap[i][j];
submap[i][j].texturesStitched();
}
System.arraycopy(submap[i], 0, icons[i], 0, icons[i].length);
}
}
}
@@ -13,6 +13,7 @@ import cpw.mods.fml.relauncher.SideOnly;
import team.chisel.ctmlib.ISubmapManager;
import team.chisel.ctmlib.RenderBlocksCTM;
import team.chisel.ctmlib.TextureSubmap;
import team.chisel.ctmlib.TextureSubmapCTM;
public class SubmapManagerSlab implements ISubmapManager {
@@ -42,8 +43,8 @@ public class SubmapManagerSlab implements ISubmapManager {
@SideOnly(Side.CLIENT)
public void registerIcons(String modName, Block block, IIconRegister register) {
String path = modName + ":" + texture;
submap = new TextureSubmap(register.registerIcon(path + "-ctm"), 4, 4);
submapSmall = new TextureSubmap(register.registerIcon(path), 2, 2);
submap = new TextureSubmapCTM(register.registerIcon(path + "-ctm"), 4);
submapSmall = new TextureSubmapCTM(register.registerIcon(path), 2);
sideTexture = register.registerIcon(path + "-side");
}
@@ -11,6 +11,7 @@ import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import team.chisel.ctmlib.RenderBlocksCTM;
import team.chisel.ctmlib.TextureSubmap;
import team.chisel.ctmlib.TextureSubmapCTM;
public class SubmapManagerSpecialMaterial extends SubmapManagerBase {
@@ -71,8 +72,8 @@ public class SubmapManagerSpecialMaterial extends SubmapManagerBase {
public void registerIcons(String modName, Block block, IIconRegister register) {
String materialName = materialType.name()
.toLowerCase();
submap = new TextureSubmap(register.registerIcon(modName + ":" + materialName + "/" + color + "-ctm"), 4, 4);
submapSmall = new TextureSubmap(register.registerIcon(modName + ":" + materialName + "/" + color), 2, 2);
submap = new TextureSubmapCTM(register.registerIcon(modName + ":" + materialName + "/" + color + "-ctm"), 4);
submapSmall = new TextureSubmapCTM(register.registerIcon(modName + ":" + materialName + "/" + color), 2);
}
@Override
+78 -24
View File
@@ -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;
}
}
+4 -1
View File
@@ -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;
@@ -48,8 +48,8 @@ public class SubmapManagerCTM implements ISubmapManager {
@Override
@SideOnly(Side.CLIENT)
public void registerIcons(String modName, Block block, IIconRegister register) {
submap = new TextureSubmap(register.registerIcon(modName + ":" + textureName + "-ctm"), 4, 4);
submapSmall = new TextureSubmap(register.registerIcon(modName + ":" + textureName), 2, 2);
submap = new TextureSubmapCTM(register.registerIcon(modName + ":" + textureName + "-ctm"), 4);
submapSmall = new TextureSubmapCTM(register.registerIcon(modName + ":" + textureName), 2);
}
@Override
@@ -1,41 +1,34 @@
package team.chisel.ctmlib;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import net.minecraft.client.renderer.texture.TextureMap;
import net.minecraft.util.IIcon;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.client.event.TextureStitchEvent;
import net.minecraftforge.common.MinecraftForge;
import org.apache.commons.lang3.ArrayUtils;
import com.google.common.collect.Lists;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import lombok.experimental.Delegate;
/**
* This class is used to split up a large IIcon into smaller "submapped" icons used for CTM and other texture
* manipulation.
* Represents a grid of individually accessible texture regions.
*/
public class TextureSubmap implements IIcon, ISubmap {
private static List<TextureSubmap> submaps = Lists.newArrayList();
private static TextureSubmap dummy = new TextureSubmap(null, 0, 0);
static {
MinecraftForge.EVENT_BUS.register(dummy);
}
private static final List<TextureSubmap> submaps = Collections.synchronizedList(new ArrayList<>(128));
private int width, height;
@Delegate
private IIcon baseIcon;
protected IIcon[][] icons;
private final IIcon baseIcon;
private final int width;
private final int height;
protected final IIcon[][] icons;
/**
* Construct a new submap. A submap is not required to be square, but it is required to be rectangular.
*
* @param baseIcon The IIcon to submap.
* @param width The width of the map, in icons.
* @param height The height of the map, in icons.
@@ -48,9 +41,6 @@ public class TextureSubmap implements IIcon, ISubmap {
submaps.add(this);
}
/**
* The large "base" icon used for the submap.
*/
public IIcon getBaseIcon() {
return baseIcon;
}
@@ -92,94 +82,161 @@ public class TextureSubmap implements IIcon, ISubmap {
/* ==== Internal Stitching Logic ==== */
/**
* For internal use only, this is used to create the virtual "subicons" used in the map.
*/
@SubscribeEvent
public final void TexturesStitched(TextureStitchEvent.Post event) {
for (TextureSubmap ts : submaps) {
ts.texturesStitched();
static {
MinecraftForge.EVENT_BUS.register(new StitchHandler());
}
public static final class StitchHandler {
@SubscribeEvent
public void onTextureStitchPre(TextureStitchEvent.Pre event) {
if (event.map.getTextureType() != 0) return;
TextureSubmapResource.beginTextureStitch();
for (TextureSubmap submap : submaps) {
submap.registerSubIcons(event.map);
}
submaps.clear();
}
@SubscribeEvent
public void onTextureStitchPost(TextureStitchEvent.Post event) {
if (event.map.getTextureType() != 0) return;
TextureSubmapResource.endTextureStitch();
}
}
public void texturesStitched() {
public void registerSubIcons(TextureMap textureMap) {
registerSpriteGrid(textureMap, width, height);
}
/**
* Splits the texture into a grid of atlas sprites and assigns sub-icons to them.
* <p>
* The number of sub-icons is determined by the submap's width and height,
* while spriteColumns and spriteRows determine how many separate atlas sprites
* are used. Each sprite can contain one or more sub-icons.
* <p>
* For example, a 4x4 submap backed by a 2x2 sprite grid uses four atlas sprites,
* each containing a 2x2 group of sub-icons.
*/
protected final void registerSpriteGrid(TextureMap textureMap, int spriteColumns, int spriteRows) {
if (baseIcon == null || width <= 0 || height <= 0) {
return;
}
if (spriteColumns <= 0 || spriteRows <= 0 || width % spriteColumns != 0 || height % spriteRows != 0) {
throw new IllegalArgumentException(
"Logical submap " + width
+ "x"
+ height
+ " cannot be backed by sprite grid "
+ spriteColumns
+ "x"
+ spriteRows);
}
ResourceLocation sourceLocation = new ResourceLocation(baseIcon.getIconName());
IIcon[][] sprites = new IIcon[spriteColumns][spriteRows];
for (int spriteX = 0; spriteX < spriteColumns; spriteX++) {
for (int spriteY = 0; spriteY < spriteRows; spriteY++) {
sprites[spriteX][spriteY] = getBackingSprite(
textureMap,
sourceLocation,
spriteColumns,
spriteRows,
spriteX,
spriteY);
}
}
int cellsPerSpriteX = width / spriteColumns;
int cellsPerSpriteY = height / spriteRows;
boolean wholeSprite = cellsPerSpriteX == 1 && cellsPerSpriteY == 1;
for (int x = 0; x < width; x++) {
for (int y = 0; y < height; y++) {
icons[x][y] = new TextureVirtual(getBaseIcon(), width, height, x, y);
IIcon sprite = sprites[x / cellsPerSpriteX][y / cellsPerSpriteY];
icons[x][y] = wholeSprite ? sprite
: new TextureRegion(
sprite,
cellsPerSpriteX,
cellsPerSpriteY,
x % cellsPerSpriteX,
y % cellsPerSpriteY);
}
}
}
private class TextureVirtual implements IIcon {
private IIcon getBackingSprite(TextureMap textureMap, ResourceLocation sourceLocation, int columns, int rows, int x,
int y) {
private int width, height;
private float umin, umax, vmin, vmax;
private IIcon parentIcon;
if (columns == 1 && rows == 1) {
return baseIcon;
}
private TextureVirtual(IIcon parent, int w, int h, int x, int y) {
parentIcon = parent;
String name = TextureSubmapResource.getSubIconName(sourceLocation, columns, rows, x, y);
return textureMap.registerIcon(name);
}
umin = parentIcon.getInterpolatedU(16.0 * (x) / w);
umax = parentIcon.getInterpolatedU(16.0 * (x + 1) / w);
vmin = parentIcon.getInterpolatedV(16.0 * (y) / h);
vmax = parentIcon.getInterpolatedV(16.0 * (y + 1) / h);
private static final class TextureRegion implements IIcon {
width = parentIcon.getIconWidth();
height = parentIcon.getIconHeight();
private final IIcon parent;
private final int columns;
private final int rows;
private final int x;
private final int y;
private TextureRegion(IIcon parent, int columns, int rows, int x, int y) {
this.parent = parent;
this.columns = columns;
this.rows = rows;
this.x = x;
this.y = y;
}
@Override
@SideOnly(Side.CLIENT)
public float getMinU() {
return umin;
return getInterpolatedU(0);
}
@Override
@SideOnly(Side.CLIENT)
public float getMaxU() {
return umax;
return getInterpolatedU(16);
}
@Override
@SideOnly(Side.CLIENT)
public float getInterpolatedU(double d0) {
return (float) (umin + (umax - umin) * d0 / 16.0);
public float getInterpolatedU(double u) {
return parent.getInterpolatedU((16.0 * x + u) / columns);
}
@Override
@SideOnly(Side.CLIENT)
public float getMinV() {
return vmin;
return getInterpolatedV(0);
}
@Override
@SideOnly(Side.CLIENT)
public float getMaxV() {
return vmax;
return getInterpolatedV(16);
}
@Override
@SideOnly(Side.CLIENT)
public float getInterpolatedV(double d0) {
return (float) (vmin + (vmax - vmin) * d0 / 16.0);
public float getInterpolatedV(double v) {
return parent.getInterpolatedV((16.0 * y + v) / rows);
}
@Override
@SideOnly(Side.CLIENT)
public String getIconName() {
return parentIcon.getIconName();
return parent.getIconName();
}
@Override
@SideOnly(Side.CLIENT)
public int getIconWidth() {
return width;
return parent.getIconWidth() / columns;
}
@Override
@SideOnly(Side.CLIENT)
public int getIconHeight() {
return height;
return parent.getIconHeight() / rows;
}
}
}
@@ -0,0 +1,27 @@
package team.chisel.ctmlib;
import net.minecraft.client.renderer.texture.TextureMap;
import net.minecraft.util.IIcon;
/**
* A CTM submap that keeps each tile in one atlas sprite while exposing its four quadrants as sub-icons.
*/
public final class TextureSubmapCTM extends TextureSubmap {
/**
* @param baseIcon The registered texture sheet.
* @param size The number of logical quadrants per axis: 4 for the CTM sheet, 2 for the normal texture.
*/
public TextureSubmapCTM(IIcon baseIcon, int size) {
super(baseIcon, size, size);
if (size <= 0 || (size & 1) != 0) {
throw new IllegalArgumentException("CTM submap size must be a positive even number: " + size);
}
}
@Override
public void registerSubIcons(TextureMap textureMap) {
registerSpriteGrid(textureMap, getWidth() / 2, getHeight() / 2);
}
}
@@ -0,0 +1,280 @@
package team.chisel.ctmlib;
import java.awt.image.BufferedImage;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.ConcurrentHashMap;
import javax.annotation.Nullable;
import javax.imageio.IIOImage;
import javax.imageio.ImageIO;
import javax.imageio.ImageWriteParam;
import javax.imageio.ImageWriter;
import javax.imageio.stream.ImageOutputStream;
import javax.imageio.stream.MemoryCacheImageOutputStream;
import net.minecraft.client.resources.IResource;
import net.minecraft.client.resources.data.AnimationFrame;
import net.minecraft.client.resources.data.AnimationMetadataSection;
import net.minecraft.client.resources.data.IMetadataSection;
import net.minecraft.util.ResourceLocation;
import com.github.bsideup.jabel.Desugar;
public final class TextureSubmapResource implements IResource {
@Desugar
public record SubmapLocation(ResourceLocation source, int columns, int rows, int cellX, int cellY) {}
@Desugar
private record SubmapCacheKey(ResourceLocation source, int columns, int rows) {}
@Nullable
private static volatile ConcurrentHashMap<SubmapCacheKey, byte[][]> imageCache;
private static final String PREFIX = "__chisel_submap/";
private final IResource resource;
private final SubmapLocation submap;
private final boolean cacheable;
private byte[] imageData;
public TextureSubmapResource(IResource resource, SubmapLocation submap, boolean cacheable) {
this.resource = resource;
this.submap = submap;
this.cacheable = cacheable;
}
public static SubmapLocation parse(ResourceLocation location) {
String path = location.getResourcePath();
int prefix = path.indexOf(PREFIX);
if (prefix < 0 || prefix > 0 && path.charAt(prefix - 1) != '/') return null;
int gridStart = prefix + PREFIX.length();
int gridEnd = path.indexOf('/', gridStart);
if (gridEnd < 0) return null;
int cellEnd = path.indexOf('/', gridEnd + 1);
if (cellEnd < 0) return null;
String grid = path.substring(gridStart, gridEnd);
String cell = path.substring(gridEnd + 1, cellEnd);
int gridSeparator = grid.indexOf('x');
int cellSeparator = cell.indexOf('_');
if (gridSeparator <= 0 || cellSeparator <= 0) return null;
try {
int columns = Integer.parseInt(grid.substring(0, gridSeparator));
int rows = Integer.parseInt(grid.substring(gridSeparator + 1));
int cellX = Integer.parseInt(cell.substring(0, cellSeparator));
int cellY = Integer.parseInt(cell.substring(cellSeparator + 1));
if (cellX < 0 || cellY < 0 || cellX >= columns || cellY >= rows) {
return null;
}
String sourcePath = path.substring(0, prefix) + path.substring(cellEnd + 1);
ResourceLocation sourceLocation = new ResourceLocation(location.getResourceDomain(), sourcePath);
return new SubmapLocation(sourceLocation, columns, rows, cellX, cellY);
} catch (NumberFormatException ignored) {
return null;
}
}
public static String getSubIconName(ResourceLocation source, int columns, int rows, int cellX, int cellY) {
return source.getResourceDomain() + ":"
+ PREFIX
+ columns
+ "x"
+ rows
+ "/"
+ cellX
+ "_"
+ cellY
+ "/"
+ source.getResourcePath();
}
public static void beginTextureStitch() {
imageCache = new ConcurrentHashMap<>();
}
public static void endTextureStitch() {
imageCache = null;
}
@Override
public InputStream getInputStream() {
if (imageData == null) {
try {
imageData = getCachedImageData(resource, submap);
} catch (IOException e) {
throw new RuntimeException("Failed to generate submap resource " + submap.source(), e);
}
}
return new ByteArrayInputStream(imageData);
}
private byte[] getCachedImageData(IResource resource, SubmapLocation submap) throws IOException {
ConcurrentHashMap<SubmapCacheKey, byte[][]> cache = imageCache;
if (!cacheable || cache == null) {
return generateCell(resource, submap);
}
SubmapCacheKey key = new SubmapCacheKey(submap.source(), submap.columns(), submap.rows());
byte[][] cells = cache.get(key);
if (cells == null) {
cells = generateSubmap(resource, submap);
byte[][] existing = cache.putIfAbsent(key, cells);
if (existing != null) {
cells = existing;
}
} else {
// generateCell and generateSubmap automatically close the stream, but we also need to close it on cache hit
resource.getInputStream()
.close();
}
return cells[submap.cellX() * submap.rows() + submap.cellY()];
}
private static byte[][] generateSubmap(IResource resource, SubmapLocation submap) throws IOException {
BufferedImage source = read(resource, submap.source());
byte[][] cells = new byte[submap.columns() * submap.rows()][];
for (int x = 0; x < submap.columns(); x++) {
for (int y = 0; y < submap.rows(); y++) {
BufferedImage cropped = crop(source, submap.columns(), submap.rows(), x, y);
cells[x * submap.rows() + y] = encode(cropped);
}
}
return cells;
}
private static byte[] generateCell(IResource resource, SubmapLocation submap) throws IOException {
BufferedImage source = read(resource, submap.source());
BufferedImage cropped = crop(source, submap.columns(), submap.rows(), submap.cellX(), submap.cellY());
return encode(cropped);
}
private static BufferedImage read(IResource resource, ResourceLocation location) throws IOException {
BufferedImage image;
try (InputStream stream = resource.getInputStream()) {
image = ImageIO.read(stream);
}
if (image == null) {
throw new IOException("Unable to decode " + location);
}
return image;
}
private static byte[] encode(BufferedImage image) throws IOException {
ByteArrayOutputStream output = new ByteArrayOutputStream();
Iterator<ImageWriter> writers = ImageIO.getImageWritersByFormatName("png");
ImageWriter writer = writers.next();
ImageWriteParam param = writer.getDefaultWriteParam();
if (param.canWriteCompressed()) {
// Disable compression to avoid wasting time compressing images that will immediately be decoded again
param.setCompressionMode(ImageWriteParam.MODE_EXPLICIT);
param.setCompressionQuality(1.0f);
}
try (ImageOutputStream imageOutput = new MemoryCacheImageOutputStream(output)) {
writer.setOutput(imageOutput);
writer.write(null, new IIOImage(image, null, null), param);
} finally {
writer.dispose();
}
return output.toByteArray();
}
private static BufferedImage crop(BufferedImage source, int columns, int rows, int cellX, int cellY)
throws IOException {
int frameSize = source.getWidth();
int sourceHeight = source.getHeight();
if (frameSize < columns || frameSize < rows
|| frameSize % columns != 0
|| frameSize % rows != 0
|| sourceHeight % frameSize != 0) {
throw new IOException(
"Texture size " + frameSize
+ "x"
+ sourceHeight
+ " cannot be split into submap "
+ columns
+ "x"
+ rows);
}
int cellWidth = frameSize / columns;
int cellHeight = frameSize / rows;
int frameCount = sourceHeight / frameSize;
BufferedImage result = new BufferedImage(cellWidth, cellHeight * frameCount, BufferedImage.TYPE_INT_ARGB);
int[] pixels = new int[cellWidth * cellHeight];
for (int frame = 0; frame < frameCount; frame++) {
int sourceX = cellX * cellWidth;
int sourceY = frame * frameSize + cellY * cellHeight;
source.getRGB(sourceX, sourceY, cellWidth, cellHeight, pixels, 0, cellWidth);
result.setRGB(0, frame * cellHeight, cellWidth, cellHeight, pixels, 0, cellWidth);
}
return result;
}
@Override
public boolean hasMetadata() {
return resource.hasMetadata();
}
@Override
public IMetadataSection getMetadata(String sectionName) {
IMetadataSection metadata = resource.getMetadata(sectionName);
if (!(metadata instanceof AnimationMetadataSection animation)) {
return metadata;
}
if (animation.getFrameWidth() < 0 && animation.getFrameHeight() < 0) {
return metadata;
}
List<AnimationFrame> frames = new ArrayList<>(animation.getFrameCount());
for (int i = 0; i < animation.getFrameCount(); i++) {
if (animation.frameHasTime(i)) {
frames.add(new AnimationFrame(animation.getFrameIndex(i), animation.getFrameTimeSingle(i)));
} else {
frames.add(new AnimationFrame(animation.getFrameIndex(i)));
}
}
int frameWidth = scaleMetadataDimension(animation.getFrameWidth(), submap.columns());
int frameHeight = scaleMetadataDimension(animation.getFrameHeight(), submap.rows());
return new AnimationMetadataSection(frames, frameWidth, frameHeight, animation.getFrameTime());
}
private static int scaleMetadataDimension(int dimension, int divisions) {
if (dimension < 0) {
return dimension;
}
if (dimension % divisions != 0) {
throw new IllegalArgumentException(
"Animation frame size " + dimension + " is not divisible by submap size " + divisions);
}
return dimension / divisions;
}
}
@@ -197,14 +197,18 @@ public final class ChiselBlocks {
public static final BlockCarvable iridium = null;
public static final BlockCarvable osmium = null;
public static final BlockCarvable coral = null;
public static final BlockCarvable coral2 = null;
public static final BlockCarvable mud = null;
public static final BlockCarvable albumblock = null;
public static final BlockCarvable albumblock2 = null;
public static final BlockCarvable albumblock3 = 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;
// Architect's Palette Backport
private ChiselBlocks() {}
}
@@ -1254,6 +1254,8 @@ 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
tile.diamond.14.desc=Diamond Ore Bricks
tile.diamond.15.desc=Chiseled Diamond Ore Bricks
#Snakestone
tile.chisel.snakestoneSand.name=Sand Snakestone
@@ -1304,7 +1306,10 @@ tile.sandstone.13.desc=Small Sandstone Blocks
tile.sandstone.14.desc=Sandstone Mosaic
tile.sandstone.15.desc=Stacked Sandstone Tiles
tile.sandstone.16.desc=Sandstone Bricks
tile.sandstone.17.desc=
tile.sandstone.17.desc=Smooth Flat Sandstone
tile.sandstone.18.desc=Gilded Sandstone
tile.sandstone.19.desc=Gilded Sandstone Pillar
tile.sandstone.20.desc=Chiseled Gilded Sandstone
#Sandstone scribbles
tile.chisel.sandstone_scribbles.name=Sandstone Scribbles
@@ -1451,6 +1456,9 @@ 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
tile.emerald.13.desc=Emerald Ore Bricks
tile.emerald.14.desc=Cracked Emerald Ore Bricks
tile.emerald.15.desc=Chiseled Emerald Ore Bricks
#Nether Brick
tile.chisel.nether_brick.name=Nether Brick
@@ -2785,6 +2793,15 @@ tile.lantern.2.desc=Redstone
tile.lantern.3.desc=Soul
tile.lantern.4.desc=Cursed
tile.lantern.5.desc=Ender
tile.lantern.6.desc=Tuff Lamp
tile.lantern.7.desc=Calcite Lamp
tile.lantern.9.desc=Dripstone Lamp
tile.lantern.8.desc=Oracle Lamp
tile.lantern.10.desc=Algal Lamp
tile.lantern.11.desc=Abyssal Lamp
tile.lantern.12.desc=Charged Abyssal Lamp
tile.lantern.13.desc=Hadal Lamp
tile.lantern.14.desc=Charged Hadal Lamp
#Sheetmetal
tile.chisel.sheetmetal.name=Sheetmetal
@@ -2874,6 +2891,7 @@ tile.mud.6.desc=Mud Bricks
tile.chisel.albumblock.name=Musical Block
tile.chisel.albumblock2.name=Musical Block
tile.chisel.albumblock3.name=Musical Block
tile.album.0.desc=That Green Gentleman
tile.album.1.desc=Pretty Odd
tile.album.2.desc=Laminated Denim
@@ -2893,6 +2911,34 @@ 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.album2.19.desc=Birdbrain
tile.album2.20.desc=Fancy Some More?
tile.album2.21.desc=Paper-Mâché
tile.album2.22.desc=Girls Like Us
tile.album2.23.desc=The Terrors
tile.album2.24.desc=Stardust Pharmacy
tile.album2.25.desc=Katamari
tile.album2.26.desc=Charleston Girl
tile.album2.27.desc=Transitional Bird
tile.album2.28.desc=Komm, Susser Tod
tile.album2.29.desc=You Like Magic?
tile.album2.30.desc=Guess
tile.album2.31.desc=P-Panda
tile.album3.32.desc=Fill Your Lungs
tile.album3.33.desc=Paranoid
tile.album3.34.desc=Monomi
tile.album3.35.desc=Ursine
tile.album3.36.desc=Hexie Mountains
tile.album3.37.desc=Melancholy Hill
tile.album3.38.desc=Triple Blocka
tile.album3.39.desc=Ya Ya Ya Ya Ya Ya Ya Ya
tile.album3.40.desc=Phantom Island
tile.album3.41.desc=Alligator Bites Never Heal
tile.album3.42.desc=Chiseled Triple Blocka
tile.album3.43.desc=Magnet
tile.album3.44.desc=Digital Girl
tile.album3.45.desc=Digital World
tile.album3.46.desc=Pain
tile.chisel.brutalism.name=Brutalist Block
tile.brutalism.0.desc=Plain Cement
@@ -2934,6 +2980,56 @@ tile.alabaster.8.desc=Sage Green
tile.alabaster.9.desc=Sky Blue
tile.alabaster.10.desc=Cream
tile.chisel.topazBlock.name=Block of Topaz
tile.chisel.charoiteBlock.name=Block of Charoite
tile.chisel.fluoriteBlock.name=Block of Fluorite
tile.chisel.jadeBlock.name=Block of Jade
tile.chisel.labradoriteBlock.name=Block of Labradorite
tile.chisel.netherquartzBlock.name=Block of Nether Quartz
tile.chisel.onyxBlock.name=Block of Onyx
tile.chisel.opalBlock.name=Block of Opal
tile.chisel.rhodochrositeBlock.name=Block of Rhodochrosite
tile.chisel.rubyBlock.name=Block of Ruby
tile.chisel.spinelBlock.name=Block of Spinel
tile.gems.0.desc=Hopper Crystal
tile.gems.1.desc=Bordered
tile.gems.2.desc=Cell
tile.gems.3.desc=Faceted
tile.gems.4.desc=Ornate Tiles
tile.gems.5.desc=Large Tiles
tile.gems.6.desc=Polished
tile.gems.7.desc=Raw Mineral
tile.gems.8.desc=Smooth
tile.gems.9.desc=Spiraling
tile.gems.10.desc=Simple Tiles
tile.chisel.sulfurBlock.name=Block of Sulfur
tile.chisel.cinnabarBlock.name=Block of Cinnabar
tile.chisel.tuffBlock.name=Tuff
tile.chisel.coral2.name=Coralstone
tile.chisel.prismarineBlock.name=Prismarine
tile.chisel.darkprismarineBlock.name=Dark Prismarine
tile.chisel.deepslateBlock.name=Deepslate
tile.chisel.dripstoneBlock.name=Dripstone
tile.chisel.basaltBlock.name=Basalt
tile.stones.0.desc=Raw
tile.stones.1.desc=Bricks
tile.stones.2.desc=Chiseled
tile.stones.3.desc=Cobblestone
tile.stones.4.desc=Mossy
tile.stones.5.desc=Pillar
tile.stones.6.desc=Polished
tile.stones.7.desc=Prism
tile.stones.8.desc=Tiles
tile.stones.9.desc=Ornate
tile.tuff.0.desc=Architect's Tuff Bricks
tile.tuff.1.desc=Architect's Tuff Pillar
tile.dripstone.0.desc=Architect's Dripstone Bricks
tile.dripstone.1.desc=Architect's Dripstone Pillar
tile.sulfur.0.desc=Potent Sulfur
tile.chisel.road.name=Road Block
tile.chisel.road2.name=Road Block
tile.road.0.desc=Asphalt
@@ -2971,3 +3067,141 @@ tile.road.31.desc=Overgrown Dirt Road
tile.chisel.amber.name=Block of Amber
tile.chisel.bloodBrick.name=Bloodstone Brick
tile.chisel.boneBlock.name=Bone Block
tile.chisel.calciteBlock.name=Calcite
tile.chisel.flintBlock.name=Flint Block
tile.chisel.sunstoneBlock.name=Sunstone
tile.chisel.moonstoneBlock.name=Moonstone
tile.chisel.sunstoneBlock.name=Sunstone
tile.chisel.entwineBlock.name=Pearlescent Ender
tile.chisel.oracleBlock.name=Psionic Stone
tile.chisel.algalBlock.name=Algae Stone
tile.chisel.cerebralBlock.name=Cerebral Stone
tile.chisel.nether_brassBlock.name=Nether Brass
tile.chisel.esoterrackBlock.name=Esoterrack
tile.chisel.wardstoneBlock.name=Wardstone
tile.chisel.olivestoneBlock.name=Dunite
tile.chisel.visceraBlock.name=Viscera
tile.chisel.abyssalineBlock.name=Abyssalline
tile.chisel.hadalineBlock.name=Hadalline
tile.bone_block.0.desc=Architect's Bone
tile.bone_block.1.desc=Bone Bricks
tile.bone_block.2.desc=Bone Pillar
tile.bone_block.3.desc=Skull
tile.bone_block.4.desc=Withered Bone Block
tile.bone_block.5.desc=Withered Bone Bricks
tile.bone_block.6.desc=Withered Bone Pillar
tile.bone_block.7.desc=Withered Skull
tile.bone_block.8.desc=Evil Scary Glowing Withered Skull
tile.bone_block.9.desc=Modern Bone Block
tile.calcite.0.desc=Calcite Bricks
tile.calcite.1.desc=Calcite Pillar
tile.calcite.2.desc=Chiseled Calcite
tile.flint.0.desc=Block of Flint
tile.flint.1.desc=Chiseled Flint
tile.flint.2.desc=Flint Pillar
tile.flint.3.desc=Flint Tiles
tile.flint.4.desc=Smooth Flint Block
tile.sunstone.0.desc=Sunmetal
tile.sunstone.1.desc=Sunmetal Pillar
tile.sunstone.2.desc=Chiseled Sunmetal
tile.sunstone.3.desc=Extinguished Sunstone
tile.sunstone.4.desc=Solar Sunstone
tile.sunstone.5.desc=Eclipsed Sunstone
tile.moonstone.0.desc=New Moonstone
tile.moonstone.1.desc=Crescent Moonstone
tile.moonstone.2.desc=Full Moonstone
tile.moonstone.3.desc=Moonshale
tile.moonstone.4.desc=Moonshale Bricks
tile.moonstone.5.desc=Cracked Moonshale Bricks
tile.moonstone.6.desc=Moonshale Flagstone
tile.moonstone.7.desc=Chiseled Moonstone
tile.moonstone.8.desc=Bordered Moonstone
tile.moonstone.9.desc=Cratered Moonshale
tile.moonstone.10.desc=Nebulite
tile.moonstone.11.desc=Polished Nebulite
tile.entwine.0.desc=Block of Ender Pearl
tile.entwine.1.desc=Pearlescent Ender Block
tile.entwine.2.desc=Chiseled Pearlescent Ender
tile.entwine.3.desc=Pearlescent Ender Pillar
tile.oracle.0.desc=Psionic Block
tile.oracle.1.desc=Framed Psionic Block
tile.oracle.2.desc=Psionic Bricks
tile.oracle.3.desc=Dark Psionic Bricks
tile.oracle.4.desc=Psionic Pillar
tile.oracle.5.desc=Psionic Tiles
tile.algal.0.desc=Algal Bricks
tile.algal.1.desc=Chiseled Algal Bricks
tile.algal.2.desc=Cracked Algal Bricks
tile.algal.3.desc=Encrusted Algal Bricks
tile.cerebral.0.desc=Cerebral Stone
tile.cerebral.1.desc=Frontal Tiles
tile.cerebral.2.desc=Parietal Tiles
tile.cerebral.3.desc=Temporal Tiles
tile.cerebral.4.desc=Occipital Pillar
tile.nether_brass.0.desc=Nether Brass
tile.nether_brass.1.desc=Cut Nether Brass
tile.nether_brass.2.desc=Nether Brass Pillar
tile.nether_brass.3.desc=Nether Brass Slabs
tile.nether_brass.4.desc=Smooth Nether Brass
tile.esoterrack.0.desc=Esoterrack
tile.esoterrack.1.desc=Esoterrack Bricks
tile.esoterrack.2.desc=Esoterrack Pillar
tile.esoterrack.3.desc=Variant Esoterrack
tile.wardstone.0.desc=Wardstone
tile.wardstone.1.desc=Warded Bricks
tile.wardstone.2.desc=Warded Pillar
tile.wardstone.3.desc=Warded Slabs
tile.wardstone.4.desc=Chiseled Wardstone
tile.wardstone.5.desc=Warded Circle
tile.olivestone.0.desc=Chiseled Dunite
tile.olivestone.1.desc=Cracked Dunite Bricks
tile.olivestone.2.desc=Cracked Dunite Tiles
tile.olivestone.3.desc=Gilded Dunite
tile.olivestone.4.desc=Dunite Bricks
tile.olivestone.5.desc=Dunite Pillar
tile.olivestone.6.desc=Dunite Tiles
tile.olivestone.7.desc=Serpentinized Dunite
tile.viscera.0.desc=Entrails
tile.viscera.1.desc=Block of Rotten Flesh
tile.viscera.2.desc=Salmon Log
tile.viscera.3.desc=Cod Log
tile.abyssaline.0.desc=Abyssaline Bricks
tile.abyssaline.1.desc=Charged Abyssaline Bricks
tile.abyssaline.2.desc=Abyssaline Pillar
tile.abyssaline.3.desc=Charged Abyssaline Pillar
tile.abyssaline.4.desc=Abyssalline Chevrons
tile.abyssaline.5.desc=Charged Abyssalline Chevrons
tile.abyssaline.6.desc=Abyssaline Tiles
tile.abyssaline.7.desc=Charged Abyssaline Tiles
tile.abyssaline.8.desc=Abyssaline Plating
tile.abyssaline.9.desc=Charged Abyssaline Plating
tile.abyssaline.10.desc=Chiseled Abyssaline Bricks
tile.hadaline.0.desc=Hadaline Bricks
tile.hadaline.1.desc=Charged Hadaline Bricks
tile.hadaline.2.desc=Hadaline Pillar
tile.hadaline.3.desc=Charged Hadaline Pillar
tile.hadaline.4.desc=Hadalline Chevrons
tile.hadaline.5.desc=Charged Hadalline Chevrons
tile.hadaline.6.desc=Hadaline Tiles
tile.hadaline.7.desc=Charged Hadaline Tiles
tile.hadaline.8.desc=Hadaline Plating
tile.hadaline.9.desc=Charged Hadaline Plating
tile.hadaline.10.desc=Chiseled Hadaline Bricks
Binary file not shown.

After

Width:  |  Height:  |  Size: 288 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 252 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 305 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 333 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 323 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 240 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 328 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 336 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 288 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 305 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 317 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 325 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 253 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 243 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 279 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 304 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 329 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 284 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 291 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 464 B

@@ -0,0 +1,6 @@
{
"animation": {
"interpolate": true,
"frametime": 10
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 315 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 320 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 363 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 261 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 B

Loaded 100 of 440 files, more files were not shown because too many files have changed in this diff. Show more