Skip to content

Commit

Permalink
Merge pull request #163 from Hojosa/trees
Browse files Browse the repository at this point in the history
add cork tree & apple tree improvements
  • Loading branch information
Alatyami authored Oct 21, 2024
2 parents 5243ef4 + 09370a2 commit cdca8a2
Show file tree
Hide file tree
Showing 70 changed files with 1,002 additions and 50 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ plugins {
id 'maven-publish'
id 'net.minecraftforge.gradle' version '[6.0,6.2)'
id "org.sonarqube" version "4.3.0.3225"
id 'org.parchmentmc.librarian.forgegradle' version '1.+'
}

version = "${minecraft_version}-${mod_version}"
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ minecraft_version_range=[1.20.1,1.21)
forge_version=47.2.0
forge_version_range=47,)
loader_version_range=[47,)
mapping_channel=official
mapping_version=1.20.1
mapping_channel=parchment
mapping_version=1.20.1-2023.09.03-1.20.1
# ------------------------------------------------
# Mod Properties
# ------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ pluginManagement {
url = 'https://maven.minecraftforge.net/'
}
maven {url 'https://repo.spongepowered.org/repository/maven-public/'}
maven { url = 'https://maven.parchmentmc.org' }
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"type": "forge:add_features",
"biomes": "#growthcraft_apples:has_apple_tree",
"features": "growthcraft_apples:apple_tree_placed",
"step": "vegetal_decoration"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"values": [
"minecraft:forest",
"minecraft:plains"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
{
"type": "minecraft:tree",
"config": {
"decorators": [],
"dirt_provider": {
"type": "minecraft:simple_state_provider",
"state": {
"Name": "minecraft:dirt"
}
},
"foliage_placer": {
"type": "minecraft:cherry_foliage_placer",
"corner_hole_chance": 0.25,
"hanging_leaves_chance": 0.0,
"hanging_leaves_extension_chance": 0.0,
"height": 5,
"offset": 0,
"radius": 4,
"wide_bottom_layer_hole_chance": 0.25
},
"foliage_provider": {
"type": "minecraft:simple_state_provider",
"state": {
"Name": "growthcraft_apples:apple_tree_leaves",
"Properties": {
"distance": "7",
"persistent": "false",
"waterlogged": "false"
}
}
},
"force_dirt": false,
"ignore_vines": false,
"minimum_size": {
"type": "minecraft:two_layers_feature_size",
"limit": 1,
"lower_size": 0,
"upper_size": 2
},
"trunk_placer": {
"type": "minecraft:cherry_trunk_placer",
"base_height": 6,
"branch_count": {
"type": "minecraft:weighted_list",
"distribution": [
{
"data": 1,
"weight": 1
},
{
"data": 2,
"weight": 1
},
{
"data": 3,
"weight": 1
}
]
},
"branch_end_offset_from_top": {
"type": "minecraft:uniform",
"value": {
"max_inclusive": 0,
"min_inclusive": -1
}
},
"branch_horizontal_length": {
"type": "minecraft:uniform",
"value": {
"max_inclusive": 4,
"min_inclusive": 2
}
},
"branch_start_offset_from_top": {
"max_inclusive": -3,
"min_inclusive": -4
},
"height_rand_a": 1,
"height_rand_b": 0
},
"trunk_provider": {
"type": "minecraft:simple_state_provider",
"state": {
"Name": "growthcraft_apples:apple_wood_log",
"Properties": {
"axis": "y"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
"type": "minecraft:weighted_list",
"distribution": [
{
"data": 3,
"weight": 9
"data": 0,
"weight": 19
},
{
"data": 5,
"data": 1,
"weight": 1
}
]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"type": "forge:add_features",
"biomes": "#growthcraft_cellar:has_cork_tree",
"features": "growthcraft_cellar:cork_tree_placed",
"step": "vegetal_decoration"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:any_of",
"terms": [
{
"condition": "minecraft:match_tool",
"predicate": {
"items": [
"minecraft:shears"
]
}
},
{
"condition": "minecraft:match_tool",
"predicate": {
"enchantments": [
{
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
]
}
],
"name": "growthcraft_cellar:cork_tree_leaves"
},
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:survives_explosion"
},
{
"chances": [
0.05,
0.0625,
0.083333336,
0.1
],
"condition": "minecraft:table_bonus",
"enchantment": "minecraft:fortune"
}
],
"name": "growthcraft_cellar:cork_tree_sapling"
}
]
}
],
"rolls": 1.0
},
{
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:inverted",
"term": {
"condition": "minecraft:any_of",
"terms": [
{
"condition": "minecraft:match_tool",
"predicate": {
"items": [
"minecraft:shears"
]
}
},
{
"condition": "minecraft:match_tool",
"predicate": {
"enchantments": [
{
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
]
}
}
],
"entries": [
{
"type": "minecraft:item",
"conditions": [
{
"chances": [
0.02,
0.022222223,
0.025,
0.033333335,
0.1
],
"condition": "minecraft:table_bonus",
"enchantment": "minecraft:fortune"
}
],
"functions": [
{
"add": false,
"count": {
"type": "minecraft:uniform",
"max": 2.0,
"min": 1.0
},
"function": "minecraft:set_count"
},
{
"function": "minecraft:explosion_decay"
}
],
"name": "minecraft:stick"
}
],
"rolls": 1.0
}
],
"random_sequence": "growthcraft_cellar:blocks/cork_tree_leaves"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
],
"entries": [
{
"type": "minecraft:item",
"name": "growthcraft_cellar:cork_tree_sapling"
}
],
"rolls": 1.0
}
],
"random_sequence": "growthcraft_cellar:blocks/cork_tree_sapling"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
],
"entries": [
{
"type": "minecraft:item",
"name": "growthcraft_cellar:cork_wood"
}
],
"rolls": 1.0
}
],
"random_sequence": "growthcraft_cellar:blocks/cork_wood"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
],
"entries": [
{
"type": "minecraft:item",
"name": "growthcraft_cellar:cork_wood_log"
}
],
"rolls": 1.0
}
],
"random_sequence": "growthcraft_cellar:blocks/cork_wood_log"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
],
"entries": [
{
"type": "minecraft:item",
"name": "growthcraft_cellar:cork_wood_log_stripped"
}
],
"rolls": 1.0
}
],
"random_sequence": "growthcraft_cellar:blocks/cork_wood_log_stripped"
}
Loading

0 comments on commit cdca8a2

Please sign in to comment.