커스텀 아이템

요리 재료 추가 방법

요리 재료를 추가하려면 다음과 같이 진행해 주세요.

  1. ItemsAdder에서 간단한 아이템을 추가해 줍니다.

info:
  namespace: addcook
items:
  test_item1:
    display_name: "Test Item"
    resource:
      generate: true
      material: PAPER #copy1
      model_id: 123456 #copy2
      textures:
        - testitem.png
  1. 여기서 중요한 건 model_id의 번호와 material의 아이템 타입을 꼭 외워야 합니다.

  2. Server/plugins/MythicMobs/Items/ 경로로 이동하여 새로운 yml 파일을 만들어 줍니다.

  1. 만든 yml을 열어 다음과 같이 작성해 줍니다.

mm_test_item1:
  Id: PAPER #paste1
  Display: "MM Test Item"
  Model: 123456 #paste2
  NBT:
    addcook:
      type: "material"
      part: "meat"
  1. 아까 외운 model_id의 번호를 Model에, material의 아이템 타입을 Id에 적어줍니다.

  1. addcook 팩은 해당 아이템의 NBT 값에 따라 다양한 기능을 사용할 수 있습니다.

타입 설정

해당 아이템의 요리 재료와 조리 도구 중 선택하실 수 있습니다.

#해당 아이템을 요리 재료로 하고 싶다면
NBT:
  addcook:
    type: "material" #material로 하면 됩니다.
    
#해당 아이템을 조리 도구로 하고 싶다면
NBT:
  addcook:
    type: "tool" #tool로 하면 됩니다.

파트 설정

설정된 파트에 따라 기능 및 효과가 달라집니다.

요리 재료의 경우 파트마다 조리 가구에 올라가는 모델링의 모습이 변화합니다.

#고기 모델링을 사용하고 싶다면
NBT:
  addcook:
    type: "material"
    part: "meat"

#채소 모델링을 사용하고 싶다면
NBT:
  addcook:
    type: "material"
    part: "vegetable"

#과일 모델링을 사용하고 싶다면
NBT:
  addcook:
    type: "material"
    part: "fruit"

#물고기 모델링을 사용하고 싶다면
NBT:
  addcook:
    type: "material"
    part: "fish"

#유제품 모델링을 사용하고 싶다면
NBT:
  addcook:
    type: "material"
    part: "dairy"

#소스 모델링을 사용하고 싶다면
NBT:
  addcook:
    type: "material"
    part: "sauce"

#냄비에 넣을 수 있는 물을 설정할 수 있습니다.
NBT:
  addcook:
    type: "material"
    part: "water"

조리 도구의 경우 해당 방법을 응용하면 외형이 다른 새로운 도구를 추가할 수 있습니다.

#해당 태그를 붙이면 기존 도구와 같은 기능이 작동됨
#뒤집개
NBT:
  addcook:
    type: "tool"
    part: "turner"

#망치
NBT:
  addcook:
    type: "tool"
    part: "hammer"

#칼
NBT:
  addcook:
    type: "tool"
    part: "knife"

특수 기능

튀김기의 채우는 오일의 양을 수정할 수 있습니다.

NBT:
  addcook:
    type: "material"
    part: "sauce"
    oil: "true"
    oil-amount: int/4 #1~4까지만 지원합니다.

냄비의 소스를 넣을 때 물 색깔을 변화할 수 있습니다.

NBT:
  addcook:
    type: "material"
    part: "sauce"
    water-color: "#5c463e" #이런식으로 색코드를 적어야 합니다.

소스만 가능합니다.

  1. 이제 /mm reload를 하신 뒤 사용하시면 됩니다.

Last updated