Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asteroid dimension #320

Open
wants to merge 32 commits into
base: main
Choose a base branch
from

Conversation

maxryan008
Copy link

@maxryan008 maxryan008 commented May 22, 2024

Fixed some textures plus added asteroid dimension

Added Asteroids Dimension and configured skybox. Haven't started terrain generation yet.
Completed Asteroid Dimension Terrain Generation

Structures/Features not implemented yet
@maxryan008 maxryan008 changed the title texture/model fixes asteroid dimension May 28, 2024
Canned food items can now be created from any food with ease. planning to add automatic food detection that creates cans for any mods foods.
canned food items have been almost completed other than fixing appleskins api integration and creating a machine to make cans in survival
canned food items completed
- added total nutrition
- fixed whitespace
- added appleskin integration for canned food

Todo
- create canning machine to make canned food accessible in survival
food canner fully implemented and works completely. also put licencensing on all new files i have created
sort of started working on asteroid dimension structures
@marcus8448 marcus8448 marked this pull request as draft July 31, 2024 18:08
removed TODO: comment in food_canner json because it was causing issues. make sure in future to change the recipe for the food canner block ad the advancement requirements

added licencing
fixed json issue
added only eat canned food in space
sealer code half implemented. uploading github because need backup because rewriting sealer AGAIN...
- added asteroid ores + dense ice
- fixed some data generation issues
- made asteroid dimension pitch black
- fixed air lock seal for the second time
- fixed canned food textures
- Fixed translations for canned food
- Fixed ores aswell because asteroid ores where broken
Launch pads are now dynamic and are created using one method in the RocketParts class
added Rocket Nose Cone items
decided to leave rocket code as is because rebuilding everything from scratch was painful. just going to build ontop of the already implemented system
Updated everything to work with 1.21
@maxryan008 maxryan008 force-pushed the 1.20.4-block-texture-fixes branch from 4c5d2c2 to 8e8a2e2 Compare September 3, 2024 14:06
@TheMCSpacePro
Copy link

Rockets?

fixed most generated files and moved some to resources
Fixed most of the bugs with the oxygen sealer. Few more to fix but need to fetch the main branch first to fix conflicts
Sealers are now at a stage where they are usable in the game. They arent perfect but they are usable
@maxryan008 maxryan008 marked this pull request as ready for review February 12, 2025 10:38
Copy link
Contributor

@Roelymole Roelymole left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have looked over most things, but there is a lot, so my comments are by no means exhaustive. Hopefully this should be enough for you to get started on making some changes. I do think there is a fair amount of redundancy which you could work on reducing, so maybe the next time someone looks there won't be nearly so much to review.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you use the raw aluminum block as a placeholder for the canner at some point? Either way I think you should revert these changes or rename the file.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does all of this noise generation need to be ported? If the vanilla noise generation can be used then it would be better and I suspect that it is possible now.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like a lot of this code should be in a different class such as GCItems.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really like the opening curly brackets being on the next line and it is not being done consistently or in the same style as the other screen classes.

if (!status.equals(GCMachineStatuses.BLOCKED)) {
int sealCheckTime = this.menu.sealTickTime;
//TODO: make this a bar that goes down over time to match gc4's sealer screen?
graphics.drawString(this.font, Component.literal("Sealer Recheck: ").append(String.valueOf(sealCheckTime)), this.leftPos + 50, this.topPos + 50, ChatFormatting.YELLOW.getColor(), false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you make this hardcoded text translatable. Also, I think it is best if you include the %s placeholder e.g. "Sealer Recheck: %s" so that the translations have more control over the formatting. Look at the machine status above for an example.


public static void registerCan(ItemStack cannedFoodType)
{
ItemGroupEvents.modifyEntriesEvent(ResourceKey.create(Registries.CREATIVE_MODE_TAB, Constant.id(Constant.Item.ITEM_GROUP_CANS))).register(entries -> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would registering all of the canned food before the creative mode tabs remove the need for this?

@@ -399,6 +400,9 @@ protected void generateItemTranslations() {
this.item(GCItems.AMBIENT_THERMAL_CONTROLLER, "Ambient Thermal Controller");

// FOOD
this.item(GCItems.CANNED_FOOD, "Canned ");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you also use the %s placeholder here so that it is more translatable, as other languages might have a different word order.

@@ -911,6 +914,8 @@ protected void generateUiTranslations() {
this.add(Ui.GIANT_LEAP, "Taking one giant leap");
this.add(Ui.PREPARE_FOR_ENTRY, "Prepare for entry!");
this.add(Ui.TRAVELING_TO, "Traveling to: %s");

this.add(Ui.TOTAL_NUTRITION, "Total Nutrition: ");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another %s placeholder would be good.

{
return InteractionResultHolder.pass(itemStack);
} else {
player.displayClientMessage(Component.literal("You cannot eat this here!").withColor(Color.RED.getRGB()), true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make this hardcoded text translatable.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These slot sprites will need to be removed from this texture and added in a different way. The style of them will need to be updated too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants