Skip to content

Comments

feat: Make fruit tree transplanting possible#8236

Open
DeinonychusDiscord wants to merge 23 commits intocataclysmbn:mainfrom
DeinonychusDiscord:treesplanting
Open

feat: Make fruit tree transplanting possible#8236
DeinonychusDiscord wants to merge 23 commits intocataclysmbn:mainfrom
DeinonychusDiscord:treesplanting

Conversation

@DeinonychusDiscord
Copy link
Contributor

Purpose of change (The Why)

Bushes can be moved. But not trees. I'm fixing that.

Describe the solution (The How)

You can dig up and move trees to new locations in one of two ways: digging them up and replanting by hand with a shovel, which takes 8 hours, or digging them up and replanting with a new Tree Spade mounted vehicle part, which takes 2 hours.

After discussion on the discord, I decided to make tree spades both findable and craftable.

You learn the recipe from two uncommon books, one in mechanics, one in fabrication.

You have a guaranteed chance of finding a tree spade vehicle at the apple orchard tree processing stall parking lot.

Smaller chances at other places that are sensible to find utility or farming vehicles.

You have a very small chance of finding the item version in hardware stores, recycling centers, and dumps.

Digging out a tree requires you to have an arboreal canvas sack [you autolearn this and it takes 8 normal canvas sacks to build] as well as some water, and it gives you the soil you'd need to replant the tree with.

Replanting it gives you back the sack.

Currently all explicitly fruit trees, as well as cacao, coffee, and coca trees are supported. Nut trees and decorative trees are not included.

Describe alternatives you've considered

Testing

Tested extensively along the way, caught numerous small oopsies, fine-tuned, caught a potential exploit.

Pulled up one of the new tree spade excavators to a tree, dug it out, replanted it, works fine.

Dug out a tree by hand, then replanted it. Works fine. Time taken is as expected, byproducts are as expected.

Tested mapgen. Orchard tree stall has guaranteed 100% spawn of at least one treespade vehicle, with a smaller chance of a second one.

Removed third spawn chance in secondary stall map tile because it kept clipping with nearby terrain.

Everything works as intended, but let me know if any bugs come up in the future and I'll fix them quickly.

Additional context

This is very json heavy, but it is being pushed forward as an interim option until we can luafy the tree digging and planting process into a dynamic callable menu or something.

Checklist

Mandatory

@github-actions github-actions bot added the JSON related to game datas in JSON format. label Feb 24, 2026
@autofix-ci
Copy link
Contributor

autofix-ci bot commented Feb 24, 2026

Autofix has formatted code style violation in this PR.

I edit commits locally (e.g: git, github desktop) and want to keep autofix
  1. Run git pull. this will merge the automated commit into your local copy of the PR branch.
  2. Continue working.
I do not want the automated commit
  1. Format your code locally, then commit it.
  2. Run git push --force to force push your branch. This will overwrite the automated commit on remote with your local one.
  3. Continue working.

If you don't do this, your following commits will be based on the old commit, and cause MERGE CONFLICT.

Copy link
Collaborator

@AzmodiusX AzmodiusX left a comment

Choose a reason for hiding this comment

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

Did you miss uploading a fix for this?

@DeinonychusDiscord
Copy link
Contributor Author

Did you miss uploading a fix for this?

Hi. Yes I did. I uploaded all of those just now.

@AzmodiusX
Copy link
Collaborator

Uh
You uploaded a copy of the file.
So the og error is still there, and now there's a duplicate.

@AzmodiusX
Copy link
Collaborator

I fixed the incorrect upload issue, friend
firefox_zxDZRoHniG

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

JSON related to game datas in JSON format.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants