Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions gm4_apple_trees/beet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ id: gm4_apple_trees
name: Apple Trees
version: 2.5.X

require:
- bolt

data_pack:
load: .

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

# place jigsaw gm4_apple_trees:apple_trees gm4_apple_trees:trunk 2 ~ ~1 ~
# jigsaw generation not usable after world-gen due to inherent position-based randomizaton
execute unless predicate gm4_apple_trees:valid_placement run return fail
function gm4_apple_trees:sapling/grow/generate_random_tree
execute if block ~ ~-1 ~ grass_block run setblock ~ ~-1 ~ dirt
execute positioned ~ ~1 ~ as @e[type=armor_stand,tag=gm4_apple_uninitialized,distance=..6] run function gm4_apple_trees:leaf/initialize
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
check = []
for x in range(-4,5):
for y in range(1,8):
for z in range(-4,5):
check.append(
{
"condition": "minecraft:location_check",
"offsetX": x,
"offsetY": y,
"offsetZ": z,
"predicate": {
"block": {
"blocks": "#gm4_apple_trees:tree_placeable"
}
}
}
)

{
"condition": "minecraft:all_of",
"terms": check
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"values": [
"#minecraft:air",
"#minecraft:logs",
"#minecraft:replaceable_by_trees",
"#minecraft:saplings"
]
}
Loading