개인 자료란 (JE)

  서버 커뮤니티

Profile 별코미 대표칭호 없음

Wa_free 0e8e61844b114c398d82f569b65c940b

Profile

질문하기 데이터팩

커스텀 인첸트를 어떻게 적는지 몰라서 일단 보이는데로 적었는데..

2024.09.01 조회 수 79 추천 수 0
이해도 입문자 
게임버전 (JE) 1.20.1 
게임버전 (BE) 관련없음 

{

    "description": {

        "text": "폭발",

        "color": "yellow"

    },

    "supported_items": "#minecraft:enchantable/sword",

    "primary_items": "#minecraft:enchantable/sword",

    "weight": 100,

    "max_level": 3,

    "min_cost": {

        "base": 0,

        "per_level_above_first": 1

    },

    "max_cost": {

        "base": 1,

        "per_level_above_first": 1

    },

    "anvil_cost": 1,

    "slots": [

        "mainhand",

        "offhand"

    ],

    "effects": {

        "minecraft:explode": {

            "attribute_to_user": true,

            "knockback_multiplier": 1.5,

            "radius": 1,

            "create_fire": false,

            "bloack_interaction": "tnt",

            "small_particle": "minecraft:explosion",

            "large_particle": "minecraft:explosion_emitter",

            "sound": "minecraft:entity.generic.explode"

        }

    }

}

이렇게 뜨네요 ㅠ

12개의 댓글

코코냐
2024.09.01

로그에 대략적으로 어느 부분이 파싱에 실패했는지 표시됩니다. 로그를 확인해보세요.

별코미
2024.09.01
@코코냐

16:15:06.170

net.minecraft.class_7655

Render thread

Registry loading errors:

> Errors in registry minecraft:enchantment:

>> Errors in element custom:exep:

java.lang.IllegalStateException: Failed to parse custom:enchantment/exep.json from pack file/ce

at net.minecraft.class_7655.method_45122(class_7655.java:251)

at net.minecraft.class_7655$class_9158.method_56520(class_7655.java:96)

at net.minecraft.class_7655.method_56514(class_7655.java:151)

at net.minecraft.class_7655.method_45120(class_7655.java:164)

at java.base/java.lang.Iterable.forEach(Iterable.java:75)

at net.minecraft.class_7655.method_45121(class_7655.java:164)

at net.minecraft.class_7655.mixinextras$bridge$method_45121$31(class_7655.java)

at net.minecraft.class_7655.wrapOperation$zdj000$quilted_fabric_resource_conditions_api_v1$captureRegistries(class_7655.java:557)

at net.minecraft.class_7655.mixinextras$bridge$wrapOperation$zdj000$quilted_fabric_resource_conditions_api_v1$captureRegistries$32(class_7655.java)

at net.minecraft.class_7655.wrapOperation$zla000$quilted_fabric_registry_sync_v0$wrapIsServerCall(class_7655.java:1056)

at net.minecraft.class_7655.method_56515(class_7655.java:151)

at net.minecraft.class_7237.method_45142(class_7237.java:62)

at net.minecraft.class_7237.method_45143(class_7237.java:66)

at net.minecraft.class_7237.method_42098(class_7237.java:32)

at net.minecraft.class_7196.method_45694(class_7196.java:181)

at net.minecraft.class_7196.method_54610(class_7196.java:137)

at net.minecraft.class_7196.method_57780(class_7196.java:323)

at net.minecraft.class_7196.method_57781(class_7196.java:313)

at net.minecraft.class_7196.method_57782(class_7196.java:278)

at net.minecraft.class_7196.method_57784(class_7196.java:243)

at net.minecraft.class_528$class_4272.method_20164(class_528.java:434)

at net.minecraft.class_528$class_4272.method_25402(class_528.java:411)

at net.minecraft.class_350.method_25402(class_350.java:315)

at net.minecraft.class_4069.method_25402(class_4069.java:38)

at net.minecraft.class_312.method_1611(class_312.java:107)

at net.minecraft.class_437.method_25412(class_437.java:431)

at net.minecraft.class_312.method_1601(class_312.java:107)

at net.minecraft.class_312.method_22686(class_312.java:196)

at net.minecraft.class_1255.execute(class_1255.java:108)

at net.minecraft.class_312.method_22684(class_312.java:196)

at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:43)

at org.lwjgl.system.JNI.invokeV(Native Method)

at org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:3509)

at com.mojang.blaze3d.systems.RenderSystem.limitDisplayFPS(RenderSystem.java:184)

at net.minecraft.class_310.method_1523(class_310.java:1310)

at net.minecraft.class_310.method_1514(class_310.java:882)

at net.minecraft.client.main.Main.main(Main.java:256)

at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)

at java.base/java.lang.reflect.Method.invoke(Method.java:580)

at org.quiltmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:557)

at org.quiltmc.loader.impl.launch.knot.Knot.launch(Knot.java:84)

at org.quiltmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:28)

Caused by: java.lang.IllegalStateException: Unknown registry key in ResourceKey[minecraft:root / minecraft:enchantment_effect_component_type]: minecraft:explode; Unknown registry key in ResourceKey[minecraft:root / minecraft:enchantment_effect_component_type]: minecraft:explode missed input: {"minecraft:explode":{"attribute_to_user":true,"knockback_multiplier":1.5,"radius":1,"create_fire":false,"bloack_interaction":"tnt","small_particle":"minecraft:explosion","large_particle":"minecraft:explosion_emitter","sound":"minecraft:entity.generic.explode"}}

at com.mojang.serialization.DataResult$Error.getOrThrow(DataResult.java:287)

at com.mojang.serialization.DataResult.getOrThrow(DataResult.java:81)

at net.minecraft.class_7655.method_56915(class_7655.java:231)

at net.minecraft.class_7655.method_45122(class_7655.java:249)

... 41 more

16:15:06.171

net.minecraft.class_7196

Render thread

Failed to load level data or datapacks, can't proceed with server load

java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Failed to load registries due to above errors

at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:396)

at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2073)

at net.minecraft.class_7196.method_45694(class_7196.java:183)

at net.minecraft.class_7196.method_54610(class_7196.java:137)

at net.minecraft.class_7196.method_57780(class_7196.java:323)

at net.minecraft.class_7196.method_57781(class_7196.java:313)

at net.minecraft.class_7196.method_57782(class_7196.java:278)

at net.minecraft.class_7196.method_57784(class_7196.java:243)

at net.minecraft.class_528$class_4272.method_20164(class_528.java:434)

at net.minecraft.class_528$class_4272.method_25402(class_528.java:411)

at net.minecraft.class_350.method_25402(class_350.java:315)

at net.minecraft.class_4069.method_25402(class_4069.java:38)

at net.minecraft.class_312.method_1611(class_312.java:107)

at net.minecraft.class_437.method_25412(class_437.java:431)

at net.minecraft.class_312.method_1601(class_312.java:107)

at net.minecraft.class_312.method_22686(class_312.java:196)

at net.minecraft.class_1255.execute(class_1255.java:108)

at net.minecraft.class_312.method_22684(class_312.java:196)

at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:43)

at org.lwjgl.system.JNI.invokeV(Native Method)

at org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:3509)

at com.mojang.blaze3d.systems.RenderSystem.limitDisplayFPS(RenderSystem.java:184)

at net.minecraft.class_310.method_1523(class_310.java:1310)

at net.minecraft.class_310.method_1514(class_310.java:882)

at net.minecraft.client.main.Main.main(Main.java:256)

at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)

at java.base/java.lang.reflect.Method.invoke(Method.java:580)

at org.quiltmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:557)

at org.quiltmc.loader.impl.launch.knot.Knot.launch(Knot.java:84)

at org.quiltmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:28)

Caused by: java.lang.IllegalStateException: Failed to load registries due to above errors

at net.minecraft.class_7655.method_45121(class_7655.java:181)

at net.minecraft.class_7655.mixinextras$bridge$method_45121$31(class_7655.java)

at net.minecraft.class_7655.wrapOperation$zdj000$quilted_fabric_resource_conditions_api_v1$captureRegistries(class_7655.java:557)

at net.minecraft.class_7655.mixinextras$bridge$wrapOperation$zdj000$quilted_fabric_resource_conditions_api_v1$captureRegistries$32(class_7655.java)

at net.minecraft.class_7655.wrapOperation$zla000$quilted_fabric_registry_sync_v0$wrapIsServerCall(class_7655.java:1056)

at net.minecraft.class_7655.method_56515(class_7655.java:151)

at net.minecraft.class_7237.method_45142(class_7237.java:62)

at net.minecraft.class_7237.method_45143(class_7237.java:66)

at net.minecraft.class_7237.method_42098(class_7237.java:32)

at net.minecraft.class_7196.method_45694(class_7196.java:181)

... 27 more

 

코코냐
2024.09.01
@별코미

minecraft:explode 키값 안의 값을 리스트로 한번 감싸보세요.

별코미
2024.09.01
@코코냐

어떤느낌으로 감싸시라는 걸까여?

 

별코미
2024.09.01
@코코냐

"effects": {

"minecraft:explode": [

{

"attribute_to_user": true,

"knockback_multiplier": 1.5,

"radius": 1,

"create_fire": false,

"bloack_interaction": "tnt",

"small_particle": "minecraft:explosion",

"large_particle": "minecraft:explosion_emitter",

"sound": "minecraft:entity.generic.explode"

}

]

}

 

요론식인가여

별코미
2024.09.01
@별코미

이런식으로 해도 안돼긴 하던데

 

코코냐
2024.09.01
@별코미

다시 보니 아예 bloack_interaction에 오타가 있네요..

별코미
2024.09.01
@코코냐

 

별코미
2024.09.01
@코코냐

수정해도 안전모드로 한다네요

코코냐
2024.09.01
@별코미

괄호로 감싸는거랑 동시에 한거 맞냐요?

yusin12
2024.09.01

? 뭘 해야 explode가 실행되는지 빠졌는데요?

enchanted와 attected도 없네용

yusin12
2024.09.01
@yusin12
{
  "description": {
    "text": "폭팔",
    "color": "yellow",
    "bold": false,
    "italic": false,
    "underlined": false,
    "strikethrough": false,
    "obfuscated": false
  },
  "supported_items": "#minecraft:enchantable/sword",
  "primary_items": "#minecraft:enchantable/sword",
  "weight": 100,
  "max_level": 3,
  "min_cost": {
    "base": 0,
    "per_level_above_first": 1
  },
  "max_cost": {
    "base": 1,
    "per_level_above_first": 1
  },
  "anvil_cost": 1,
  "slots": [
    "mainhand",
    "offhand"
  ],
  "effects": {
    "minecraft:post_attack": [
      {
        "enchanted": "attacker",
        "affected": "victim",
        "effect": {
          "type": "minecraft:explode",
          "damage_type": "minecraft:player_explosion",
          "radius": 1.5,
          "block_interaction": "tnt",
          "small_particle": {
            "type": "minecraft:explosion"
          },
          "large_particle": {
            "type": "minecraft:explosion_emitter"
          },
          "sound": "minecraft:entity.generic.explode",
          "knockback_multiplier": 1.5,
          "attribute_to_user": true,
          "create_fire": false
        }
      }
    ]
  }
}

이런식으로 작성을 해야합니다