Skip to content

Commit d5168fc

Browse files
authored
Merge pull request #8 from amcocan/dev
Adds Feature!
2 parents df1e94b + 7261011 commit d5168fc

File tree

13 files changed

+255
-16
lines changed

13 files changed

+255
-16
lines changed

README.md

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This is a QoL (quality of life) datapack built for versions `1.21.3` and later o
99
1010

1111
## custom recipes
12-
The custom recipes are pretty self explanitory from just the names (_they follow the default MJE naming convention_), so I will just list them out below. Note that this will include recipes that were designed for custom features later explained.
12+
The custom recipes are pretty self explanatory from just the names (_they follow the default MJE naming convention_), so I will just list them out below. Note that this will include recipes that were designed for custom features later explained.
1313
- `minecraft/recipe/bread_shapeless.json`
1414
- `minecraft/recipe/charcoal_from_blasting_rotten_flesh.json`
1515
- `minecraft/recipe/dry_leather_from_campfire_cooking.json`
@@ -23,50 +23,54 @@ The custom recipes are pretty self explanitory from just the names (_they follow
2323

2424
## antigrief
2525
This feature adds anti-greifing for the `minecraft:creeper`, `minecraft:enderman`, and `minecraft:ghast`.
26-
> __Note:__ If an entity of type `minecraft:player` AFK's within the range of a `minecraft:creeper`, `gamerule:mobGriefing` will be set to false and potentialy interfere with the villager breeding process. The ranges for this behavior are activated as follows. _If a `minecraft:creeper` is within 4 blocks of a entity of type `minecraft:player`, `gamerule:mobGriefing` will be set to false. This gamerule will stay as false untill the entity of type `minecraft:creeper` is 10 or more blocks away from a `minecraft:player`._ Another thing to consider is that entities of type `minecraft:ghast` will not light blocks on fire with the fire charges as this violates the antigriefing mechanic used on the `minecraft:ghast`.
26+
> __Note:__ If an entity of type `minecraft:player` AFK's within the range of a `minecraft:creeper`, `gamerule:mobGriefing` will be set to false and potentially interfere with the villager breeding process. The ranges for this behavior are activated as follows. _If a `minecraft:creeper` is within 4 blocks of a entity of type `minecraft:player`, `gamerule:mobGriefing` will be set to false. This gamerule will stay as false until the entity of type `minecraft:creeper` is 10 or more blocks away from a `minecraft:player`._ Another thing to consider is that entities of type `minecraft:ghast` will not light blocks on fire with the fire charges as this violates the antigriefing mechanic used on the `minecraft:ghast`.
2727
2828

2929
## armor_statues
3030
Armor Statues allows the player to manipulate armorstands for decoration purposes using a custom `minecraft:written_book`. To learn how to get the custom `minecraft:written_book`, run `/trigger as_help`.
3131

3232
Armor Statues was built by [Phssthpok](https://x.com/MCPhssthpok), [MukiTanuki](https://twitter.com/mukitanuki), and [MSpaceDev](https://github.com/MSpaceDev). Check out the rest of [MukiTanuki's](https://github.com/MukiTanuki) and [MSpaceDev's](https://github.com/MSpaceDev) work!
3333

34-
Maintained by [Vanilla Tweeks](https://vanillatweaks.net/about/).
34+
Maintained by [Vanilla Tweaks](https://vanillatweaks.net/about/).
3535
> Learn about the details of this datapack on [vanillatweaks.net](https://vanillatweaks.net/picker/datapacks/) & [github](https://github.com/MukiTanuki/armor-statues#). Also, I removed the itemframe features from this datapack since I added my own [here](#invframe).
3636
3737

3838
## cleanup
39-
This feature adds tha ability to bring items within 16 blocks of the player to the players location using the following `trigger` command.
40-
- `/trigger clean_up` ~ _Brings all droped items within 16 blocks to the players location._
39+
This feature adds the ability to bring items within 16 blocks of the player to the players location using the following `trigger` command.
40+
- `/trigger clean_up` ~ _Brings all dropped items within 16 blocks to the players location._
4141

4242

4343
## deathcords
4444
Will show you the cords of your last death using the following `trigger` command.
45-
- `/trigger death_cords` ~ _This will show you the cords and dimention of your last death._
45+
- `/trigger death_cords` ~ _This will show you the cords and dimension of your last death._
4646

4747

4848
## durability_ping
4949
Adds durability ping for tools, weapons, and armor.
5050

51-
Durability Ping was built by [The Vanilla Tweeks Team](https://vanillatweaks.net/about/). Maintained by [Vanilla Tweeks](https://vanillatweaks.net/about/).
51+
Durability Ping was built by [The Vanilla Tweaks Team](https://vanillatweaks.net/about/). Maintained by [Vanilla Tweaks](https://vanillatweaks.net/about/).
5252

5353
> Learn about the details of this datapack on [vanillatweaks.net](https://vanillatweaks.net/picker/datapacks/).
5454
5555

5656
## extrashell
57-
This feature increases the drop of shulker shells to guarantee 2 `minecraft:shulker_shell` items. This will sidestep the looting requirments from MJE.
57+
This feature increases the drop of shulker shells to guarantee 2 `minecraft:shulker_shell` items. This will sidestep the looting requirements from MJE.
5858

5959

6060
## fast_leaf_decay
6161
Adds fast leaf decay for all trees.
6262

6363
Fast Leaf Decay was built by [Grant](https://twitter.com/GrantGryczan). Check out the rest of [Grant's](https://github.com/GrantGryczan) work!
6464

65-
Maintained by [Vanilla Tweeks](https://vanillatweaks.net/about/).
65+
Maintained by [Vanilla Tweaks](https://vanillatweaks.net/about/).
6666

6767
> Learn about the details of this datapack on [x.com/vanillatweaks](https://x.com/vanillatweaks/status/1294840567168479233).
6868
6969

70+
## god_gear
71+
This feature removes the exclusivity of protection type enchantments and resets the repair cost of items every time you interact with an anvil.
72+
73+
7074
## invframe
7175
This feature adds the ability to _hide_, _show_, and _find_ a `minecraft:item_frame` or `minecraft:glow_item_frame`. When a `minecraft:item_frame` or `minecraft:glow_item_frame` is hidden, it is also fixed so that you don't have the item rotating or the frame breaking. When a `minecraft:item_frame` or `minecraft:glow_item_frame` is shown, it is unfixed so that you can rotate the item and break the frame. You can use this feature by using the triggers below.
7276
- `/trigger find_frame` ~ _This makes it possible to find a `minecraft:item_frame` or `minecraft:glow_item_frame` that is invisible and empty._
@@ -77,23 +81,23 @@ This feature adds the ability to _hide_, _show_, and _find_ a `minecraft:item_fr
7781
## miniblocks
7882
Adds the ability to turn minecraft blocks into mini-blocks (retextured playerheads) using a `minecraft:stonecutter`.
7983

80-
Mini Blocks was built by [The Vanilla Tweeks Team](https://vanillatweaks.net/about/). Maintained by [Vanilla Tweeks](https://vanillatweaks.net/about/).
84+
Mini Blocks was built by [The Vanilla Tweaks Team](https://vanillatweaks.net/about/). Maintained by [Vanilla Tweaks](https://vanillatweaks.net/about/).
8185

8286
> Learn about the details of this datapack on [vanillatweaks.net](https://vanillatweaks.net/picker/datapacks/).
8387
8488

8589
## more_effective_tools
8690
Adds effective tools for blocks that do not have any such as `minecraft:glass`.
8791

88-
More Effective Tools was built by [The Vanilla Tweeks Team](https://vanillatweaks.net/about/). Maintained by [Vanilla Tweeks](https://vanillatweaks.net/about/).
92+
More Effective Tools was built by [The Vanilla Tweaks Team](https://vanillatweaks.net/about/). Maintained by [Vanilla Tweaks](https://vanillatweaks.net/about/).
8993

9094
> Learn about the details of this datapack on [vanillatweaks.net](https://vanillatweaks.net/picker/datapacks/).
9195
9296

9397
## more_mob_heads
94-
Originaly adds a drop chance for a custom model of an entity head using the `minecraft:player_head` item. I striped out this functionality and am using part of this datapack as the back bone for the [shearheads](#shearheads) feature of my datapack. Any flaws with this datapack are not the fault of [Vanilla Tweeks's Team](https://vanillatweaks.net/about/).
98+
Originally adds a drop chance for a custom model of an entity head using the `minecraft:player_head` item. I striped out this functionality and am using part of this datapack as the back bone for the [shearheads](#shearheads) feature of my datapack. Any flaws with this datapack are not the fault of [Vanilla Tweaks's Team](https://vanillatweaks.net/about/).
9599

96-
More Mob Heads was built by [The Vanilla Tweeks Team](https://vanillatweaks.net/about/). Maintained by [Vanilla Tweeks](https://vanillatweaks.net/about/).
100+
More Mob Heads was built by [The Vanilla Tweaks Team](https://vanillatweaks.net/about/). Maintained by [Vanilla Tweaks](https://vanillatweaks.net/about/).
97101

98102
> Learn about the original details of this datapack on [vanillatweaks.net](https://vanillatweaks.net/picker/datapacks/).
99103
@@ -103,7 +107,7 @@ To silence an entity rename a `minecraft:name_tag` to `/mute` (case-sensitive) a
103107

104108

105109
## packauthor
106-
This feature uses the `tellraw` command to provide information on the datapack everytime the datapack is reloaded. It also creates the following two `trigger` commands that people can use.
110+
This feature uses the `tellraw` command to provide information on the datapack every time the datapack is reloaded. It also creates the following two `trigger` commands that people can use.
107111
- `/trigger silence_alerts` ~ _This mutes the datapack alerts for individual features loading._
108112
- `/trigger enable_alerts` ~ _This unmutes the datapack alerts for individual features loading._
109113

@@ -115,8 +119,8 @@ This feature adds the ability to sit anywhere the player wants using the followi
115119

116120
## shearheads
117121
This feature adds the ability to collect a `minecraft:blocks/player_head` without having to kill the player in MJE. This feature also extends to other mobs/entities as well.
118-
> The items `minecraft:blocks/player_head` will not carry special properties that extend beyond the purpose of decorations. For example, collecting a wither skelleton head will not give you a `minecraft:blocks/wither_skeleton_skull`.
122+
> The items `minecraft:blocks/player_head` will not carry special properties that extend beyond the purpose of decorations. For example, collecting a wither skeleton head will not give you a `minecraft:blocks/wither_skeleton_skull`.
119123
120-
To collect the `minecraft:blocks/player_head` you will need to craft a special item useing the recipe found in `minecraft/recipe/god_reaper.json`. This is a shapeless recipe that consists of a `minecraft:armor_stand`, `minecraft:written_book`, and `minecraft:shears`. Once this item is aquired, simply walk up to the target entity (within 5 blocks), look at them, and right click.
124+
To collect the `minecraft:blocks/player_head` you will need to craft a special item using the recipe found in `minecraft/recipe/god_reaper.json`. This is a shapeless recipe that consists of a `minecraft:armor_stand`, `minecraft:written_book`, and `minecraft:shears`. Once this item is acquired, simply walk up to the target entity (within 5 blocks), look at them, and right click.
121125

122126
> __Note:__ The item from the recipe `minecraft/recipe/god_reaper.json` requires you to use the [Darkness ResourcePk](https://github.com/amcocan/darkness_resourcepack) I made. Otherwise you will get a display error for the custom item. This is due to the changes made to resource packs in the `1.21.4` version of MJE.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# ======= God Gear =======
2+
# Apply the modified repair cost.
3+
execute as @a[scores={anvil_check=1..}] run item modify entity @s player.cursor god_gear:repair_cost
4+
execute as @a[scores={anvil_check=1..}] run item modify entity @s weapon.offhand god_gear:repair_cost
5+
execute as @a[scores={anvil_check=1..}] run item modify entity @s armor.head god_gear:repair_cost
6+
execute as @a[scores={anvil_check=1..}] run item modify entity @s armor.body god_gear:repair_cost
7+
execute as @a[scores={anvil_check=1..}] run item modify entity @s armor.legs god_gear:repair_cost
8+
execute as @a[scores={anvil_check=1..}] run item modify entity @s armor.feet god_gear:repair_cost
9+
execute as @a[scores={anvil_check=1..}] run item modify entity @s hotbar.0 god_gear:repair_cost
10+
execute as @a[scores={anvil_check=1..}] run item modify entity @s hotbar.1 god_gear:repair_cost
11+
execute as @a[scores={anvil_check=1..}] run item modify entity @s hotbar.2 god_gear:repair_cost
12+
execute as @a[scores={anvil_check=1..}] run item modify entity @s hotbar.3 god_gear:repair_cost
13+
execute as @a[scores={anvil_check=1..}] run item modify entity @s hotbar.4 god_gear:repair_cost
14+
execute as @a[scores={anvil_check=1..}] run item modify entity @s hotbar.5 god_gear:repair_cost
15+
execute as @a[scores={anvil_check=1..}] run item modify entity @s hotbar.6 god_gear:repair_cost
16+
execute as @a[scores={anvil_check=1..}] run item modify entity @s hotbar.7 god_gear:repair_cost
17+
execute as @a[scores={anvil_check=1..}] run item modify entity @s hotbar.8 god_gear:repair_cost
18+
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.0 god_gear:repair_cost
19+
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.1 god_gear:repair_cost
20+
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.2 god_gear:repair_cost
21+
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.3 god_gear:repair_cost
22+
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.4 god_gear:repair_cost
23+
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.5 god_gear:repair_cost
24+
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.6 god_gear:repair_cost
25+
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.7 god_gear:repair_cost
26+
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.8 god_gear:repair_cost
27+
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.9 god_gear:repair_cost
28+
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.10 god_gear:repair_cost
29+
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.11 god_gear:repair_cost
30+
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.12 god_gear:repair_cost
31+
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.13 god_gear:repair_cost
32+
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.14 god_gear:repair_cost
33+
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.15 god_gear:repair_cost
34+
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.16 god_gear:repair_cost
35+
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.17 god_gear:repair_cost
36+
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.18 god_gear:repair_cost
37+
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.19 god_gear:repair_cost
38+
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.20 god_gear:repair_cost
39+
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.21 god_gear:repair_cost
40+
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.22 god_gear:repair_cost
41+
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.23 god_gear:repair_cost
42+
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.24 god_gear:repair_cost
43+
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.25 god_gear:repair_cost
44+
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.26 god_gear:repair_cost
45+
# Reset scoreboard objective
46+
execute as @a[scores={anvil_check=1..}] run scoreboard players reset @s anvil_checker
47+
# Schedule function loop
48+
schedule function god_gear:loop 5t append
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# ======= God Gear =======
2+
# Create scoreboard objective.
3+
scoreboard objectives add anvil_check minecraft.custom:minecraft.interact_with_anvil "Anvil Check"
4+
# Alert everyone that datapack loaded successfully.
5+
tellraw @a[tag=!no_alerts] [{"text":"| ", "color":"#ff003c"}, {"text":"Status: ", "color":"#868e96"}, {"text":"God_gear function initialized successfully.", "color":"#ced4da"}]
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
[
2+
{
3+
"function": "minecraft:filtered",
4+
"item_filter": {
5+
"components": {
6+
"minecraft:repair_cost": 1
7+
}
8+
},
9+
"modifier": {
10+
"function": "minecraft:set_components",
11+
"components": {
12+
"minecraft:repair_cost": 0
13+
}
14+
}
15+
},
16+
{
17+
"function": "minecraft:filtered",
18+
"item_filter": {
19+
"components": {
20+
"minecraft:repair_cost": 3
21+
}
22+
},
23+
"modifier": {
24+
"function": "minecraft:set_components",
25+
"components": {
26+
"minecraft:repair_cost": 0
27+
}
28+
}
29+
},
30+
{
31+
"function": "minecraft:filtered",
32+
"item_filter": {
33+
"components": {
34+
"minecraft:repair_cost": 7
35+
}
36+
},
37+
"modifier": {
38+
"function": "minecraft:set_components",
39+
"components": {
40+
"minecraft:repair_cost": 0
41+
}
42+
}
43+
},
44+
{
45+
"function": "minecraft:filtered",
46+
"item_filter": {
47+
"components": {
48+
"minecraft:repair_cost": 15
49+
}
50+
},
51+
"modifier": {
52+
"function": "minecraft:set_components",
53+
"components": {
54+
"minecraft:repair_cost": 0
55+
}
56+
}
57+
},
58+
{
59+
"function": "minecraft:filtered",
60+
"item_filter": {
61+
"components": {
62+
"minecraft:repair_cost": 31
63+
}
64+
},
65+
"modifier": {
66+
"function": "minecraft:set_components",
67+
"components": {
68+
"minecraft:repair_cost": 0
69+
}
70+
}
71+
},
72+
{
73+
"function": "minecraft:filtered",
74+
"item_filter": {
75+
"components": {
76+
"minecraft:repair_cost": 63
77+
}
78+
},
79+
"modifier": {
80+
"function": "minecraft:set_components",
81+
"components": {
82+
"minecraft:repair_cost": 0
83+
}
84+
}
85+
}
86+
]
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# ======= Item Name Color =======
2+
# Get the item name and store it.
3+
# data modify storage item_color:name ori_name set from entity @s SelectedItem.components.minecraft:item_name
4+
# data modify storage item_color:name ori_name set from entity @s SelectedItem.components.minecraft:custom_name
5+
# Parse and re-apply the item name.
6+
7+
# Reset trigger.
8+
execute as @a[scores={item_color=2..}] run scoreboard players reset @s item_color

0 commit comments

Comments
 (0)