Skip to content

Commit

Permalink
Vegancraft 1.0 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
daenvil committed Jun 5, 2023
1 parent aea15c4 commit 11ad0a3
Show file tree
Hide file tree
Showing 371 changed files with 3,015 additions and 1,638 deletions.
2 changes: 1 addition & 1 deletion docs/README.md → README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<img src="../datapack/pack.png" alt="logo" align="right" width=64 height=auto/>
<img src="datapack/pack.png" alt="logo" align="right" width=64 height=auto/>

# Daenvil's Vegancraft
A datapack/collection of datapacks which makes a vegan gamestyle possible in a vanilla-like way without missing any game features.
Expand Down
15 changes: 8 additions & 7 deletions datapack/README.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# Daenvil's Vegancraft v1e (Full Datapack) for Minecraft 1.19+
# Daenvil's Vegancraft v1.0 (Full Datapack) for Minecraft 1.20+

This datapack is a merged version of the following datapacks:

- [Plant-based Foods v1.0.1](https://daenvil.github.io/MCDatapacks/plant-based_foods.html)
- [Omnivorous Pets v1](https://daenvil.github.io/MCDatapacks/omnivorous_pets.html)
- [Acacia Gum v1](https://daenvil.github.io/MCDatapacks/acacia_gum.html)
- [Ethical Textiles v1](https://daenvil.github.io/MCDatapacks/ethical_Textiles.html)
- [Plant Wax v1](https://daenvil.github.io/MCDatapacks/plant_wax.html)
- [Plant-based Foods v1.1](https://daenvil.github.io/MCDatapacks/plant-based_foods.html)
- [Omnivorous Pets v1.1](https://daenvil.github.io/MCDatapacks/omnivorous_pets.html)
- [Acacia Gum v1.1](https://daenvil.github.io/MCDatapacks/acacia_gum.html)
- [Ethical Textiles v1.1](https://daenvil.github.io/MCDatapacks/ethical_Textiles.html)
- [Plant Wax v1.1](https://daenvil.github.io/MCDatapacks/plant_wax.html)
- [Magnet Fishing v1.1](https://daenvil.github.io/MCDatapacks/magnet_fishing.html)

- This datapack was made by Daenvil, its official pages are:

Expand All @@ -15,7 +16,7 @@ This datapack is a merged version of the following datapacks:

- 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 15th of December 2022. Check the webpages above for possible updates.
- This version was published on the 5th of June 2023. Check the webpages above for possible updates.

## Installation

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,27 @@
"used_axe_on_acacia_bark": {
"trigger": "minecraft:item_used_on_block",
"conditions": {
"location": {
"block": {
"tag": "dnv.core:acacia_bark"
"location": [
{
"condition": "all_of",
"terms": [
{
"condition": "minecraft:location_check",
"predicate": {
"block": {
"tag": "dnv.core:acacia_bark"
}
}
},
{
"condition": "match_tool",
"predicate": {
"tag": "dnv.core:axes"
}
}
]
}
},
"item": {
"tag": "dnv.core:axes"
}
]
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,36 @@
"function": "dnv.acacia_gum:used_axe_on_acacia_bark_fortune_1"
},
"criteria": {
"used_axe_on_acacia_bark": {
"used_axe_on_acacia_bark_fortune_1": {
"trigger": "minecraft:item_used_on_block",
"conditions": {
"location": {
"block": {
"tag": "dnv.core:acacia_bark"
"location": [
{
"condition": "all_of",
"terms": [
{
"condition": "minecraft:location_check",
"predicate": {
"block": {
"tag": "dnv.core:acacia_bark"
}
}
},
{
"condition": "match_tool",
"predicate": {
"tag": "dnv.core:axes",
"enchantments": [
{
"enchantment": "minecraft:fortune",
"levels": 1
}
]
}
}
]
}
},
"item": {
"tag": "dnv.core:axes",
"enchantments": [{
"enchantment": "minecraft:fortune",
"levels": 1
}]
}
]
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,36 @@
"function": "dnv.acacia_gum:used_axe_on_acacia_bark_fortune_2"
},
"criteria": {
"used_axe_on_acacia_bark": {
"used_axe_on_acacia_bark_fortune_2": {
"trigger": "minecraft:item_used_on_block",
"conditions": {
"location": {
"block": {
"tag": "dnv.core:acacia_bark"
"location": [
{
"condition": "all_of",
"terms": [
{
"condition": "minecraft:location_check",
"predicate": {
"block": {
"tag": "dnv.core:acacia_bark"
}
}
},
{
"condition": "match_tool",
"predicate": {
"tag": "dnv.core:axes",
"enchantments": [
{
"enchantment": "minecraft:fortune",
"levels": 2
}
]
}
}
]
}
},
"item": {
"tag": "dnv.core:axes",
"enchantments": [{
"enchantment": "minecraft:fortune",
"levels": 2
}]
}
]
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,36 @@
"function": "dnv.acacia_gum:used_axe_on_acacia_bark_fortune_3"
},
"criteria": {
"used_axe_on_acacia_bark": {
"used_axe_on_acacia_bark_fortune_3": {
"trigger": "minecraft:item_used_on_block",
"conditions": {
"location": {
"block": {
"tag": "dnv.core:acacia_bark"
"location": [
{
"condition": "all_of",
"terms": [
{
"condition": "minecraft:location_check",
"predicate": {
"block": {
"tag": "dnv.core:acacia_bark"
}
}
},
{
"condition": "match_tool",
"predicate": {
"tag": "dnv.core:axes",
"enchantments": [
{
"enchantment": "minecraft:fortune",
"levels": 3
}
]
}
}
]
}
},
"item": {
"tag": "dnv.core:axes",
"enchantments": [{
"enchantment": "minecraft:fortune",
"levels": 3
}]
}
]
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Called by function dnv.acacia_gum:find_stripped_acacia(_wide)
# Called by function dnv.acacia_gum:find_stripped_acacia(_line/_wide)
# @s = player who stripped acacia log/wood
# position = stripped acacia log/wood (or player position, if not found)

scoreboard players set @s dnv.found_acacia 1
loot spawn ~ ~ ~ loot dnv.acacia_gum:drop

execute if score dnv.dummy dnv.vegancraft matches 1 run scoreboard players add @s dnv.vxp 40
execute if score dnv.dummy dnv.vegancraft matches 1 run function dnv.vegancraft:award_xp
execute if score dnv.dummy dnv.vegancraft matches 1 run tag @s add dnv.vc.award_xp
execute if score dnv.dummy dnv.vegancraft matches 1 run schedule function dnv.vegancraft:award_xp 1t replace
execute if score dnv.dummy dnv.vegancraft matches 1 run advancement grant @s until dnv.vegancraft:acacia_gum/slime_ball
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
advancement revoke @s only dnv.acacia_gum:used_axe_on_acacia_bark_fortune_1
tellraw @a "FORTUNE I"

# Decide beforehand if gumball is going to drop, to avoid useless processing:
execute if predicate dnv.acacia_gum:extra_drop_chance_fortune_1 run function dnv.acacia_gum:find_stripped_acacia
2 changes: 1 addition & 1 deletion datapack/data/dnv.acacia_gum/loot_tables/drop.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"functions": [
{
"function": "set_name",
"name": {"translate":"dnv.acacia_gum.item.acacia_gumball", "italic":false}
"name": {"translate":"dnv.acacia_gum.item.acacia_gumball", "italic":false, "fallback": "Acacia Gum"}
},
{
"function": "set_nbt",
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,19 @@
"function": "dnv.core:triggers/interacted_with_crafting_table"
},
"criteria": {
"crafting_table_interaction": {
"interacted_with_crafting_table": {
"trigger": "minecraft:item_used_on_block",
"conditions": {
"location": {
"block": {
"blocks": ["minecraft:crafting_table"]
"location": [
{
"condition": "location_check",
"predicate": {
"block": {
"id": "crafting_table"
}
}
}
}
]
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,19 @@
"function": "dnv.core:triggers/interacted_with_furnace"
},
"criteria": {
"crafting_table_interaction": {
"interacted_with_furnace": {
"trigger": "minecraft:item_used_on_block",
"conditions": {
"location": {
"block": {
"blocks": ["minecraft:furnace"]
"location": [
{
"condition": "location_check",
"predicate": {
"block": {
"id": "furnace"
}
}
}
}
]
}
}
}
Expand Down
13 changes: 11 additions & 2 deletions datapack/data/dnv.core/advancements/triggers/placed_furnace.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
{
"criteria": {
"placed_composter": {
"placed_furnace": {
"trigger": "minecraft:placed_block",
"conditions": {
"block": "minecraft:furnace"
"location": [
{
"condition": "location_check",
"predicate": {
"block": {
"id": "furnace"
}
}
}
]
}
}
},
Expand Down
5 changes: 0 additions & 5 deletions datapack/data/dnv.core/functions/id_player.mcfunction

This file was deleted.

This file was deleted.

21 changes: 21 additions & 0 deletions datapack/data/dnv.core/tags/blocks/waxable_blocks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"values": [
"minecraft:copper_block",
"minecraft:exposed_copper",
"minecraft:weathered_copper",
"minecraft:oxidized_copper",
"minecraft:cut_copper",
"minecraft:exposed_cut_copper",
"minecraft:weathered_cut_copper",
"minecraft:oxidized_cut_copper",
"minecraft:cut_copper_slab",
"minecraft:exposed_cut_copper_slab",
"minecraft:weathered_cut_copper_slab",
"minecraft:oxidized_cut_copper_slab",
"minecraft:cut_copper_stairs",
"minecraft:exposed_cut_copper_stairs",
"minecraft:weathered_cut_copper_stairs",
"minecraft:oxidized_cut_copper_stairs",
"#minecraft:all_signs"
]
}

This file was deleted.

Loading

0 comments on commit 11ad0a3

Please sign in to comment.