Skip to content

Commit 4773375

Browse files
Merge pull request #4 from negative-light-media/update/1.20.6
update pack to version 44
2 parents fa8dbc8 + 68619e3 commit 4773375

File tree

1 file changed

+29
-5
lines changed

1 file changed

+29
-5
lines changed

BUILD_COMMAND.py

+29-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Goal: Write Datapack that sets up all display items
66
VERSION = (1, 0, 0) # Major, Minor, Fix per semantic versioning v2 https://semver.org/
7-
MC_PACK_VERSION = 26
7+
MC_PACK_VERSION = 41
88
DIR_OUTPUT = "./output"
99
DIR_DATA = f"{DIR_OUTPUT}/data"
1010
DIR_PACK = f"{DIR_DATA}/summon-stands"
@@ -58,9 +58,9 @@ def getPos(x, y, z):
5858
def getItem(type, element, material=None, trim=None):
5959
# {id:"minecraft:leather_helmet", Count: 1b, tag: {Damage: 0, Trim: {material: "minecraft:iron", pattern: "minecraft:sentry"}}}
6060
retValue = "{"
61-
retValue += f'id: "minecraft:{type}_{element}", Count:1b'
61+
retValue += f'id: "minecraft:{type}_{element}", count: 1'
6262
if trim != None:
63-
retValue += ", tag: { Trim: "
63+
retValue += ", components: { \"minecraft:trim\":"
6464
retValue += "{"
6565
retValue += f'material: "minecraft:{material}", pattern: "minecraft:{trim}"'
6666
retValue += "}"
@@ -146,7 +146,7 @@ def main():
146146
print("Writing Pack meta data")
147147
mcmeta = {
148148
"pack": {
149-
"pack_format": 26,
149+
"pack_format": MC_PACK_VERSION,
150150
"description": "Summon armor stands with all trims in all armor types."
151151
}
152152
}
@@ -163,4 +163,28 @@ def main():
163163

164164

165165
if __name__ == "__main__":
166-
main()
166+
main()
167+
168+
169+
# 41 + component base format for Armor Items
170+
# This can be retrived by doing `/data get entity <entity id> ArmorItems
171+
"""
172+
Armor Stand has the following entity data:
173+
[
174+
{},
175+
{},
176+
{},
177+
{
178+
components:
179+
{
180+
"minecraft:trim":
181+
{
182+
material: "minecraft:redstone",
183+
pattern: "minecraft:sentry"
184+
}
185+
},
186+
count: 1,
187+
id: "minecraft:iron_helmet"
188+
}
189+
]
190+
"""

0 commit comments

Comments
 (0)