mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-24 14:06:42 +01:00
Playtest Issues, Part V
- Changed a few stress balancing params - Fixed crash when resource reloading outside of a world - Fixed crash when moving a tile-entity only contraption with shaders preset - Fixed drill not breaking blocks after being moved - Lowered max speed of Mechanical Bearing in generator mode - Redstone wire and diodes aswell as flower pots can now be moved - Fixed in-world neighbour checking of moved blocks that are not doors - Bumped version in mods.toml
This commit is contained in:
parent
4eaa077390
commit
75145976d3
10 changed files with 43 additions and 20 deletions
|
@ -31,8 +31,8 @@ public class CKinetics extends ConfigBase {
|
|||
public ConfigFloat mediumSpeed = f(30, 0, 4096, "mediumSpeed", Comments.rpm, Comments.mediumSpeed);
|
||||
public ConfigFloat fastSpeed = f(100, 0, 65535, "fastSpeed", Comments.rpm, Comments.fastSpeed);
|
||||
public ConfigFloat mediumStressImpact =
|
||||
f(8, 0, 4096, "mediumStressImpact", Comments.su, Comments.mediumStressImpact);
|
||||
public ConfigFloat highStressImpact = f(32, 0, 65535, "highStressImpact", Comments.su, Comments.highStressImpact);
|
||||
f(4, 0, 4096, "mediumStressImpact", Comments.su, Comments.mediumStressImpact);
|
||||
public ConfigFloat highStressImpact = f(8, 0, 65535, "highStressImpact", Comments.su, Comments.highStressImpact);
|
||||
public ConfigFloat mediumCapacity = f(128, 0, 4096, "mediumCapacity", Comments.su, Comments.mediumCapacity);
|
||||
public ConfigFloat highCapacity = f(512, 0, 65535, "highCapacity", Comments.su, Comments.highCapacity);
|
||||
|
||||
|
|
|
@ -12,12 +12,12 @@ public class StressConfigDefaults {
|
|||
case FURNACE_ENGINE:
|
||||
return 512;
|
||||
case MECHANICAL_BEARING:
|
||||
return 128;
|
||||
return 256;
|
||||
case ENCASED_FAN:
|
||||
case HAND_CRANK:
|
||||
return 64;
|
||||
return 16;
|
||||
case WATER_WHEEL:
|
||||
return 32;
|
||||
return 4;
|
||||
default:
|
||||
return -1;
|
||||
}
|
||||
|
@ -28,29 +28,25 @@ public class StressConfigDefaults {
|
|||
switch (block) {
|
||||
case CRUSHING_WHEEL:
|
||||
case MECHANICAL_PRESS:
|
||||
return 32;
|
||||
return 8;
|
||||
|
||||
case DRILL:
|
||||
case SAW:
|
||||
case DEPLOYER:
|
||||
return 16;
|
||||
|
||||
case ENCASED_FAN:
|
||||
case MECHANICAL_MIXER:
|
||||
case MECHANICAL_CRAFTER:
|
||||
return 8;
|
||||
return 4;
|
||||
|
||||
case MECHANICAL_CRAFTER:
|
||||
case TURNTABLE:
|
||||
case MECHANICAL_PISTON:
|
||||
case MECHANICAL_BEARING:
|
||||
case CLOCKWORK_BEARING:
|
||||
case ROPE_PULLEY:
|
||||
case STICKY_MECHANICAL_PISTON:
|
||||
return 4;
|
||||
|
||||
case BELT:
|
||||
return 2;
|
||||
|
||||
case BELT:
|
||||
case CUCKOO_CLOCK:
|
||||
return 1;
|
||||
|
||||
|
|
|
@ -20,8 +20,6 @@ public class ToggleDebugCommand {
|
|||
.then(Commands.argument("value", BoolArgumentType.bool())
|
||||
.executes(ctx -> {
|
||||
boolean value = BoolArgumentType.getBool(ctx, "value");
|
||||
System.out.println("Command toggleDebug " + value);
|
||||
|
||||
DistExecutor.runWhenOn(Dist.CLIENT, () -> () -> AllConfigs.CLIENT.rainbowDebug.set(value));
|
||||
|
||||
DistExecutor.runWhenOn(Dist.DEDICATED_SERVER, () -> () ->
|
||||
|
|
|
@ -17,6 +17,7 @@ import com.simibubi.create.modules.contraptions.components.flywheel.engine.Engin
|
|||
import com.simibubi.create.modules.curiosities.tools.AllToolTiers;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.entity.player.ClientPlayerEntity;
|
||||
import net.minecraft.client.resources.I18n;
|
||||
import net.minecraft.inventory.EquipmentSlotType;
|
||||
import net.minecraft.item.BlockItem;
|
||||
|
@ -86,8 +87,10 @@ public class TooltipHelper {
|
|||
public static boolean hasTooltip(ItemStack stack) {
|
||||
checkLocale();
|
||||
|
||||
ClientPlayerEntity player = Minecraft.getInstance().player;
|
||||
boolean hasGlasses =
|
||||
AllItems.GOGGLES.typeOf(Minecraft.getInstance().player.getItemStackFromSlot(EquipmentSlotType.HEAD));
|
||||
player != null && AllItems.GOGGLES.typeOf(player.getItemStackFromSlot(EquipmentSlotType.HEAD));
|
||||
|
||||
if (hasGlasses != gogglesMode) {
|
||||
gogglesMode = hasGlasses;
|
||||
cachedTooltips.clear();
|
||||
|
|
|
@ -100,6 +100,8 @@ public class SuperByteBuffer {
|
|||
}
|
||||
|
||||
public void renderInto(BufferBuilder buffer) {
|
||||
if (original.limit() == 0)
|
||||
return;
|
||||
buffer.putBulkData(build());
|
||||
}
|
||||
|
||||
|
|
|
@ -39,6 +39,13 @@ public abstract class BlockBreakingKineticTileEntity extends KineticTileEntity {
|
|||
if (destroyProgress == -1)
|
||||
destroyNextTick();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void lazyTick() {
|
||||
super.lazyTick();
|
||||
if (ticksUntilNextProgress == -1)
|
||||
destroyNextTick();
|
||||
}
|
||||
|
||||
public void destroyNextTick() {
|
||||
ticksUntilNextProgress = 1;
|
||||
|
|
|
@ -11,9 +11,12 @@ import net.minecraft.block.Block;
|
|||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.block.Blocks;
|
||||
import net.minecraft.block.DoorBlock;
|
||||
import net.minecraft.block.FlowerPotBlock;
|
||||
import net.minecraft.block.HorizontalFaceBlock;
|
||||
import net.minecraft.block.LadderBlock;
|
||||
import net.minecraft.block.RedstoneDiodeBlock;
|
||||
import net.minecraft.block.RedstoneWallTorchBlock;
|
||||
import net.minecraft.block.RedstoneWireBlock;
|
||||
import net.minecraft.block.TorchBlock;
|
||||
import net.minecraft.block.WallTorchBlock;
|
||||
import net.minecraft.block.material.PushReaction;
|
||||
|
@ -61,6 +64,8 @@ public class BlockMovementTraits {
|
|||
return true;
|
||||
if (block instanceof TorchBlock)
|
||||
return true;
|
||||
if (block instanceof FlowerPotBlock)
|
||||
return true;
|
||||
if (block instanceof AbstractPressurePlateBlock)
|
||||
return true;
|
||||
if (block instanceof DoorBlock)
|
||||
|
@ -69,6 +74,10 @@ public class BlockMovementTraits {
|
|||
return true;
|
||||
if (block instanceof AbstractRailBlock)
|
||||
return true;
|
||||
if (block instanceof RedstoneDiodeBlock)
|
||||
return true;
|
||||
if (block instanceof RedstoneWireBlock)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -85,6 +94,12 @@ public class BlockMovementTraits {
|
|||
return direction == Direction.DOWN;
|
||||
if (block instanceof DoorBlock)
|
||||
return direction == Direction.DOWN;
|
||||
if (block instanceof FlowerPotBlock)
|
||||
return direction == Direction.DOWN;
|
||||
if (block instanceof RedstoneDiodeBlock)
|
||||
return direction == Direction.DOWN;
|
||||
if (block instanceof RedstoneWireBlock)
|
||||
return direction == Direction.DOWN;
|
||||
if (block instanceof RedstoneWallTorchBlock)
|
||||
return state.get(RedstoneWallTorchBlock.FACING) == direction.getOpposite();
|
||||
if (block instanceof TorchBlock)
|
||||
|
|
|
@ -395,7 +395,9 @@ public abstract class Contraption {
|
|||
if (customRemoval.test(add, block.state))
|
||||
continue;
|
||||
world.getWorld().removeTileEntity(add);
|
||||
int flags = 67 | 32 | 16;
|
||||
int flags = 67;
|
||||
if (world.getBlockState(add).getBlock() instanceof DoorBlock)
|
||||
flags = flags | 32 | 16;
|
||||
world.setBlockState(add, Blocks.AIR.getDefaultState(), flags);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -92,7 +92,7 @@ public class MechanicalBearingTileEntity extends GeneratingKineticTileEntity imp
|
|||
if (movedContraption == null)
|
||||
return 0;
|
||||
int sails = ((BearingContraption) movedContraption.getContraption()).getSailBlocks() / 8;
|
||||
return MathHelper.clamp(sails, 1, 64);
|
||||
return MathHelper.clamp(sails, 1, 16);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -4,12 +4,12 @@ loaderVersion="[28,)"
|
|||
|
||||
[[mods]]
|
||||
modId="create"
|
||||
version="0.1.1b"
|
||||
version="0.2"
|
||||
displayName="Create"
|
||||
#updateJSONURL=""
|
||||
authors="simibubi"
|
||||
description='''
|
||||
A handful of additions to aid the creative survivalist.'''
|
||||
Technology that empowers the player.'''
|
||||
|
||||
[[dependencies.create]]
|
||||
modId="forge"
|
||||
|
|
Loading…
Reference in a new issue