Skip to content

Commit

Permalink
update GT, disable space station packager JEI preview
Browse files Browse the repository at this point in the history
  • Loading branch information
screret committed Nov 8, 2023
1 parent 6fc15fb commit 396f927
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 14 deletions.
5 changes: 2 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
- add satellite packaging machine (slightly nonfunctional)
- make space not have the starting platform, rocket places it from the package.
- fix GT compat.
- update GT
- disable space station packager preview example for now, until I figure out how to fix it.

WARNING: space station doesn't build correctly just yet.
27 changes: 25 additions & 2 deletions common/src/main/java/argent_matter/gcyr/GCyRGTAddon.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,22 @@
import com.gregtechceu.gtceu.api.addon.GTAddon;
import com.gregtechceu.gtceu.api.addon.IGTAddon;
import com.gregtechceu.gtceu.api.addon.events.MaterialCasingCollectionEvent;
import com.gregtechceu.gtceu.api.data.chemical.material.info.MaterialIconType;
import com.gregtechceu.gtceu.api.data.tag.TagPrefix;
import com.gregtechceu.gtceu.api.data.worldgen.SimpleWorldGenLayer;
import com.gregtechceu.gtceu.api.data.worldgen.WorldGeneratorUtils;
import net.minecraft.data.recipes.FinishedRecipe;
import net.minecraft.tags.BlockTags;
import net.minecraft.world.level.block.Blocks;
import net.minecraft.world.level.levelgen.structure.templatesystem.BlockMatchTest;

import java.util.Set;
import java.util.function.Consumer;

import static com.gregtechceu.gtceu.api.data.tag.TagPrefix.Conditions.hasOreProperty;
import static com.gregtechceu.gtceu.api.data.tag.TagPrefix.LoaderType.FABRIC;
import static com.gregtechceu.gtceu.api.data.tag.TagPrefix.LoaderType.FORGE;

@GTAddon
public class GCyRGTAddon implements IGTAddon {
@Override
Expand All @@ -22,7 +34,13 @@ public String addonModId() {

@Override
public void registerTagPrefixes() {
IGTAddon.super.registerTagPrefixes();
TagPrefix.oreTagPrefix("moon")
.langValue("Moon %s Ore")
.materialIconType(MaterialIconType.ore)
.miningToolTag(BlockTags.MINEABLE_WITH_PICKAXE)
.unificationEnabled(true)
.generationCondition(hasOreProperty)
.registerOre(() -> GCyRBlocks.MOON_STONE.orElse(Blocks.STONE).defaultBlockState());
}

@Override
Expand All @@ -47,7 +65,12 @@ public void registerCovers() {

@Override
public void registerWorldgenLayers() {
IGTAddon.super.registerWorldgenLayers();
WorldGeneratorUtils.WORLD_GEN_LAYERS.put("moon", new SimpleWorldGenLayer("moon", () -> new BlockMatchTest(GCyRBlocks.MOON_STONE.get()), Set.of(GCyR.id("luna"))));
}

@Override
public boolean requiresHighTier() {
return true;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
import com.lowdragmc.lowdraglib.utils.LDLItemGroup;

public class GCyRCreativeModeTabs {
public static LDLItemGroup GCYR = new LDLItemGroup(GCyR.MOD_ID, GCyR.MOD_ID, () -> GTItems.FLUID_CELL.asStack());
public static LDLItemGroup GCYR = new LDLItemGroup(GCyR.MOD_ID, GCyR.MOD_ID, () -> GCyRItems.DYSON_CONSTRUCTION_DRONE.asStack());
}
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public class GCyRMachines {
public static final MachineDefinition SPACE_STATION_PACKAGER = REGISTRATE.multiblock("space_station_packager", SpaceStationPackagerMachine::new)
.langValue("Space Station Packager")
.rotationState(RotationState.NON_Y_AXIS)
.tier(GTValues.EV)
.tier(GTValues.LuV)
.pattern((definition) -> FactoryBlockPattern.start()
.aisle(" ", " K ", " K ", " K ", " K ", " K ")
.aisle(" BBBBBBB ", " ", " ", " ", " ", " ")
Expand All @@ -123,7 +123,7 @@ public class GCyRMachines {
.where(' ', any())
.build()
)
.shapeInfos(definition -> {
/*.shapeInfos(definition -> {
ArrayList<MultiblockShapeInfo> shapeInfo = new ArrayList<>();
MultiblockShapeInfo.ShapeInfoBuilder builder = MultiblockShapeInfo.builder()
.aisle(" ", " S ", " ", " ", " ", " ")
Expand All @@ -150,8 +150,8 @@ public class GCyRMachines {
.where('G', CASING_TEMPERED_GLASS)
.where('C', Blocks.WHITE_CONCRETE).build());
return shapeInfo;
})
.workableCasingRenderer(GTCEu.id("block/casings/voltage/ev/side"),
})*/
.workableCasingRenderer(GTCEu.id("block/casings/voltage/luv/side"),
GTCEu.id("block/multiblock/assembly_line"), false)
.register();

Expand Down
2 changes: 1 addition & 1 deletion forge/src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,5 @@ issueTrackerURL="https://github.com/argent-matter/gcyr/issues"
modId="gtceu"
mandatory=true
versionRange="[1.0.13.c,)"
ordering="AFTER"
ordering="BEFORE"
side="BOTH"
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ org.gradle.jvmargs=-Xmx4G -Xss4M

mod_id=gcyr
mod_name=Gregicality Rocketry
mod_version=0.1.1
mod_version=0.1.1.a
maven_group=argent_matter

enabled_platforms = fabric,forge
4 changes: 2 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ dependencyResolutionManagement {
// Mod Dependencies Versions
// Common
def reiVersion = "9.1.619"
def gtCeuVersion = "1.0.13.c"
def ldLibVersion = "1.0.19.d"
def gtCeuVersion = "1.0.14.a"
def ldLibVersion = "1.0.20.a"
def kjsVersion = "1902.6.1-build.373"

// Fabric
Expand Down

0 comments on commit 396f927

Please sign in to comment.