diff --git a/lib_trees/beet.yaml b/lib_trees/beet.yaml index 61c50fe2e0..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.3.X -description: A mcfunction library that facilites the creation of custom trees. +version: 1.4.X +description: A mcfunction library that facilitates the creation of custom trees. data_pack: load: 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" + ] +}