Skip to content

Commit

Permalink
Merge pull request #3 from daenvil/1.20.5-dev
Browse files Browse the repository at this point in the history
v1.3 - update for MC1.20.5
  • Loading branch information
daenvil authored Apr 26, 2024
2 parents e6a013f + b2dcd86 commit cbd78ca
Show file tree
Hide file tree
Showing 98 changed files with 528 additions and 864 deletions.
1 change: 0 additions & 1 deletion .github/FUNDING.yml

This file was deleted.

6 changes: 2 additions & 4 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# More Compostable Items (v1.2.1, for Minecraft 1.20+)
# More Compostable Items (v1.3, for Minecraft 1.20.5)

A datapack that adds composting mechanics to all vanilla items which *should* be compostable, being as close as possible to vanilla mechanics. Fully customizable.

Expand All @@ -7,9 +7,7 @@ A datapack that adds composting mechanics to all vanilla items which *should* be
- On PlanetMinecraft: https://www.planetminecraft.com/data-pack/more-compostable-items/
- On my website: https://daenvil.github.io/MCDatapacks/more_compostable_items.html

- If you like my datapacks, please consider leaving a tip at my ko-fi: https://ko-fi.com/daenvilmc

- This version was published on the 6th of June 2023. Check the webpages above for possible updates.
- This version was published on the 26th of April 2024. Check the webpages above for possible updates.

## Installation

Expand Down
18 changes: 18 additions & 0 deletions data/dnv.compost/advancements/placed_composter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"criteria": {
"placed_composter": {
"trigger": "minecraft:placed_block",
"conditions": {
"location": [
{
"condition": "block_state_property",
"block": "composter"
}
]
}
}
},
"rewards": {
"function": "zz.dnv.compost:on_placed_composter"
}
}
3 changes: 3 additions & 0 deletions data/dnv.compost/functions/dropping_toggle.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ execute if score dnv.dummy dnv.comp.drop_on matches 2 run scoreboard players set

execute if score dnv.dummy dnv.comp.drop_on matches 1 run tellraw @s {"text":"[Daenvil's More Compostable Items]: compost-by-dropping enabled.","color":"green"}
execute if score dnv.dummy dnv.comp.drop_on matches 0 run tellraw @s {"text":"[Daenvil's More Compostable Items]: compost-by-dropping disabled.","color":"red"}

execute if score dnv.dummy dnv.comp.drop_on matches 1 run schedule function zz.dnv.compost:drop-composting/update 3t replace
execute if score dnv.dummy dnv.comp.drop_on matches 0 run schedule clear zz.dnv.compost:drop-composting/update
16 changes: 8 additions & 8 deletions data/dnv.compost/functions/uninstall.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ kill @e[tag=dnv.composter_marker]

scoreboard objectives remove dnv.comp.debug
scoreboard objectives remove dnv.comp.drop_on
scoreboard objectives remove dnv.cm_present
scoreboard objectives remove dnv.no_composter
scoreboard objectives remove dnv.comp_found
scoreboard objectives remove dnv.c_item_found
scoreboard objectives remove dnv.hopper_slot
scoreboard objectives remove dnv.c_item_count
scoreboard objectives remove dnv.hopper_cd
scoreboard objectives remove dnv.comp_success
scoreboard objectives remove dnv.comp.has_marker
scoreboard objectives remove dnv.comp.deletion_timer
scoreboard objectives remove dnv.comp.found
scoreboard objectives remove dnv.comp.item_found
scoreboard objectives remove dnv.comp.hopper_slot
scoreboard objectives remove dnv.comp.item_count
scoreboard objectives remove dnv.comp.hopper_cd
scoreboard objectives remove dnv.comp.success
10 changes: 10 additions & 0 deletions data/dnv.compost/tags/items/all_compostable_items.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"values":[
"#dnv.compost:compostable_items_10pc",
"#dnv.compost:compostable_items_30pc",
"#dnv.compost:compostable_items_50pc",
"#dnv.compost:compostable_items_65pc",
"#dnv.compost:compostable_items_85pc",
"#dnv.compost:compostable_items_100pc"
]
}
11 changes: 11 additions & 0 deletions data/dnv.compost/tags/items/compostable_items_100pc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"values":[
"#dnv.compost:vanilla-compostable_100pc",
"mycelium",
"sculk",
"sculk_catalyst",
"sculk_shrieker",
"sculk_sensor",
"calibrated_sculk_sensor"
]
}
37 changes: 37 additions & 0 deletions data/dnv.compost/tags/items/compostable_items_10pc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"values":[
"sugar",
"honeycomb",
"spider_eye",
"fermented_spider_eye",
"phantom_membrane",
"turtle_scute",
"rabbit_hide",
"bamboo",
"string",
"feather",
"slime_ball",
"magma_cream",
"ink_sac",
"glow_ink_sac",
"black_dye",
"red_dye",
"green_dye",
"brown_dye",
"blue_dye",
"purple_dye",
"cyan_dye",
"light_gray_dye",
"gray_dye",
"pink_dye",
"lime_dye",
"yellow_dye",
"light_blue_dye",
"magenta_dye",
"orange_dye",
"white_dye",
"stick",
"#wool_carpets",
"armadillo_scute"
]
}
25 changes: 25 additions & 0 deletions data/dnv.compost/tags/items/compostable_items_30pc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"values":[
"#dnv.compost:vanilla-compostable_30pc",
"chorus_fruit",
"popped_chorus_fruit",
"chorus_flower",
"honey_block",
"honeycomb_block",
"rotten_flesh",
"egg",
"turtle_egg",
"leather",
"dead_bush",
"charcoal",
"#wool",
"slime_block",
"nautilus_shell",
"paper",
"cobweb",
"goat_horn",
"mangrove_roots",
"muddy_mangrove_roots",
"mangrove_leaves"
]
}
14 changes: 14 additions & 0 deletions data/dnv.compost/tags/items/compostable_items_50pc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"values":[
"#dnv.compost:vanilla-compostable_50pc",
"cooked_chicken",
"cooked_cod",
"cooked_mutton",
"cooked_porkchop",
"cooked_rabbit",
"cooked_salmon",
"cooked_beef",
"crimson_nylium",
"warped_nylium"
]
}
26 changes: 26 additions & 0 deletions data/dnv.compost/tags/items/compostable_items_65pc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"values":[
"#dnv.compost:vanilla-compostable_65pc",
"poisonous_potato",
"tube_coral",
"brain_coral",
"bubble_coral",
"fire_coral",
"horn_coral",
"tube_coral_fan",
"brain_coral_fan",
"bubble_coral_fan",
"fire_coral_fan",
"horn_coral_fan",
"dead_tube_coral",
"dead_brain_coral",
"dead_bubble_coral",
"dead_fire_coral",
"dead_horn_coral",
"dead_tube_coral_fan",
"dead_brain_coral_fan",
"dead_bubble_coral_fan",
"dead_fire_coral_fan",
"dead_horn_coral_fan"
]
}
20 changes: 20 additions & 0 deletions data/dnv.compost/tags/items/compostable_items_85pc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"values":[
"#dnv.compost:vanilla-compostable_85pc",
"beetroot_soup",
"mushroom_stew",
"rabbit_stew",
"suspicious_stew",
"tube_coral_block",
"brain_coral_block",
"bubble_coral_block",
"fire_coral_block",
"horn_coral_block",
"dead_tube_coral_block",
"dead_brain_coral_block",
"dead_bubble_coral_block",
"dead_fire_coral_block",
"dead_horn_coral_block",
"sculk_vein"
]
}
10 changes: 10 additions & 0 deletions data/dnv.compost/tags/items/vanilla-compostable.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"_comment_": "Contains all items which are compostable in vanilla",
"values":[
"#dnv.compost:vanilla-compostable_30pc",
"#dnv.compost:vanilla-compostable_50pc",
"#dnv.compost:vanilla-compostable_65pc",
"#dnv.compost:vanilla-compostable_85pc",
"#dnv.compost:vanilla-compostable_100pc"
]
}
7 changes: 7 additions & 0 deletions data/dnv.compost/tags/items/vanilla-compostable_100pc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"_comment_": "Contains all items which are compostable in vanilla with 100% chance",
"values": [
"cake",
"pumpkin_pie"
]
}
24 changes: 24 additions & 0 deletions data/dnv.compost/tags/items/vanilla-compostable_30pc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"_comment_": "Contains all items which are compostable in vanilla with 30% chance",
"values": [
"beetroot_seeds",
"dried_kelp",
"glow_berries",
"hanging_roots",
"#saplings",
"mangrove_roots",
"kelp",
"#leaves",
"melon_seeds",
"moss_carpet",
"pink_petals",
"pitcher_pod",
"pumpkin_seeds",
"seagrass",
"short_grass",
"small_dripleaf",
"sweet_berries",
"torchflower_seeds",
"wheat_seeds"
]
}
15 changes: 15 additions & 0 deletions data/dnv.compost/tags/items/vanilla-compostable_50pc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"_comment_": "Contains all items which are compostable in vanilla with 50% chance",
"values": [
"cactus",
"dried_kelp_block",
"glow_lichen",
"melon_slice",
"nether_sprouts",
"sugar_cane",
"tall_grass",
"twisting_vines",
"vine",
"weeping_vines"
]
}
33 changes: 33 additions & 0 deletions data/dnv.compost/tags/items/vanilla-compostable_65pc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"_comment_": "Contains all items which are compostable in vanilla with 65% chance",
"values": [
"apple",
"azalea",
"beetroot",
"big_dripleaf",
"carrot",
"cocoa_beans",
"fern",
"#small_flowers",
"#tall_flowers",
"crimson_fungus",
"warped_fungus",
"large_fern",
"lily_pad",
"melon",
"moss_block",
"red_mushroom",
"brown_mushroom",
"mushroom_stem",
"nether_wart",
"potato",
"pumpkin",
"carved_pumpkin",
"crimson_roots",
"warped_roots",
"sea_pickle",
"shroomlight",
"spore_blossom",
"wheat"
]
}
16 changes: 16 additions & 0 deletions data/dnv.compost/tags/items/vanilla-compostable_85pc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"_comment_": "Contains all items which are compostable in vanilla with 85% chance",
"values": [
"baked_potato",
"bread",
"cookie",
"flowering_azalea",
"hay_block",
"red_mushroom_block",
"brown_mushroom_block",
"nether_wart_block",
"pitcher_plant",
"torchflower",
"warped_wart_block"
]
}
9 changes: 0 additions & 9 deletions data/dnv.core/functions/check_version.mcfunction

This file was deleted.

7 changes: 0 additions & 7 deletions data/dnv.core/item_modifiers/reduce_count.json

This file was deleted.

4 changes: 0 additions & 4 deletions data/dnv.core/predicates/chance/10.json

This file was deleted.

4 changes: 0 additions & 4 deletions data/dnv.core/predicates/chance/30.json

This file was deleted.

4 changes: 0 additions & 4 deletions data/dnv.core/predicates/chance/50.json

This file was deleted.

4 changes: 0 additions & 4 deletions data/dnv.core/predicates/chance/65.json

This file was deleted.

4 changes: 0 additions & 4 deletions data/dnv.core/predicates/chance/85.json

This file was deleted.

5 changes: 0 additions & 5 deletions data/dnv.core/tags/functions/version_checkers.json

This file was deleted.

Loading

0 comments on commit cbd78ca

Please sign in to comment.