-
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix CustomNameVisible NBT * Update version and pack format * Split boat entity types * Builtin empty loot table was removed * Update packtest to 1.21.2-pre3 * Add overlay for biome_extensions * Replace air items with count 0 items in loot tables * Update auto crafting air loot entries * Revert overlay direction * Test both 1.21.1 and 1.21.2 * Remove generic. and player. attribute prefixes * Use 1.21.2-pre3 vanilla files and update beet scripts * Fix some random issues * Rewrite attribute IDs for pack format 48 * Add overlay for soul glass recipe * Disable luck attribute rewrite because it conflicts with the potion effect * Disable new banner patterns in overlay * Fix phantom scarecrows rocket aim due to tp command change * Remove beehive inspector from 1.21.2 * Update test versions to 1.21.2
- Loading branch information
Showing
1,469 changed files
with
19,252 additions
and
1,788 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"pools": [ | ||
{ | ||
"rolls": 1, | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"name": "minecraft:stick", | ||
"functions": [ | ||
{ | ||
"function": "minecraft:set_count", | ||
"count": 0 | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"pools": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"values": [ | ||
{ "id": "minecraft:boat", "required": false }, | ||
{ "id": "#minecraft:boat", "required": false } | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"values": [ | ||
{ "id": "minecraft:chest_boat", "required": false }, | ||
{ "id": "minecraft:oak_chest_boat", "required": false }, | ||
{ "id": "minecraft:spruce_chest_boat", "required": false }, | ||
{ "id": "minecraft:birch_chest_boat", "required": false }, | ||
{ "id": "minecraft:jungle_chest_boat", "required": false }, | ||
{ "id": "minecraft:acacia_chest_boat", "required": false }, | ||
{ "id": "minecraft:cherry_chest_boat", "required": false }, | ||
{ "id": "minecraft:dark_oak_chest_boat", "required": false }, | ||
{ "id": "minecraft:mangrove_chest_boat", "required": false }, | ||
{ "id": "minecraft:bamboo_chest_raft", "required": false }, | ||
{ "id": "minecraft:pale_oak_chest_boat", "required": false } | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"pools": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
from beet import Context, TextFileBase | ||
import re | ||
|
||
ATTRIBUTES_RENAMES = { | ||
"minecraft:armor": "minecraft:generic.armor", | ||
"minecraft:armor_toughness": "minecraft:generic.armor_toughness", | ||
"minecraft:attack_damage": "minecraft:generic.attack_damage", | ||
"minecraft:attack_knockback": "minecraft:generic.attack_knockback", | ||
"minecraft:attack_speed": "minecraft:generic.attack_speed", | ||
"minecraft:block_break_speed": "minecraft:player.block_break_speed", | ||
"minecraft:block_interaction_range": "minecraft:player.block_interaction_range", | ||
"minecraft:burning_time": "minecraft:generic.burning_time", | ||
"minecraft:explosion_knockback_resistance": "minecraft:generic.explosion_knockback_resistance", | ||
"minecraft:entity_interaction_range": "minecraft:player.entity_interaction_range", | ||
"minecraft:fall_damage_multiplier": "minecraft:generic.fall_damage_multiplier", | ||
"minecraft:flying_speed": "minecraft:generic.flying_speed", | ||
"minecraft:follow_range": "minecraft:generic.follow_range", | ||
"minecraft:gravity": "minecraft:generic.gravity", | ||
"minecraft:jump_strength": "minecraft:generic.jump_strength", | ||
"minecraft:knockback_resistance": "minecraft:generic.knockback_resistance", | ||
# We only use "minecraft:luck" as a potion/effect, never as attribute | ||
# "minecraft:luck": "minecraft:generic.luck", | ||
"minecraft:max_absorption": "minecraft:generic.max_absorption", | ||
"minecraft:max_health": "minecraft:generic.max_health", | ||
"minecraft:mining_efficiency": "minecraft:player.mining_efficiency", | ||
"minecraft:movement_efficiency": "minecraft:generic.movement_efficiency", | ||
"minecraft:movement_speed": "minecraft:generic.movement_speed", | ||
"minecraft:oxygen_bonus": "minecraft:generic.oxygen_bonus", | ||
"minecraft:safe_fall_distance": "minecraft:generic.safe_fall_distance", | ||
"minecraft:scale": "minecraft:generic.scale", | ||
"minecraft:sneaking_speed": "minecraft:player.sneaking_speed", | ||
"minecraft:spawn_reinforcements": "minecraft:zombie.spawn_reinforcements", | ||
"minecraft:step_height": "minecraft:generic.step_height", | ||
"minecraft:submerged_mining_speed": "minecraft:player.submerged_mining_speed", | ||
"minecraft:sweeping_damage_ratio": "minecraft:player.sweeping_damage_ratio", | ||
"minecraft:water_movement_efficiency": "minecraft:generic.water_movement_efficiency", | ||
} | ||
|
||
def beet_default(ctx: Context): | ||
yield | ||
|
||
for id, resource in ctx.data.all(): | ||
if isinstance(resource, TextFileBase): | ||
resource.source_stop | ||
overlay_text = resource.text | ||
for src_attribute, overlay_attribute in ATTRIBUTES_RENAMES.items(): | ||
overlay_text = re.sub("\\b" + src_attribute + "\\b", overlay_attribute, overlay_text) | ||
if overlay_text != resource.text: | ||
overlay_resource = resource.copy() | ||
overlay_resource.text = overlay_text | ||
overlay = ctx.data.overlays["overlay_48"] | ||
overlay.supported_formats = { "min_inclusive": 48, "max_inclusive": 48 } | ||
overlay[id] = overlay_resource |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.