Compare commits

..
Author SHA1 Message Date
boubou19andDarkShadow44 6163776962 Little Tiles support (#107) (#111)
* 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

---------


(cherry picked from commit a431e2a65c)

Co-authored-by: DarkShadow44 <[email protected]>
2026-11-19 05:42:55 +01:00
UltraProdigy 806b9b9613 ci: run build and test on release branches 2026-11-09 01:42:58 -05:00
DreamYao520 d08e48b73b Fix chiseled glowstone metadata for Matter Manipulator copying (#106) 2026-10-03 23:56:58 -04:00
PLASMAchicken 3d3260cd71 fix(blocks): honor mob-spawn config on Waterstone/Lavastone/Sand (#104)
* fix(blocks): honor mob-spawn config on Waterstone/Lavastone

BlockMultiLayer implements ICarvable, so its item tooltip shows "Mobs
cannot Spawn on this Block" whenever canMobsSpawnOnTheChiselBlocks is
disabled, but unlike BlockCarvable it never overrode canCreatureSpawn,
so the setting was never actually enforced on Waterstone (and
Lavastone, which happened to mask the bug via its high light level
blocking hostile spawns).

Fixes GTNewHorizons/GT-New-Horizons-Modpack#26703

* fix(blocks): honor mob-spawn config on carvable Sand

Same root cause as Waterstone/Lavastone: BlockCarvableSand is a full
opaque block (Material.sand) implementing ICarvable, so it shows the
"Mobs cannot Spawn on this Block" tooltip whenever
canMobsSpawnOnTheChiselBlocks is disabled, but never overrode
canCreatureSpawn to actually enforce it.

Verified against the decompiled Forge source in build/rfg: unlike the
carvable Glass/Ice/PackedIce/Beacon blocks (which never reach
canCreatureSpawn at all because they fail the earlier solid-top-surface
check via a translucent material or renderAsNormalBlock=false), Sand
uses an opaque material with no such override, so it passes that check
and defaults canCreatureSpawn to true.
2026-09-09 08:27:21 +02:00
boubou19 ff70c8b2e3 Fix hex plating glow tint pollution from leaked ambient occlusion state (#101) 2026-08-09 16:59:25 +07:00
Jason Mitchell c1ac213eab Maybe more thread safe renderpass (#100) 2026-07-22 15:30:06 -07:00
UltraProdigyandRanzu 54c339e03e cast it up (#99)
Co-authored-by: Ranzu <[email protected]>
2026-07-08 12:14:03 -04:00
George PatonandUltraProdigy d34cd0445a turn road blocks into concrete to apply speed boost (#96)
Co-authored-by: UltraProdigy <[email protected]>
2026-07-08 07:52:44 +00:00
UltraProdigy 8655f8b0a8 Add reminder to review contribution guidelines (#98) 2026-07-04 20:56:31 +02:00
tiffit 886c8819c0 Improve perf of TextureType.exists (#97) 2026-06-01 23:44:54 +02:00
539ddce15f june's chisel block additions on an actually working branch this time (#83)
* Added moss carpets

* bricks

* coral and mud and spotless

* rocks

* spotless

* didnt need extra glass

* optimizing images (#84)

Co-authored-by: seventh-june <[email protected]>
Co-authored-by: GitHub GTNH Actions <[email protected]>

* album blocks and brutalist blocks, now with recipes

* added road blocks

* optimizing images (#85)

Co-authored-by: June <[email protected]>
Co-authored-by: GitHub GTNH Actions <[email protected]>

* spotlessApply (#86)

Co-authored-by: GitHub GTNH Actions <>

* more roads

* optimizing images (#87)

Co-authored-by: June <[email protected]>
Co-authored-by: GitHub GTNH Actions <[email protected]>

* alabaster, porcelain shipped and album blocks fixed

* optimizing images (#92)

Co-authored-by: June <[email protected]>
Co-authored-by: GitHub GTNH Actions <[email protected]>

* spotlessApply (#93)

Co-authored-by: GitHub GTNH Actions <>

* fixed bricks

* improve titanium and tungstensteel ctm assets

* last set of cleanups and fixes

* optimizing images (#94)

Co-authored-by: June <[email protected]>
Co-authored-by: GitHub GTNH Actions <[email protected]>

* Update src/main/resources/assets/chisel/lang/en_US.lang

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub GTNH Actions <[email protected]>
Co-authored-by: UltraProdigy <[email protected]>
Co-authored-by: Martin Robertz <[email protected]>
2026-04-24 19:27:50 -04:00
Connor deHaasandUltraProdigy f60a89dcce Fix ctm of concrete block (#91)
* Fix ctm of concrete block

* optimize image

---------

Co-authored-by: UltraProdigy <[email protected]>
2026-04-23 17:51:15 +00:00
Connor deHaasandMartin Robertz 3a3c7035fe Add concrete slabs and stairs (#90)
* Add concrete slabs, fully functional. Missing entries for other langs, and not tested with GTNH.

* Fix concrete top slabs

* Clean up commented out testing code

* Add full set of concrete stairs

* Fixes concrete slab texture reference to remove duplicated texture folder

---------

Co-authored-by: Martin Robertz <[email protected]>
2026-04-23 04:50:28 -04:00
flamingowrangler2869andUltraProdigy c943d0c35a Woolen clay must be mined with pickaxe (#82)
Woolen clay was not able to be insta-mined without an effective tool

Co-authored-by: UltraProdigy <[email protected]>
2026-04-21 03:54:15 +00:00
Alexdoru ec610dc876 Fix world client memory leaks caused by block renderers (#88)
* make threadlocals final

* minor code fixes

* fix custom block renderers leaking world

* remove now useless threadlocal cleaning

* fix memory leak from rendererOld by just deleting the field

* fix ThreadLocals to work on dedicated server
2026-04-20 11:45:05 +02:00
tiffit 2ae1f8ba93 ItemChisel: Set max damage field instead of overriding getMaxDamage(ItemStack) (#89) 2026-04-20 01:35:11 -04:00
Martin Robertz 7b9537571e update+gradle+deps+bs 2026-04-03 22:11:57 +02:00
Dream Master b031b59002 update 2026-03-05 11:00:38 +01:00
UltraProdigy 4073a4c04c opti & wflow (#81) 2026-03-05 10:52:13 +01:00
seventh-june 643d9b72ba fix typo (#80) 2026-03-01 00:08:56 +00:00
Martin Robertz fa3b49a673 backdate Angelica 2026-02-21 23:08:52 +01:00
Martin Robertz 165e5db275 update 2026-02-21 23:00:46 +01:00
openblocki 4fcfaffa63 Replace Side Texture with Top Texture (#79) 2026-02-21 22:59:19 +01:00
UltraProdigy 21690ddb09 Merge pull request #77 from seventh-june/master
Add new Metals and a new Moss blockset
2026-01-26 04:20:07 -05:00
seventh-june 1cb9a96d4f fix moss recipe 2026-01-25 21:56:36 -05:00
seventh-june 12460a6e02 fix iridium shipping crate ctm 2026-01-25 20:37:14 -05:00
seventh-june 20d2fc8c3f Many More Metals 2026-01-25 20:06:42 -05:00
seventh-june 3f395fef1d applied spotless oops
canon dev event
2026-01-25 15:05:46 -05:00
seventh-june 2593b14c53 Fix moss block recipe 2026-01-25 14:44:19 -05:00
seventh-june 72341f1633 Merge branch 'GTNewHorizons:master' into master 2026-01-25 13:39:52 -05:00
seventh-june 8a7a4a79f0 Added a moss-themed tileset 2026-01-25 13:35:55 -05:00
Léa Gris 2e1a20d829 Merge pull request #76 from GTNewHorizons/FixBottomFaceUV
fix(render): adapt hodgepodge fixBottomFaceUV
2026-01-16 02:26:07 +01:00
Léa Gris 39e860974a fix(render): adapt hodgepodge fixBottomFaceUV
HodgePodge mixin fixBottomFaceUV options fixes the bottom face texture UV.
See: GTNewHorizons/Hodgepodge#676

When unflipped, the bottom face of v-type connected textures blocks like the
large hexplating or the Industrial Technical Block's massive big fan, needs
a new unflipped order to correctly connect.
Consequently, when `fixBottomFaceUV=true`, the bottom fan animation rotates
the same way as other faces, instead of backward without the hodgepodge fix.
2026-01-14 15:09:18 +01:00
seventh-june 1464929264 moss
moss
2026-01-07 12:19:56 -05:00
Martin Robertz c4c1953ae1 update bs+deps+gradle 2026-01-02 08:48:27 +01:00
danyadevandMartin Robertz 6efa21100b Fix z-fighting for voidstone blocks (#71)
Co-authored-by: Martin Robertz <[email protected]>
2025-12-29 23:37:43 +00:00
PLASMAchicken c3e1675ac8 RoadLine drop correct metadata when destroyed via onNeighborBlockChange (#75) 2025-12-12 01:22:02 +01:00
UltraProdigy cc9b8ab774 Merge pull request #74 from PLASMAchicken/patch-stairs
Fix Stair Variant Drops
2025-12-08 19:23:09 -05:00
PLASMAchicken 674d2b389b Fix Stair Variant Drops
Seems to have been broken in https://github.com/GTNewHorizons/Chisel/commit/f0e11d8eeea751a60c0ecf2d3a40643017e11f1b
2025-12-09 01:00:14 +01:00
FourIsTheNumber 78dbb36fec 'Dustrial Decor backports (#70) 2025-11-30 12:28:19 +01:00
agreeable frogandMartin Robertz 6385002193 Fix terracotta variants from group 1 not being chiselable (#72)
Co-authored-by: Martin Robertz <[email protected]>
2025-11-30 12:12:47 +01:00
SuperSouprandMaya e969289b22 Fix shift-click from Chisel into full inventory (#69)
Co-authored-by: Maya <[email protected]>
2025-11-09 20:34:10 +00:00
Martin Robertz f95fa2752f update 2025-10-29 13:01:09 +01:00
agreeable frogandMartin Robertz e963872d9e Terracotta variations (#68)
Co-authored-by: Martin Robertz <[email protected]>
2025-10-29 11:17:44 +00:00
Martin Robertz 7a6076d9cd update 2025-10-25 14:29:19 +02:00
sisyphussy 39b96c5ec0 Merge pull request #67 from cambech/master
Fix issue 21220
2025-10-20 14:20:58 +02:00
cambech d81198fa0a Fix: corrected textures and removed flickering 2025-10-18 21:13:21 +02:00
cambech 5b169882bc Fix: corrected textures and removed flickering 2025-10-18 12:44:32 +02:00
cambech 30ad41cc57 Merge remote-tracking branch 'upstream/master' 2025-10-04 11:19:48 +02:00
Martin Robertz 4588690780 update 2025-10-01 18:15:53 +02:00
cambech a00cd59d4c Update description key (#66) 2025-09-30 16:59:11 +00:00
cambech e5f830ebb1 Update description key 2
Update description key from tile.voidstone.0.desc to tile.voidstone2.0.desc for voidstone2 variation
2025-09-30 11:54:54 +02:00
cambech 6fc3505ae7 Update description key
Update description key from tile.voidstone.0.desc to tile.voidstone2.0.desc for voidstone2 variation
2025-09-28 22:25:03 +02:00
2956 changed files with 2759 additions and 493 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:
+17
View File
@@ -0,0 +1,17 @@
name: Optimize images
on:
pull_request:
branches: [ master, main, release/** ]
paths:
- "**/*.png"
push:
branches: [ master, main, release/** ]
paths:
- "**/*.png"
jobs:
optimize-images:
uses: GTNewHorizons/GTNH-Actions-Workflows/.github/workflows/optimize-images.yml@master
secrets: inherit
+1
View File
@@ -28,3 +28,4 @@ whitelist.json
src/main/resources/mixins.*.json
*.bat
layout.json
.DS_Store
+1
View File
@@ -1,5 +1,6 @@
Contributing
============
Before contributing, make sure you're familiar with the [GT:NH Contribution Guidelines](https://github.com/GTNewHorizons/.github/blob/master/CONTRIBUTING.md)
___
Setting up a Development Environment
------------------------------------
+5 -5
View File
@@ -1,14 +1,14 @@
// Add your dependencies here
dependencies {
implementation("com.github.GTNewHorizons:CodeChickenCore:1.4.7:dev")
implementation("com.github.GTNewHorizons:NotEnoughItems:2.7.91-GTNH:dev")
implementation("com.github.GTNewHorizons:ForgeMultipart:1.6.8:dev")
implementation("com.github.GTNewHorizons:CodeChickenCore:1.4.12:dev")
implementation("com.github.GTNewHorizons:NotEnoughItems:2.8.84-GTNH:dev")
implementation("com.github.GTNewHorizons:ForgeMultipart:1.7.3:dev")
compileOnly("org.projectlombok:lombok:1.18.24")
annotationProcessor("org.projectlombok:lombok:1.18.24")
devOnlyNonPublishable("com.github.GTNewHorizons:waila:1.8.14:dev") {
devOnlyNonPublishable("com.github.GTNewHorizons:waila:1.19.22:dev") {
transitive = false
}
devOnlyNonPublishable("com.github.GTNewHorizons:WailaHarvestability:1.3.4-GTNH:dev")
@@ -17,7 +17,7 @@ dependencies {
transitive = false
}
compileOnly("com.github.GTNewHorizons:Angelica:1.0.0-beta62:api") {
compileOnly("com.github.GTNewHorizons:Angelica:2.1.15:api") {
transitive = false
}
}
+39 -4
View File
@@ -39,9 +39,33 @@ remoteMappings = https\://raw.githubusercontent.com/MinecraftForge/FML/1.7.10/co
# `./gradlew runClient --username=AnotherPlayer`, or configuring this command in your IDE.
developmentEnvironmentUserName = Developer
# Enables using modern Java syntax (up to version 17) via Jabel, while still targeting JVM 8.
# See https://github.com/bsideup/jabel for details on how this works.
enableModernJavaSyntax = false
# Enables modern Java syntax support. Valid values:
# - false: No modern syntax, Java 8 only
# - jabel: Jabel syntax-only support, compiles to J8 bytecode
# - jvmDowngrader: Full modern Java via JVM Downgrader (syntax + stdlib APIs)
# - modern: Native modern Java bytecode, no downgrading
enableModernJavaSyntax = jabel
# If set, ignores the above setting and compiles with the given toolchain. This may cause unexpected issues,
# and should *not* be used in most situations. -1 disables this.
# forceToolchainVersion = -1
# Target JVM version for JVM Downgrader bytecode downgrading.
# Only used when enableModernJavaSyntax = jvmDowngrader
# downgradeTargetVersion = 8
# Comma-separated list of Java versions for multi-release jar support (JVM Downgrader only).
# Classes will be available in META-INF/versions/N/ for each version N in this list.
# Default: "21,25" (J25+ gets native classes, J21-24 gets partial downgrade, J8-20 gets full downgrade).
# jvmDowngraderMultiReleaseVersions = 21,25
# Specifies how JVM Downgrader API stubs are provided. Options:
# - shade: Shade minimized stubs into the jar
# - gtnhlib: GTNHLib provides stubs at runtime (adds version constraint)
# - external: Another dependency provides stubs (no constraint, no warning)
# - (empty): Warning reminding you to configure stubs
# Note: 'shade' option requires you to verify license compliance, see: https://github.com/unimined/JvmDowngrader/blob/main/LICENSE.md
# jvmDowngraderStubsProvider =
# 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.
@@ -96,7 +120,9 @@ usesMixinDebug = false
# Specify the location of your implementation of IMixinConfigPlugin. Leave it empty otherwise.
mixinPlugin =
# Specify the package that contains all of your Mixins. You may only place Mixins in this package or the build will fail!
# 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 =
# Specify the core mod entry class if you use a core mod. This class must implement IFMLLoadingPlugin!
@@ -172,6 +198,12 @@ curseForgeRelations =
# projects. New projects should not use this parameter.
# customArchiveBaseName =
# Optional parameter to customize the default working directory used by the runClient* tasks. Relative to the project directory.
# runClientWorkingDirectory = run/client
# Optional parameter to customize the default working directory used by the runServer* tasks. Relative to the project directory.
# runServerWorkingDirectory = run/server
# Optional parameter to have the build automatically fail if an illegal version is used.
# This can be useful if you e.g. only want to allow versions in the form of '1.1.xxx'.
# The check is ONLY performed if the version is a git tag.
@@ -201,3 +233,6 @@ curseForgeRelations =
# This is meant to be set in $HOME/.gradle/gradle.properties.
# ideaCheckSpotlessOnBuild = true
# Non-GTNH properties
org.gradle.configuration-cache = true
org.gradle.parallel = true
+12
View File
@@ -0,0 +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
toolchainVersion=25
Binary file not shown.
+1 -1
View File
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.0-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Vendored
+3 -6
View File
@@ -1,7 +1,7 @@
#!/bin/sh
#
# Copyright © 2015-2021 the original authors.
# Copyright © 2015 the original authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -57,7 +57,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/b631911858264c0b6e4d6603d677ff5218766cee/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
@@ -114,7 +114,6 @@ case "$( uname )" in #(
NONSTOP* ) nonstop=true ;;
esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
# Determine the Java command to use to start the JVM.
@@ -172,7 +171,6 @@ fi
# For Cygwin or MSYS, switch paths to Windows format before running java
if "$cygwin" || "$msys" ; then
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
JAVACMD=$( cygpath --unix "$JAVACMD" )
@@ -212,8 +210,7 @@ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
-classpath "$CLASSPATH" \
org.gradle.wrapper.GradleWrapperMain \
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
"$@"
# Stop when "xargs" is not available.
Vendored
+1 -2
View File
@@ -70,11 +70,10 @@ goto fail
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
:end
@rem End local scope for the variables with windows NT shell
+1 -1
View File
@@ -17,7 +17,7 @@ pluginManagement {
}
plugins {
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.44'
id 'com.gtnewhorizons.gtnhsettingsconvention' version '2.0.24'
}
@@ -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);
}
}
@@ -14,10 +14,10 @@ import team.chisel.ctmlib.ISubmapManager;
public class VariationInfoBase implements IVariationInfo {
private ICarvingVariation variation;
private String unlocDesc;
private ISubmapManager manager;
private TextureType type;
private final ICarvingVariation variation;
private final String unlocDesc;
private final ISubmapManager manager;
private final TextureType type;
public VariationInfoBase(ICarvingVariation variation, String unlocDesc, ISubmapManager manager) {
this(variation, unlocDesc, manager, TextureType.CUSTOM);
@@ -6,6 +6,11 @@ import net.minecraft.block.Block;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.RenderBlocks;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.client.resources.FallbackResourceManager;
import net.minecraft.client.resources.IResourceManager;
import net.minecraft.client.resources.IResourcePack;
import net.minecraft.client.resources.SimpleReloadableResourceManager;
import net.minecraft.launchwrapper.Launch;
import net.minecraft.util.IIcon;
import net.minecraft.util.ResourceLocation;
import net.minecraft.world.IBlockAccess;
@@ -18,6 +23,7 @@ import org.apache.commons.lang3.tuple.Triple;
import com.cricketcraft.chisel.api.carving.CarvableHelper;
import com.cricketcraft.chisel.api.carving.ICarvingVariation;
import cpw.mods.fml.relauncher.FMLLaunchHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import team.chisel.ctmlib.CTM;
@@ -84,15 +90,15 @@ 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)
return map.getSubIcon(0, 1);
if (topConnected && !botConnected)
if (topConnected)
return map.getSubIcon(1, 1);
if (!topConnected && botConnected)
if (botConnected)
return map.getSubIcon(1, 0);
return map.getSubIcon(0, 0);
}
@@ -100,11 +106,9 @@ public enum TextureType {
@Override
@SideOnly(Side.CLIENT)
protected RenderBlocks createRenderContext(RenderBlocks rendererOld, IBlockAccess world, Object cachedObject) {
TextureType.initStatics();
RenderBlocksColumn ret = theRenderBlocksColumn.get();
Pair<TextureSubmap, IIcon> data = (Pair<TextureSubmap, IIcon>) cachedObject;
ret.blockAccess = world;
ret.renderMaxX = 1.0;
ret.renderMaxY = 1.0;
ret.renderMaxZ = 1.0;
@@ -138,11 +142,11 @@ public enum TextureType {
boolean reverse = side == 3 || side == 4;
if (side < 4) {
p = ctm.isConnected(world, x - 1, y, z, side, block, meta);
n = ctm.isConnected(world, x + 1, y, z, side, block, meta);
p = ctm.isConnected(world, x - 1, y, z, side, x, y, z, block, meta);
n = ctm.isConnected(world, x + 1, y, z, side, x, y, z, block, meta);
} else {
p = ctm.isConnected(world, x, y, z - 1, side, block, meta);
n = ctm.isConnected(world, x, y, z + 1, side, block, meta);
p = ctm.isConnected(world, x, y, z - 1, side, x, y, z, block, meta);
n = ctm.isConnected(world, x, y, z + 1, side, x, y, z, block, meta);
}
TextureSubmap map = data.getLeft();
@@ -206,15 +210,12 @@ public enum TextureType {
@Override
@SideOnly(Side.CLIENT)
protected RenderBlocks createRenderContext(RenderBlocks rendererOld, IBlockAccess world, Object cachedObject) {
TextureType.initStatics();
RenderBlocksCTM ret = theRenderBlocksCTM.get();
Triple<?, TextureSubmap, TextureSubmap> data = (Triple<?, TextureSubmap, TextureSubmap>) cachedObject;
ret.blockAccess = world;
ret.submap = data.getMiddle();
ret.submapSmall = data.getRight();
ret.rendererOld = rendererOld;
return ret;
}
},
@@ -271,6 +272,8 @@ public enum TextureType {
CUSTOM;
/* Some util stuff for shared code between v* and r* */
public static final boolean fixedBottomFaceUV = (boolean) Launch.blackboard
.getOrDefault("hodgepodge.FixesConfig.fixBottomFaceUV", Boolean.FALSE);
public static IIcon getVIcon(TextureType type, TextureSubmap map, int x, int y, int z, int side) {
int variationSize = (type == TextureType.V9) ? 3 : 2;
@@ -291,6 +294,9 @@ public enum TextureType {
//For DOWN, reverse the indexes for only Z
textureZ = (variationSize - textureZ - 1);
}*/
else if (side == 0 && fixedBottomFaceUV) {
textureX = variationSize - textureX - 1;
}
int index;
if (side == 0 || side == 1) {
@@ -326,33 +332,18 @@ public enum TextureType {
private static final TextureType[] VALUES;
private static final CTM ctm = CTM.getInstance();
private static final Random rand = new Random();
@SideOnly(Side.CLIENT)
private static ThreadLocal<RenderBlocksCTM> theRenderBlocksCTM;
@SideOnly(Side.CLIENT)
private static ThreadLocal<RenderBlocksColumn> theRenderBlocksColumn;
private static final ThreadLocal<RenderBlocksCTM> theRenderBlocksCTM = FMLLaunchHandler.side().isClient() ? ThreadLocal.withInitial(RenderBlocksCTM::new) : null;
private static final ThreadLocal<RenderBlocksColumn> theRenderBlocksColumn = FMLLaunchHandler.side().isClient() ? ThreadLocal.withInitial(RenderBlocksColumn::new) : null;
private String[] suffixes;
private final String[] suffixes;
static {
VALUES = ArrayUtils.subarray(values(), 0, values().length - 1);
}
private TextureType(String... suffixes) {
TextureType(String... suffixes) {
this.suffixes = suffixes.length == 0 ? new String[] { "" } : suffixes;
}
private static void initStatics() {
if (theRenderBlocksCTM == null) {
theRenderBlocksCTM = ThreadLocal.withInitial(RenderBlocksCTM::new);
theRenderBlocksColumn = ThreadLocal.withInitial(RenderBlocksColumn::new);
}
}
@SideOnly(Side.CLIENT)
public static void clearStatics() {
if(theRenderBlocksCTM != null) theRenderBlocksCTM.remove();
if(theRenderBlocksColumn != null) theRenderBlocksColumn.remove();
}
public ISubmapManager createManagerFor(ICarvingVariation variation, String texturePath) {
return new SubmapManagerDefault(this, variation, texturePath);
}
@@ -397,11 +388,25 @@ public enum TextureType {
return CUSTOM;
}
// This is ugly, but faster than class.getResource
private static boolean exists(String modid, String path, String postfix) {
ResourceLocation rl = new ResourceLocation(modid, "textures/blocks/" + path + postfix + ".png");
final IResourceManager resMan = Minecraft.getMinecraft().getResourceManager();
if (resMan instanceof SimpleReloadableResourceManager simple) {
FallbackResourceManager fallback = (FallbackResourceManager)simple.domainResourceManagers.get(rl.getResourceDomain());
if (fallback != null) {
for (Object obj : fallback.resourcePacks) {
if (obj instanceof IResourcePack rp && rp.resourceExists(rl)) {
return true;
}
}
return false;
}
}
// Fallback
try {
Minecraft.getMinecraft().getResourceManager().getAllResources(rl);
resMan.getAllResources(rl);
return true;
} catch (Throwable t) {
return false;
@@ -88,6 +88,7 @@ public class BlockNameConversion {
namingConversion.put("blockFft", "fantasyblock");
namingConversion.put("blockCarpetFloor", "carpet");
namingConversion.put("blockLaboratory", "laboratoryblock");
namingConversion.put("wroughtironblock", "castironblock");
}
public static Item findItem(String oldname) {
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,67 @@
package team.chisel.block;
import net.minecraft.block.Block;
import net.minecraft.client.Minecraft;
import net.minecraft.client.entity.EntityPlayerSP;
import net.minecraft.util.MathHelper;
import net.minecraft.util.MovementInput;
import net.minecraft.util.MovementInputFromOptions;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.gameevent.TickEvent.Phase;
import cpw.mods.fml.common.gameevent.TickEvent.PlayerTickEvent;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import team.chisel.config.Configurations;
public class BlockCarvableConcreteSlab extends BlockCarvableSlab {
public BlockCarvableConcreteSlab(BlockCarvable block) {
super(block);
top = new BlockCarvableConcreteSlab(this);
FMLCommonHandler.instance()
.bus()
.register(new EventHandler());
}
// Constructor to get concrete top slabs to work
public BlockCarvableConcreteSlab(BlockCarvableSlab bottomBlock) {
super(bottomBlock);
FMLCommonHandler.instance()
.bus()
.register(new EventHandler());
}
@SideOnly(Side.CLIENT)
private static MovementInput manualInputCheck;
public class EventHandler {
@SubscribeEvent
@SideOnly(Side.CLIENT)
public void speedupPlayer(PlayerTickEvent event) {
if (event.phase == Phase.START && event.side.isClient()
&& event.player.onGround
&& event.player instanceof EntityPlayerSP) {
if (manualInputCheck == null) {
manualInputCheck = new MovementInputFromOptions(Minecraft.getMinecraft().gameSettings);
}
EntityPlayerSP player = (EntityPlayerSP) event.player;
Block below = player.worldObj.getBlock(
MathHelper.floor_double(player.posX),
MathHelper.floor_double(player.posY) - 2,
MathHelper.floor_double(player.posZ));
if (below == BlockCarvableConcreteSlab.this) {
manualInputCheck.updatePlayerMoveState();
if (manualInputCheck.moveForward != 0 || manualInputCheck.moveStrafe != 0) {
player.motionX *= Configurations.concreteVelocityMult + 0.05;
player.motionZ *= Configurations.concreteVelocityMult + 0.05;
}
}
}
}
}
}
@@ -0,0 +1,79 @@
package team.chisel.block;
import java.util.List;
import net.minecraft.block.Block;
import net.minecraft.client.Minecraft;
import net.minecraft.client.entity.EntityPlayerSP;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.MathHelper;
import net.minecraft.util.MovementInput;
import net.minecraft.util.MovementInputFromOptions;
import com.cricketcraft.chisel.api.carving.CarvableHelper;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.gameevent.TickEvent;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import team.chisel.config.Configurations;
public class BlockCarvableConcreteStairs extends BlockCarvableStairs {
public BlockCarvableConcreteStairs(Block block, int meta, CarvableHelper helper) {
super(block, meta, helper);
FMLCommonHandler.instance()
.bus()
.register(new EventHandler());
}
// Override super's getSubBlocks to allow concrete's 11 variants
// Stairs are added to the list in pairs, so odd-numbered variant counts create
// a block that shouldn't exist. This modification makes the block unreachable by normal
// means (NEI, creative menu), but still technically exists in-game
@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
public void getSubBlocks(Item block, CreativeTabs tabs, List list) {
list.add(new ItemStack(block, 1, 0));
// If odd# of variations && meta for the current block == variation.size - 1, exit
// Second check checks if the current block is at the end of the variation list
if (carverHelper.infoList.size() % 2 == 1 && this.blockMeta == carverHelper.infoList.size() - 1) return;
list.add(new ItemStack(block, 1, 8));
}
@SideOnly(Side.CLIENT)
private static MovementInput manualInputCheck;
public class EventHandler {
@SubscribeEvent
@SideOnly(Side.CLIENT)
public void speedupPlayer(TickEvent.PlayerTickEvent event) {
if (event.phase == TickEvent.Phase.START && event.side.isClient()
&& event.player.onGround
&& event.player instanceof EntityPlayerSP) {
if (manualInputCheck == null) {
manualInputCheck = new MovementInputFromOptions(Minecraft.getMinecraft().gameSettings);
}
EntityPlayerSP player = (EntityPlayerSP) event.player;
Block below = player.worldObj.getBlock(
MathHelper.floor_double(player.posX),
MathHelper.floor_double(player.posY) - 2,
MathHelper.floor_double(player.posZ));
if (below == BlockCarvableConcreteStairs.this) {
manualInputCheck.updatePlayerMoveState();
if (manualInputCheck.moveForward != 0 || manualInputCheck.moveStrafe != 0) {
player.motionX *= Configurations.concreteVelocityMult + 0.05;
player.motionZ *= Configurations.concreteVelocityMult + 0.05;
}
}
}
}
}
}
@@ -33,6 +33,11 @@ public class BlockCarvableGlowstone extends BlockCarvable {
return 0;
}
@Override
public int getDamageValue(World world, int x, int y, int z) {
return world.getBlockMetadata(x, y, z);
}
@Override
public ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z, EntityPlayer player) {
Block glowstone = world.getBlock(x, y, z);
@@ -6,6 +6,7 @@ import net.minecraft.block.Block;
import net.minecraft.block.BlockSand;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.EnumCreatureType;
import net.minecraft.item.Item;
import net.minecraft.util.IIcon;
import net.minecraft.world.IBlockAccess;
@@ -19,6 +20,7 @@ import com.cricketcraft.chisel.api.rendering.ClientUtils;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import team.chisel.Chisel;
import team.chisel.config.Configurations;
public class BlockCarvableSand extends BlockSand implements ICarvable {
@@ -83,6 +85,11 @@ public class BlockCarvableSand extends BlockSand implements ICarvable {
return carverHelper.getVariation(meta);
}
@Override
public boolean canCreatureSpawn(EnumCreatureType type, IBlockAccess world, int x, int y, int z) {
return Configurations.canMobsSpawnOnTheChiselBlocks;
}
public static class SoundType extends Block.SoundType {
public final String soundNameStep;
@@ -40,7 +40,7 @@ public class BlockCarvableStairs extends BlockStairs implements ICarvable {
@Override
public int damageDropped(int i) {
return i / 8;
return i & 0x8;
}
@Override
@@ -6,6 +6,7 @@ import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.EnumCreatureType;
import net.minecraft.item.Item;
import net.minecraft.util.IIcon;
import net.minecraft.world.IBlockAccess;
@@ -14,6 +15,8 @@ import com.cricketcraft.chisel.api.ICarvable;
import com.cricketcraft.chisel.api.carving.CarvableHelper;
import com.cricketcraft.chisel.api.carving.IVariationInfo;
import team.chisel.config.Configurations;
public class BlockMultiLayer extends BlockMultiLayerBase implements ICarvable {
public CarvableHelper carverHelper;
@@ -62,4 +65,9 @@ public class BlockMultiLayer extends BlockMultiLayerBase implements ICarvable {
public IVariationInfo getManager(int meta) {
return carverHelper.getVariation(meta);
}
@Override
public boolean canCreatureSpawn(EnumCreatureType type, IBlockAccess world, int x, int y, int z) {
return Configurations.canMobsSpawnOnTheChiselBlocks;
}
}
@@ -4,7 +4,6 @@ import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.util.IIcon;
import net.minecraftforge.client.ForgeHooksClient;
import team.chisel.client.render.RendererMultiLayer;
@@ -43,7 +42,6 @@ public abstract class BlockMultiLayerBase extends Block {
@Override
public boolean canRenderInPass(int pass) {
ForgeHooksClient.setRenderPass(pass);
return pass == 1 || pass == 0;
}
@@ -62,7 +62,7 @@ public class BlockRoadLine extends BlockCarvable {
if (par1World.isRemote) return;
if (!this.canPlaceBlockAt(par1World, par2, par3, par4)) {
this.dropBlockAsItem(par1World, par2, par3, par4, 0, 0);
this.dropBlockAsItem(par1World, par2, par3, par4, par1World.getBlockMetadata(par2, par3, par4), 0);
par1World.setBlockToAir(par2, par3, par4);
}
@@ -37,6 +37,8 @@ public class TileEntityAutoChisel extends TileEntity implements ISidedInventory
STACK,
REVERSION;
public static final Upgrade[] VALUES = values();
public String getUnlocalizedName() {
if (Features.AUTO_CHISEL_UPGRADES.enabled()) {
return "item.upgrade_" + this.name()
@@ -380,7 +382,7 @@ public class TileEntityAutoChisel extends TileEntity implements ISidedInventory
return itemStack.getItem() instanceof IChiselItem;
default:
return Features.AUTO_CHISEL_UPGRADES.enabled() && itemStack.getItem() == ChiselItems.upgrade
&& Upgrade.values()[slot - MIN_UPGRADE].ordinal() == itemStack.getItemDamage();
&& Upgrade.VALUES[slot - MIN_UPGRADE].ordinal() == itemStack.getItemDamage();
}
}
@@ -465,7 +467,7 @@ public class TileEntityAutoChisel extends TileEntity implements ISidedInventory
String unloc = name == null ? null : String.format(base, name);
return StatCollector.translateToLocal(unloc);
} else {
return Upgrade.values()[slotNumber - MIN_UPGRADE].getLocalizedName();
return Upgrade.VALUES[slotNumber - MIN_UPGRADE].getLocalizedName();
}
}
@@ -19,11 +19,7 @@ import team.chisel.ctmlib.Drawing;
@ThreadSafeISBRH(perThread = false)
public class RendererCTMPane implements ISimpleBlockRenderingHandler {
public static int id;
public RendererCTMPane() {
id = RenderingRegistry.getNextAvailableRenderId();
}
public static final int id = RenderingRegistry.getNextAvailableRenderId();
@Override
public void renderInventoryBlock(Block block, int meta, int modelID, RenderBlocks renderer) {
@@ -33,7 +29,7 @@ public class RendererCTMPane implements ISimpleBlockRenderingHandler {
Drawing.drawBlock(block, meta, renderer);
}
class PaneRenderer {
static class PaneRenderer {
double i0u0;
double i0uh;
@@ -27,7 +27,8 @@ public class RendererEldritch implements ISimpleBlockRenderingHandler {
GL11.glTranslatef(0.5F, 0.5F, 0.5F);
}
ThreadLocal<RenderBlocksEldritch> rendererThreadLocal = ThreadLocal.withInitial(RenderBlocksEldritch::new);
private static final ThreadLocal<RenderBlocksEldritch> rendererThreadLocal = ThreadLocal
.withInitial(RenderBlocksEldritch::new);
@Override
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId,
@@ -59,7 +60,11 @@ public class RendererEldritch implements ISimpleBlockRenderingHandler {
renderer.renderMaxX = 1.0;
renderer.renderMaxY = 1.0;
renderer.renderMaxZ = 1.0;
renderer.renderStandardBlock(block, x, y, z);
try {
renderer.renderStandardBlock(block, x, y, z);
} finally {
renderer.blockAccess = null;
}
return true;
/*
@@ -40,13 +40,28 @@ public class RendererLayeredGlow implements ISimpleBlockRenderingHandler {
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId,
RenderBlocks renderer) {
final Tessellator tessellator = Tessellator.instance;
tessellator.setColorOpaque_I(Configurations.configColors[world.getBlockMetadata(x, y, z)]);
final boolean prevEnableAO = renderer.enableAO;
final int tint = Configurations.configColors[world.getBlockMetadata(x, y, z)];
tessellator.setColorOpaque_I(tint);
tessellator.setBrightness(0xF000F0);
setFullbrightColor(renderer, tint);
Drawing.renderAllFaces(renderer, block, x, y, z, ((BlockCarvableGlow) block).getGlowTexture());
renderer.enableAO = prevEnableAO;
renderer.renderStandardBlock(block, x, y, z);
return true;
}
private static void setFullbrightColor(RenderBlocks renderer, int color) {
final float r = (color >> 16 & 255) / 255.0F;
final float g = (color >> 8 & 255) / 255.0F;
final float b = (color & 255) / 255.0F;
renderer.enableAO = true;
renderer.colorRedTopLeft = renderer.colorRedBottomLeft = renderer.colorRedBottomRight = renderer.colorRedTopRight = r;
renderer.colorGreenTopLeft = renderer.colorGreenBottomLeft = renderer.colorGreenBottomRight = renderer.colorGreenTopRight = g;
renderer.colorBlueTopLeft = renderer.colorBlueBottomLeft = renderer.colorBlueBottomRight = renderer.colorBlueTopRight = b;
renderer.brightnessTopLeft = renderer.brightnessBottomLeft = renderer.brightnessTopRight = renderer.brightnessBottomRight = 0xF000F0;
}
@Override
public boolean shouldRender3DInInventory(int modelId) {
return true;
@@ -14,7 +14,7 @@ import net.minecraft.block.Block;
import net.minecraft.client.renderer.RenderBlocks;
import net.minecraft.init.Blocks;
import net.minecraft.world.IBlockAccess;
import net.minecraftforge.client.MinecraftForgeClient;
import net.minecraftforge.client.ForgeHooksClient;
import com.gtnewhorizons.angelica.api.ThreadSafeISBRH;
@@ -28,17 +28,11 @@ public class RendererMultiLayer implements ISimpleBlockRenderingHandler {
final static float bot = -0.001f;
final static float top = 1.0f - bot;
public static int id;
public RendererMultiLayer() {
id = RenderingRegistry.getNextAvailableRenderId();
}
public static final int id = RenderingRegistry.getNextAvailableRenderId();
@Override
public void renderInventoryBlock(Block blck, int meta, int modelID, RenderBlocks renderer) {
if (blck == null || !(blck instanceof BlockMultiLayerBase)) return;
BlockMultiLayerBase block = (BlockMultiLayerBase) blck;
if (!(blck instanceof BlockMultiLayerBase block)) return;
if (block.icon != null) {
renderer.overrideBlockTexture = block.icon;
@@ -61,10 +55,9 @@ public class RendererMultiLayer implements ISimpleBlockRenderingHandler {
@Override
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block blck, int modelId,
RenderBlocks renderer) {
if (blck == null || !(blck instanceof BlockMultiLayerBase)) return false;
BlockMultiLayerBase block = (BlockMultiLayerBase) blck;
if (!(blck instanceof BlockMultiLayerBase block)) return false;
if (MinecraftForgeClient.getRenderPass() == 0) {
if (ForgeHooksClient.getWorldRenderPass() == 0) {
if (block.icon != null) {
renderer.overrideBlockTexture = block.icon;
renderer.renderStandardBlock(block, x, y, z);
@@ -16,11 +16,7 @@ import team.chisel.ctmlib.Drawing;
@ThreadSafeISBRH(perThread = false)
public class RendererStairs implements ISimpleBlockRenderingHandler {
public static int id;
public RendererStairs() {
id = RenderingRegistry.getNextAvailableRenderId();
}
public static final int id = RenderingRegistry.getNextAvailableRenderId();
@Override
public void renderInventoryBlock(Block block, int meta, int modelID, RenderBlocks renderer) {
@@ -34,8 +30,7 @@ public class RendererStairs implements ISimpleBlockRenderingHandler {
@Override
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block blck, int modelId,
RenderBlocks renderer) {
if (blck == null || !(blck instanceof BlockCarvableStairs)) return false;
BlockCarvableStairs block = (BlockCarvableStairs) blck;
if (!(blck instanceof BlockCarvableStairs block)) return false;
renderer.renderBlockStairs(block, x, y, z);
@@ -10,6 +10,7 @@ import net.minecraftforge.client.IItemRenderer;
import org.lwjgl.opengl.GL11;
import cpw.mods.fml.relauncher.FMLLaunchHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import team.chisel.ctmlib.Drawing;
@@ -74,16 +75,10 @@ public class SubmapManagerAntiblock extends SubmapManagerBase {
}
};
@SideOnly(Side.CLIENT)
private static ThreadLocal<RenderBlocksCTMFullbright> renderBlocksThreadLocal;
private static final ThreadLocal<RenderBlocksCTMFullbright> renderBlocksThreadLocal = FMLLaunchHandler.side()
.isClient() ? ThreadLocal.withInitial(RenderBlocksCTMFullbright::new) : null;
private static void initStatics() {
if (renderBlocksThreadLocal == null) {
renderBlocksThreadLocal = ThreadLocal.withInitial(RenderBlocksCTMFullbright::new);
}
}
private String color;
private final String color;
private TextureSubmap submap, submapSmall;
public SubmapManagerAntiblock(String color) {
@@ -105,7 +100,6 @@ public class SubmapManagerAntiblock extends SubmapManagerBase {
@Override
@SideOnly(Side.CLIENT)
public RenderBlocks createRenderContext(RenderBlocks rendererOld, Block block, IBlockAccess world) {
initStatics();
RenderBlocksCTMFullbright rb = renderBlocksThreadLocal.get();
rb.setRenderBoundsFromBlock(block);
rb.submap = submap;
@@ -6,6 +6,7 @@ import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.util.IIcon;
import net.minecraft.world.IBlockAccess;
import cpw.mods.fml.relauncher.FMLLaunchHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import team.chisel.ctmlib.RenderBlocksCTM;
@@ -13,18 +14,12 @@ import team.chisel.ctmlib.TextureSubmap;
public class SubmapManagerCarpetFloor extends SubmapManagerBase {
@SideOnly(Side.CLIENT)
private static ThreadLocal<RenderBlocksCTM> renderBlocksThreadLocal;
private static void initStatics() {
if (renderBlocksThreadLocal == null) {
renderBlocksThreadLocal = ThreadLocal.withInitial(RenderBlocksCTM::new);
}
}
private static final ThreadLocal<RenderBlocksCTM> renderBlocksThreadLocal = FMLLaunchHandler.side()
.isClient() ? ThreadLocal.withInitial(RenderBlocksCTM::new) : null;
private TextureSubmap submap;
private TextureSubmap submapSmall;
private String color;
private final String color;
public SubmapManagerCarpetFloor(String color) {
this.color = color;
@@ -51,7 +46,6 @@ public class SubmapManagerCarpetFloor extends SubmapManagerBase {
@Override
@SideOnly(Side.CLIENT)
public RenderBlocks createRenderContext(RenderBlocks rendererOld, Block block, IBlockAccess world) {
initStatics();
RenderBlocksCTM rb = renderBlocksThreadLocal.get();
rb.setRenderBoundsFromBlock(block);
rb.submap = submap;
@@ -14,6 +14,7 @@ import com.cricketcraft.chisel.api.carving.CarvingUtils;
import com.cricketcraft.chisel.api.rendering.TextureType;
import com.cricketcraft.chisel.api.rendering.TextureType.AbstractSubmapManager;
import cpw.mods.fml.relauncher.FMLLaunchHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import team.chisel.ctmlib.RenderBlocksCTM;
@@ -78,9 +79,9 @@ public class SubmapManagerCombinedCTM extends SubmapManagerBase {
}
}
private class Submap extends TextureSubmap {
private static class Submap extends TextureSubmap {
private TextureSubmap[][] submap;
private final TextureSubmap[][] submap;
public Submap(IIcon base, int wh, TextureSubmap[][] submap) {
super(base, wh, wh);
@@ -98,21 +99,15 @@ public class SubmapManagerCombinedCTM extends SubmapManagerBase {
}
}
@SideOnly(Side.CLIENT)
private static ThreadLocal<RenderBlocksCombinedCTM> renderBlocksThreadLocal;
private static void initStatics() {
if (renderBlocksThreadLocal == null) {
renderBlocksThreadLocal = new ThreadLocal<>();
}
}
private final ThreadLocal<RenderBlocksCombinedCTM> renderBlocksThreadLocal = FMLLaunchHandler.side()
.isClient() ? ThreadLocal.withInitial(RenderBlocksCombinedCTM::new) : null;
private TextureSubmap submap, smallSubmap;
private int size;
private String texturePath;
private int meta;
private final int size;
private final String texturePath;
private final int meta;
private IIcon defaultIcon;
private TextureType rType;
private final TextureType rType;
public SubmapManagerCombinedCTM(int meta, String texturePath, TextureType rType) {
assert rType == TextureType.R16 || rType == TextureType.R9
@@ -124,10 +119,7 @@ public class SubmapManagerCombinedCTM extends SubmapManagerBase {
this.texturePath = texturePath;
this.size = Integer.parseInt(
rType.name()
.substring(
1,
rType.name()
.length())); // >.>
.substring(1)); // >.>
this.rType = rType;
}
@@ -139,12 +131,7 @@ public class SubmapManagerCombinedCTM extends SubmapManagerBase {
@Override
@SideOnly(Side.CLIENT)
public RenderBlocks createRenderContext(RenderBlocks rendererOld, Block block, IBlockAccess world) {
initStatics();
RenderBlocksCombinedCTM rb = renderBlocksThreadLocal.get();
if (rb == null) {
rb = new RenderBlocksCombinedCTM();
renderBlocksThreadLocal.set(rb);
}
rb.setRenderBoundsFromBlock(block);
return rb;
}
@@ -7,6 +7,7 @@ import net.minecraft.util.IIcon;
import net.minecraft.world.IBlockAccess;
import net.minecraftforge.common.util.ForgeDirection;
import cpw.mods.fml.relauncher.FMLLaunchHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import team.chisel.ctmlib.ISubmapManager;
@@ -15,19 +16,13 @@ import team.chisel.ctmlib.TextureSubmap;
public class SubmapManagerSlab implements ISubmapManager {
@SideOnly(Side.CLIENT)
private static ThreadLocal<RenderBlocksCTM> renderBlocksThreadLocal;
private static void initStatics() {
if (renderBlocksThreadLocal == null) {
renderBlocksThreadLocal = ThreadLocal.withInitial(RenderBlocksCTM::new);
}
}
private static final ThreadLocal<RenderBlocksCTM> renderBlocksThreadLocal = FMLLaunchHandler.side()
.isClient() ? ThreadLocal.withInitial(RenderBlocksCTM::new) : null;
private TextureSubmap submap;
private TextureSubmap submapSmall;
private IIcon sideTexture;
private String texture;
private final String texture;
public SubmapManagerSlab(String texture) {
this.texture = texture;
@@ -55,7 +50,6 @@ public class SubmapManagerSlab implements ISubmapManager {
@Override
@SideOnly(Side.CLIENT)
public RenderBlocks createRenderContext(RenderBlocks rendererOld, Block block, IBlockAccess world) {
initStatics();
RenderBlocksCTM rb = renderBlocksThreadLocal.get();
rb.setRenderBoundsFromBlock(block);
rb.submap = submap;
@@ -63,25 +57,11 @@ public class SubmapManagerSlab implements ISubmapManager {
return rb;
}
private boolean hadOverride = false;
@Override
@SideOnly(Side.CLIENT)
public void preRenderSide(RenderBlocks renderer, IBlockAccess world, int x, int y, int z, ForgeDirection side) {}
@Override
@SideOnly(Side.CLIENT)
public void preRenderSide(RenderBlocks renderer, IBlockAccess world, int x, int y, int z, ForgeDirection side) {
RenderBlocksCTM rbctm = (RenderBlocksCTM) renderer;
if (side.ordinal() < 2 && !rbctm.rendererOld.hasOverrideBlockTexture()) {
rbctm.rendererOld.setOverrideBlockTexture(sideTexture);
hadOverride = false;
} else {
hadOverride = true;
}
}
@Override
@SideOnly(Side.CLIENT)
public void postRenderSide(RenderBlocks renderer, IBlockAccess world, int x, int y, int z, ForgeDirection side) {
if (!hadOverride) {
((RenderBlocksCTM) renderer).rendererOld.clearOverrideBlockTexture();
}
}
public void postRenderSide(RenderBlocks renderer, IBlockAccess world, int x, int y, int z, ForgeDirection side) {}
}
@@ -6,6 +6,7 @@ import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.util.IIcon;
import net.minecraft.world.IBlockAccess;
import cpw.mods.fml.relauncher.FMLLaunchHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import team.chisel.ctmlib.RenderBlocksCTM;
@@ -48,17 +49,11 @@ public class SubmapManagerSpecialMaterial extends SubmapManagerBase {
}
};
@SideOnly(Side.CLIENT)
private static ThreadLocal<RenderBlocksCTMFullbright> renderBlocksThreadLocal;
private static final ThreadLocal<RenderBlocksCTMFullbright> renderBlocksThreadLocal = FMLLaunchHandler.side()
.isClient() ? ThreadLocal.withInitial(RenderBlocksCTMFullbright::new) : null;
private static void initStatics() {
if (renderBlocksThreadLocal == null) {
renderBlocksThreadLocal = ThreadLocal.withInitial(RenderBlocksCTMFullbright::new);
}
}
private String color;
private MaterialType materialType;
private final String color;
private final MaterialType materialType;
private TextureSubmap submap, submapSmall;
public SubmapManagerSpecialMaterial(String color, MaterialType materialType) {
@@ -83,7 +78,6 @@ public class SubmapManagerSpecialMaterial extends SubmapManagerBase {
@Override
@SideOnly(Side.CLIENT)
public RenderBlocks createRenderContext(RenderBlocks rendererOld, Block block, IBlockAccess world) {
initStatics();
RenderBlocksCTMFullbright renderBlocksFullbright = renderBlocksThreadLocal.get();
renderBlocksFullbright.setRenderBoundsFromBlock(block);
renderBlocksFullbright.submap = submap;
@@ -11,6 +11,7 @@ import net.minecraftforge.common.util.ForgeDirection;
import com.cricketcraft.chisel.api.carving.CarvingUtils;
import com.cricketcraft.chisel.api.rendering.TextureType;
import cpw.mods.fml.relauncher.FMLLaunchHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import team.chisel.ctmlib.ISubmapManager;
@@ -21,87 +22,81 @@ public class SubmapManagerVoidstone extends SubmapManagerBase {
// TODO there must be a better more generic way to do this...
@SideOnly(Side.CLIENT)
private class RenderBlocksVoidstone extends RenderBlocksCTM {
private static class RenderBlocksVoidstone extends RenderBlocksCTM {
@Override
public void renderFaceXNeg(Block block, double x, double y, double z, IIcon icon) {
super.renderFaceXNeg(block, x, y, z, icon);
renderMinX += 0.001;
setOverrideBlockTexture(getBase(x, y, z, ForgeDirection.WEST.ordinal()));
super.renderFaceXNeg(block, x, y, z, null);
clearOverrideBlockTexture();
super.renderFaceXNeg(block, x, y, z, icon);
}
@Override
public void renderFaceXPos(Block block, double x, double y, double z, IIcon icon) {
super.renderFaceXPos(block, x, y, z, icon);
setOverrideBlockTexture(getBase(x, y, z, ForgeDirection.EAST.ordinal()));
renderMaxX -= 0.001;
super.renderFaceXPos(block, x, y, z, null);
clearOverrideBlockTexture();
super.renderFaceXPos(block, x, y, z, icon);
}
@Override
public void renderFaceYNeg(Block block, double x, double y, double z, IIcon icon) {
super.renderFaceYNeg(block, x, y, z, icon);
setOverrideBlockTexture(getBase(x, y, z, ForgeDirection.DOWN.ordinal()));
renderMinY += 0.001;
super.renderFaceYNeg(block, x, y, z, null);
clearOverrideBlockTexture();
super.renderFaceYNeg(block, x, y, z, icon);
}
@Override
public void renderFaceYPos(Block block, double x, double y, double z, IIcon icon) {
super.renderFaceYPos(block, x, y, z, icon);
setOverrideBlockTexture(getBase(x, y, z, ForgeDirection.UP.ordinal()));
renderMaxY -= 0.001;
super.renderFaceYPos(block, x, y, z, null);
clearOverrideBlockTexture();
super.renderFaceYPos(block, x, y, z, icon);
}
@Override
public void renderFaceZNeg(Block block, double x, double y, double z, IIcon icon) {
super.renderFaceZNeg(block, x, y, z, icon);
setOverrideBlockTexture(getBase(x, y, z, ForgeDirection.NORTH.ordinal()));
renderMinZ += 0.001;
super.renderFaceZNeg(block, x, y, z, null);
clearOverrideBlockTexture();
super.renderFaceZNeg(block, x, y, z, icon);
}
@Override
public void renderFaceZPos(Block block, double x, double y, double z, IIcon icon) {
super.renderFaceZPos(block, x, y, z, icon);
setOverrideBlockTexture(getBase(x, y, z, ForgeDirection.SOUTH.ordinal()));
renderMaxZ -= 0.001;
super.renderFaceZPos(block, x, y, z, null);
clearOverrideBlockTexture();
super.renderFaceZPos(block, x, y, z, icon);
}
private IIcon getBase(double x, double y, double z, int side) {
return TextureType.getVIcon(
TextureType.V4,
base,
MathHelper.floor_double(x),
MathHelper.floor_double(y),
MathHelper.floor_double(z),
side);
}
}
@SideOnly(Side.CLIENT)
private static ThreadLocal<RenderBlocksVoidstone> renderBlocksThreadLocal;
private static void initStatics() {
if (renderBlocksThreadLocal == null) {
renderBlocksThreadLocal = new ThreadLocal<>();
}
}
private static final ThreadLocal<RenderBlocksVoidstone> renderBlocksThreadLocal = FMLLaunchHandler.side()
.isClient() ? ThreadLocal.withInitial(RenderBlocksVoidstone::new) : null;
private ISubmapManager overlay;
private TextureSubmap base;
private static TextureSubmap base;
private IIcon getBase(double x, double y, double z, int side) {
return TextureType.getVIcon(
TextureType.V4,
base,
MathHelper.floor_double(x),
MathHelper.floor_double(y),
MathHelper.floor_double(z),
side);
}
private String texture;
private int meta;
private final String texture;
private final int meta;
public SubmapManagerVoidstone(String texture, int meta) {
this.texture = texture;
@@ -129,18 +124,18 @@ public class SubmapManagerVoidstone extends SubmapManagerBase {
@Override
@SideOnly(Side.CLIENT)
public RenderBlocks createRenderContext(RenderBlocks rendererOld, Block block, IBlockAccess world) {
initStatics();
RenderBlocksVoidstone rb = renderBlocksThreadLocal.get();
if (rb == null) {
rb = new RenderBlocksVoidstone();
renderBlocksThreadLocal.set(rb);
}
RenderBlocks ctx = overlay.createRenderContext(rendererOld, block, world);
rb.setRenderBoundsFromBlock(block);
if (ctx instanceof RenderBlocksCTM) {
rb.submap = ((RenderBlocksCTM) ctx).submap;
rb.submapSmall = ((RenderBlocksCTM) ctx).submapSmall;
} else {
rb.submap = null;
rb.submapSmall = null;
}
return rb;
}
}
@@ -26,7 +26,7 @@ public class RenderCarvableBeacon extends TileEntityBeaconRenderer implements IS
private static final ResourceLocation texture = new ResourceLocation("textures/entity/beacon_beam.png");
private int renderId;
private final int renderId;
public RenderCarvableBeacon() {
this.renderId = RenderingRegistry.getNextAvailableRenderId();
@@ -25,6 +25,7 @@ public class NEIChiselConfig implements IConfigureNEI {
API.hideItem(new ItemStack(GameRegistry.findBlock("chisel", "limestone_slab_top")));
API.hideItem(new ItemStack(GameRegistry.findBlock("chisel", "marble_slab_top")));
API.hideItem(new ItemStack(GameRegistry.findBlock("chisel", "marble_pillar_slab_top")));
API.hideItem(new ItemStack(GameRegistry.findBlock("chisel", "concrete_slab_top")));
RecipeHandlerChisel handler = new RecipeHandlerChisel();
API.registerRecipeHandler(handler);
@@ -303,7 +303,7 @@ public class Configurations {
}
/* features */
for (Features feature : Features.values()) {
for (Features feature : Features.VALUES) {
features.put(
featureName(feature),
config.get("features", featureName(feature), true)
+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;
}
}
@@ -2,6 +2,7 @@ package team.chisel.ctmlib;
import net.minecraft.block.Block;
import net.minecraft.client.Minecraft;
import net.minecraft.client.multiplayer.WorldClient;
import net.minecraft.client.renderer.RenderBlocks;
import net.minecraft.crash.CrashReport;
import net.minecraft.crash.CrashReportCategory;
@@ -27,29 +28,38 @@ public class CTMRenderer implements ISimpleBlockRenderingHandler {
@Override
public void renderInventoryBlock(Block block, int metadata, int modelID, RenderBlocks renderer) {
GL11.glTranslatef(-0.5F, -0.5F, -0.5F);
RenderBlocks rb = getContext(
renderer,
block,
Minecraft.getMinecraft().theWorld,
((ICTMBlock<?>) block).getManager(metadata),
metadata);
Drawing.drawBlock(block, metadata, rb);
GL11.glTranslatef(0.5F, 0.5F, 0.5F);
rb.unlockBlockBounds();
final WorldClient world = Minecraft.getMinecraft().theWorld;
final RenderBlocks rb = getContext(renderer, block, world, ((ICTMBlock<?>) block).getManager(metadata));
boolean clean = false;
if (rb.blockAccess == null) {
rb.blockAccess = world;
clean = true;
}
try {
Drawing.drawBlock(block, metadata, rb);
GL11.glTranslatef(0.5F, 0.5F, 0.5F);
rb.unlockBlockBounds();
} finally {
if (clean) rb.blockAccess = null;
}
}
@Override
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId,
RenderBlocks rendererOld) {
RenderBlocks renderer) {
final int meta = world.getBlockMetadata(x, y, z);
final RenderBlocks rb = getContext(
renderer,
block,
world,
((ICTMBlock<?>) block).getManager(world, x, y, z, meta));
boolean clean = false;
if (rb.blockAccess == null) {
rb.blockAccess = world;
clean = true;
}
try {
int meta = world.getBlockMetadata(x, y, z);
RenderBlocks rb = getContext(
rendererOld,
block,
world,
((ICTMBlock<?>) block).getManager(world, x, y, z, meta),
meta);
rb.renderAllFaces = rendererOld.renderAllFaces;
rb.renderAllFaces = renderer.renderAllFaces;
boolean ret = rb.renderStandardBlock(block, x, y, z);
rb.unlockBlockBounds();
rb.renderAllFaces = false;
@@ -60,15 +70,15 @@ public class CTMRenderer implements ISimpleBlockRenderingHandler {
crashreportcategory.addCrashSection("Block name", GameRegistry.findUniqueIdentifierFor(block));
crashreportcategory.addCrashSection("Block metadata", world.getBlockMetadata(x, y, z));
throw new ReportedException(crashreport);
} finally {
if (clean) rb.blockAccess = null;
}
}
protected RenderBlocks getContext(RenderBlocks rendererOld, Block block, IBlockAccess world, ISubmapManager manager,
int meta) {
private RenderBlocks getContext(RenderBlocks rendererOld, Block block, IBlockAccess world, ISubmapManager manager) {
if (!rendererOld.hasOverrideBlockTexture() && manager != null) {
RenderBlocks rb = manager.createRenderContext(rendererOld, block, world);
if (rb != null && rb != rendererOld) {
rb.blockAccess = world;
if (rendererOld.lockBlockBounds) {
rb.overrideBlockBounds(
rendererOld.renderMinX,
@@ -78,10 +88,8 @@ public class CTMRenderer implements ISimpleBlockRenderingHandler {
rendererOld.renderMaxY,
rendererOld.renderMaxZ);
}
if (rb instanceof RenderBlocksCTM) {
RenderBlocksCTM rbctm = (RenderBlocksCTM) rb;
if (rb instanceof RenderBlocksCTM rbctm) {
rbctm.manager = rbctm.manager == null ? manager : rbctm.manager;
rbctm.rendererOld = rbctm.rendererOld == null ? rendererOld : rbctm.rendererOld;
}
return rb;
}
+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 {
@@ -102,30 +104,56 @@ public class RenderBlocksCTM extends RenderBlocks {
XZ_HALF_Y(0.5, 1, 0.5);
// @formatter:on
private double x, y, z;
private final double x, y, z;
private Vert(double x, double y, double z) {
Vert(double x, double y, double z) {
this.x = x;
this.y = y;
this.z = z;
}
private static double u, v, xDiff, yDiff, zDiff, uDiff, vDiff;
double get(int axis) {
return axis == 0 ? x : axis == 1 ? y : z;
}
void render(RenderBlocksCTM inst, ForgeDirection normal, int cacheID) {
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]);
tessellator.setBrightness(inst.lightingCache[cacheID]);
}
u = cacheID == 1 || cacheID == 2 ? inst.maxU : inst.minU;
v = cacheID < 2 ? inst.maxV : inst.minV;
double u = cacheID == 1 || cacheID == 2 ? inst.maxU : inst.minU;
double v = cacheID < 2 ? inst.maxV : inst.minV;
uDiff = inst.maxU - inst.minU;
vDiff = 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;
double xDiff;
double yDiff;
double zDiff;
if (inst.renderMinX + inst.renderMinY + inst.renderMinZ != 0
|| inst.renderMaxX + inst.renderMaxY + inst.renderMaxZ != 3) {
boolean uMin = u == inst.minU;
@@ -178,8 +206,11 @@ public class RenderBlocksCTM extends RenderBlocks {
YNEG_LB(ZERO, X_HALF, XZ_HALF, Z_HALF), YNEG_RB(X_HALF, X, Z_HALF_X, XZ_HALF), YNEG_RT(XZ_HALF, Z_HALF_X, XZ, X_HALF_Z), YNEG_LT(Z_HALF, XZ_HALF, X_HALF_Z, Z),
YPOS_LB(YZ, X_HALF_YZ, XZ_HALF_Y, Z_HALF_Y), YPOS_RB(X_HALF_YZ, XYZ, Z_HALF_XY, XZ_HALF_Y), YPOS_RT(XZ_HALF_Y, Z_HALF_XY, XY, X_HALF_Y), YPOS_LT(Z_HALF_Y, XZ_HALF_Y, X_HALF_Y, Y);
// @formatter:on
private Vert xmin, xmax, ymin, ymax;
private ForgeDirection normal;
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;
@@ -187,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() {
@@ -204,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);
}
}
@@ -234,7 +274,6 @@ public class RenderBlocksCTM extends RenderBlocks {
protected float[] bluCache = new float[4];
public TextureSubmap submap;
public TextureSubmap submapSmall;
public RenderBlocks rendererOld;
public ISubmapManager manager;
protected int[][] lightmap = new int[3][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;
@@ -257,11 +302,10 @@ public class RenderBlocksCTM extends RenderBlocks {
tessellator.setColorOpaque_F(1.0F, 1.0F, 1.0F);
tessellator.addTranslation(x, y, z);
if (rendererOld != null && rendererOld.hasOverrideBlockTexture()) {
setOverrideBlockTexture(rendererOld.overrideBlockTexture);
}
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);
@@ -359,8 +403,96 @@ 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,
// we'll treat it as a normal block texture but still render it the CTM way: quarter of a texture at a time.
// This way has one benefit: if an overridden texture is a base block texture and a CTM texture (that is being
// rendered next) is an overlay texture above the base, we're avoiding any z-fighting issues because we
// create identical vertices and now only order of rendering dictates which texture will be rendered above
if (hasOverrideBlockTexture()) {
IIcon icon = overrideBlockTexture;
double u0 = icon.getMinU();
double u1 = icon.getMaxU();
double v0 = icon.getMinV();
double v1 = icon.getMaxV();
double uMid = (u0 + u1) / 2;
double vMid = (v0 + v1) / 2;
// Map all LB-style subsides to bottom-left quarter, RB to bottom-right, RT to top-right, LT to top-left
switch (side) {
// bottom-left quarter
case XNEG_LB, XPOS_LB, YNEG_LB, YPOS_LB, ZNEG_LB, ZPOS_LB -> {
minU = u0;
maxU = uMid;
minV = vMid;
maxV = v1;
}
// bottom-right quarter
case XNEG_RB, XPOS_RB, YNEG_RB, YPOS_RB, ZNEG_RB, ZPOS_RB -> {
minU = uMid;
maxU = u1;
minV = vMid;
maxV = v1;
}
// top-right quarter
case XNEG_RT, XPOS_RT, YNEG_RT, YPOS_RT, ZNEG_RT, ZPOS_RT -> {
minU = uMid;
maxU = u1;
minV = v0;
maxV = vMid;
}
// top-left quarter
case XNEG_LT, XPOS_LT, YNEG_LT, YPOS_LT, ZNEG_LT, ZPOS_LT -> {
minU = u0;
maxU = uMid;
minV = v0;
maxV = vMid;
}
}
side.render(this);
return;
}
IIcon icon;
TextureSubmap map;
if (iconIndex >= 16) {
@@ -378,25 +510,10 @@ public class RenderBlocksCTM extends RenderBlocks {
icon = map.getSubIcon(x, y);
}
double umax = icon.getMaxU();
double umin = icon.getMinU();
double vmax = icon.getMaxV();
double vmin = icon.getMinV();
minU = umin;
maxU = umax;
minV = vmin;
maxV = vmax;
// uCache[0] = umin;
// uCache[1] = umax;
// uCache[2] = umax;
// uCache[3] = umin;
//
// vCache[0] = vmax;
// vCache[1] = vmax;
// vCache[2] = vmin;
// vCache[3] = vmin;
minU = icon.getMinU();
maxU = icon.getMaxU();
minV = icon.getMinV();
maxV = icon.getMaxV();
side.render(this);
}
@@ -404,10 +521,10 @@ public class RenderBlocksCTM extends RenderBlocks {
@Override
public void renderFaceXNeg(Block block, double x, double y, double z, IIcon icon) {
pre(ForgeDirection.WEST);
if (!inWorld || hasOverrideBlockTexture() || submap == null) {
if (!inWorld || submap == null) {
super.renderFaceXNeg(block, 0, 0, 0, icon);
} else {
int tex[] = ctm.getSubmapIndices(blockAccess, bx, by, bz, 4);
int[] tex = ctm.getSubmapIndices(blockAccess, bx, by, bz, 4);
fillLightmap(brightnessBottomRight, brightnessTopRight, brightnessTopLeft, brightnessBottomLeft);
fillColormap(colorRedBottomRight, colorRedTopRight, colorRedTopLeft, colorRedBottomLeft, redmap);
@@ -429,10 +546,10 @@ public class RenderBlocksCTM extends RenderBlocks {
@Override
public void renderFaceXPos(Block block, double x, double y, double z, IIcon icon) {
pre(ForgeDirection.EAST);
if (!inWorld || hasOverrideBlockTexture() || submap == null) {
if (!inWorld || submap == null) {
super.renderFaceXPos(block, 0, 0, 0, icon);
} else {
int tex[] = ctm.getSubmapIndices(blockAccess, bx, by, bz, 5);
int[] tex = ctm.getSubmapIndices(blockAccess, bx, by, bz, 5);
fillLightmap(brightnessTopLeft, brightnessBottomLeft, brightnessBottomRight, brightnessTopRight);
fillColormap(colorRedTopLeft, colorRedBottomLeft, colorRedBottomRight, colorRedTopRight, redmap);
@@ -454,10 +571,10 @@ public class RenderBlocksCTM extends RenderBlocks {
@Override
public void renderFaceZNeg(Block block, double x, double y, double z, IIcon icon) {
pre(ForgeDirection.NORTH);
if (!inWorld || hasOverrideBlockTexture() || submap == null) {
if (!inWorld || submap == null) {
super.renderFaceZNeg(block, 0, 0, 0, icon);
} else {
int tex[] = ctm.getSubmapIndices(blockAccess, bx, by, bz, 2);
int[] tex = ctm.getSubmapIndices(blockAccess, bx, by, bz, 2);
fillLightmap(brightnessBottomRight, brightnessTopRight, brightnessTopLeft, brightnessBottomLeft);
fillColormap(colorRedBottomRight, colorRedTopRight, colorRedTopLeft, colorRedBottomLeft, redmap);
@@ -479,10 +596,10 @@ public class RenderBlocksCTM extends RenderBlocks {
@Override
public void renderFaceZPos(Block block, double x, double y, double z, IIcon icon) {
pre(ForgeDirection.SOUTH);
if (!inWorld || hasOverrideBlockTexture() || submap == null) {
if (!inWorld || submap == null) {
super.renderFaceZPos(block, 0, 0, 0, icon);
} else {
int tex[] = ctm.getSubmapIndices(blockAccess, bx, by, bz, 3);
int[] tex = ctm.getSubmapIndices(blockAccess, bx, by, bz, 3);
fillLightmap(brightnessBottomLeft, brightnessBottomRight, brightnessTopRight, brightnessTopLeft);
fillColormap(colorRedBottomLeft, colorRedBottomRight, colorRedTopRight, colorRedTopLeft, redmap);
@@ -504,10 +621,10 @@ public class RenderBlocksCTM extends RenderBlocks {
@Override
public void renderFaceYNeg(Block block, double x, double y, double z, IIcon icon) {
pre(ForgeDirection.DOWN);
if (!inWorld || hasOverrideBlockTexture() || submap == null) {
if (!inWorld || submap == null) {
super.renderFaceYNeg(block, 0, 0, 0, icon);
} else {
int tex[] = ctm.getSubmapIndices(blockAccess, bx, by, bz, 0);
int[] tex = ctm.getSubmapIndices(blockAccess, bx, by, bz, 0);
fillLightmap(brightnessBottomLeft, brightnessBottomRight, brightnessTopRight, brightnessTopLeft);
fillColormap(colorRedBottomLeft, colorRedBottomRight, colorRedTopRight, colorRedTopLeft, redmap);
@@ -529,10 +646,10 @@ public class RenderBlocksCTM extends RenderBlocks {
@Override
public void renderFaceYPos(Block block, double x, double y, double z, IIcon icon) {
pre(ForgeDirection.UP);
if (!inWorld || hasOverrideBlockTexture() || submap == null) {
if (!inWorld || submap == null) {
super.renderFaceYPos(block, 0, 0, 0, icon);
} else {
int tex[] = ctm.getSubmapIndices(blockAccess, bx, by, bz, 1);
int[] tex = ctm.getSubmapIndices(blockAccess, bx, by, bz, 1);
fillLightmap(brightnessTopRight, brightnessTopLeft, brightnessBottomLeft, brightnessBottomRight);
fillColormap(colorRedTopRight, colorRedTopLeft, colorRedBottomLeft, colorRedBottomRight, redmap);
@@ -16,16 +16,15 @@ public class RenderBlocksColumn extends RenderBlocks {
public IIcon iconTop;
private boolean inWorld;
private IIcon sides[] = new IIcon[6];
private CTM ctm = CTM.getInstance();
private final IIcon[] sides = new IIcon[6];
private final CTM ctm = CTM.getInstance();
public RenderBlocksColumn() {
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;
@@ -7,6 +7,8 @@ import team.chisel.Chisel;
import team.chisel.block.BlockCarvable;
import team.chisel.block.BlockCarvableBeacon;
import team.chisel.block.BlockCarvableCarpet;
import team.chisel.block.BlockCarvableConcreteSlab;
import team.chisel.block.BlockCarvableConcreteStairs;
import team.chisel.block.BlockCarvableGlass;
import team.chisel.block.BlockCarvableGlowstone;
import team.chisel.block.BlockCarvableIce;
@@ -53,6 +55,7 @@ public final class ChiselBlocks {
public static final BlockCarvable sandstone = null;
public static final BlockCarvable sandstone_scribbles = null;
public static final BlockConcrete concrete = null;
public static final BlockCarvableConcreteSlab concrete_slab = null;
public static final BlockRoadLine road_line = null;
public static final BlockCarvable iron_block = null;
public static final BlockCarvable gold_block = null;
@@ -65,6 +68,7 @@ public final class ChiselBlocks {
public static final BlockCarvable netherrack = null;
public static final BlockCarvable mossy_cobblestone = null;
public static final BlockCarvable stonebricksmooth = null;
public static final BlockCarvable hardenedClay = null;
public static final BlockCarvablePane iron_bars = null;
public static final BlockCarvableIce ice = null;
public static final BlockCarvableIce ice_pillar = null;
@@ -146,6 +150,7 @@ public final class ChiselBlocks {
public static BlockCarvableStairs[] limestoneStairs = new BlockCarvableStairs[8];
public static BlockCarvableIceStairs[] iceStairs = new BlockCarvableIceStairs[8];
public static BlockCarvablePackedIceStairs[] packediceStairs = new BlockCarvablePackedIceStairs[8];
public static BlockCarvableConcreteStairs[] concreteStairs = new BlockCarvableConcreteStairs[6];
public static Block[] torches = new BlockCarvableTorch[16];
@@ -172,5 +177,34 @@ public final class ChiselBlocks {
// 1.19, skipped 10 versions but thats fine
public static final BlockCarvable froglight = null;
// Backports from Dustrial Decor. Original artists are WDSPC and Evo_94!
public static final BlockCarvable lantern = null;
public static final BlockCarvable sheetmetal = null;
// June Additions
public static final BlockCarvable moss = null;
public static final BlockCarvableCarpet moss_carpet = null;
public static final BlockCarvable cobalt = null;
public static final BlockCarvable electrum = null;
public static final BlockCarvable invar = null;
public static final BlockCarvable nickel = null;
public static final BlockCarvable platinum = null;
public static final BlockCarvable cast_iron = null;
public static final BlockCarvable stainless_steel = null;
public static final BlockCarvable titanium = null;
public static final BlockCarvable tungstensteel = null;
public static final BlockCarvable rpp = null;
public static final BlockCarvable iridium = null;
public static final BlockCarvable osmium = null;
public static final BlockCarvable coral = null;
public static final BlockCarvable mud = null;
public static final BlockCarvable albumblock = null;
public static final BlockCarvable albumblock2 = null;
public static final BlockCarvable brickCustom2 = null;
public static final BlockCarvable brutalism = null;
public static final BlockConcrete road = null;
public static final BlockCarvable porcelain = null;
public static final BlockCarvable alabaster = null;
private ChiselBlocks() {}
}
@@ -119,6 +119,10 @@ public class ContainerChisel extends Container {
InventoryChiselSelection.normalSlots + 1 + 36,
false)) {
entity.inventory.setItemStack(itemstack1);
if (slotIdx == InventoryChiselSelection.normalSlots) {
slot.onPickupFromSlot(entity, itemstack1);
slot.putStack(null);
}
return null;
}
}
@@ -26,12 +26,12 @@ public class ItemUpgrade extends BaseItem {
@Override
public IIcon getIconFromDamage(int meta) {
// using modulo throughout to prevent AIOB
return this.icons[meta % Upgrade.values().length];
return this.icons[meta % Upgrade.VALUES.length];
}
@Override
public void registerIcons(IIconRegister reg) {
Upgrade[] upgrades = Upgrade.values();
Upgrade[] upgrades = Upgrade.VALUES;
for (int i = 0; i < upgrades.length; i++) {
this.icons[i] = reg.registerIcon(
Chisel.MOD_ID + ":upgrade_"
@@ -43,14 +43,14 @@ public class ItemUpgrade extends BaseItem {
@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
public void getSubItems(Item item, CreativeTabs tab, List list) {
for (int i = 0; i < Upgrade.values().length; i++) {
for (int i = 0; i < Upgrade.VALUES.length; i++) {
list.add(new ItemStack(item, 1, i));
}
}
@Override
public String getUnlocalizedName(ItemStack stack) {
Upgrade[] upgrades = Upgrade.values();
Upgrade[] upgrades = Upgrade.VALUES;
return upgrades[stack.getItemDamage() % upgrades.length].getUnlocalizedName();
}
}
@@ -11,14 +11,12 @@ import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.common.util.ForgeDirection;
import net.minecraftforge.event.entity.player.PlayerInteractEvent;
import net.minecraftforge.event.world.BlockEvent;
import net.minecraftforge.event.world.WorldEvent;
import net.minecraftforge.oredict.OreDictionary;
import com.cricketcraft.chisel.api.IChiselItem;
import com.cricketcraft.chisel.api.carving.ICarvingGroup;
import com.cricketcraft.chisel.api.carving.ICarvingVariation;
import com.cricketcraft.chisel.api.carving.IChiselMode;
import com.cricketcraft.chisel.api.rendering.TextureType;
import com.google.common.collect.Queues;
import cpw.mods.fml.common.FMLCommonHandler;
@@ -33,11 +31,10 @@ public final class ChiselController {
protected static class GuiOpen implements Runnable {
private EntityPlayer player;
private ItemStack stack;
private final EntityPlayer player;
private final ItemStack stack;
public GuiOpen(EntityPlayer player, ItemStack stack) {
super();
this.player = player;
this.stack = stack;
}
@@ -55,7 +52,7 @@ public final class ChiselController {
public static final ChiselController INSTANCE = new ChiselController();
Queue<GuiOpen> openQueue = Queues.newArrayDeque();
final Queue<GuiOpen> openQueue = Queues.newArrayDeque();
private ChiselController() {}
@@ -163,11 +160,4 @@ public final class ChiselController {
}
}
@SubscribeEvent
public void onWorldUnload(WorldEvent.Unload event) {
if (event.world.isRemote) {
TextureType.clearStatics();
}
}
}
@@ -51,6 +51,7 @@ public class ItemChisel extends Item implements IChiselItem {
super();
this.type = type;
setMaxStackSize(1);
setMaxDamage(Configurations.allowChiselDamage ? type.maxDamage : 0);
setTextureName(
Chisel.MOD_ID + ":chisel_"
+ type.name()
@@ -69,12 +70,6 @@ public class ItemChisel extends Item implements IChiselItem {
}
}
@Override
public int getMaxDamage(ItemStack stack) {
if (Configurations.allowChiselDamage) return type.maxDamage;
return 0;
}
@Override
public boolean isDamageable() {
return Configurations.allowChiselDamage;
@@ -5,3 +5,7 @@ public net.minecraft.client.renderer.Tessellator field_78417_x
# GUI stuff for item scale
protected net.minecraft.client.gui.inventory.GuiContainer func_146977_a(Lnet/minecraft/inventory/Slot;)V # drawSlot
# Checking if a resource exists
public net.minecraft.client.resources.SimpleReloadableResourceManager field_110548_a # domainResourceManagers
public net.minecraft.client.resources.FallbackResourceManager field_110540_a # resourcePacks
@@ -101,6 +101,12 @@ tile.diorite.3.desc=Diorite Bricks
tile.diorite.4.desc=Ornate Diorite
tile.diorite.5.desc=Prismatic Diorite
tile.diorite.6.desc=Diorite Small Tiles
tile.diorite.7.desc=Cobbled Diorite
tile.diorite.8.desc=Mossy Diorite
tile.diorite.9.desc=Modern Diorite
tile.diorite.10.desc=Modern Polished Diorite
tile.diorite.11.desc=Biotite-Rich Diorite
tile.diorite.12.desc=Hornblende-Rich Diorite
#Andesite
tile.chisel.andesite.name=Andesite
@@ -111,6 +117,11 @@ tile.andesite.3.desc=Andesite Bricks
tile.andesite.4.desc=Ornate Andesite
tile.andesite.5.desc=Prismatic Andesite
tile.andesite.6.desc=Andesite Small Tiles
tile.andesite.7.desc=Cobbled Andesite
tile.andesite.8.desc=Mossy Andesite
tile.andesite.9.desc=Modern Andesite
tile.andesite.10.desc=Modern Polished Andesite
tile.andesite.11.desc=Weathered Andesite
#Granite
tile.chisel.granite.name=Granite
@@ -121,6 +132,11 @@ tile.granite.3.desc=Granite Bricks
tile.granite.4.desc=Ornate Granite
tile.granite.5.desc=Prismatic Granite
tile.granite.6.desc=Granite Small Tiles
tile.granite.7.desc=Cobbled Granite
tile.granite.8.desc=Mossy Granite
tile.granite.9.desc=Modern Granite
tile.granite.10.desc=Modern Polished Granite
tile.granite.11.desc=Granitic Mineral Sand
#Auto Chisel
tile.chisel.autoChisel.name=Auto Chisel
@@ -340,6 +356,516 @@ tile.grimstone.12.desc=Smooth Grimstone Plate
tile.grimstone.13.desc=Grimstone Plate
tile.grimstone.14.desc=Flaky Grimstone
#Hardened Clay (Terracotta)
tile.chisel.hardened_clay.name=Terracotta
tile.chisel.hardened_clay2.name=Terracotta
tile.hardened_clay.0.desc=Braid Terracotta Bricks
tile.hardened_clay.1.desc=Cracked Terracotta Bricks
tile.hardened_clay.2.desc=Small Terracotta Brick Tiles
tile.hardened_clay.3.desc=Small Terracotta Bricks
tile.hardened_clay.4.desc=Aligned Terracotta Bricks
tile.hardened_clay.5.desc=Detailed Terracotta Bricks
tile.hardened_clay.6.desc=Wide Terracotta Bricks
tile.hardened_clay.7.desc=Chaotic Small Terracotta Bricks
tile.hardened_clay.8.desc=Small Disordered Terracotta Bricks
tile.hardened_clay.9.desc=Ornate Terracotta
tile.hardened_clay.10.desc=Cracked Terracotta
tile.hardened_clay.11.desc=Sunken Terracotta Panel
tile.hardened_clay.12.desc=Fancy Terracotta Bricks
tile.hardened_clay.13.desc=Fancy Terracotta Tiles
tile.hardened_clay.14.desc=Terracotta Layers
tile.hardened_clay.15.desc=Terracotta Mosaic
tile.hardened_clay.16.desc=Small Ornate Terracotta
tile.hardened_clay.17.desc=Terracotta Large Tile
tile.hardened_clay.18.desc=Terracotta Pillar
tile.hardened_clay.19.desc=Prismatic Terracotta
tile.hardened_clay.20.desc=Terracotta Bricks in a Fancy Arrangement
tile.hardened_clay.21.desc=Terracotta Panel
tile.hardened_clay.22.desc=Small Terracotta Blocks
tile.hardened_clay.23.desc=Small Terracotta Tiles
tile.hardened_clay.24.desc=Radial Carved Terracotta
tile.hardened_clay.25.desc=Engraved Terracotta Block
#Hardened Clay (Black Terracotta)
tile.chisel.hardened_clay_black.name=Black Terracotta
tile.chisel.hardened_clay_black2.name=Black Terracotta
tile.hardened_clay_black.0.desc=Braid Black Terracotta Bricks
tile.hardened_clay_black.1.desc=Cracked Black Terracotta Bricks
tile.hardened_clay_black.2.desc=Small Black Terracotta Brick Tiles
tile.hardened_clay_black.3.desc=Small Black Terracotta Bricks
tile.hardened_clay_black.4.desc=Aligned Black Terracotta Bricks
tile.hardened_clay_black.5.desc=Detailed Black Terracotta Bricks
tile.hardened_clay_black.6.desc=Wide Black Terracotta Bricks
tile.hardened_clay_black.7.desc=Chaotic Small Black Terracotta Bricks
tile.hardened_clay_black.8.desc=Small Disordered Black Terracotta Bricks
tile.hardened_clay_black.9.desc=Ornate Black Terracotta
tile.hardened_clay_black.10.desc=Cracked Black Terracotta
tile.hardened_clay_black.11.desc=Sunken Black Terracotta Panel
tile.hardened_clay_black.12.desc=Fancy Black Terracotta Bricks
tile.hardened_clay_black.13.desc=Fancy Black Terracotta Tiles
tile.hardened_clay_black.14.desc=Black Terracotta Layers
tile.hardened_clay_black.15.desc=Black Terracotta Mosaic
tile.hardened_clay_black.16.desc=Small Ornate Black Terracotta
tile.hardened_clay_black.17.desc=Black Terracotta Large Tile
tile.hardened_clay_black.18.desc=Black Terracotta Pillar
tile.hardened_clay_black.19.desc=Prismatic Black Terracotta
tile.hardened_clay_black.20.desc=Black Terracotta Bricks in a Fancy Arrangement
tile.hardened_clay_black.21.desc=Black Terracotta Panel
tile.hardened_clay_black.22.desc=Small Black Terracotta Blocks
tile.hardened_clay_black.23.desc=Small Black Terracotta Tiles
tile.hardened_clay_black.24.desc=Radial Carved Black Terracotta
tile.hardened_clay_black.25.desc=Engraved Black Terracotta Block
#Hardened Clay (Blue Terracotta)
tile.chisel.hardened_clay_blue.name=Blue Terracotta
tile.chisel.hardened_clay_blue2.name=Blue Terracotta
tile.hardened_clay_blue.0.desc=Braid Blue Terracotta Bricks
tile.hardened_clay_blue.1.desc=Cracked Blue Terracotta Bricks
tile.hardened_clay_blue.2.desc=Small Blue Terracotta Brick Tiles
tile.hardened_clay_blue.3.desc=Small Blue Terracotta Bricks
tile.hardened_clay_blue.4.desc=Aligned Blue Terracotta Bricks
tile.hardened_clay_blue.5.desc=Detailed Blue Terracotta Bricks
tile.hardened_clay_blue.6.desc=Wide Blue Terracotta Bricks
tile.hardened_clay_blue.7.desc=Chaotic Small Blue Terracotta Bricks
tile.hardened_clay_blue.8.desc=Small Disordered Blue Terracotta Bricks
tile.hardened_clay_blue.9.desc=Ornate Blue Terracotta
tile.hardened_clay_blue.10.desc=Cracked Blue Terracotta
tile.hardened_clay_blue.11.desc=Sunken Blue Terracotta Panel
tile.hardened_clay_blue.12.desc=Fancy Blue Terracotta Bricks
tile.hardened_clay_blue.13.desc=Fancy Blue Terracotta Tiles
tile.hardened_clay_blue.14.desc=Blue Terracotta Layers
tile.hardened_clay_blue.15.desc=Blue Terracotta Mosaic
tile.hardened_clay_blue.16.desc=Small Ornate Blue Terracotta
tile.hardened_clay_blue.17.desc=Blue Terracotta Large Tile
tile.hardened_clay_blue.18.desc=Blue Terracotta Pillar
tile.hardened_clay_blue.19.desc=Prismatic Blue Terracotta
tile.hardened_clay_blue.20.desc=Blue Terracotta Bricks in a Fancy Arrangement
tile.hardened_clay_blue.21.desc=Blue Terracotta Panel
tile.hardened_clay_blue.22.desc=Small Blue Terracotta Blocks
tile.hardened_clay_blue.23.desc=Small Blue Terracotta Tiles
tile.hardened_clay_blue.24.desc=Radial Carved Blue Terracotta
tile.hardened_clay_blue.25.desc=Engraved Blue Terracotta Block
#Hardened Clay (Brown Terracotta)
tile.chisel.hardened_clay_brown.name=Brown Terracotta
tile.chisel.hardened_clay_brown2.name=Brown Terracotta
tile.hardened_clay_brown.0.desc=Braid Brown Terracotta Bricks
tile.hardened_clay_brown.1.desc=Cracked Brown Terracotta Bricks
tile.hardened_clay_brown.2.desc=Small Brown Terracotta Brick Tiles
tile.hardened_clay_brown.3.desc=Small Brown Terracotta Bricks
tile.hardened_clay_brown.4.desc=Aligned Brown Terracotta Bricks
tile.hardened_clay_brown.5.desc=Detailed Brown Terracotta Bricks
tile.hardened_clay_brown.6.desc=Wide Brown Terracotta Bricks
tile.hardened_clay_brown.7.desc=Chaotic Small Brown Terracotta Bricks
tile.hardened_clay_brown.8.desc=Small Disordered Brown Terracotta Bricks
tile.hardened_clay_brown.9.desc=Ornate Brown Terracotta
tile.hardened_clay_brown.10.desc=Cracked Brown Terracotta
tile.hardened_clay_brown.11.desc=Sunken Brown Terracotta Panel
tile.hardened_clay_brown.12.desc=Fancy Brown Terracotta Bricks
tile.hardened_clay_brown.13.desc=Fancy Brown Terracotta Tiles
tile.hardened_clay_brown.14.desc=Brown Terracotta Layers
tile.hardened_clay_brown.15.desc=Brown Terracotta Mosaic
tile.hardened_clay_brown.16.desc=Small Ornate Brown Terracotta
tile.hardened_clay_brown.17.desc=Brown Terracotta Large Tile
tile.hardened_clay_brown.18.desc=Brown Terracotta Pillar
tile.hardened_clay_brown.19.desc=Prismatic Brown Terracotta
tile.hardened_clay_brown.20.desc=Brown Terracotta Bricks in a Fancy Arrangement
tile.hardened_clay_brown.21.desc=Brown Terracotta Panel
tile.hardened_clay_brown.22.desc=Small Brown Terracotta Blocks
tile.hardened_clay_brown.23.desc=Small Brown Terracotta Tiles
tile.hardened_clay_brown.24.desc=Radial Carved Brown Terracotta
tile.hardened_clay_brown.25.desc=Engraved Brown Terracotta Block
#Hardened Clay (Cyan Terracotta)
tile.chisel.hardened_clay_cyan.name=Cyan Terracotta
tile.chisel.hardened_clay_cyan2.name=Cyan Terracotta
tile.hardened_clay_cyan.0.desc=Braid Cyan Terracotta Bricks
tile.hardened_clay_cyan.1.desc=Cracked Cyan Terracotta Bricks
tile.hardened_clay_cyan.2.desc=Small Cyan Terracotta Brick Tiles
tile.hardened_clay_cyan.3.desc=Small Cyan Terracotta Bricks
tile.hardened_clay_cyan.4.desc=Aligned Cyan Terracotta Bricks
tile.hardened_clay_cyan.5.desc=Detailed Cyan Terracotta Bricks
tile.hardened_clay_cyan.6.desc=Wide Cyan Terracotta Bricks
tile.hardened_clay_cyan.7.desc=Chaotic Small Cyan Terracotta Bricks
tile.hardened_clay_cyan.8.desc=Small Disordered Cyan Terracotta Bricks
tile.hardened_clay_cyan.9.desc=Ornate Cyan Terracotta
tile.hardened_clay_cyan.10.desc=Cracked Cyan Terracotta
tile.hardened_clay_cyan.11.desc=Sunken Cyan Terracotta Panel
tile.hardened_clay_cyan.12.desc=Fancy Cyan Terracotta Bricks
tile.hardened_clay_cyan.13.desc=Fancy Cyan Terracotta Tiles
tile.hardened_clay_cyan.14.desc=Cyan Terracotta Layers
tile.hardened_clay_cyan.15.desc=Cyan Terracotta Mosaic
tile.hardened_clay_cyan.16.desc=Small Ornate Cyan Terracotta
tile.hardened_clay_cyan.17.desc=Cyan Terracotta Large Tile
tile.hardened_clay_cyan.18.desc=Cyan Terracotta Pillar
tile.hardened_clay_cyan.19.desc=Prismatic Cyan Terracotta
tile.hardened_clay_cyan.20.desc=Cyan Terracotta Bricks in a Fancy Arrangement
tile.hardened_clay_cyan.21.desc=Cyan Terracotta Panel
tile.hardened_clay_cyan.22.desc=Small Cyan Terracotta Blocks
tile.hardened_clay_cyan.23.desc=Small Cyan Terracotta Tiles
tile.hardened_clay_cyan.24.desc=Radial Carved Cyan Terracotta
tile.hardened_clay_cyan.25.desc=Engraved Cyan Terracotta Block
#Hardened Clay (Gray Terracotta)
tile.chisel.hardened_clay_gray.name=Gray Terracotta
tile.chisel.hardened_clay_gray2.name=Gray Terracotta
tile.hardened_clay_gray.0.desc=Braid Gray Terracotta Bricks
tile.hardened_clay_gray.1.desc=Cracked Gray Terracotta Bricks
tile.hardened_clay_gray.2.desc=Small Gray Terracotta Brick Tiles
tile.hardened_clay_gray.3.desc=Small Gray Terracotta Bricks
tile.hardened_clay_gray.4.desc=Aligned Gray Terracotta Bricks
tile.hardened_clay_gray.5.desc=Detailed Gray Terracotta Bricks
tile.hardened_clay_gray.6.desc=Wide Gray Terracotta Bricks
tile.hardened_clay_gray.7.desc=Chaotic Small Gray Terracotta Bricks
tile.hardened_clay_gray.8.desc=Small Disordered Gray Terracotta Bricks
tile.hardened_clay_gray.9.desc=Ornate Gray Terracotta
tile.hardened_clay_gray.10.desc=Cracked Gray Terracotta
tile.hardened_clay_gray.11.desc=Sunken Gray Terracotta Panel
tile.hardened_clay_gray.12.desc=Fancy Gray Terracotta Bricks
tile.hardened_clay_gray.13.desc=Fancy Gray Terracotta Tiles
tile.hardened_clay_gray.14.desc=Gray Terracotta Layers
tile.hardened_clay_gray.15.desc=Gray Terracotta Mosaic
tile.hardened_clay_gray.16.desc=Small Ornate Gray Terracotta
tile.hardened_clay_gray.17.desc=Gray Terracotta Large Tile
tile.hardened_clay_gray.18.desc=Gray Terracotta Pillar
tile.hardened_clay_gray.19.desc=Prismatic Gray Terracotta
tile.hardened_clay_gray.20.desc=Gray Terracotta Bricks in a Fancy Arrangement
tile.hardened_clay_gray.21.desc=Gray Terracotta Panel
tile.hardened_clay_gray.22.desc=Small Gray Terracotta Blocks
tile.hardened_clay_gray.23.desc=Small Gray Terracotta Tiles
tile.hardened_clay_gray.24.desc=Radial Carved Gray Terracotta
tile.hardened_clay_gray.25.desc=Engraved Gray Terracotta Block
#Hardened Clay (Green Terracotta)
tile.chisel.hardened_clay_green.name=Green Terracotta
tile.chisel.hardened_clay_green2.name=Green Terracotta
tile.hardened_clay_green.0.desc=Braid Green Terracotta Bricks
tile.hardened_clay_green.1.desc=Cracked Green Terracotta Bricks
tile.hardened_clay_green.2.desc=Small Green Terracotta Brick Tiles
tile.hardened_clay_green.3.desc=Small Green Terracotta Bricks
tile.hardened_clay_green.4.desc=Aligned Green Terracotta Bricks
tile.hardened_clay_green.5.desc=Detailed Green Terracotta Bricks
tile.hardened_clay_green.6.desc=Wide Green Terracotta Bricks
tile.hardened_clay_green.7.desc=Chaotic Small Green Terracotta Bricks
tile.hardened_clay_green.8.desc=Small Disordered Green Terracotta Bricks
tile.hardened_clay_green.9.desc=Ornate Green Terracotta
tile.hardened_clay_green.10.desc=Cracked Green Terracotta
tile.hardened_clay_green.11.desc=Sunken Green Terracotta Panel
tile.hardened_clay_green.12.desc=Fancy Green Terracotta Bricks
tile.hardened_clay_green.13.desc=Fancy Green Terracotta Tiles
tile.hardened_clay_green.14.desc=Green Terracotta Layers
tile.hardened_clay_green.15.desc=Green Terracotta Mosaic
tile.hardened_clay_green.16.desc=Small Ornate Green Terracotta
tile.hardened_clay_green.17.desc=Green Terracotta Large Tile
tile.hardened_clay_green.18.desc=Green Terracotta Pillar
tile.hardened_clay_green.19.desc=Prismatic Green Terracotta
tile.hardened_clay_green.20.desc=Green Terracotta Bricks in a Fancy Arrangement
tile.hardened_clay_green.21.desc=Green Terracotta Panel
tile.hardened_clay_green.22.desc=Small Green Terracotta Blocks
tile.hardened_clay_green.23.desc=Small Green Terracotta Tiles
tile.hardened_clay_green.24.desc=Radial Carved Green Terracotta
tile.hardened_clay_green.25.desc=Engraved Green Terracotta Block
#Hardened Clay (Light Blue Terracotta)
tile.chisel.hardened_clay_lightblue.name=Light Blue Terracotta
tile.chisel.hardened_clay_lightblue2.name=Light Blue Terracotta
tile.hardened_clay_lightblue.0.desc=Braid Light Blue Terracotta Bricks
tile.hardened_clay_lightblue.1.desc=Cracked Light Blue Terracotta Bricks
tile.hardened_clay_lightblue.2.desc=Small Light Blue Terracotta Brick Tiles
tile.hardened_clay_lightblue.3.desc=Small Light Blue Terracotta Bricks
tile.hardened_clay_lightblue.4.desc=Aligned Light Blue Terracotta Bricks
tile.hardened_clay_lightblue.5.desc=Detailed Light Blue Terracotta Bricks
tile.hardened_clay_lightblue.6.desc=Wide Light Blue Terracotta Bricks
tile.hardened_clay_lightblue.7.desc=Chaotic Small Light Blue Terracotta Bricks
tile.hardened_clay_lightblue.8.desc=Small Disordered Light Blue Terracotta Bricks
tile.hardened_clay_lightblue.9.desc=Ornate Light Blue Terracotta
tile.hardened_clay_lightblue.10.desc=Cracked Light Blue Terracotta
tile.hardened_clay_lightblue.11.desc=Sunken Light Blue Terracotta Panel
tile.hardened_clay_lightblue.12.desc=Fancy Light Blue Terracotta Bricks
tile.hardened_clay_lightblue.13.desc=Fancy Light Blue Terracotta Tiles
tile.hardened_clay_lightblue.14.desc=Light Blue Terracotta Layers
tile.hardened_clay_lightblue.15.desc=Light Blue Terracotta Mosaic
tile.hardened_clay_lightblue.16.desc=Small Ornate Light Blue Terracotta
tile.hardened_clay_lightblue.17.desc=Light Blue Terracotta Large Tile
tile.hardened_clay_lightblue.18.desc=Light Blue Terracotta Pillar
tile.hardened_clay_lightblue.19.desc=Prismatic Light Blue Terracotta
tile.hardened_clay_lightblue.20.desc=Light Blue Terracotta Bricks in a Fancy Arrangement
tile.hardened_clay_lightblue.21.desc=Light Blue Terracotta Panel
tile.hardened_clay_lightblue.22.desc=Small Light Blue Terracotta Blocks
tile.hardened_clay_lightblue.23.desc=Small Light Blue Terracotta Tiles
tile.hardened_clay_lightblue.24.desc=Radial Carved Light Blue Terracotta
tile.hardened_clay_lightblue.25.desc=Engraved Light Blue Terracotta Block
#Hardened Clay (Light Gray Terracotta)
tile.chisel.hardened_clay_lightgray.name=Light Gray Terracotta
tile.chisel.hardened_clay_lightgray2.name=Light Gray Terracotta
tile.hardened_clay_lightgray.0.desc=Braid Light Gray Terracotta Bricks
tile.hardened_clay_lightgray.1.desc=Cracked Light Gray Terracotta Bricks
tile.hardened_clay_lightgray.2.desc=Small Light Gray Terracotta Brick Tiles
tile.hardened_clay_lightgray.3.desc=Small Light Gray Terracotta Bricks
tile.hardened_clay_lightgray.4.desc=Aligned Light Gray Terracotta Bricks
tile.hardened_clay_lightgray.5.desc=Detailed Light Gray Terracotta Bricks
tile.hardened_clay_lightgray.6.desc=Wide Light Gray Terracotta Bricks
tile.hardened_clay_lightgray.7.desc=Chaotic Small Light Gray Terracotta Bricks
tile.hardened_clay_lightgray.8.desc=Small Disordered Light Gray Terracotta Bricks
tile.hardened_clay_lightgray.9.desc=Ornate Light Gray Terracotta
tile.hardened_clay_lightgray.10.desc=Cracked Light Gray Terracotta
tile.hardened_clay_lightgray.11.desc=Sunken Light Gray Terracotta Panel
tile.hardened_clay_lightgray.12.desc=Fancy Light Gray Terracotta Bricks
tile.hardened_clay_lightgray.13.desc=Fancy Light Gray Terracotta Tiles
tile.hardened_clay_lightgray.14.desc=Light Gray Terracotta Layers
tile.hardened_clay_lightgray.15.desc=Light Gray Terracotta Mosaic
tile.hardened_clay_lightgray.16.desc=Small Ornate Light Gray Terracotta
tile.hardened_clay_lightgray.17.desc=Light Gray Terracotta Large Tile
tile.hardened_clay_lightgray.18.desc=Light Gray Terracotta Pillar
tile.hardened_clay_lightgray.19.desc=Prismatic Light Gray Terracotta
tile.hardened_clay_lightgray.20.desc=Light Gray Terracotta Bricks in a Fancy Arrangement
tile.hardened_clay_lightgray.21.desc=Light Gray Terracotta Panel
tile.hardened_clay_lightgray.22.desc=Small Light Gray Terracotta Blocks
tile.hardened_clay_lightgray.23.desc=Small Light Gray Terracotta Tiles
tile.hardened_clay_lightgray.24.desc=Radial Carved Light Gray Terracotta
tile.hardened_clay_lightgray.25.desc=Engraved Light Gray Terracotta Block
#Hardened Clay (Lime Terracotta)
tile.chisel.hardened_clay_lime.name=Lime Terracotta
tile.chisel.hardened_clay_lime2.name=Lime Terracotta
tile.hardened_clay_lime.0.desc=Braid Lime Terracotta Bricks
tile.hardened_clay_lime.1.desc=Cracked Lime Terracotta Bricks
tile.hardened_clay_lime.2.desc=Small Lime Terracotta Brick Tiles
tile.hardened_clay_lime.3.desc=Small Lime Terracotta Bricks
tile.hardened_clay_lime.4.desc=Aligned Lime Terracotta Bricks
tile.hardened_clay_lime.5.desc=Detailed Lime Terracotta Bricks
tile.hardened_clay_lime.6.desc=Wide Lime Terracotta Bricks
tile.hardened_clay_lime.7.desc=Chaotic Small Lime Terracotta Bricks
tile.hardened_clay_lime.8.desc=Small Disordered Lime Terracotta Bricks
tile.hardened_clay_lime.9.desc=Ornate Lime Terracotta
tile.hardened_clay_lime.10.desc=Cracked Lime Terracotta
tile.hardened_clay_lime.11.desc=Sunken Lime Terracotta Panel
tile.hardened_clay_lime.12.desc=Fancy Lime Terracotta Bricks
tile.hardened_clay_lime.13.desc=Fancy Lime Terracotta Tiles
tile.hardened_clay_lime.14.desc=Lime Terracotta Layers
tile.hardened_clay_lime.15.desc=Lime Terracotta Mosaic
tile.hardened_clay_lime.16.desc=Small Ornate Lime Terracotta
tile.hardened_clay_lime.17.desc=Lime Terracotta Large Tile
tile.hardened_clay_lime.18.desc=Lime Terracotta Pillar
tile.hardened_clay_lime.19.desc=Prismatic Lime Terracotta
tile.hardened_clay_lime.20.desc=Lime Terracotta Bricks in a Fancy Arrangement
tile.hardened_clay_lime.21.desc=Lime Terracotta Panel
tile.hardened_clay_lime.22.desc=Small Lime Terracotta Blocks
tile.hardened_clay_lime.23.desc=Small Lime Terracotta Tiles
tile.hardened_clay_lime.24.desc=Radial Carved Lime Terracotta
tile.hardened_clay_lime.25.desc=Engraved Lime Terracotta Block
#Hardened Clay (Magenta Terracotta)
tile.chisel.hardened_clay_magenta.name=Magenta Terracotta
tile.chisel.hardened_clay_magenta2.name=Magenta Terracotta
tile.hardened_clay_magenta.0.desc=Braid Magenta Terracotta Bricks
tile.hardened_clay_magenta.1.desc=Cracked Magenta Terracotta Bricks
tile.hardened_clay_magenta.2.desc=Small Magenta Terracotta Brick Tiles
tile.hardened_clay_magenta.3.desc=Small Magenta Terracotta Bricks
tile.hardened_clay_magenta.4.desc=Aligned Magenta Terracotta Bricks
tile.hardened_clay_magenta.5.desc=Detailed Magenta Terracotta Bricks
tile.hardened_clay_magenta.6.desc=Wide Magenta Terracotta Bricks
tile.hardened_clay_magenta.7.desc=Chaotic Small Magenta Terracotta Bricks
tile.hardened_clay_magenta.8.desc=Small Disordered Magenta Terracotta Bricks
tile.hardened_clay_magenta.9.desc=Ornate Magenta Terracotta
tile.hardened_clay_magenta.10.desc=Cracked Magenta Terracotta
tile.hardened_clay_magenta.11.desc=Sunken Magenta Terracotta Panel
tile.hardened_clay_magenta.12.desc=Fancy Magenta Terracotta Bricks
tile.hardened_clay_magenta.13.desc=Fancy Magenta Terracotta Tiles
tile.hardened_clay_magenta.14.desc=Magenta Terracotta Layers
tile.hardened_clay_magenta.15.desc=Magenta Terracotta Mosaic
tile.hardened_clay_magenta.16.desc=Small Ornate Magenta Terracotta
tile.hardened_clay_magenta.17.desc=Magenta Terracotta Large Tile
tile.hardened_clay_magenta.18.desc=Magenta Terracotta Pillar
tile.hardened_clay_magenta.19.desc=Prismatic Magenta Terracotta
tile.hardened_clay_magenta.20.desc=Magenta Terracotta Bricks in a Fancy Arrangement
tile.hardened_clay_magenta.21.desc=Magenta Terracotta Panel
tile.hardened_clay_magenta.22.desc=Small Magenta Terracotta Blocks
tile.hardened_clay_magenta.23.desc=Small Magenta Terracotta Tiles
tile.hardened_clay_magenta.24.desc=Radial Carved Magenta Terracotta
tile.hardened_clay_magenta.25.desc=Engraved Magenta Terracotta Block
#Hardened Clay (Orange Terracotta)
tile.chisel.hardened_clay_orange.name=Orange Terracotta
tile.chisel.hardened_clay_orange2.name=Orange Terracotta
tile.hardened_clay_orange.0.desc=Braid Orange Terracotta Bricks
tile.hardened_clay_orange.1.desc=Cracked Orange Terracotta Bricks
tile.hardened_clay_orange.2.desc=Small Orange Terracotta Brick Tiles
tile.hardened_clay_orange.3.desc=Small Orange Terracotta Bricks
tile.hardened_clay_orange.4.desc=Aligned Orange Terracotta Bricks
tile.hardened_clay_orange.5.desc=Detailed Orange Terracotta Bricks
tile.hardened_clay_orange.6.desc=Wide Orange Terracotta Bricks
tile.hardened_clay_orange.7.desc=Chaotic Small Orange Terracotta Bricks
tile.hardened_clay_orange.8.desc=Small Disordered Orange Terracotta Bricks
tile.hardened_clay_orange.9.desc=Ornate Orange Terracotta
tile.hardened_clay_orange.10.desc=Cracked Orange Terracotta
tile.hardened_clay_orange.11.desc=Sunken Orange Terracotta Panel
tile.hardened_clay_orange.12.desc=Fancy Orange Terracotta Bricks
tile.hardened_clay_orange.13.desc=Fancy Orange Terracotta Tiles
tile.hardened_clay_orange.14.desc=Orange Terracotta Layers
tile.hardened_clay_orange.15.desc=Orange Terracotta Mosaic
tile.hardened_clay_orange.16.desc=Small Ornate Orange Terracotta
tile.hardened_clay_orange.17.desc=Orange Terracotta Large Tile
tile.hardened_clay_orange.18.desc=Orange Terracotta Pillar
tile.hardened_clay_orange.19.desc=Prismatic Orange Terracotta
tile.hardened_clay_orange.20.desc=Orange Terracotta Bricks in a Fancy Arrangement
tile.hardened_clay_orange.21.desc=Orange Terracotta Panel
tile.hardened_clay_orange.22.desc=Small Orange Terracotta Blocks
tile.hardened_clay_orange.23.desc=Small Orange Terracotta Tiles
tile.hardened_clay_orange.24.desc=Radial Carved Orange Terracotta
tile.hardened_clay_orange.25.desc=Engraved Orange Terracotta Block
#Hardened Clay (Pink Terracotta)
tile.chisel.hardened_clay_pink.name=Pink Terracotta
tile.chisel.hardened_clay_pink2.name=Pink Terracotta
tile.hardened_clay_pink.0.desc=Braid Pink Terracotta Bricks
tile.hardened_clay_pink.1.desc=Cracked Pink Terracotta Bricks
tile.hardened_clay_pink.2.desc=Small Pink Terracotta Brick Tiles
tile.hardened_clay_pink.3.desc=Small Pink Terracotta Bricks
tile.hardened_clay_pink.4.desc=Aligned Pink Terracotta Bricks
tile.hardened_clay_pink.5.desc=Detailed Pink Terracotta Bricks
tile.hardened_clay_pink.6.desc=Wide Pink Terracotta Bricks
tile.hardened_clay_pink.7.desc=Chaotic Small Pink Terracotta Bricks
tile.hardened_clay_pink.8.desc=Small Disordered Pink Terracotta Bricks
tile.hardened_clay_pink.9.desc=Ornate Pink Terracotta
tile.hardened_clay_pink.10.desc=Cracked Pink Terracotta
tile.hardened_clay_pink.11.desc=Sunken Pink Terracotta Panel
tile.hardened_clay_pink.12.desc=Fancy Pink Terracotta Bricks
tile.hardened_clay_pink.13.desc=Fancy Pink Terracotta Tiles
tile.hardened_clay_pink.14.desc=Pink Terracotta Layers
tile.hardened_clay_pink.15.desc=Pink Terracotta Mosaic
tile.hardened_clay_pink.16.desc=Small Ornate Pink Terracotta
tile.hardened_clay_pink.17.desc=Pink Terracotta Large Tile
tile.hardened_clay_pink.18.desc=Pink Terracotta Pillar
tile.hardened_clay_pink.19.desc=Prismatic Pink Terracotta
tile.hardened_clay_pink.20.desc=Pink Terracotta Bricks in a Fancy Arrangement
tile.hardened_clay_pink.21.desc=Pink Terracotta Panel
tile.hardened_clay_pink.22.desc=Small Pink Terracotta Blocks
tile.hardened_clay_pink.23.desc=Small Pink Terracotta Tiles
tile.hardened_clay_pink.24.desc=Radial Carved Pink Terracotta
tile.hardened_clay_pink.25.desc=Engraved Pink Terracotta Block
#Hardened Clay (Purple Terracotta)
tile.chisel.hardened_clay_purple.name=Purple Terracotta
tile.chisel.hardened_clay_purple2.name=Purple Terracotta
tile.hardened_clay_purple.0.desc=Braid Purple Terracotta Bricks
tile.hardened_clay_purple.1.desc=Cracked Purple Terracotta Bricks
tile.hardened_clay_purple.2.desc=Small Purple Terracotta Brick Tiles
tile.hardened_clay_purple.3.desc=Small Purple Terracotta Bricks
tile.hardened_clay_purple.4.desc=Aligned Purple Terracotta Bricks
tile.hardened_clay_purple.5.desc=Detailed Purple Terracotta Bricks
tile.hardened_clay_purple.6.desc=Wide Purple Terracotta Bricks
tile.hardened_clay_purple.7.desc=Chaotic Small Purple Terracotta Bricks
tile.hardened_clay_purple.8.desc=Small Disordered Purple Terracotta Bricks
tile.hardened_clay_purple.9.desc=Ornate Purple Terracotta
tile.hardened_clay_purple.10.desc=Cracked Purple Terracotta
tile.hardened_clay_purple.11.desc=Sunken Purple Terracotta Panel
tile.hardened_clay_purple.12.desc=Fancy Purple Terracotta Bricks
tile.hardened_clay_purple.13.desc=Fancy Purple Terracotta Tiles
tile.hardened_clay_purple.14.desc=Purple Terracotta Layers
tile.hardened_clay_purple.15.desc=Purple Terracotta Mosaic
tile.hardened_clay_purple.16.desc=Small Ornate Purple Terracotta
tile.hardened_clay_purple.17.desc=Purple Terracotta Large Tile
tile.hardened_clay_purple.18.desc=Purple Terracotta Pillar
tile.hardened_clay_purple.19.desc=Prismatic Purple Terracotta
tile.hardened_clay_purple.20.desc=Purple Terracotta Bricks in a Fancy Arrangement
tile.hardened_clay_purple.21.desc=Purple Terracotta Panel
tile.hardened_clay_purple.22.desc=Small Purple Terracotta Blocks
tile.hardened_clay_purple.23.desc=Small Purple Terracotta Tiles
tile.hardened_clay_purple.24.desc=Radial Carved Purple Terracotta
tile.hardened_clay_purple.25.desc=Engraved Purple Terracotta Block
#Hardened Clay (Red Terracotta)
tile.chisel.hardened_clay_red.name=Red Terracotta
tile.chisel.hardened_clay_red2.name=Red Terracotta
tile.hardened_clay_red.0.desc=Braid Red Terracotta Bricks
tile.hardened_clay_red.1.desc=Cracked Red Terracotta Bricks
tile.hardened_clay_red.2.desc=Small Red Terracotta Brick Tiles
tile.hardened_clay_red.3.desc=Small Red Terracotta Bricks
tile.hardened_clay_red.4.desc=Aligned Red Terracotta Bricks
tile.hardened_clay_red.5.desc=Detailed Red Terracotta Bricks
tile.hardened_clay_red.6.desc=Wide Red Terracotta Bricks
tile.hardened_clay_red.7.desc=Chaotic Small Red Terracotta Bricks
tile.hardened_clay_red.8.desc=Small Disordered Red Terracotta Bricks
tile.hardened_clay_red.9.desc=Ornate Red Terracotta
tile.hardened_clay_red.10.desc=Cracked Red Terracotta
tile.hardened_clay_red.11.desc=Sunken Red Terracotta Panel
tile.hardened_clay_red.12.desc=Fancy Red Terracotta Bricks
tile.hardened_clay_red.13.desc=Fancy Red Terracotta Tiles
tile.hardened_clay_red.14.desc=Red Terracotta Layers
tile.hardened_clay_red.15.desc=Red Terracotta Mosaic
tile.hardened_clay_red.16.desc=Small Ornate Red Terracotta
tile.hardened_clay_red.17.desc=Red Terracotta Large Tile
tile.hardened_clay_red.18.desc=Red Terracotta Pillar
tile.hardened_clay_red.19.desc=Prismatic Red Terracotta
tile.hardened_clay_red.20.desc=Red Terracotta Bricks in a Fancy Arrangement
tile.hardened_clay_red.21.desc=Red Terracotta Panel
tile.hardened_clay_red.22.desc=Small Red Terracotta Blocks
tile.hardened_clay_red.23.desc=Small Red Terracotta Tiles
tile.hardened_clay_red.24.desc=Radial Carved Red Terracotta
tile.hardened_clay_red.25.desc=Engraved Red Terracotta Block
#Hardened Clay (White Terracotta)
tile.chisel.hardened_clay_white.name=White Terracotta
tile.chisel.hardened_clay_white2.name=White Terracotta
tile.hardened_clay_white.0.desc=Braid White Terracotta Bricks
tile.hardened_clay_white.1.desc=Cracked White Terracotta Bricks
tile.hardened_clay_white.2.desc=Small White Terracotta Brick Tiles
tile.hardened_clay_white.3.desc=Small White Terracotta Bricks
tile.hardened_clay_white.4.desc=Aligned White Terracotta Bricks
tile.hardened_clay_white.5.desc=Detailed White Terracotta Bricks
tile.hardened_clay_white.6.desc=Wide White Terracotta Bricks
tile.hardened_clay_white.7.desc=Chaotic Small White Terracotta Bricks
tile.hardened_clay_white.8.desc=Small Disordered White Terracotta Bricks
tile.hardened_clay_white.9.desc=Ornate White Terracotta
tile.hardened_clay_white.10.desc=Cracked White Terracotta
tile.hardened_clay_white.11.desc=Sunken White Terracotta Panel
tile.hardened_clay_white.12.desc=Fancy White Terracotta Bricks
tile.hardened_clay_white.13.desc=Fancy White Terracotta Tiles
tile.hardened_clay_white.14.desc=White Terracotta Layers
tile.hardened_clay_white.15.desc=White Terracotta Mosaic
tile.hardened_clay_white.16.desc=Small Ornate White Terracotta
tile.hardened_clay_white.17.desc=White Terracotta Large Tile
tile.hardened_clay_white.18.desc=White Terracotta Pillar
tile.hardened_clay_white.19.desc=Prismatic White Terracotta
tile.hardened_clay_white.20.desc=White Terracotta Bricks in a Fancy Arrangement
tile.hardened_clay_white.21.desc=White Terracotta Panel
tile.hardened_clay_white.22.desc=Small White Terracotta Blocks
tile.hardened_clay_white.23.desc=Small White Terracotta Tiles
tile.hardened_clay_white.24.desc=Radial Carved White Terracotta
tile.hardened_clay_white.25.desc=Engraved White Terracotta Block
#Hardened Clay (Yellow Terracotta)
tile.chisel.hardened_clay_yellow.name=Yellow Terracotta
tile.chisel.hardened_clay_yellow2.name=Yellow Terracotta
tile.hardened_clay_yellow.0.desc=Braid Yellow Terracotta Bricks
tile.hardened_clay_yellow.1.desc=Cracked Yellow Terracotta Bricks
tile.hardened_clay_yellow.2.desc=Small Yellow Terracotta Brick Tiles
tile.hardened_clay_yellow.3.desc=Small Yellow Terracotta Bricks
tile.hardened_clay_yellow.4.desc=Aligned Yellow Terracotta Bricks
tile.hardened_clay_yellow.5.desc=Detailed Yellow Terracotta Bricks
tile.hardened_clay_yellow.6.desc=Wide Yellow Terracotta Bricks
tile.hardened_clay_yellow.7.desc=Chaotic Small Yellow Terracotta Bricks
tile.hardened_clay_yellow.8.desc=Small Disordered Yellow Terracotta Bricks
tile.hardened_clay_yellow.9.desc=Ornate Yellow Terracotta
tile.hardened_clay_yellow.10.desc=Cracked Yellow Terracotta
tile.hardened_clay_yellow.11.desc=Sunken Yellow Terracotta Panel
tile.hardened_clay_yellow.12.desc=Fancy Yellow Terracotta Bricks
tile.hardened_clay_yellow.13.desc=Fancy Yellow Terracotta Tiles
tile.hardened_clay_yellow.14.desc=Yellow Terracotta Layers
tile.hardened_clay_yellow.15.desc=Yellow Terracotta Mosaic
tile.hardened_clay_yellow.16.desc=Small Ornate Yellow Terracotta
tile.hardened_clay_yellow.17.desc=Yellow Terracotta Large Tile
tile.hardened_clay_yellow.18.desc=Yellow Terracotta Pillar
tile.hardened_clay_yellow.19.desc=Prismatic Yellow Terracotta
tile.hardened_clay_yellow.20.desc=Yellow Terracotta Bricks in a Fancy Arrangement
tile.hardened_clay_yellow.21.desc=Yellow Terracotta Panel
tile.hardened_clay_yellow.22.desc=Small Yellow Terracotta Blocks
tile.hardened_clay_yellow.23.desc=Small Yellow Terracotta Tiles
tile.hardened_clay_yellow.24.desc=Radial Carved Yellow Terracotta
tile.hardened_clay_yellow.25.desc=Engraved Yellow Terracotta Block
#Technical Block
tile.chisel.technical.name=Technical Block
tile.chisel.technical2.name=Transparent Technical Block
@@ -371,6 +897,12 @@ tile.technical4.4.desc=Thermal Exhaust Plating
tile.technical4.5.desc=Makeshift Plating
tile.technical4.6.desc=Pipe Dream
tile.technical4.7.desc=Worn Concrete
tile.technical4.8.desc=Cinder Block
tile.technical4.9.desc=Cinder Block (Polished)
tile.technical4.10.desc=Cinder Brick
tile.technical4.11.desc=Cardboard Box
tile.technical4.12.desc=Folded Cardboard
tile.technical4.13.desc=Cardboard Scrap
tile.technical4.16.desc=Tape Drive? (I'm too young for this.)
#End Stone
@@ -433,11 +965,24 @@ tile.chisel.present.desc=A pretty present chest
#Brick
tile.chisel.brickCustom.name=Brick Block
tile.chisel.brickCustom2.name=Brick Block
tile.brickCustom.1.desc=Large Bricks
tile.brickCustom.2.desc=Mortarless Bricks
tile.brickCustom.3.desc=Varied Bricks
tile.brickCustom.4.desc=Oops! All Mortar!
tile.brickCustom.5.desc=Aged Bricks
tile.brickCustom.6.desc=Yellow Bricks
tile.brickCustom.7.desc=Brick Tile
tile.brickCustom.8.desc=Brick Panel
tile.brickCustom.9.desc=Brown Bricks
tile.brickCustom.10.desc=Modern Bricks
tile.brickCustom.11.desc=White Bricks
tile.brickCustom.12.desc=Black Bricks
tile.brickCustom.13.desc=Sooty Bricks
tile.brickCustom.14.desc=Mossy Bricks
tile.brickCustom.15.desc=Neutral Bricks
tile.brickCustom2.0.desc=Left-Bordered Bricks
tile.brickCustom2.1.desc=Right-Bordered Bricks
#Chisel 1
@@ -708,6 +1253,7 @@ tile.diamond.9.desc=Small Diamond Blocks
tile.diamond.10.desc=Small Ornate Diamond Blocks
tile.diamond.11.desc=Zelda Diamond Block
tile.diamond.12.desc=Diamond Block with Ornate Layer
tile.diamond.13.desc=Modern Diamond Block
#Snakestone
tile.chisel.snakestoneSand.name=Sand Snakestone
@@ -734,6 +1280,7 @@ tile.glass.15.desc=Modern Iron Fence
tile.chisel.glass2.name=Glass
tile.glass2.0.desc=Asymmetrical Leaded Glass
tile.glass2.1.desc=Modern Glass
#Sandstone
tile.chisel.sandstone.name=Sandstone
@@ -777,6 +1324,44 @@ tile.concrete.8.desc=Partly Weathered Concrete
tile.concrete.9.desc=Partly Weathered Concrete Block
tile.concrete.10.desc=Asphalt
#Concrete Slabs
tile.chisel.concrete_slab.name=Concrete Slab
tile.concreteSlab.0.desc=Concrete Slab
tile.concreteSlab.1.desc=Concrete Block Slab
tile.concreteSlab.2.desc=Concrete Double Slab
tile.concreteSlab.3.desc=Small Concrete Block Slab
tile.concreteSlab.4.desc=Weathered Concrete Slab
tile.concreteSlab.5.desc=Weathered Concrete Block Slab
tile.concreteSlab.6.desc=Weathered Concrete Double Slab
tile.concreteSlab.7.desc=Small Weathered Block Slab
tile.concreteSlab.8.desc=Partly Weathered Concrete Slab
tile.concreteSlab.9.desc=Partly Weathered Concrete Block Slab
tile.concreteSlab.10.desc=Asphalt
#Concrete Stairs
#The same name goes here 8 different times since stairs take up 8 block positions.
#Sorry! It was the only way! Maybe one day it will be fixed...
tile.chisel.concrete_stairs.0.name=Concrete Stairs
tile.chisel.concrete_stairs.1.name=Concrete Stairs
tile.chisel.concrete_stairs.2.name=Concrete Stairs
tile.chisel.concrete_stairs.3.name=Concrete Stairs
tile.chisel.concrete_stairs.4.name=Concrete Stairs
tile.chisel.concrete_stairs.5.name=Concrete Stairs
tile.chisel.concrete_stairs.6.name=Concrete Stairs
tile.chisel.concrete_stairs.7.name=Concrete Stairs
tile.concreteStairs.0.desc=Concrete Stairs
tile.concreteStairs.1.desc=Concrete Block Stairs
tile.concreteStairs.2.desc=Concrete Double Slab Stairs
tile.concreteStairs.3.desc=Small Concrete Block Stairs
tile.concreteStairs.4.desc=Weathered Concrete Stairs
tile.concreteStairs.5.desc=Weathered Concrete Block Stairs
tile.concreteStairs.6.desc=Weathered Concrete Double Slab Stairs
tile.concreteStairs.7.desc=Small Weathered Block Stairs
tile.concreteStairs.8.desc=Partly Weathered Concrete Stairs
tile.concreteStairs.9.desc=Partly Weathered Concrete Block Stairs
tile.concreteStairs.10.desc=Asphalt Stairs
# Road Line
tile.chisel.road_line.name=Road Lines
tile.roadLine.0.desc=White
@@ -787,6 +1372,7 @@ tile.roadLine.4.desc=Hazard Tape
#Iron Blocks
tile.chisel.iron_block.name=Iron Block
tile.iron.0.desc=Rusted Block
tile.iron.1.desc=Large Iron Ingots
tile.iron.2.desc=Small Iron Ingots
tile.iron.3.desc=Iron Gears
@@ -819,6 +1405,7 @@ tile.gold.11.desc=Gold Block with Star Decoration
tile.gold.12.desc=Golden Star in Purple Obsidian
tile.gold.13.desc=Golden Star in Obsidian
tile.gold.14.desc=Simple Gold Block
tile.gold.15.desc=Modern Gold Block
#Glowstone
tile.chisel.glowstone.name=Glowstone
@@ -848,6 +1435,7 @@ tile.lapis.5.desc=Lapis Tile
tile.lapis.6.desc=Lapis Panel
tile.lapis.7.desc=Smooth Lapis
tile.lapis.8.desc=Lapis with Ornate Layer
tile.lapis.9.desc=Modern Lapis
#Emerald Blocks
tile.chisel.emerald_block.name=Emerald Block
@@ -862,6 +1450,7 @@ tile.emerald.8.desc=Emerald Bismuth
tile.emerald.9.desc=Small Emerald Blocks
tile.emerald.10.desc=Small Ornate Emerald Blocks
tile.emerald.11.desc=Ornate Emerald Block
tile.emerald.12.desc=Modern Emerald Block
#Nether Brick
tile.chisel.nether_brick.name=Nether Brick
@@ -2148,7 +2737,7 @@ tile.neonite.5.desc=Fresh Green
tile.neonite.6.desc=Jungle Green
tile.neonite.7.desc=Mariner
tile.neonite.8.desc=Congress Blue
tile.neonite.9.desc=Deep Saphire
tile.neonite.9.desc=Deep Sapphire
tile.neonite.10.desc=Deep Cove
tile.neonite.11.desc=Meteorite
tile.neonite.12.desc=Eminence
@@ -2188,5 +2777,197 @@ tile.froglight.7.desc=Orundum
tile.froglight.8.desc=Blood-Stained
tile.froglight.9.desc=Ichor
#Lanterns
tile.chisel.lantern.name=Lantern
tile.lantern.0.desc=Simple
tile.lantern.1.desc=Glow
tile.lantern.2.desc=Redstone
tile.lantern.3.desc=Soul
tile.lantern.4.desc=Cursed
tile.lantern.5.desc=Ender
#Sheetmetal
tile.chisel.sheetmetal.name=Sheetmetal
tile.sheetmetal.0.desc=Walling
tile.sheetmetal.1.desc=Siding
tile.sheetmetal.2.desc=Paneling
tile.sheetmetal.3.desc=Plating
tile.sheetmetal.4.desc=Treading
tile.sheetmetal.5.desc=Walling (Rusty)
tile.sheetmetal.6.desc=Siding (Rusty)
tile.sheetmetal.7.desc=Paneling (Rusty)
tile.sheetmetal.8.desc=Plating (Rusty)
tile.sheetmetal.9.desc=Treading (Rusty)
#Moss
tile.chisel.moss.name=Moss
tile.chisel.moss_carpet.name=Moss Carpet
tile.moss.0.desc=Lush
tile.moss.1.desc=Pale
tile.moss.2.desc=Dark
tile.moss.3.desc=Dry
tile.moss.4.desc=Golden
tile.moss.5.desc=Infused
tile.moss.6.desc=Mutated
tile.moss.7.desc=Scorched
tile.moss.8.desc=Vivid
tile.moss.9.desc=Peaty
tile.moss.10.desc=Pink Sphagnum
#Metals2
tile.chisel.cobaltblock.name=Block of Cobalt
tile.chisel.invarblock.name=Block of Invar
tile.chisel.electrumblock.name=Block of Electrum
tile.chisel.nickelblock.name=Block of Nickel
tile.chisel.platinumblock.name=Block of Platinum
tile.chisel.castironblock.name=Block of Cast Iron
tile.chisel.stainlesssteelblock.name=Block of Stainless Steel
tile.chisel.titaniumblock.name=Block of Titanium
tile.chisel.tungstensteelblock.name=Block of Tungstensteel
tile.chisel.rppblock.name=Block of Rhodium-Plated Palladium
tile.chisel.iridiumblock.name=Block of Iridium
tile.chisel.osmiumblock.name=Block of Osmium
tile.numetalOre.0.desc=Egregious
tile.numetalOre.1.desc=Bolted Casing
tile.numetalOre.2.desc=Caution Stripes
tile.numetalOre.3.desc=Shipping Crate
tile.numetalOre.4.desc=Machinery
tile.numetalOre.5.desc=Scaffolding
tile.numetalOre.6.desc=Thermal
tile.newmetalOre.0.desc=Machinery
tile.newmetalOre.1.desc=Egregiously Modern
tile.newetalOre.2.desc=Bolted Casing
tile.newetalOre.3.desc=Caution Stripes
tile.newetalOre.4.desc=Shipping Crate
tile.newetalOre.5.desc=Egregious
tile.newetalOre.6.desc=Scaffolding
tile.newetalOre.7.desc=Thermal
tile.chisel.coral.name=Coral
tile.coral.0.desc=Brain Coral
tile.coral.1.desc=Bubble Coral
tile.coral.2.desc=Fire Coral
tile.coral.3.desc=Horn Coral
tile.coral.4.desc=Tube Coral
tile.coral.5.desc=Dead Brain Coral
tile.coral.6.desc=Dead Bubble Coral
tile.coral.7.desc=Dead Fire Coral
tile.coral.8.desc=Dead Horn Coral
tile.coral.9.desc=Dead Tube Coral
tile.coral.10.desc=Brain Coral Bricks
tile.coral.11.desc=Bubble Coral Bricks
tile.coral.12.desc=Fire Coral Bricks
tile.coral.13.desc=Horn Coral Bricks
tile.coral.14.desc=Tube Coral Bricks
tile.coral.15.desc=Dead Coral Bricks
tile.chisel.mud.name=Mud
tile.mud.0.desc=Black Mud
tile.mud.1.desc=Loamy Mud
tile.mud.2.desc=Carbonate Mud (Marl)
tile.mud.3.desc=Brown Mud
tile.mud.4.desc=Packed Mud
tile.mud.5.desc=Rooted Mud
tile.mud.6.desc=Mud Bricks
tile.chisel.albumblock.name=Musical Block
tile.chisel.albumblock2.name=Musical Block
tile.album.0.desc=That Green Gentleman
tile.album.1.desc=Pretty Odd
tile.album.2.desc=Laminated Denim
tile.album.3.desc=Dogmatica
tile.album.4.desc=And the Sky Opened Up
tile.album.5.desc=Route Guano
tile.album.6.desc=A Spell Over the West
tile.album.7.desc=I Built With Someone In Fall Out Boy And All I Got Was This Stupid Block Made About Me
tile.album.8.desc=Crumbling Castle
tile.album.9.desc=Evil Star
tile.album.10.desc=Gaia
tile.album.11.desc=Spacesick
tile.album.12.desc=Reactor
tile.album.13.desc=Resignation
tile.album.14.desc=Dead!
tile.album.15.desc=Having Too Much Fun
tile.album2.16.desc=The Cork Tree
tile.album2.17.desc=Cooperstown
tile.album2.18.desc=The Most Fun a Girl Can Have
tile.chisel.brutalism.name=Brutalist Block
tile.brutalism.0.desc=Plain Cement
tile.brutalism.1.desc=Cement Bricks
tile.brutalism.2.desc=Leafy Ecobrutalism
tile.brutalism.3.desc=Flowering Ecobrutalism
tile.brutalism.4.desc=Faux Window
tile.brutalism.5.desc=Heavily Weathered Cement
tile.brutalism.6.desc=Heavily Weathered Cement Bricks
tile.brutalism.7.desc=Reinforced Cement
tile.brutalism.8.desc=Rimmed Cement
tile.brutalism.9.desc=Lightly Weathered Cement
tile.chisel.porcelain.name=Porcelain Block
tile.porcelain.0.desc=Plain Porcelain
tile.porcelain.1.desc=Cracked Porcelain
tile.porcelain.2.desc=Kintsugi
tile.porcelain.3.desc=Blue Porcelain Tiles
tile.porcelain.4.desc=Red Porcelain Tiles
tile.porcelain.5.desc=Blue Porcelain Fish
tile.porcelain.6.desc=Blue Porcelain Flower
tile.porcelain.7.desc=Red Porcelain Dragon
tile.porcelain.9.desc=Red Porcelain Pillar
tile.porcelain.10.desc=Red And Blue Porcelain Tiles
tile.porcelain.11.desc=Kintsugi Tiles
tile.porcelain.12.desc=Polished Porcelain
tile.porcelain.13.desc=Faux Ivory
tile.chisel.alabaster.name=Alabaster Block
tile.alabaster.0.desc=Calcite-Rich
tile.alabaster.1.desc=Chartreuse
tile.alabaster.2.desc=Lavender
tile.alabaster.3.desc=Lilac
tile.alabaster.4.desc=Mauve
tile.alabaster.5.desc=French Grey
tile.alabaster.6.desc=Peach
tile.alabaster.7.desc=Periwinkle
tile.alabaster.8.desc=Sage Green
tile.alabaster.9.desc=Sky Blue
tile.alabaster.10.desc=Cream
tile.chisel.road.name=Road Block
tile.chisel.road2.name=Road Block
tile.road.0.desc=Asphalt
tile.road.1.desc=Crosswalk
tile.road.2.desc=Double White Lines
tile.road.3.desc=Double Yellow Lines
tile.road.4.desc=Dirt Road
tile.road.5.desc=Diverging Lane Marking
tile.road.6.desc=Dotted White Line
tile.road.7.desc=Dotted Yellow Line
tile.road.8.desc=Single Yellow Line - East
tile.road.9.desc=Single Yellow Line - North
tile.road.10.desc=Single Yellow Line - South
tile.road.11.desc=Single Yellow Line - West
tile.road.12.desc=Left Lane
tile.road.13.desc=Right Lane
tile.road.14.desc=Thick White Line
tile.road.15.desc=White Outlined Road
tile.road.16.desc=Passing Lane - East
tile.road.17.desc=Passing Lane - North
tile.road.18.desc=Passing Lane - South
tile.road.19.desc=Passing Lane - West
tile.road.20.desc=Double Yellow Lines With Reflectors
tile.road.21.desc=Solid Yellow Line - East/West
tile.road.22.desc=Solid Yellow Line - North/South
tile.road.23.desc=Converging Lane Marking
tile.road.24.desc=White Painted Asphalt
tile.road.25.desc=Yellow Painted Asphalt
tile.road.26.desc=Gravel Road
tile.road.27.desc=Solid White Line - North/South
tile.road.28.desc=Solid White Line - East/West
tile.road.29.desc=Weathered Asphalt
tile.road.30.desc=Weathering Asphalt
tile.road.31.desc=Overgrown Dirt Road
tile.chisel.amber.name=Block of Amber
tile.chisel.bloodBrick.name=Bloodstone Brick
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.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: 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: 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.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: 2.0 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: 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.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.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: 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.8 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.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 869 B

After

Width:  |  Height:  |  Size: 822 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 834 B

After

Width:  |  Height:  |  Size: 775 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 904 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 566 B

After

Width:  |  Height:  |  Size: 562 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 682 B

After

Width:  |  Height:  |  Size: 680 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 850 B

After

Width:  |  Height:  |  Size: 842 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

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