mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-25 06:34:35 +00:00
Compare commits
13
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4001d105a8 | ||
|
|
b5514a9aa0 | ||
|
|
c1f3c93bc3 | ||
|
|
5a2852532b | ||
|
|
189b3bc95c | ||
|
|
126ca91eeb | ||
|
|
477b6e354c | ||
|
|
c312d2c311 | ||
|
|
4c0218c708 | ||
|
|
3568223fc6 | ||
|
|
019f9a670a | ||
|
|
29be0033d7 | ||
|
|
2165ec04ea |
No files matched your search
@@ -27,3 +27,4 @@ whitelist.json
|
||||
*.iws
|
||||
src/main/resources/mixins.*.json
|
||||
*.bat
|
||||
layout.json
|
||||
+6
-7
@@ -1,24 +1,23 @@
|
||||
// Add your dependencies here
|
||||
|
||||
dependencies {
|
||||
implementation("com.github.GTNewHorizons:CodeChickenCore:1.3.10:dev")
|
||||
implementation("com.github.GTNewHorizons:CodeChickenLib:1.3.0:dev")
|
||||
implementation("com.github.GTNewHorizons:NotEnoughItems:2.6.51-GTNH:dev")
|
||||
implementation("com.github.GTNewHorizons:ForgeMultipart:1.5.0:dev")
|
||||
implementation("com.github.GTNewHorizons:CodeChickenCore:1.4.3:dev")
|
||||
implementation("com.github.GTNewHorizons:NotEnoughItems:2.7.57-GTNH:dev")
|
||||
implementation("com.github.GTNewHorizons:ForgeMultipart:1.6.6:dev")
|
||||
|
||||
compileOnly("org.projectlombok:lombok:1.18.24")
|
||||
annotationProcessor("org.projectlombok:lombok:1.18.24")
|
||||
|
||||
devOnlyNonPublishable("com.github.GTNewHorizons:waila:1.8.2:dev") {
|
||||
devOnlyNonPublishable("com.github.GTNewHorizons:waila:1.8.8:dev") {
|
||||
transitive = false
|
||||
}
|
||||
devOnlyNonPublishable("com.github.GTNewHorizons:WailaHarvestability:1.2.1-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-beta26:api") {
|
||||
compileOnly("com.github.GTNewHorizons:Angelica:1.0.0-beta46:api") {
|
||||
transitive = false
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -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.
|
||||
|
||||
Vendored
BIN
Binary file not shown.
+1
-1
@@ -1,6 +1,6 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
|
||||
networkTimeout=10000
|
||||
validateDistributionUrl=true
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
|
||||
@@ -86,8 +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 -P "${APP_HOME:-./}" > /dev/null && printf '%s
|
||||
' "$PWD" ) || 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
|
||||
@@ -206,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.
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ pluginManagement {
|
||||
}
|
||||
|
||||
plugins {
|
||||
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.30'
|
||||
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.38'
|
||||
}
|
||||
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -1894,3 +1895,6 @@ 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
|
||||
Reference in new issue
Block a user