雪玉が貫通されない

そもそもon projectile collideがキャンセル不可な可能性もありますけどね
on projectile collide:
if event-entity is an armor stand:
if metadata "color" of event-entity contain metadata "color" of event-projectile:
cancel event
on projectile collide:
if event-entity is an armor stand:
if metadata "color" of event-entity contain metadata "color" of event-projectile:
cancel event
7 Replies
ねんねこ
ねんねこ11mo ago
これはひどいかも 雪玉が当たっても、防具立てって判定されない時がある
mirageeeeeeeeeeeeeeeeeeeeeeeeeee
collideイベントの中では当たったエンティティはprojectile targetらしい
ねんねこ
ねんねこ11mo ago
on projectile collide:
broadcast "c"
if projectile target is an armor stand:
broadcast "b"
if metadata "color" of projectile target contain metadata "color" of event-projectile:
broadcast "a"
cancel event
on projectile collide:
broadcast "c"
if projectile target is an armor stand:
broadcast "b"
if metadata "color" of projectile target contain metadata "color" of event-projectile:
broadcast "a"
cancel event
やっぱりだめでした cとしか出力されません
mirageeeeeeeeeeeeeeeeeeeeeeeeeee
projectile targetを出力したらなんて出る
ねんねこ
ねんねこ11mo ago
armor stand
mirageeeeeeeeeeeeeeeeeeeeeeeeeee
じゃあ動いてないの条件じゃん」 type of projectile targetとか "%projectile target%" is "armor stand"とか 色々試そう
ねんねこ
ねんねこ11mo ago
ok
Want results from more Discord servers?
Add your server
More Posts
armor standの頭だけを発光させたい``` set {_pLoc} to player's head's location spawn armor stand at ({_pLoc} ~ vector(0, -1.125銃skの改善点指摘してほしい初心者のぼくが初めてまともに書いたskということで30発入りSMGを3発ずつ撃ててリロードもできるskです。一応動きます。 変数の使い方とかマジで色々汚いと思いますが「こう書いたらいいよ」とか温かく教vectorの使い方vectorの使い方がぜんっぜんわかりませんsorted LIST のなぞきょどうについて``` set {_sortedKey::*} to indexes of {_areaIDs::*} set {_sortedKey::*} to sorted {アマスタの完全透明化{Invisible:1b,Marker:1b}のnbtをつけたアマスタをプレイヤーに乗せているのですが、スペクテイターにすると見えてしまいます これを見えなくする方法を教えてください PR 1.12GUI内のアイテムをnbtを指定したいGUI内のアイテムをHideFlagsとか指定して 鉄剣とかの利き手に持った時とかの表示を消したい(HideFlags)sk勉強する時に分かりやすいサイトとかおすすめあったら教えてください圧倒的初心者ですおねがいしますWorldGuardと on region enter/leave``` on region leave: if region is "map" parsed as region: set {%player%.escapeAreaID} tブロック破壊対策``` on break: player's gamemode is survival cancel the event on break: player is not op parsed as "%~%" がうまく動かない``` function getGunMode(item: item) :: string: set {_name} to uncoloured name of {_item} set