Skip to content

Commit 39db659

Browse files
SnaveSutitgitbutler-client
authored andcommitted
🩹 Minor Data Pack fixes
1 parent e4f71ed commit 39db659

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/systems/datapackCompiler/1.21.5/animation.mcb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ function summon {
655655
type=<%locator.config.entity_type%>, \
656656
tag=<%TAGS.PROJECT_LOCATOR_NAMED(blueprint_id, locator.storage_name)%>, \
657657
tag=<%TAGS.NEW()%>, \
658-
distance=..<%Math.ceil(locator.max_distance)%> \
658+
distance=..<%Math.ceil(locator.max_distance + 0.5)%> \
659659
] \
660660
run block as_locator/<%locator.storage_name%> {
661661
# run block ../as_locator/<%locator.storage_name%> {
@@ -680,7 +680,7 @@ function summon {
680680
type=minecraft:item_display, \
681681
tag=<%TAGS.PROJECT_CAMERA_NAMED(blueprint_id, camera.storage_name)%>, \
682682
tag=<%TAGS.NEW()%>, \
683-
distance=..<%Math.ceil(camera.max_distance)%> \
683+
distance=..<%Math.ceil(camera.max_distance + 0.5)%> \
684684
] \
685685
run block as_camera/<%camera.storage_name%> {
686686
# run block ../as_camera/<%camera.storage_name%> {

src/systems/datapackCompiler/1.21.5/static.mcb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ function summon {
196196
type=<%locator.config.entity_type%>, \
197197
tag=<%TAGS.PROJECT_LOCATOR_NAMED(blueprint_id, locator.storage_name)%>, \
198198
tag=<%TAGS.NEW()%>, \
199-
distance=..<%Math.ceil(locator.max_distance)%> \
199+
distance=..<%Math.ceil(locator.max_distance + 0.5)%> \
200200
] \
201201
run block as_locator/<%locator.storage_name%> {
202202
# run block ../as_locator/<%locator.storage_name%> {
@@ -221,7 +221,7 @@ function summon {
221221
type=minecraft:item_display, \
222222
tag=<%TAGS.PROJECT_CAMERA_NAMED(blueprint_id, camera.storage_name)%>, \
223223
tag=<%TAGS.NEW()%>, \
224-
distance=..<%Math.ceil(camera.max_distance)%> \
224+
distance=..<%Math.ceil(camera.max_distance + 0.5)%> \
225225
] \
226226
run block as_camera/<%camera.storage_name%> {
227227
# run block ../as_camera/<%camera.storage_name%> {

src/systems/datapackCompiler/tellraw.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const TELLRAW_PREFIX = () =>
99
{ text: '\n ', color: 'gray' },
1010
{ text: toSmallCaps('Animated Java'), color: '#00aced' },
1111
{
12-
text: `\n (animated_java:${Project!.animated_java.blueprint_id})`,
12+
text: `\n (${Project!.animated_java.blueprint_id})`,
1313
color: 'dark_gray',
1414
italic: true,
1515
},

src/systems/resourcepackCompiler/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export default async function compileResourcePack(
114114

115115
const misodeVersionData = await getMisodeVersion(version)
116116

117-
const format = misodeVersionData.data_pack_version
117+
const format = misodeVersionData.resource_pack_version
118118
if (VersionUtil.compare(version, '>=', '1.21.9')) {
119119
packMeta.content.pack.min_format = format
120120
packMeta.content.pack.max_format = format

0 commit comments

Comments
 (0)