From 8af39aff68e1892d65caf159345f3ed6c901ecd9 Mon Sep 17 00:00:00 2001 From: Thanathor <73304324+TheThanathor@users.noreply.github.com> Date: Fri, 16 Jan 2026 15:39:36 +0100 Subject: [PATCH 1/2] update lib trees to support mangrove and pale oak --- lib_trees/beet.yaml | 2 +- .../data/gm4_trees/function/sapling/advance_stage.mcfunction | 5 +++-- .../data/gm4_trees/function/sapling/place_sapling.mcfunction | 1 + lib_trees/data/gm4_trees/tags/function/place_sapling.json | 5 +++++ 4 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 lib_trees/data/gm4_trees/tags/function/place_sapling.json diff --git a/lib_trees/beet.yaml b/lib_trees/beet.yaml index 61c50fe2e0..d80045ffc1 100644 --- a/lib_trees/beet.yaml +++ b/lib_trees/beet.yaml @@ -1,6 +1,6 @@ id: gm4_trees name: Gamemode 4 Trees -version: 1.3.X +version: 1.4.X description: A mcfunction library that facilites the creation of custom trees. data_pack: diff --git a/lib_trees/data/gm4_trees/function/sapling/advance_stage.mcfunction b/lib_trees/data/gm4_trees/function/sapling/advance_stage.mcfunction index 73ea58f507..5413703c49 100644 --- a/lib_trees/data/gm4_trees/function/sapling/advance_stage.mcfunction +++ b/lib_trees/data/gm4_trees/function/sapling/advance_stage.mcfunction @@ -10,8 +10,9 @@ execute if block ~ ~ ~ minecraft:spruce_sapling run setblock ~ ~ ~ minecraft:spr execute if block ~ ~ ~ minecraft:jungle_sapling run setblock ~ ~ ~ minecraft:jungle_sapling[stage=0] execute if block ~ ~ ~ minecraft:acacia_sapling run setblock ~ ~ ~ minecraft:acacia_sapling[stage=0] execute if block ~ ~ ~ minecraft:dark_oak_sapling run setblock ~ ~ ~ minecraft:dark_oak_sapling[stage=0] -execute if block ~ ~ ~ minecraft:mangrove_propagule[waterlogged=false] run setblock ~ ~ ~ minecraft:mangrove_propagule[stage=0,waterlogged=false] -execute if block ~ ~ ~ minecraft:mangrove_propagule[waterlogged=true] run setblock ~ ~ ~ minecraft:mangrove_propagule[stage=0,waterlogged=true] +execute if block ~ ~ ~ minecraft:pale_oak_sapling run setblock ~ ~ ~ minecraft:pale_oak_sapling[stage=0] +execute if block ~ ~ ~ minecraft:mangrove_propagule[waterlogged=false,hanging=false,age=4] run setblock ~ ~ ~ minecraft:mangrove_propagule[stage=0,age=4,waterlogged=false] +execute if block ~ ~ ~ minecraft:mangrove_propagule[waterlogged=true,hanging=false,age=4] run setblock ~ ~ ~ minecraft:mangrove_propagule[stage=0,age=4,waterlogged=true] execute if block ~ ~ ~ minecraft:cherry_sapling run setblock ~ ~ ~ minecraft:cherry_sapling[stage=0] # advance stage of custom sapling, if stage is large enough, grow the tree diff --git a/lib_trees/data/gm4_trees/function/sapling/place_sapling.mcfunction b/lib_trees/data/gm4_trees/function/sapling/place_sapling.mcfunction index 50c94f4cf9..5de5244476 100644 --- a/lib_trees/data/gm4_trees/function/sapling/place_sapling.mcfunction +++ b/lib_trees/data/gm4_trees/function/sapling/place_sapling.mcfunction @@ -2,6 +2,7 @@ # @s = player that just placed a custom sapling # at @s # run from advancement gm4_trees:place_sapling +# run from function tag gm4_trees:place_sapling advancement revoke @s only gm4_trees:place_sapling diff --git a/lib_trees/data/gm4_trees/tags/function/place_sapling.json b/lib_trees/data/gm4_trees/tags/function/place_sapling.json new file mode 100644 index 0000000000..a7a3f50426 --- /dev/null +++ b/lib_trees/data/gm4_trees/tags/function/place_sapling.json @@ -0,0 +1,5 @@ +{ + "values": [ + "gm4_trees:sapling/place_sapling" + ] +} From d64d2d320b77b8f6257b5789f0d47a9e6638ba12 Mon Sep 17 00:00:00 2001 From: Bloo Date: Fri, 16 Jan 2026 23:37:57 +0100 Subject: [PATCH 2/2] Fix Typo in Description --- lib_trees/beet.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib_trees/beet.yaml b/lib_trees/beet.yaml index d80045ffc1..0378dc1eb2 100644 --- a/lib_trees/beet.yaml +++ b/lib_trees/beet.yaml @@ -1,7 +1,7 @@ id: gm4_trees name: Gamemode 4 Trees version: 1.4.X -description: A mcfunction library that facilites the creation of custom trees. +description: A mcfunction library that facilitates the creation of custom trees. data_pack: load: