Skip to content

Commit 930f36f

Browse files
committed
📦 Update module ZIPs
1 parent 37b69cb commit 930f36f

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

modules/v1_21_4.zip

69 Bytes
Binary file not shown.

modules/v1_21_5.zip

52 Bytes
Binary file not shown.

modules/v1_21_6.zip

52 Bytes
Binary file not shown.

src/generation/v1_21_6/block_templates/block.json.j2

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
}
3636
{% else %}
3737
{% set prefix = blocks[block]["blockDrop"].split('_')[0] %}
38-
{% set suffix = blocks[block]["blockDrop"].split('_')[1] %}
38+
{% set suffix = ingredients["9"].split('_')[1:] | join('_') %}
3939
{% if (blocks[block]["blockDrop"] not in items) and (blocks[block]["blockDrop"] not in blocks) %}
4040
{
4141
"pools": [
@@ -90,7 +90,7 @@
9090
"function": "minecraft:set_components",
9191
"components": {
9292
"minecraft:item_model": "{{ packNamespace }}:{{ blocks[blocks[block]['blockDrop']]['name'] }}",
93-
"minecraft:custom_name": "{\"italic\": False, \"text\": \"{{ blocks[blocks[block]['blockDrop']]['displayName'] }}\" }",
93+
"minecraft:custom_name": {"italic": False, "text": "{{ blocks[blocks[block]['blockDrop']]['displayName'] }}" },
9494
"minecraft:entity_data": {
9595
"id": "minecraft:item_frame",
9696
"Fixed": true,
@@ -134,28 +134,28 @@
134134
"asset_id": "{{ packNamespace }}:{{ prefix }}"
135135
},
136136
"minecraft:item_model": "{{ packNamespace }}:{{ prefix }}_{{ suffix }}",
137-
"minecraft:item_name": {"italic":false,"text":"{{ prefix }} {{ suffix }}"},
137+
"minecraft:item_name": {"italic":false,"text":"{{ prefix }} {{ suffix.replace('_', ' ').capitalize() }}"},
138138
"minecraft:attribute_modifiers": [
139139
{
140140
"id": "armor",
141141
"type": "armor",
142142
"amount": {{ equipment[prefix]["armor"][suffix] }},
143-
"operation": "add_value",
144-
"slot": "{{ slot_map[suffix] }}"
143+
"operation": "add_value"{% if not suffix == "horse_armor" %},
144+
"slot": "{{ slot_map[suffix] }}"{% endif %}
145145
},
146146
{
147147
"id": "armor_toughness",
148148
"type": "armor_toughness",
149149
"amount": {{ equipment[prefix]["toughness"] }},
150-
"operation": "add_value",
151-
"slot": "{{ slot_map[suffix] }}"
150+
"operation": "add_value"{% if not suffix == "horse_armor" %},
151+
"slot": "{{ slot_map[suffix] }}"{% endif %}
152152
},
153153
{
154154
"id": "knockback_resistance",
155155
"type": "knockback_resistance",
156156
"amount": {{ equipment[prefix]["kb_resistance"] }},
157-
"operation": "add_value",
158-
"slot": "{{ slot_map[suffix] }}"
157+
"operation": "add_value"{% if not suffix == "horse_armor" %},
158+
"slot": "{{ slot_map[suffix] }}"{% endif %}
159159
}
160160
],
161161
"minecraft:max_damage": {{ equipment[prefix]["durability"][suffix] }}

0 commit comments

Comments
 (0)