Skip to content

Commit

Permalink
Release of 1.15
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelHillcox committed Aug 14, 2020
1 parent 9187784 commit 6766459
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 31 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ dependencies {
compileOnly fg.deobf("mezz.jei:jei-${jei_version}:api")
runtimeOnly fg.deobf("mezz.jei:jei-${jei_version}")

runtimeOnly fg.deobf("ignored:buildinggadgets:3.3.2")
runtimeOnly fg.deobf("ignored:mininggadgets:1.3.0")
runtimeOnly fg.deobf("ignored:Mekanism-1.15.2:9.9.17.409")
// runtimeOnly fg.deobf("ignored:buildinggadgets:3.3.2")
// runtimeOnly fg.deobf("ignored:mininggadgets:1.3.0")
// runtimeOnly fg.deobf("ignored:Mekanism-1.15.2:9.9.17.409")
// You may put jars on which you depend on in ./libs or you may define them like so..
// compile "some.group:artifact:version:classifier"
// compile "some.group:artifact:version"
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ org.gradle.daemon=false
mod_version=1.0.0

#Dependencies
forge_version=1.15.2-31.1.18
forge_version=1.15.2-31.2.36
mcp_version=20200307-1.15.1
jei_version=1.15.2:6.0.0.2
2 changes: 1 addition & 1 deletion src/generated/resources/.cache/cache
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
d2e7c53ffc657e48f859787665bb90d4d004ec3a assets/charginggadgets/blockstates/charging_station.json
be821e8cfeb2e993c6da9223608c8a927ddc4c92 assets/charginggadgets/lang/en_us.json
9169e4bc2546eac71686e4c68bc89022e01fbe65 assets/charginggadgets/models/block/charging_station.json
8eb3eb14e57139a85b150d3979a274266827d9fc assets/charginggadgets/models/block/charging_station.json
e65f75009ebf20fe399dc4954ad0031af330dc09 assets/charginggadgets/models/item/charging_station.json
4eea0d6b4d86e05e13208029d6afc4bb7497b032 data/charginggadgets/advancements/recipes/charginggadgets/charging_station.json
91ee73c3707ca365d432a98811c1f235e0d3e335 data/charginggadgets/loot_tables/blocks/charging_station.json
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
{
"parent": "block/cube",
"parent": "block/orientable_with_bottom",
"textures": {
"down": "charginggadgets:blocks/charging_station_bottom",
"up": "charginggadgets:blocks/charging_station_top",
"north": "charginggadgets:blocks/charging_station_fronton",
"south": "charginggadgets:blocks/charging_station_side",
"east": "charginggadgets:blocks/charging_station_side",
"west": "charginggadgets:blocks/charging_station_side",
"particle": "charginggadgets:blocks/charging_station_side"
"side": "charginggadgets:blocks/charging_station_side",
"front": "charginggadgets:blocks/charging_station_fronton",
"bottom": "charginggadgets:blocks/charging_station_bottom",
"top": "charginggadgets:blocks/charging_station_top"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.client.model.generators.*;

import java.util.Objects;

final class GeneratorBlockStates extends BlockStateProvider {
public GeneratorBlockStates(DataGenerator gen, ExistingFileHelper exFileHelper) {
super(gen, ChargingGadgets.MOD_ID, exFileHelper);
Expand All @@ -17,22 +19,12 @@ public GeneratorBlockStates(DataGenerator gen, ExistingFileHelper exFileHelper)
protected void registerStatesAndModels() {
assert ModBlocks.CHARGING_STATION.get().getRegistryName() != null;

ResourceLocation side = modLoc("blocks/charging_station_side");

BlockModelBuilder cube = models().cube(
ModBlocks.CHARGING_STATION.get().getRegistryName().getPath(),
modLoc("blocks/charging_station_bottom"),
modLoc("blocks/charging_station_top"),
horizontalBlock(ModBlocks.CHARGING_STATION.get(), models().orientableWithBottom(
Objects.requireNonNull(ModBlocks.CHARGING_STATION.get().getRegistryName()).getPath(),
modLoc("blocks/charging_station_side"),
modLoc("blocks/charging_station_fronton"),
side, side, side
).texture("particle", side);

getVariantBuilder(ModBlocks.CHARGING_STATION.get())
.forAllStates(state -> {
Direction dir = state.get(ChargingStationBlock.FACING);
return ConfiguredModel.builder().modelFile(cube).rotationY(
dir.getAxis().isVertical() ? 0 : (((int) dir.getHorizontalAngle()) + 180) % 360
).build();
});
modLoc("blocks/charging_station_bottom"),
modLoc("blocks/charging_station_top")
));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ private void tryBurn() {
return;

this.getCapability(CapabilityEnergy.ENERGY).ifPresent(energyStorage -> {
boolean canInsertEnergy = energyStorage.receiveEnergy(2500, true) > 0;
boolean canInsertEnergy = energyStorage.receiveEnergy(625, true) > 0;
if (counter > 0 && canInsertEnergy) {
burn(energyStorage);
} else if (canInsertEnergy) {
Expand All @@ -145,7 +145,7 @@ private void tryBurn() {


private void burn(IEnergyStorage energyStorage) {
energyStorage.receiveEnergy(2500, false);
energyStorage.receiveEnergy(625, false);

counter--;
if (counter == 0) {
Expand Down

0 comments on commit 6766459

Please sign in to comment.