Minecraft Data Packs / Game Mechanic

Sustainable Forests

  • check_circle Functions
  • 3,786 views, 1 today
  • 142 downloads, 0 today
  • 5
  • 2
  • 10
RagPoet's Avatar RagPoet
Level 44 : Master Architect
8
Sustainable Forests

A Minecraft datapack that automatically replants saplings that land on grass, dirt, podzol or coarse dirt before they despawn.

After 4 minutes on plantable ground, the saplings receive a glowing aura. About 20 seconds before the saplings despwan, the saplings take root to sustain the forest you just chopped down. Saplings can be picked up at any time before they take root.

Only single trunk saplings are supported. Sorry Dark Oak fans, you have to wait around for those leave to despawn for your sapling prizes.

Supported Saplings:
  • Acacia
  • Birch
  • Jungle
  • Oak
  • Spruce
Supported Soils:
  • Coarse Dirt
  • Dirt
  • Grass
  • Podzol
If by some act of the random god, 4 saplings of Jungle or Spruce land in a 2x2, you will get a large version. Good luck!

You can edit the Sustainable Forests\data\sustainable_forests\functions\tick.mcfunction file to disable 1 or more saplings from replanting.

To install, copy the Sustainable Forests.zip to your world's datapack folder.

Compatible with single and multiplayer worlds.

Boring video to follow. Almost as bad as watching grass grow or waiting for your toast to pop up.
CompatibilityMinecraft 1.15
toMinecraft 1.16
Tags

Create an account or sign in to comment.

DemonDragonKing
04/11/2020 1:27 am
Level 13 : Journeyman Farmer
DemonDragonKing's Avatar
Is it a 100% chance for saplings to take root? If so, would it be possible to add a function to change the chances of saplings taking root?
1
RagPoet
04/11/2020 9:51 am
Level 44 : Master Architect
RagPoet's Avatar
It is a 100% chance if the conditions are right. It would be possible to add a % chance using the predicate system that was introduced in 1.15.
1
DemonDragonKing
04/12/2020 12:39 am
Level 13 : Journeyman Farmer
DemonDragonKing's Avatar
Have you by chance thought about implementing a way to do so? Just curious as I want to use this on a skyblock world I play on but I don't want it to be a 100% chance, if conditions are met.
1
RagPoet
04/12/2020 12:06 pm
Level 44 : Master Architect
RagPoet's Avatar
What % are you thinking? 50%, 20%, 1%?
1
DemonDragonKing
04/12/2020 1:43 pm
Level 13 : Journeyman Farmer
DemonDragonKing's Avatar
Maybe internals of 20 (20%, 40%, 60%, 80%, 100%) or 25 (25%, 50%, 75%, 100%)
1
RagPoet
04/12/2020 2:01 pm
Level 44 : Master Architect
RagPoet's Avatar
The way is it currently written there would be 1 chance to plant the sapling before it despawns. In that scenario what chance seems appropriate? 50% to plant, 50% to despawn?
1
_williamab
04/10/2020 11:52 am
Level 44 : Master Explorer
_williamab's Avatar
uff 4 min more time for the trees to plant themselves
1
_williamab
04/10/2020 12:11 pm
Level 44 : Master Explorer
history
_williamab's Avatar
but the rest is very good but I'm not convinced by the effect you've put on it but good.
1
_williamab
04/10/2020 12:35 pm
Level 44 : Master Explorer
_williamab's Avatar
what would bother me is if I gave you for planting an orb of exp for waiting for it to be planted
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome