Skip to content

1.0 Breaking Changes

Lucas Barcellos edited this page Dec 21, 2021 · 3 revisions

This page explains all the breaking changes caused by Farmer's Delight 1.0 on versions 1.17 and 1.18.

Disclaimer

This is a MAJOR version bump! The code has been refactored, and things are likely to break. Ideally, we recommend starting new worlds on this version.

As with any version change, ALWAYS BACKUP YOUR WORLDS before upgrading. If anything goes wrong, you'll be able to undo any problems.

Migrate your worlds at your own risk!

Pantry -> Cabinet

Originally named Pantry due to my non-native English failing me, FD 1.0 renames it to Cabinet.

When migrating an old save, the mod will attempt to do the following:

  • Remap the old block and item ID's to the new ones;
  • Move the block's stored contents over to a new ID as well.

This process might fail, depending on mod interactions. Blocks and items with old IDs might be deleted, and any contents stored in these blocks will be lost.

If these changes are failing for some reason, you may try doing the following:

  1. Enter your world;
  2. Empty all placed Pantries you can find;
  3. Migrate the world to FD 1.0 on a new MC version;
  4. Refill your cabinets with the previous items.

Standard Remappings

Same rules apply above. Make backups before migrating, and pay attention to your logs.

  • rice_crop has been remapped to rice;
  • rice_upper_crop has been renamed to rice_panicles;

Removal of the comfort_foods tag

This tag has been removed from Farmer's Delight. The Comfort effect now only applies to vanilla meals.

It was originally added as an attempt to let users attach the new effects to foods. However, tags proved ill-suited for the task:

  • The system was inflexible to durations, always giving 5 minutes no matter what;
  • It ran the risk of causing unbound tag crashes depending on where it was used;

Due to how janky my implementation was, and the problems it caused, I'm leaving food effect customization to mods better suited for such.

Add-ons

If you create add-ons for Farmer's Delight, chances are you'll have to change a lot of code already. If you have any technical questions over changes in code and package structure, feel free to message me directly with your questions.

Clone this wiki locally