• Trong thời gian này, bạn không thể tạo bài mới, đăng comment, hay tạo tài nguyên mới để diễn đàn dọn dẹp nội dung.
    Diễn đàn sẽ sớm mở trở lại, chi tiết hãy theo dõi tại Discord
huyngulem

Hướng dẫn Cách làm kĩ năng của mob ( pl mythicmob)

  • Người tạo chủ đề Người tạo chủ đề huyngulem
  • Ngày gửi Ngày gửi
Để làm 1 skill thì ta phải cần hiểu cái khuông ntn: (mình éo bik gọi là gì)
YAML:
Skills:
- mechanic{option=value} @[targeter] ~on[trigger] [health_modifier] [chance]

Trong đó:
+ mechanic là tên kĩ năng ( vd: damage, potion, effect, ... các bạn có thể xem trên https://www.mythicmobs.net/manual/doku.php/skills/mechanics/start )
+ option là các tên "Attribute" của skill hay "Aliases" kí hiệu của nó, value tức giá trị của thông số kĩ năng đó (vd: leap{velocity=200} hay leap{v=200} )
+ @[targeter] có thể hiểu rằng mục tiêu của skill hướng đến (vd: @Sefl : tức mục tiêu là bản thân,... tham khảo thêm https://www.mythicmobs.net/manual/doku.php/skills/targeters/start )
+ ~on[trigger] kích hoạt skill đó khi nào nó như điều kiện v có cũng dc mà ko cũng ko sao :)) (vd: ~onSpawn, ~onTimer:10, ... https://www.mythicmobs.net/manual/doku.php/skills/triggers/start )
+ [health_modifier] điều kiện như trên mà đối với máu (vd: <50% là dưới nửa cây máu kích hoạt hay =10-50 : kích hoạt khi máu mob nằm trong khoảng 10 đến 50 máu)
+ [chance] tỉ lệ tính từ 0 đến 1 với 1 là 100% (vd: 0.5)
Skill vd:

YAML:
Skills:
- effect:particlering{particles=reddust;color=#00FF00;a=30;hs=0.2;vs=0.2;radius=2} @Self ~onTimer:5 >50% 1
- effect:particlering{particles=reddust;color=#FF0000;a=30;hs=0.2;vs=0.2;radius=2} @Self ~onTimer:5 <50% 1

*Những điều trên là cái cơ bản để làm skill giờ vào phần file skill tạo file.yml khi làm trên đây sẽ tiện hơn và nhiều tính năng
Vd sương sương:

YAML:
#file mob:
mob1:
  Type: HUSK
  Display: ''
  Health: 1000
  Options:
    Silent: true
    NoAI: true
    PreventOtherDrops: true
    PreventItemPickup: true
    PreventRandomEquipment: true
  Skills:
  - actionmessage{m="&c<mob.hp> &f/ &4<mob.mhp> &f/ &6<mob.stance>"} @PIR{r=20} ~onTimer:10
  - setstance{s=a} @Self ~onSpawn
  - setstance{s=b} @Self ~onInteract
  - skill{s=Day} @Self ~onTimer:10
  - skill{s=Night} @Self ~onTimer:10
  - skill{s=3} @Self ~onTimer:10
  - skill{s=4} @Self ~onTimer:10
  - skill{s=5} @Self ~onTimer:10
#file skill:
Day:
  Conditions:
  - day true
#  - worldtime{t=0to10000} true
  Skills:
  - effect:particlering{particle=reddust;color=#FFFF00;a=10;radius=1;points=32;y=0.5} @Self
Night:
  Conditions:
  - night true
  Skills:
  - effect:particlering{particle=reddust;color=#0088FF;a=10;radius=1;points=32;y=0.5} @Self
3:
  Conditions:
  - stance{s=a} true
  Skills:
  - effect:particles{particle=flame;a=100;hs=0.1;vs=0.1;s=0.1} @Self
4:
  Conditions:
  - stance{s=b} true
  Skills:
  - effect:particles{particle=cloud;a=100;hs=0.1;vs=0.1;s=0.1} @Self
5:
  Conditions:
  - stance{s=a} true
  - playerswithin{d=6} true
  - night true
  Skills:
  - effect:particles{particle=hugeexplosion;a=1;y=0.25} @Self
  - sound{s=entity.generic.explode} @Self


Bye~~~hẹn gặp lại trong bài tới
tysm
 
Nội dung tương tự Xem nhiều nhất Xem thêm

Thống kê nội dung

Tạo
huyngulem,
Trả lời lần cuối từ
BlueManhst,
Trả lời
28
Lượt xem
4,903
Quay lại
Trên cùng