Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
… into cryo
  • Loading branch information
Roelymole committed Jan 3, 2025
2 parents 90f25b3 + 83f7c93 commit 093ffbe
Show file tree
Hide file tree
Showing 9 changed files with 617 additions and 163 deletions.
24 changes: 12 additions & 12 deletions src/main/generated/assets/galacticraft/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"biome.galacticraft.venus_valley": "Venus Valley",
"block.galacticraft.advanced_solar_panel": "Advanced Solar Panel",
"block.galacticraft.advanced_solar_panel.description": "Advanced Solar Panels collect energy from the sun, and store it for further use. Adjusts position to face the sun, to collect more electricity.",
"block.galacticraft.air_lock_controller": "Air Lock Controller",
"block.galacticraft.air_lock_frame": "Air Lock Frame",
"block.galacticraft.air_lock_seal": "Air Lock Seal",
"block.galacticraft.air_lock_controller": "Airlock Controller",
"block.galacticraft.air_lock_frame": "Airlock Frame",
"block.galacticraft.air_lock_seal": "Airlock Seal",
"block.galacticraft.aluminum_block": "Block of Aluminum",
"block.galacticraft.aluminum_decoration": "Aluminum Decoration",
"block.galacticraft.aluminum_decoration_slab": "Aluminum Decoration Slab",
Expand Down Expand Up @@ -178,7 +178,7 @@
"block.galacticraft.moon_basalt_stairs": "Moon Basalt Stairs",
"block.galacticraft.moon_basalt_wall": "Moon Basalt Wall",
"block.galacticraft.moon_cheese_wheel": "Moon Cheese Wheel",
"block.galacticraft.moon_cheese_wheel.description": "Cheese Blocks are created from the cheeses of the Moon, place-able and edible.",
"block.galacticraft.moon_cheese_wheel.description": "Moon Cheese Wheels are created from the cheeses of the Moon, place-able and edible.",
"block.galacticraft.moon_copper_ore": "Moon Copper Ore",
"block.galacticraft.moon_dirt": "Moon Dirt",
"block.galacticraft.moon_dirt_path": "Moon Dirt Path",
Expand Down Expand Up @@ -567,7 +567,7 @@
"ui.galacticraft.booster": "Booster",
"ui.galacticraft.bubble_distributor.current_size": "Current Size: %s",
"ui.galacticraft.bubble_distributor.not_visible": "Bubble Not Visible",
"ui.galacticraft.bubble_distributor.size": "Target Size:",
"ui.galacticraft.bubble_distributor.size": "Target Size: ",
"ui.galacticraft.bubble_distributor.visible": "Bubble Visible",
"ui.galacticraft.celestialselection.apply": "Apply",
"ui.galacticraft.celestialselection.assign_name": "Assign Name",
Expand Down Expand Up @@ -599,7 +599,7 @@
"ui.galacticraft.giant_leap": "Taking one giant leap",
"ui.galacticraft.machine.collecting": "Collecting: %s/s",
"ui.galacticraft.machine.current_oxygen": "Oxygen: %s",
"ui.galacticraft.machine.gj_per_t": "%sGj/t",
"ui.galacticraft.machine.gj_per_t": "%s gJ/t",
"ui.galacticraft.machine.max_oxygen": "Maximum Oxygen: %s",
"ui.galacticraft.machine.solar_panel.atmospheric_interference": "Atmospheric Interference: %s",
"ui.galacticraft.machine.solar_panel.blocked": "Blocked",
Expand All @@ -618,7 +618,7 @@
"ui.galacticraft.machine.status": "Status: ",
"ui.galacticraft.player_inv_screen.oxygen_tank_level": "Oxygen Tank %s: %s/%s",
"ui.galacticraft.prepare_for_entry": "Prepare for entry!",
"ui.galacticraft.rocket.fuel": "Fuel:",
"ui.galacticraft.rocket.fuel": "Fuel: ",
"ui.galacticraft.rocket.full": "% full",
"ui.galacticraft.rocket.no_fuel": "No fuel",
"ui.galacticraft.satellite": "Satellite",
Expand Down Expand Up @@ -661,16 +661,16 @@
"ui.galacticraft.status.missing_oxygen_tank": "Missing Oxygen Tank",
"ui.galacticraft.status.night": "Night",
"ui.galacticraft.status.no_fuel": "No Fuel",
"ui.galacticraft.status.no_rocket": "No rocket",
"ui.galacticraft.status.not_enough_fuel": "Not enough fuel",
"ui.galacticraft.status.no_rocket": "No Rocket",
"ui.galacticraft.status.not_enough_fuel": "Not Enough Fuel",
"ui.galacticraft.status.not_enough_oxygen": "Not Enough Oxygen",
"ui.galacticraft.status.oxygen_tank_full": "Oxygen Tank Full",
"ui.galacticraft.status.partially_blocked": "Partially Blocked",
"ui.galacticraft.status.rain": "Rain",
"ui.galacticraft.status.rocket_is_full": "Rocket is full",
"ui.galacticraft.status.rocket_is_full": "Rocket Is Full",
"ui.galacticraft.status.sealed": "Sealed",
"ui.galacticraft.status.warming_up": "Warming up",
"ui.galacticraft.travelling_to": "Travelling to: ",
"ui.galacticraft.status.warming_up": "Warming Up",
"ui.galacticraft.travelling_to": "Traveling to: ",
"ui.galacticraft.upgrade": "Upgrade",
"ui.lander.velocity": "Entry Velocity",
"ui.lander.velocityu": "m/s",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,16 @@

package dev.galacticraft.mod.client.gui.screen.ingame;

import dev.galacticraft.mod.Constant;
import dev.galacticraft.mod.content.block.entity.machine.AdvancedSolarPanelBlockEntity;
import dev.galacticraft.mod.screen.SolarPanelMenu;
import dev.galacticraft.mod.util.Translations;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.network.chat.Component;
import net.minecraft.world.entity.player.Inventory;

import java.util.List;

@Environment(EnvType.CLIENT)
public class AdvancedSolarPanelScreen extends SolarPanelScreen<AdvancedSolarPanelBlockEntity, SolarPanelMenu<AdvancedSolarPanelBlockEntity>> {
public AdvancedSolarPanelScreen(SolarPanelMenu<AdvancedSolarPanelBlockEntity> handler, Inventory inv, Component title) {
super(handler, inv, title);
}

@Override
public void appendEnergyTooltip(List<Component> list) {
if (this.menu.state.isActive()) {
list.add(Component.translatable(Translations.Ui.GJT, this.menu.getCurrentEnergyGeneration()).setStyle(Constant.Text.Color.LIGHT_PURPLE_STYLE));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ protected void renderBg(GuiGraphics graphics, float partialTicks, int mouseX, in

@Override
protected void renderLabels(GuiGraphics graphics, int i, int j) {
graphics.drawString(this.font, Component.literal(Minecraft.getInstance().player.getGameProfile().getName() + "'s Air Lock Controller"), this.titleLabelX, this.titleLabelY, 4210752, false);
graphics.drawString(this.font, Component.literal(Minecraft.getInstance().player.getGameProfile().getName() + "'s Airlock Controller"), this.titleLabelX, this.titleLabelY, 4210752, false);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,16 @@

package dev.galacticraft.mod.client.gui.screen.ingame;

import dev.galacticraft.mod.Constant;
import dev.galacticraft.mod.content.block.entity.machine.BasicSolarPanelBlockEntity;
import dev.galacticraft.mod.screen.SolarPanelMenu;
import dev.galacticraft.mod.util.Translations;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.network.chat.Component;
import net.minecraft.world.entity.player.Inventory;

import java.util.List;

@Environment(EnvType.CLIENT)
public class BasicSolarPanelScreen extends SolarPanelScreen<BasicSolarPanelBlockEntity, SolarPanelMenu<BasicSolarPanelBlockEntity>> {
public BasicSolarPanelScreen(SolarPanelMenu<BasicSolarPanelBlockEntity> handler, Inventory inv, Component title) {
super(handler, inv, title);
}

@Override
public void appendEnergyTooltip(List<Component> list) {
if (this.menu.state.isActive()) {
list.add(Component.translatable(Translations.Ui.GJT, this.menu.getCurrentEnergyGeneration()).setStyle(Constant.Text.Color.LIGHT_PURPLE_STYLE));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ private void drawNormal(GuiGraphics graphics, int x, int y, int normalU, int nor

@Override
public void appendEnergyTooltip(List<Component> list) {
super.appendEnergyTooltip(list);
if (this.menu.state.isActive()) {
list.add(Component.translatable(Translations.Ui.GJT, this.menu.getCurrentEnergyGeneration()).setStyle(Constant.Text.Color.LIGHT_PURPLE_STYLE));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ public void unsealAirLock()

@Override
public Component getDisplayName() {
return Component.literal(ownerName + "'s Air Lock Controller");
return Component.literal(ownerName + "'s Airlock Controller");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ public void onGroundHit() {
entity.setDeltaMovement(Vec3.ZERO);
entity.setPos(entity.getX(), this.getY() + 2.25, entity.getZ());
}
this.level().explode(this, this.getX(), this.getY(), this.getZ(), 12, true, Level.ExplosionInteraction.MOB);
this.level().explode(this, this.getX(), this.getY(), this.getZ(), 12, false, Level.ExplosionInteraction.MOB);

discard();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ public LanderCelestialTeleporterType(Codec<Config> codec) {

@Override
public void onEnterAtmosphere(ServerLevel level, ServerPlayer player, CelestialBody<?, ?> body, CelestialBody<?, ?> fromBody, Config config) {
player.teleportTo(level, player.getX(), 1100, player.getZ(), player.getYRot(), player.getXRot());
LanderEntity lander = new LanderEntity(player);
level.addFreshEntity(lander);
lander.setPos(player.getX(), 1100, player.getZ());
player.teleportTo(level, player.getX(), 1100, player.getZ(), player.getYRot(), player.getXRot());
player.startRiding(lander, true);
}
}
Loading

0 comments on commit 093ffbe

Please sign in to comment.