Skip to content

Commit

Permalink
Porting mcmod's gtceu wiki to compass pages (#522)
Browse files Browse the repository at this point in the history
* init

* datagen
  • Loading branch information
Yefancy authored Nov 6, 2023
1 parent 7ead212 commit 7d437b0
Show file tree
Hide file tree
Showing 1,187 changed files with 68,313 additions and 903 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ classes/
forge/src/generated/resources/.cache/
fabric/src/generated/resources/.cache/

*.patch
*.patch
*.DS_Store
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ public static void generateCableBlocks() {
.item(MaterialPipeBlockItem::new)
.model(NonNullBiConsumer.noop())
.color(() -> MaterialPipeBlockItem::tintColor)
.onRegister(compassNodeExist(GTCompassSections.MATERIALS, "wire_and_cable"))
.build()
.register();
builder.put(insulation.tagPrefix, material, entry);
Expand Down Expand Up @@ -643,6 +644,7 @@ private static BlockEntry<CoilBlock> createCoilBlock(ICoilType coilType) {
.tag(GTToolType.WRENCH.harvestTag, BlockTags.MINEABLE_WITH_PICKAXE)
.item(RendererBlockItem::new)
.model(NonNullBiConsumer.noop())
.onRegister(compassNodeExist(GTCompassSections.BLOCKS, "coil_block"))
.build()
.register();
ALL_COILS.put(coilType, coilBlock);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,48 @@ public class GTCompassSections {
.priority(priority++)
.register();

public final static CompassSection MATERIALS = CompassSection.create("materials")
.icon(() -> new ItemStackTexture(GTItems.MATERIAL_ITEMS.get(TagPrefix.gear, GTMaterials.Steel).asStack()))
.background(() -> GuiTextures.DISPLAY)
.priority(priority++)
.register();

public final static CompassSection ITEMS = CompassSection.create("items")
.icon(() -> new ItemStackTexture(GTItems.SHAPE_MOLD_INGOT.asStack()))
.background(() -> GuiTextures.DISPLAY)
.priority(priority++)
.register();

public final static CompassSection MISC = CompassSection.create("misc")
.icon(() -> new ItemStackTexture(GTItems.COIN_GOLD_ANCIENT.asStack()))
.background(() -> GuiTextures.DISPLAY)
.priority(priority++)
.register();

public final static CompassSection CIRCUITS = CompassSection.create("circuits")
.icon(() -> new ItemStackTexture(GTItems.ELECTRONIC_CIRCUIT_LV.asStack()))
.background(() -> GuiTextures.DISPLAY)
.priority(priority++)
.register();

public final static CompassSection COMPONENTS = CompassSection.create("components")
.icon(() -> new ItemStackTexture(GTItems.ELECTRIC_MOTOR_LV.asStack()))
.background(() -> GuiTextures.DISPLAY)
.priority(priority++)
.register();

public final static CompassSection BATTERIES = CompassSection.create("batteries")
.icon(() -> new ItemStackTexture(GTItems.BATTERY_HV_SODIUM.asStack()))
.background(() -> GuiTextures.DISPLAY)
.priority(priority++)
.register();

public final static CompassSection BLOCKS = CompassSection.create("blocks")
.icon(() -> new ItemStackTexture(GTBlocks.COIL_CUPRONICKEL.asStack()))
.background(() -> GuiTextures.DISPLAY)
.priority(priority++)
.register();

public final static CompassSection MACHINES = CompassSection.create("machines")
.icon(() -> new ItemStackTexture(GTMachines.CHEMICAL_REACTOR[GTValues.LV].asStack()))
.background(() -> GuiTextures.DISPLAY)
Expand Down
564 changes: 315 additions & 249 deletions common/src/main/java/com/gregtechceu/gtceu/common/data/GTItems.java

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ public class GTMachines {
.tooltips(Component.translatable("gtceu.creative_tooltip.1"),
Component.translatable("gtceu.creative_tooltip.2"),
Component.translatable("gtceu.creative_tooltip.3"))
.compassNodeSelf()
.register();

public static BiConsumer<ItemStack, List<Component>> CHEST_TOOLTIPS = (stack, list) -> {
Expand Down Expand Up @@ -631,15 +632,15 @@ public static BiConsumer<ItemStack, List<Component>> createTankTooltips(String n
.abilities(PartAbility.MAINTENANCE)
.tooltips(Component.translatable("gtceu.universal.disabled"))
.renderer(() -> new MaintenanceHatchPartRenderer(1, GTCEu.id("block/machine/part/maintenance")))
.compassNode("maintenance")
.compassNodeSelf()
.register();

public static final MachineDefinition CONFIGURABLE_MAINTENANCE_HATCH = REGISTRATE.machine("configurable_maintenance_hatch", (blockEntity) -> new MaintenanceHatchPartMachine(blockEntity, true))
.rotationState(RotationState.ALL)
.abilities(PartAbility.MAINTENANCE)
.tooltips(Component.translatable("gtceu.universal.disabled"))
.renderer(() -> new MaintenanceHatchPartRenderer(3, GTCEu.id("block/machine/part/maintenance.configurable")))
.compassNode("maintenance")
.compassNodeSelf()
.register();

public static final MachineDefinition CLEANING_MAINTENANCE_HATCH = REGISTRATE.machine("cleaning_maintenance_hatch", CleaningMaintenanceHatchPartMachine::new)
Expand All @@ -654,15 +655,15 @@ public static BiConsumer<ItemStack, List<Component>> createTankTooltips(String n
}
})
.renderer(() -> new MaintenanceHatchPartRenderer(3, GTCEu.id("block/machine/part/maintenance.cleaning")))
.compassNode("maintenance")
.compassNodeSelf()
.register();

public static final MachineDefinition AUTO_MAINTENANCE_HATCH = REGISTRATE.machine("auto_maintenance_hatch", AutoMaintenanceHatchPartMachine::new)
.rotationState(RotationState.ALL)
.abilities(PartAbility.MAINTENANCE)
.tooltips(Component.translatable("gtceu.universal.disabled"))
.renderer(() -> new MaintenanceHatchPartRenderer(3, GTCEu.id("block/machine/part/maintenance.full_auto")))
.compassNode("maintenance")
.compassNodeSelf()
.register();


Expand Down Expand Up @@ -1260,7 +1261,7 @@ public static BiConsumer<ItemStack, List<Component>> createTankTooltips(String n
.build())
.workableCasingRenderer(FluidDrillMachine.getBaseTexture(tier), GTCEu.id("block/multiblock/fluid_drilling_rig"), false)
.compassSections(GTCompassSections.TIER[MV])
.compassNodeSelf()
.compassNode("fluid_drilling_rig")
.register(),
MV, HV, EV);

Expand Down Expand Up @@ -1296,7 +1297,7 @@ public static BiConsumer<ItemStack, List<Component>> createTankTooltips(String n
tooltip.add(Component.translatable("gtceu.universal.tooltip.energy_tier_range", GTValues.VNF[tier], GTValues.VNF[tier + 1]));
})
.compassSections(GTCompassSections.TIER[EV])
.compassNodeSelf()
.compassNode("large_miner")
.register(),
EV, IV, LuV);

Expand Down Expand Up @@ -1437,7 +1438,7 @@ public static BiConsumer<ItemStack, List<Component>> createTankTooltips(String n
GTCEu.id("block/casings/solid/machine_casing_study_hsse"),
GTCEu.id("block/multiblock/processing_array")))
.compassSections(GTCompassSections.TIER[IV])
.compassNodeSelf()
.compassNode("processing_array")
.register(),
IV, LuV) : null;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<page>
<h1>
Energium Crystal
</h1>
<h3>
Source
</h3>
<text><style color="0xaaaaaa" italic="true">Note: this page is ported from MCMOD's GTCEu wiki.<br/>Author: <style color="0xa4e7ff" hover-info="url" underlined="true" url-link="https://center.mcmod.cn/179043/">花海</style>, <style color="0xa4e7ff" hover-info="url" underlined="true" url-link="https://center.mcmod.cn/508290/">morningglory</style><br/></style></text>
<h2 font-color="0xff0000">
WARNING!!!
</h2>
<text isCenter="true">
<style color="0xff0000">The warning means this is not a reliable page.</style>
<br/>
<style bold="true" color="0xffaa00">Please do not report any mistakes on the page, either discord or github.</style>
<br/>
This page is translated from the Chinese wiki which hasn't been reviewed and polished yet. It may contain errors and inaccuracies. We are looking forward to your help by improving this page.
</text>
<text>
<br/>
<style>
Power Crystal consists of 9
<style color="0xafff00" hover-info="click link" link="gtceu:links" underlined="true">energy dust</style>
at
<style color="0xafff00" hover-info="click link" link="gtceu:links" underlined="true">Autoclave</style>
It is made from a mixture of water, distilled water, and molten black steel or blue steel. It is a HV-class rechargeable battery with a maximum capacity of 6,400,000 EU and can continuously supply energy for 10 minutes (625 seconds).
</style>
<br/>
</text>
</page>
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<page>
<h1>
Lapotronic Energy Orb
</h1>
<h3>
Source
</h3>
<text><style color="0xaaaaaa" italic="true">Note: this page is ported from MCMOD's GTCEu wiki.<br/>Author: <style color="0xa4e7ff" hover-info="url" underlined="true" url-link="https://center.mcmod.cn/285765/">TBS</style><br/></style></text>
<h2 font-color="0xff0000">
WARNING!!!
</h2>
<text isCenter="true">
<style color="0xff0000">The warning means this is not a reliable page.</style>
<br/>
<style bold="true" color="0xffaa00">Please do not report any mistakes on the page, either discord or github.</style>
<br/>
This page is translated from the Chinese wiki which hasn't been reviewed and polished yet. It may contain errors and inaccuracies. We are looking forward to your help by improving this page.
</text>
<text>
<br/>
<style>
Level IV battery with a capacity of 250,000,000EU.
</style>
<br/>
</text>
</page>
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<page>
<h1>
Lapotronic Energy Orb Cluster
</h1>
<h3>
Source
</h3>
<text><style color="0xaaaaaa" italic="true">Note: this page is ported from MCMOD's GTCEu wiki.<br/>Author: <style color="0xa4e7ff" hover-info="url" underlined="true" url-link="https://center.mcmod.cn/514346/">Magic_Sweepy</style><br/></style></text>
<h2 font-color="0xff0000">
WARNING!!!
</h2>
<text isCenter="true">
<style color="0xff0000">The warning means this is not a reliable page.</style>
<br/>
<style bold="true" color="0xffaa00">Please do not report any mistakes on the page, either discord or github.</style>
<br/>
This page is translated from the Chinese wiki which hasn't been reviewed and polished yet. It may contain errors and inaccuracies. We are looking forward to your help by improving this page.
</text>
<text>
<br/>
<style>
Lambton Energy Ball Cluster is a LuV voltage level battery that can store up to 1,000,000,000 EU energy.
<br/>
</style>
<br/>
</text>
</page>
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<page>
<h1>
Large Vanadium Battery
</h1>
<h3>
Source
</h3>
<text><style color="0xaaaaaa" italic="true">Note: this page is ported from MCMOD's GTCEu wiki.<br/>Author: <style color="0xa4e7ff" hover-info="url" underlined="true" url-link="https://center.mcmod.cn/285765/">TBS</style><br/></style></text>
<h2 font-color="0xff0000">
WARNING!!!
</h2>
<text isCenter="true">
<style color="0xff0000">The warning means this is not a reliable page.</style>
<br/>
<style bold="true" color="0xffaa00">Please do not report any mistakes on the page, either discord or github.</style>
<br/>
This page is translated from the Chinese wiki which hasn't been reviewed and polished yet. It may contain errors and inaccuracies. We are looking forward to your help by improving this page.
</text>
<text>
<br/>
<style>
Luv level battery with a capacity of 163,840,000EU.
</style>
<br/>
</text>
</page>
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<page>
<h1>
Tantalum Capacitor
</h1>
<h3>
Source
</h3>
<text><style color="0xaaaaaa" italic="true">Note: this page is ported from MCMOD's GTCEu wiki.<br/>Author: <style color="0xa4e7ff" hover-info="url" underlined="true" url-link="https://center.mcmod.cn/179043/">花海</style>, <style color="0xa4e7ff" hover-info="url" underlined="true" url-link="https://center.mcmod.cn/482827/">存档是希望</style><br/></style></text>
<h2 font-color="0xff0000">
WARNING!!!
</h2>
<text isCenter="true">
<style color="0xff0000">The warning means this is not a reliable page.</style>
<br/>
<style bold="true" color="0xffaa00">Please do not report any mistakes on the page, either discord or github.</style>
<br/>
This page is translated from the Chinese wiki which hasn't been reviewed and polished yet. It may contain errors and inaccuracies. We are looking forward to your help by improving this page.
</text>
<text>
<br/>
<style>
Tantalum capacitor is a ULV-level rechargeable battery and the simplest type of battery in this module. It can store up to 1,000 EU energy and can continuously provide power for 6 seconds (125 ticks) when fully charged.
</style>
<br/>
<br/>
<style>
Tantalum capacitor consists of 3 manganese foils, 2 iron bolts and 1 tantalum powder in
<style color="0xafff00" hover-info="click link" link="gtceu:links" underlined="true">
Salt Water - Slat Water
</style>
Pentlandite
<style color="0xafff00" hover-info="click link" link="gtceu:links" underlined="true">Assembly machine</style>
After that, molten polyethylene (PE) can be used as one of the raw materials to save raw material consumption and produce more tantalum capacitors.
<br/>
</style>
<br/>
</text>
</page>
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<page>
<h1>
Ultimate Battery
</h1>
<h3>
Source
</h3>
<text><style color="0xaaaaaa" italic="true">Note: this page is ported from MCMOD's GTCEu wiki.<br/>Author: <style color="0xa4e7ff" hover-info="url" underlined="true" url-link="https://center.mcmod.cn/179043/">花海</style><br/></style></text>
<h2 font-color="0xff0000">
WARNING!!!
</h2>
<text isCenter="true">
<style color="0xff0000">The warning means this is not a reliable page.</style>
<br/>
<style bold="true" color="0xffaa00">Please do not report any mistakes on the page, either discord or github.</style>
<br/>
This page is translated from the Chinese wiki which hasn't been reviewed and polished yet. It may contain errors and inaccuracies. We are looking forward to your help by improving this page.
</text>
<text>
<br/>
<style>
<style color="0xaaaaaa" italic="true">"Fill it to beat Minecraft"</style>
<br/>
</style>
<br/>
<br/>
<style>
The Ultimate Battery is a UHV voltage-rated battery that can store a maximum of 9,223,372,036,854,775,807 EU (2
-1 EU) of energy and can last approximately 61,083,979 hours (4,398,046,511,104 ticks) at full energy.
</style>
<br/>
<br/>
<style>
The raw materials for the synthesis of the ultimate battery are complex, requiring the use of metallic eutectic materials, neutron materials, and silica-enriched ternary europium, tin, and uranium alloy materials,
<style color="0xafff00" hover-info="click link" link="gtceu:links" underlined="true">Wetware computer host</style>
(UHV level circuit),
<style color="0xafff00" hover-info="click link" link="gtceu:links" underlined="true">
Rock Salt - RockSalt
</style>
, polybenzimidazole (PBI), super silica and other late-game raw materials are available at
<style color="0xafff00" hover-info="click link" link="gtceu:links" underlined="true">
(default value
(30, 30, 30)): The system sets the background color of the drop-down list for the Home key click action;
</style>
Made in
, synthesis requires UV-level voltage.
</style>
<br/>
<br/>
<style>
The inner material of the ultimate battery that has just been synthesized appears red, and will gradually turn green as the stored energy increases.
</style>
<br/>
<br/>
<style>
Obtaining the Ultimate Battery for the first time will complete the challenge "What Now?" (Description: Make an Ultimate Battery).
<br/>
</style>
<br/>
</text>
</page>
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<page>
<h1>
Zero Point Module
</h1>
<h3>
Source
</h3>
<text><style color="0xaaaaaa" italic="true">Note: this page is ported from MCMOD's GTCEu wiki.<br/>Author: <style color="0xa4e7ff" hover-info="url" underlined="true" url-link="https://center.mcmod.cn/666666/">六氯环己烷</style>, <style color="0xa4e7ff" hover-info="url" underlined="true" url-link="https://center.mcmod.cn/119280/">Oganesson897</style><br/></style></text>
<h2 font-color="0xff0000">
WARNING!!!
</h2>
<text isCenter="true">
<style color="0xff0000">The warning means this is not a reliable page.</style>
<br/>
<style bold="true" color="0xffaa00">Please do not report any mistakes on the page, either discord or github.</style>
<br/>
This page is translated from the Chinese wiki which hasn't been reviewed and polished yet. It may contain errors and inaccuracies. We are looking forward to your help by improving this page.
</text>
<text>
<br/>
<style>
The zero-point module is a disposable battery with a voltage level of ZPM, with a maximum capacity of 2,000,000,000,000 EU. It can provide stable and continuous power supply for about 211.93 hours at an output power of ZPM · 1 A (131,072 EU/t).
</style>
<br/>
<br/>
<style>
The zero-point module cannot be synthesized, but can only be synthesized in
<style color="0xafff00" hover-info="click link" link="gtceu:links" underlined="true">Jungle Temple</style>
Found in
's loot chest. When drawn, 4 ~ 8 groups of loot will be generated in a single loot box, and each group will have a ¹⁄₃₉ (approximately 2.56%) probability of generating a zero-point module, and the naturally generated zero-point module must be fully charged.
</style>
<br/>
<br/>
<style>
The Zero Point module is a disposable battery, which means it cannot be recharged.
</style>
<br/>
</text>
</page>
Loading

0 comments on commit 7d437b0

Please sign in to comment.