Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4ce0134bed | ||
|
|
21caa10d34 | ||
|
|
4001d105a8 | ||
|
|
b5514a9aa0 | ||
|
|
c1f3c93bc3 | ||
|
|
5a2852532b | ||
|
|
189b3bc95c | ||
|
|
126ca91eeb | ||
|
|
477b6e354c | ||
|
|
c312d2c311 | ||
|
|
4c0218c708 | ||
|
|
3568223fc6 | ||
|
|
019f9a670a | ||
|
|
29be0033d7 | ||
|
|
2165ec04ea | ||
|
|
3da974b1cf | ||
|
|
637001538c | ||
|
|
95c8c72db5 | ||
|
|
2415e17583 | ||
|
|
0cabe335dd | ||
|
|
568e405e25 | ||
|
|
e851556159 | ||
|
|
b610b590a2 | ||
|
|
6788f10a3e | ||
|
|
691d3a2962 | ||
|
|
a99686e3a8 | ||
|
|
6064b7bc3d | ||
|
|
3b8a85a20d | ||
|
|
772987a4f2 | ||
|
|
33f240c73a |
No files matched your search
@@ -27,3 +27,4 @@ whitelist.json
|
||||
*.iws
|
||||
src/main/resources/mixins.*.json
|
||||
*.bat
|
||||
layout.json
|
||||
@@ -1,24 +1,23 @@
|
||||
// Add your dependencies here
|
||||
|
||||
dependencies {
|
||||
implementation("com.github.GTNewHorizons:CodeChickenCore:1.2.0:dev")
|
||||
implementation("com.github.GTNewHorizons:CodeChickenLib:1.2.0:dev")
|
||||
implementation("com.github.GTNewHorizons:NotEnoughItems:2.5.4-GTNH:dev")
|
||||
implementation("com.github.GTNewHorizons:ForgeMultipart:1.4.7:dev")
|
||||
implementation("com.github.GTNewHorizons:CodeChickenCore:1.4.3:dev")
|
||||
implementation("com.github.GTNewHorizons:NotEnoughItems:2.7.69-GTNH:dev")
|
||||
implementation("com.github.GTNewHorizons:ForgeMultipart:1.6.7:dev")
|
||||
|
||||
compileOnly("org.projectlombok:lombok:1.18.24")
|
||||
annotationProcessor("org.projectlombok:lombok:1.18.24")
|
||||
|
||||
devOnlyNonPublishable("com.github.GTNewHorizons:waila:1.6.5:dev") {
|
||||
devOnlyNonPublishable("com.github.GTNewHorizons:waila:1.8.12:dev") {
|
||||
transitive = false
|
||||
}
|
||||
devOnlyNonPublishable("com.github.GTNewHorizons:WailaHarvestability:1.2.0-GTNH:dev")
|
||||
devOnlyNonPublishable("com.github.GTNewHorizons:WailaHarvestability:1.3.4-GTNH:dev")
|
||||
|
||||
compileOnly("curse.maven:ee3-65509:2305023") { // https://www.curseforge.com/minecraft/mc-mods/ee3/files/2305023
|
||||
transitive = false
|
||||
}
|
||||
|
||||
compileOnly("com.github.GTNewHorizons:Angelica:1.0.0-alpha28:api") {
|
||||
compileOnly("com.github.GTNewHorizons:Angelica:1.0.0-beta53:api") {
|
||||
transitive = false
|
||||
}
|
||||
}
|
||||
@@ -14,7 +14,7 @@ modId = chisel
|
||||
modGroup = com.cricketcraft.chisel
|
||||
|
||||
# Whether to use modGroup as the maven publishing group.
|
||||
# Due to a history of using JitPack, the default is com.github.GTNewHorizons for all mods.
|
||||
# When false, com.github.GTNewHorizons is used.
|
||||
useModGroupForPublishing = false
|
||||
|
||||
# Updates your build.gradle and settings.gradle automatically whenever an update is available.
|
||||
@@ -37,7 +37,7 @@ remoteMappings = https\://raw.githubusercontent.com/MinecraftForge/FML/1.7.10/co
|
||||
|
||||
# Select a default username for testing your mod. You can always override this per-run by running
|
||||
# `./gradlew runClient --username=AnotherPlayer`, or configuring this command in your IDE.
|
||||
developmentEnvironmentUserName = "Developer"
|
||||
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.
|
||||
@@ -85,6 +85,11 @@ accessTransformersFile = chisel_compile_at.cfg
|
||||
# Provides setup for Mixins if enabled. If you don't know what mixins are: Keep it disabled!
|
||||
usesMixins = false
|
||||
|
||||
# Set to a non-empty string to configure mixins in a separate source set under src/VALUE, instead of src/main.
|
||||
# This can speed up compile times thanks to not running the mixin annotation processor on all input sources.
|
||||
# Mixin classes will have access to "main" classes, but not the other way around.
|
||||
separateMixinSourceSet =
|
||||
|
||||
# Adds some debug arguments like verbose output and class export.
|
||||
usesMixinDebug = false
|
||||
|
||||
@@ -117,9 +122,15 @@ minimizeShadowedDependencies = true
|
||||
# If disabled, won't rename the shadowed classes.
|
||||
relocateShadowedDependencies = false
|
||||
|
||||
# Adds the GTNH maven, CurseMaven, IC2/Player maven, and some more well-known 1.7.10 repositories.
|
||||
# Adds CurseMaven, Modrinth, and some more well-known 1.7.10 repositories.
|
||||
includeWellKnownRepositories = true
|
||||
|
||||
# A list of repositories to exclude from the includeWellKnownRepositories setting. Should be a space separated
|
||||
# list of strings, with the acceptable keys being(case does not matter):
|
||||
# cursemaven
|
||||
# modrinth
|
||||
excludeWellKnownRepositories =
|
||||
|
||||
# Change these to your Maven coordinates if you want to publish to a custom Maven repository instead of the default GTNH Maven.
|
||||
# Authenticate with the MAVEN_USER and MAVEN_PASSWORD environment variables.
|
||||
# If you need a more complex setup disable maven publishing here and add a publishing repository to addon.gradle.
|
||||
@@ -140,7 +151,7 @@ modrinthProjectId =
|
||||
# type can be one of [project, version],
|
||||
# and the name is the Modrinth project or version slug/id of the other mod.
|
||||
# Example: required-project:fplib;optional-project:gasstation;incompatible-project:gregtech
|
||||
# Note: GTNH Mixins is automatically set as a required dependency if usesMixins = true
|
||||
# Note: UniMixins is automatically set as a required dependency if usesMixins = true.
|
||||
modrinthRelations =
|
||||
|
||||
# Publishing to CurseForge requires you to set the CURSEFORGE_TOKEN environment variable to one of your CurseForge API tokens.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
|
||||
networkTimeout=10000
|
||||
validateDistributionUrl=true
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
##############################################################################
|
||||
#
|
||||
@@ -55,7 +57,7 @@
|
||||
# Darwin, MinGW, and NonStop.
|
||||
#
|
||||
# (3) This script is generated from the Groovy template
|
||||
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||
# https://github.com/gradle/gradle/blob/HEAD/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/.
|
||||
@@ -84,7 +86,7 @@ done
|
||||
# shellcheck disable=SC2034
|
||||
APP_BASE_NAME=${0##*/}
|
||||
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
||||
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
|
||||
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
|
||||
|
||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||
MAX_FD=maximum
|
||||
@@ -203,7 +205,7 @@ fi
|
||||
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||
|
||||
# Collect all arguments for the java command:
|
||||
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
|
||||
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
|
||||
# and any embedded shellness will be escaped.
|
||||
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
|
||||
# treated as '${Hostname}' itself on the command line.
|
||||
|
||||
@@ -13,6 +13,8 @@
|
||||
@rem See the License for the specific language governing permissions and
|
||||
@rem limitations under the License.
|
||||
@rem
|
||||
@rem SPDX-License-Identifier: Apache-2.0
|
||||
@rem
|
||||
|
||||
@if "%DEBUG%"=="" @echo off
|
||||
@rem ##########################################################################
|
||||
|
||||
@@ -17,7 +17,7 @@ pluginManagement {
|
||||
}
|
||||
|
||||
plugins {
|
||||
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.14'
|
||||
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.41'
|
||||
}
|
||||
|
||||
|
||||
@@ -206,6 +206,7 @@ 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;
|
||||
@@ -348,8 +349,8 @@ public enum TextureType {
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public static void clearStatics() {
|
||||
theRenderBlocksCTM.remove();
|
||||
theRenderBlocksColumn.remove();
|
||||
if(theRenderBlocksCTM != null) theRenderBlocksCTM.remove();
|
||||
if(theRenderBlocksColumn != null) theRenderBlocksColumn.remove();
|
||||
}
|
||||
|
||||
public ISubmapManager createManagerFor(ICarvingVariation variation, String texturePath) {
|
||||
|
||||
@@ -1086,7 +1086,9 @@ public enum Features {
|
||||
end_Stone.carverHelper.addVariation("tile.end_Stone.13.desc", 13, "endstone/endStoneLargeTile");
|
||||
end_Stone.carverHelper.registerBlock(end_Stone, "end_Stone");
|
||||
end_Stone.carverHelper.registerVariations("end_stone");
|
||||
end_Stone.carverHelper.registerOre("blockEndstone");
|
||||
if (!Loader.isModLoaded("dreamcraft")) {
|
||||
end_Stone.carverHelper.registerOre("blockEndstone");
|
||||
}
|
||||
Carving.chisel.registerOre("end_stone", "blockEndstone");
|
||||
}
|
||||
},
|
||||
@@ -1455,10 +1457,6 @@ public enum Features {
|
||||
BlockCarvable glotek = (BlockCarvable) new BlockCarvableGlowie(Material.rock)
|
||||
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks);
|
||||
|
||||
if (!Configurations.allowChiselCrossColors) {
|
||||
glotek.carverHelper.forbidChiseling = true;
|
||||
}
|
||||
|
||||
for (int i = 0; i < 16; i++) {
|
||||
glotek.carverHelper.addVariation(
|
||||
"tile.glotek." + i + ".desc",
|
||||
@@ -2618,22 +2616,22 @@ public enum Features {
|
||||
.setCreativeTab(ChiselTabs.tabMetalChiselBlocks)
|
||||
.setHardness(2.0F)
|
||||
.setResistance(10F);
|
||||
imperial.carverHelper.addVariation("tile.imperial.0.desc", 0, "military/imperialCamo");
|
||||
imperial.carverHelper.addVariation("tile.imperial.1.desc", 1, "military/imperialCamoSecluded");
|
||||
imperial.carverHelper.addVariation("tile.imperial.2.desc", 2, "military/imperialPlate");
|
||||
imperial.carverHelper.addVariation("tile.imperial.3.desc", 3, "military/imperialCautionWhite");
|
||||
imperial.carverHelper.addVariation("tile.imperial.4.desc", 4, "military/imperialCautionOrange");
|
||||
imperial.carverHelper.addVariation("tile.nation.0.desc", 0, "military/imperialCamo");
|
||||
imperial.carverHelper.addVariation("tile.nation.1.desc", 1, "military/imperialCamoSecluded");
|
||||
imperial.carverHelper.addVariation("tile.nation.2.desc", 2, "military/imperialPlate");
|
||||
imperial.carverHelper.addVariation("tile.nation.3.desc", 3, "military/imperialCautionWhite");
|
||||
imperial.carverHelper.addVariation("tile.nation.4.desc", 4, "military/imperialCautionOrange");
|
||||
imperial.carverHelper.registerBlock(imperial, "nation");
|
||||
|
||||
BlockCarvable rebel = (BlockCarvable) new BlockCarvable(Material.rock)
|
||||
.setCreativeTab(ChiselTabs.tabMetalChiselBlocks)
|
||||
.setHardness(2.0F)
|
||||
.setResistance(10F);
|
||||
rebel.carverHelper.addVariation("tile.rebel.0.desc", 0, "military/rebelCamo", 20);
|
||||
rebel.carverHelper.addVariation("tile.rebel.1.desc", 1, "military/rebelCamoSecluded", 21);
|
||||
rebel.carverHelper.addVariation("tile.rebel.2.desc", 2, "military/rebelPlate", 22);
|
||||
rebel.carverHelper.addVariation("tile.rebel.3.desc", 3, "military/rebelCautionWhite", 23);
|
||||
rebel.carverHelper.addVariation("tile.rebel.4.desc", 4, "military/rebelCautionRed", 24);
|
||||
rebel.carverHelper.addVariation("tile.nation.0.desc", 0, "military/rebelCamo", 20);
|
||||
rebel.carverHelper.addVariation("tile.nation.1.desc", 1, "military/rebelCamoSecluded", 21);
|
||||
rebel.carverHelper.addVariation("tile.nation.2.desc", 2, "military/rebelPlate", 22);
|
||||
rebel.carverHelper.addVariation("tile.nation.3.desc", 3, "military/rebelCautionWhite", 23);
|
||||
rebel.carverHelper.addVariation("tile.nation.4.desc", 4, "military/rebelCautionRed", 24);
|
||||
rebel.carverHelper.registerBlock(rebel, "rebel");
|
||||
|
||||
imperial.carverHelper.registerVariations("military");
|
||||
@@ -2658,10 +2656,6 @@ public enum Features {
|
||||
BlockCarvable neonite = (BlockCarvable) new BlockCarvableGlowie(Material.rock)
|
||||
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks);
|
||||
|
||||
if (!Configurations.allowChiselCrossColors) {
|
||||
neonite.carverHelper.forbidChiseling = true;
|
||||
}
|
||||
|
||||
for (int i = 0; i < 16; i++) {
|
||||
neonite.carverHelper.addVariation(
|
||||
"tile.neonite." + i + ".desc",
|
||||
@@ -3505,8 +3499,10 @@ public enum Features {
|
||||
// "Stone snake block head");
|
||||
// LanguageRegistry.addName(new ItemStack(snakestone, 1, 13),
|
||||
// "Stone snake block body");
|
||||
Carving.chisel.addVariation("stonebrick", stone_snakestone, 1, 100);
|
||||
Carving.chisel.addVariation("stonebrick", stone_snakestone, 13, 101);
|
||||
|
||||
Carving.chisel.addVariation("stonebricksmooth", stone_snakestone, 1, 20);
|
||||
Carving.chisel.addVariation("stonebricksmooth", stone_snakestone, 13, 21);
|
||||
|
||||
// Carving.chisel.registerOre("snakestoneStone", "snakestoneStone");
|
||||
}
|
||||
},
|
||||
@@ -4302,6 +4298,39 @@ public enum Features {
|
||||
boolean needsMetaRecipes() {
|
||||
return true;
|
||||
}
|
||||
},
|
||||
|
||||
FROGLIGHT {
|
||||
|
||||
@Override
|
||||
void addBlocks() {
|
||||
BlockCarvable froglight = (BlockCarvable) new BlockCarvable()
|
||||
.setCreativeTab(ChiselTabs.tabOtherChiselBlocks)
|
||||
.setHardness(1F)
|
||||
.setLightLevel(1.0F)
|
||||
.setStepSound(Block.soundTypeStone);
|
||||
|
||||
for (int i = 0; i < 10; i++) {
|
||||
froglight.carverHelper.addVariation("tile.froglight." + i + ".desc", i, "froglight/" + i);
|
||||
}
|
||||
|
||||
froglight.carverHelper.registerAll(froglight, "froglight");
|
||||
}
|
||||
|
||||
@Override
|
||||
void addRecipes() {
|
||||
GameRegistry.addRecipe(
|
||||
new ItemStack(ChiselBlocks.froglight, 8, 0),
|
||||
"SGS",
|
||||
"BSB",
|
||||
"SGS",
|
||||
'S',
|
||||
new ItemStack(Blocks.stone, 1, 0),
|
||||
'G',
|
||||
new ItemStack(Items.glowstone_dust, 1),
|
||||
'B',
|
||||
new ItemStack(Items.slime_ball, 1));
|
||||
}
|
||||
};
|
||||
|
||||
private static final String[] dyeOres = { "dyeBlack", "dyeRed", "dyeGreen", "dyeBrown", "dyeBlue", "dyePurple",
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package team.chisel.block;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Random;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockGlass;
|
||||
@@ -105,4 +107,9 @@ public class BlockCarvableGlass extends BlockGlass implements ICarvable {
|
||||
public int getRenderBlockPass() {
|
||||
return isAlpha ? 1 : 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int quantityDropped(Random random) {
|
||||
return Objects.equals(this.getUnlocalizedName(), "tile.chisel.technical2") ? 1 : 0;
|
||||
}
|
||||
}
|
||||
@@ -7,21 +7,14 @@ import net.minecraft.entity.monster.EntityIronGolem;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import com.cricketcraft.chisel.api.ICarvable;
|
||||
import com.cricketcraft.chisel.api.carving.CarvableHelper;
|
||||
import com.cricketcraft.chisel.api.carving.IVariationInfo;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import team.chisel.Chisel;
|
||||
import team.chisel.entity.EntityChiselSnowman;
|
||||
|
||||
public class BlockCarvablePumpkin extends BlockPumpkin implements ICarvable {
|
||||
|
||||
public CarvableHelper carverHelper;
|
||||
public class BlockCarvablePumpkin extends BlockPumpkin {
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
private IIcon top, face;
|
||||
@@ -32,7 +25,6 @@ public class BlockCarvablePumpkin extends BlockPumpkin implements ICarvable {
|
||||
super(isOn);
|
||||
this.setStepSound(Block.soundTypeWood);
|
||||
if (isOn) setLightLevel(10.0F);
|
||||
carverHelper = new CarvableHelper(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -122,16 +114,6 @@ public class BlockCarvablePumpkin extends BlockPumpkin implements ICarvable {
|
||||
this.blockIcon = icon.registerIcon(Chisel.MOD_ID + ":pumpkin/pumpkin_side");
|
||||
}
|
||||
|
||||
@Override
|
||||
public IVariationInfo getManager(IBlockAccess world, int x, int y, int z, int metadata) {
|
||||
return carverHelper.getVariation(metadata);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IVariationInfo getManager(int meta) {
|
||||
return carverHelper.getVariation(meta);
|
||||
}
|
||||
|
||||
public void setInformation(String textureLocation) {
|
||||
this.faceLocation = textureLocation;
|
||||
}
|
||||
|
||||
@@ -4,28 +4,22 @@ import java.util.Random;
|
||||
|
||||
import net.minecraft.block.BlockTorch;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import com.cricketcraft.chisel.api.ChiselTabs;
|
||||
import com.cricketcraft.chisel.api.ICarvable;
|
||||
import com.cricketcraft.chisel.api.carving.CarvableHelper;
|
||||
import com.cricketcraft.chisel.api.carving.IVariationInfo;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import team.chisel.Chisel;
|
||||
|
||||
public class BlockCarvableTorch extends BlockTorch implements ICarvable {
|
||||
public class BlockCarvableTorch extends BlockTorch {
|
||||
|
||||
public CarvableHelper carverHelper;
|
||||
private String texLocation;
|
||||
protected boolean emitsParticles = true;
|
||||
public int idx;
|
||||
|
||||
public BlockCarvableTorch(int idx, String tex) {
|
||||
super();
|
||||
carverHelper = new CarvableHelper(this);
|
||||
setCreativeTab(ChiselTabs.tabOtherChiselBlocks);
|
||||
setLightLevel(0.9375F);
|
||||
setBlockName("torch");
|
||||
@@ -33,16 +27,6 @@ public class BlockCarvableTorch extends BlockTorch implements ICarvable {
|
||||
this.texLocation = tex;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IVariationInfo getManager(IBlockAccess world, int x, int y, int z, int metadata) {
|
||||
return carverHelper.getVariation(metadata);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IVariationInfo getManager(int meta) {
|
||||
return carverHelper.getVariation(meta);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerBlockIcons(IIconRegister icon) {
|
||||
this.blockIcon = icon.registerIcon(Chisel.MOD_ID + ":torch/" + texLocation);
|
||||
|
||||
@@ -21,31 +21,34 @@ public class BlockConcrete extends BlockCarvable {
|
||||
super();
|
||||
FMLCommonHandler.instance()
|
||||
.bus()
|
||||
.register(this);
|
||||
.register(new EventHandler());
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
private static MovementInput manualInputCheck;
|
||||
|
||||
@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 == this) {
|
||||
manualInputCheck.updatePlayerMoveState();
|
||||
if (manualInputCheck.moveForward != 0 || manualInputCheck.moveStrafe != 0) {
|
||||
player.motionX *= Configurations.concreteVelocityMult + 0.05;
|
||||
player.motionZ *= Configurations.concreteVelocityMult + 0.05;
|
||||
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 == BlockConcrete.this) {
|
||||
manualInputCheck.updatePlayerMoveState();
|
||||
if (manualInputCheck.moveForward != 0 || manualInputCheck.moveStrafe != 0) {
|
||||
player.motionX *= Configurations.concreteVelocityMult + 0.05;
|
||||
player.motionZ *= Configurations.concreteVelocityMult + 0.05;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,8 +13,8 @@ public class FullBrightLighting implements CCRenderState.IVertexOperation {
|
||||
if (!state.computeLighting) {
|
||||
return false;
|
||||
}
|
||||
state.pipeline.addDependency(CCRenderState.colourAttrib);
|
||||
state.pipeline.addDependency(CCRenderState.lightCoordAttrib);
|
||||
state.pipeline.addDependency(CCRenderState.instance().colourAttrib);
|
||||
state.pipeline.addDependency(CCRenderState.instance().lightCoordAttrib);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -49,8 +49,10 @@ public class CTMRenderer implements ISimpleBlockRenderingHandler {
|
||||
world,
|
||||
((ICTMBlock<?>) block).getManager(world, x, y, z, meta),
|
||||
meta);
|
||||
rb.renderAllFaces = rendererOld.renderAllFaces;
|
||||
boolean ret = rb.renderStandardBlock(block, x, y, z);
|
||||
rb.unlockBlockBounds();
|
||||
rb.renderAllFaces = false;
|
||||
return ret;
|
||||
} catch (Throwable t) {
|
||||
CrashReport crashreport = CrashReport.makeCrashReport(t, "Rendering CTM Block");
|
||||
|
||||
@@ -167,5 +167,8 @@ public final class ChiselBlocks {
|
||||
// 1.9... drull pls
|
||||
public static final BlockCarvable purpur = null;
|
||||
|
||||
// 1.19, skipped 10 versions but thats fine
|
||||
public static final BlockCarvable froglight = null;
|
||||
|
||||
private ChiselBlocks() {}
|
||||
}
|
||||
@@ -96,6 +96,7 @@ public class ContainerChisel extends Container {
|
||||
itemstack = itemstack1.copy();
|
||||
|
||||
if (slotIdx > InventoryChiselSelection.normalSlots) {
|
||||
// clicked in player inventory
|
||||
if (!this.mergeItemStack(
|
||||
itemstack1,
|
||||
InventoryChiselSelection.normalSlots,
|
||||
@@ -104,10 +105,13 @@ public class ContainerChisel extends Container {
|
||||
return null;
|
||||
}
|
||||
} else {
|
||||
entity.inventory.setItemStack(itemstack1.copy());
|
||||
slot.onPickupFromSlot(entity, itemstack1);
|
||||
itemstack1 = entity.inventory.getItemStack();
|
||||
entity.inventory.setItemStack(null);
|
||||
// only run this logic if a chisel selection slot was clicked (i.e. not the input slot)
|
||||
if (slotIdx != InventoryChiselSelection.normalSlots) {
|
||||
entity.inventory.setItemStack(itemstack1.copy());
|
||||
slot.onPickupFromSlot(entity, itemstack1);
|
||||
itemstack1 = entity.inventory.getItemStack();
|
||||
entity.inventory.setItemStack(null);
|
||||
}
|
||||
|
||||
if (!this.mergeItemStack(
|
||||
itemstack1,
|
||||
@@ -152,13 +156,13 @@ public class ContainerChisel extends Container {
|
||||
}
|
||||
|
||||
public void onChiselSlotChanged() {
|
||||
ItemStack stack = playerInventory.mainInventory[chiselSlot];
|
||||
ItemStack stack = playerInventory.getStackInSlot(chiselSlot);
|
||||
if (stack == null || !stack.isItemEqual(chisel)) finished = true;
|
||||
|
||||
if (finished) return;
|
||||
|
||||
General.setChiselTarget(chisel, inventory.getStackInSpecialSlot());
|
||||
|
||||
playerInventory.mainInventory[chiselSlot] = chisel;
|
||||
playerInventory.setInventorySlotContents(chiselSlot, chisel);
|
||||
}
|
||||
}
|
||||
@@ -66,7 +66,7 @@ public class SlotChiselSelection extends Slot {
|
||||
.onChisel(player.worldObj, container.chisel, General.getVariation(crafted))) {
|
||||
container.chisel.damageItem(1, player);
|
||||
if (container.chisel.stackSize <= 0) {
|
||||
player.inventory.mainInventory[player.inventory.currentItem] = null;
|
||||
player.setCurrentItemOrArmor(0, null);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -121,7 +121,7 @@ public enum ChiselMode implements IChiselMode {
|
||||
player.getCurrentEquippedItem()
|
||||
.damageItem(1, player);
|
||||
if (player.getCurrentEquippedItem().stackSize <= 0) {
|
||||
player.inventory.mainInventory[player.inventory.currentItem] = null;
|
||||
player.setCurrentItemOrArmor(0, null);
|
||||
breakChisel = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,6 @@ import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
|
||||
import com.cricketcraft.chisel.api.IChiselItem;
|
||||
import com.cricketcraft.chisel.api.carving.ICarvingRegistry;
|
||||
@@ -68,7 +67,6 @@ public class ItemChisel extends Item implements IChiselItem {
|
||||
+ type.name()
|
||||
.toLowerCase());
|
||||
}
|
||||
MinecraftForge.EVENT_BUS.register(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -133,7 +133,7 @@ tile.beacon.blue.desc=Blau leuchtendes Leuchtfeuer
|
||||
tile.beacon.brown.desc=Braun leuchtendes Leuchtfeuer
|
||||
tile.beacon.cyan.desc=Türkis leuchtendes Leuchtfeuer
|
||||
tile.beacon.green.desc=Grün leuchtendes Leuchtfeuer
|
||||
tile.beacon.lightblue.desc=Hellblau leuchtendes Leuchtfeuer
|
||||
tile.beacon.lightBlue.desc=Hellblau leuchtendes Leuchtfeuer
|
||||
tile.beacon.silver.desc=Hellgrau leuchtendes Leuchtfeuer
|
||||
tile.beacon.lime.desc=Hellgrün leuchtendes Leuchtfeuer
|
||||
tile.beacon.magenta.desc=Lila leuchtendes Leuchtfeuer
|
||||
|
||||
@@ -134,7 +134,7 @@ tile.beacon.blue.desc=Blue Beamed Beacon
|
||||
tile.beacon.brown.desc=Brown Beamed Beacon
|
||||
tile.beacon.cyan.desc=Cyan Beamed Beacon
|
||||
tile.beacon.green.desc=Green Beamed Beacon
|
||||
tile.beacon.lightblue.desc=Light Blue Beamed Beacon
|
||||
tile.beacon.lightBlue.desc=Light Blue Beamed Beacon
|
||||
# Beacon
|
||||
tile.beacon.silver.desc=Light Grey Beamed Beacon
|
||||
tile.beacon.lime.desc=Lime Beamed Beacon
|
||||
@@ -238,7 +238,7 @@ tile.arcane.10.desc=Fine Thaumaturge's Emblem
|
||||
tile.arcane.11.desc=Cracked Rock leaking Eldritch Glow
|
||||
|
||||
# Thaumium
|
||||
tile.chisel.thaumium.name=Thaumium Block
|
||||
tile.chisel.thaumium.name=Block of Thaumium
|
||||
tile.thaumium.0.desc=Ornate Pattern
|
||||
tile.thaumium.1.desc=Totem Faces
|
||||
tile.thaumium.2.desc=Bricks
|
||||
@@ -692,7 +692,7 @@ tile.factory2.2.desc=Metallic Blue Circuit Plating
|
||||
tile.factory2.3.desc=Blue Wireframing
|
||||
|
||||
# Diamond blocks
|
||||
tile.chisel.diamond_block.name=Diamond Block
|
||||
tile.chisel.diamond_block.name=Block of Diamond
|
||||
tile.diamond.1.desc=Embossed Diamond Block
|
||||
tile.diamond.2.desc=Diamond Block with Panel
|
||||
tile.diamond.3.desc=Diamond Cells
|
||||
@@ -783,7 +783,7 @@ tile.roadLine.3.desc=Double Yellow
|
||||
tile.roadLine.4.desc=Hazard Tape
|
||||
|
||||
# Iron Blocks
|
||||
tile.chisel.iron_block.name=Iron Block
|
||||
tile.chisel.iron_block.name=Block of Iron
|
||||
tile.iron.1.desc=Large Iron Ingots
|
||||
tile.iron.2.desc=Small Iron Ingots
|
||||
tile.iron.3.desc=Iron Gears
|
||||
@@ -801,7 +801,7 @@ tile.iron.14.desc=Iron Vents
|
||||
tile.iron.15.desc=Simple Iron Block
|
||||
|
||||
# Gold Blocks
|
||||
tile.chisel.gold_block.name=Gold Block
|
||||
tile.chisel.gold_block.name=Block of Gold
|
||||
tile.gold.1.desc=Large Golden Ingots
|
||||
tile.gold.2.desc=Small Golden Ingots
|
||||
tile.gold.3.desc=Golden Bricks
|
||||
@@ -836,7 +836,7 @@ tile.lightstone.14.desc=Glowstone Bismuth
|
||||
tile.lightstone.15.desc=Glowstone Bismuth Panel
|
||||
|
||||
# Lapis blocks
|
||||
tile.chisel.lapis_block.name=Lapis Block
|
||||
tile.chisel.lapis_block.name=Lapis Lazuli Block
|
||||
tile.lapis.1.desc=Chunky Lapis Block
|
||||
tile.lapis.2.desc=Dark Lapis Block
|
||||
tile.lapis.3.desc=Zelda Lapis Block
|
||||
@@ -847,7 +847,7 @@ tile.lapis.7.desc=Smooth Lapis
|
||||
tile.lapis.8.desc=Lapis with Ornate Layer
|
||||
|
||||
# Emerald Blocks
|
||||
tile.chisel.emerald_block.name=Emerald Block
|
||||
tile.chisel.emerald_block.name=Block of Emerald
|
||||
tile.emerald.1.desc=Emerald Panel
|
||||
tile.emerald.2.desc=Classic emerald Panel
|
||||
tile.emerald.3.desc=Smooth Emerald
|
||||
@@ -1108,7 +1108,7 @@ tile.glass_pane.14.desc=Japanese Glass Pane
|
||||
tile.glass_pane.15.desc=Ornate Japanese Glass Pane
|
||||
|
||||
# Redstone block
|
||||
tile.chisel.redstone_block.name=Redstone Block
|
||||
tile.chisel.redstone_block.name=Block of Redstone
|
||||
tile.redstone_block.1.desc=Smooth Redstone
|
||||
tile.redstone_block.2.desc=Large Redstone Block
|
||||
tile.redstone_block.3.desc=Small Redstone Block
|
||||
|
||||
@@ -134,7 +134,7 @@ tile.beacon.blue.desc=Blue Beamed Beacon
|
||||
tile.beacon.brown.desc=Brown Beamed Beacon
|
||||
tile.beacon.cyan.desc=Cyan Beamed Beacon
|
||||
tile.beacon.green.desc=Green Beamed Beacon
|
||||
tile.beacon.lightblue.desc=Light Blue Beamed Beacon
|
||||
tile.beacon.lightBlue.desc=Light Blue Beamed Beacon
|
||||
tile.beacon.silver.desc=Light Gray Beamed Beacon
|
||||
tile.beacon.lime.desc=Lime Beamed Beacon
|
||||
tile.beacon.magenta.desc=Magenta Beamed Beacon
|
||||
|
||||
@@ -27,6 +27,7 @@ item.cloudBottle.name=Cloud In A Bottle
|
||||
item.cloudBottle.desc=Right-Click to throw. This will spawn clouds on impact.
|
||||
item.smashingRock.name=Smashing Rock
|
||||
item.smashingRock.desc=Right-Click to throw. This will turn Cobblestone into Gravel, Gravel into Sand etc on impact.
|
||||
item.upgrade.name=Upgrade
|
||||
item.upgrade_speed.name=Speed Upgrade
|
||||
item.upgrade_automation.name=Automation Upgrade
|
||||
item.upgrade_stack.name=Stack Upgrade
|
||||
@@ -138,7 +139,7 @@ tile.beacon.blue.desc=Blue Beamed Beacon
|
||||
tile.beacon.brown.desc=Brown Beamed Beacon
|
||||
tile.beacon.cyan.desc=Cyan Beamed Beacon
|
||||
tile.beacon.green.desc=Green Beamed Beacon
|
||||
tile.beacon.lightblue.desc=Light Blue Beamed Beacon
|
||||
tile.beacon.lightBlue.desc=Light Blue Beamed Beacon
|
||||
tile.beacon.silver.desc=Light Gray Beamed Beacon
|
||||
tile.beacon.lime.desc=Lime Beamed Beacon
|
||||
tile.beacon.magenta.desc=Magenta Beamed Beacon
|
||||
@@ -949,6 +950,9 @@ tile.dirt.9.desc=Horizontal Dirt
|
||||
tile.dirt.10.desc=Vertical Dirt
|
||||
tile.dirt.11.desc=Dirt Layers
|
||||
tile.dirt.12.desc=Crumbling Dirt
|
||||
tile.dirt.13.desc=Jumbled Dirt
|
||||
tile.dirt.14.desc=Tilled Dirt
|
||||
tile.dirt.15.desc=Large Dirt Tile
|
||||
|
||||
#Ice
|
||||
tile.chisel.ice.name=Ice
|
||||
@@ -1878,3 +1882,19 @@ tile.glotek.12.desc=Cranberry
|
||||
tile.glotek.13.desc=Brink Pink
|
||||
tile.glotek.14.desc=Dark Salmon
|
||||
tile.glotek.15.desc=Harvest Gold
|
||||
|
||||
#Froglight
|
||||
tile.chisel.froglight.name=Froglight
|
||||
tile.froglight.0.desc=Aluminium
|
||||
tile.froglight.1.desc=Titanium
|
||||
tile.froglight.2.desc=Tungstensteel
|
||||
tile.froglight.3.desc=Osmium
|
||||
tile.froglight.4.desc=Fluxed
|
||||
tile.froglight.5.desc=Uranium
|
||||
tile.froglight.6.desc=Girisium
|
||||
tile.froglight.7.desc=Orundum
|
||||
tile.froglight.8.desc=Blood-Stained
|
||||
tile.froglight.9.desc=Ichor
|
||||
|
||||
tile.chisel.amber.name=Block of Amber
|
||||
tile.chisel.bloodBrick.name=Bloodstone Brick
|
||||
@@ -126,7 +126,7 @@ tile.beacon.blue.desc=Blue Beamed Beacon
|
||||
tile.beacon.brown.desc=Brown Beamed Beacon
|
||||
tile.beacon.cyan.desc=Cyan Beamed Beacon
|
||||
tile.beacon.green.desc=Green Beamed Beacon
|
||||
tile.beacon.lightblue.desc=Light Blue Beamed Beacon
|
||||
tile.beacon.lightBlue.desc=Light Blue Beamed Beacon
|
||||
tile.beacon.silver.desc=Light Gray Beamed Beacon
|
||||
tile.beacon.lime.desc=Lime Beamed Beacon
|
||||
tile.beacon.magenta.desc=Magenta Beamed Beacon
|
||||
|
||||
@@ -125,7 +125,7 @@ tile.beacon.blue.desc=Blue Beamed Beacon
|
||||
tile.beacon.brown.desc=Brown Beamed Beacon
|
||||
tile.beacon.cyan.desc=Cyan Beamed Beacon
|
||||
tile.beacon.green.desc=Green Beamed Beacon
|
||||
tile.beacon.lightblue.desc=Light Blue Beamed Beacon
|
||||
tile.beacon.lightBlue.desc=Light Blue Beamed Beacon
|
||||
tile.beacon.silver.desc=Light Gray Beamed Beacon
|
||||
tile.beacon.lime.desc=Lime Beamed Beacon
|
||||
tile.beacon.magenta.desc=Magenta Beamed Beacon
|
||||
|
||||
@@ -138,7 +138,7 @@ tile.beacon.blue.desc=Маяк с синем лучом
|
||||
tile.beacon.brown.desc=Маяк с коричневым лучом
|
||||
tile.beacon.cyan.desc=Маяк с бирюзовым лучом
|
||||
tile.beacon.green.desc=Маяк с зелёным лучом
|
||||
tile.beacon.lightblue.desc=Маяк со голубым лучом
|
||||
tile.beacon.lightBlue.desc=Маяк со голубым лучом
|
||||
tile.beacon.silver.desc=Маяк со светло-серым лучом
|
||||
tile.beacon.lime.desc=Маяк с лаймовым лучом
|
||||
tile.beacon.magenta.desc=Маяк с сиреневым лучом
|
||||
|
||||
@@ -136,7 +136,7 @@ tile.beacon.blue.desc=蓝色定向信标
|
||||
tile.beacon.brown.desc=棕色定向信标
|
||||
tile.beacon.cyan.desc=青色定向信标
|
||||
tile.beacon.green.desc=绿色定向信标
|
||||
tile.beacon.lightblue.desc=淡蓝定向信标
|
||||
tile.beacon.lightBlue.desc=淡蓝定向信标
|
||||
tile.beacon.silver.desc=淡灰定向信标
|
||||
tile.beacon.lime.desc=黄绿定向信标
|
||||
tile.beacon.magenta.desc=品红定向信标
|
||||
@@ -1741,4 +1741,4 @@ container.chisel.mode=模式:
|
||||
container.chisel.mode.single=单个雕刻
|
||||
container.chisel.mode.panel=范围雕刻
|
||||
container.chisel.mode.column=竖向雕刻
|
||||
container.chisel.mode.row=横向雕刻
|
||||
container.chisel.mode.row=横向雕刻
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 1005 B |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 956 B |
|
After Width: | Height: | Size: 960 B |
|
After Width: | Height: | Size: 1.0 KiB |