-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[神器983]アイシクルブレードを作成 #1398
Open
quikku
wants to merge
4
commits into
master
Choose a base branch
from
dev/noname_983
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[神器983]アイシクルブレードを作成 #1398
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
Asset/data/asset/functions/artifact/0983.icicle_blade/give/1.trigger.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#> asset:artifact/0983.icicle_blade/give/1.trigger | ||
# | ||
# 神器の取得処理の呼び出し時に実行されるfunction | ||
# | ||
# @within tag/function asset:artifact/give | ||
|
||
execute if data storage asset:context {id:983} run function asset:artifact/0983.icicle_blade/give/2.give |
59 changes: 59 additions & 0 deletions
59
Asset/data/asset/functions/artifact/0983.icicle_blade/give/2.give.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
#> asset:artifact/0983.icicle_blade/give/2.give | ||
# | ||
# 神器の作成部 ここでID等を定義する | ||
# | ||
# @user | ||
# @within function asset:artifact/0983.icicle_blade/give/1.trigger | ||
|
||
# 神器の説明や消費MPなどをここで設定する。 | ||
# 最後にasset:artifact/common/giveを実行することで入手可能。 | ||
|
||
# 神器のID (int) スプレッドシートの値を入れる | ||
data modify storage asset:artifact ID set value 983 | ||
# 神器のベースアイテム | ||
data modify storage asset:artifact Item set value "minecraft:ender_eye" | ||
# 神器の名前 (TextComponentString) | ||
data modify storage asset:artifact Name set value '{"text":"アイシクルブレード","color":"aqua","bold":true,"underlined":true}' | ||
# 神器の説明文 (TextComponentString[]) | ||
data modify storage asset:artifact Lore set value ['[{"text":"前方の敵に無数の氷の刃を放つ","color":"aqua"}]','[{"text":"氷の刃は敵の肉を切り裂き、血を凍らせる","color":"aqua"}]'] | ||
# MP以外の消費物 (TextComponentString) (オプション) | ||
# data modify storage asset:artifact CostText set value | ||
# 使用回数 (int) (オプション) | ||
# data modify storage asset:artifact RemainingCount set value | ||
# 神器を発動できるスロット (string) Wikiを参照 | ||
data modify storage asset:artifact Slot set value "mainhand" | ||
# 神器のトリガー (string) Wikiを参照 | ||
data modify storage asset:artifact Trigger set value "onClick" | ||
# 神器の発動条件 (TextComponentString) (オプション) | ||
# data modify storage asset:artifact Condition set value | ||
# 攻撃に関する情報 -Damage量 (literal[]/literal) Wikiを参照 (オプション) | ||
data modify storage asset:artifact AttackInfo.Damage set value [170] | ||
# 攻撃に関する情報 -攻撃タイプ (string[]) Wikiを参照 (オプション) | ||
data modify storage asset:artifact AttackInfo.AttackType set value [Physical] | ||
# 攻撃に関する情報 -攻撃属性 (string[]) Wikiを参照 (オプション) | ||
data modify storage asset:artifact AttackInfo.ElementType set value [Water] | ||
# 攻撃に関する情報 -防御無視 (boolean) Wikiを参照 (オプション) | ||
# data modify storage asset:artifact AttackInfo.BypassResist set value | ||
# 攻撃に関する情報 -範囲攻撃 (string) Wikiを参照 (オプション) | ||
data modify storage asset:artifact AttackInfo.IsRangeAttack set value "never" | ||
# 攻撃に関する情報 -攻撃範囲 (literal) Wikiを参照 (オプション) | ||
data modify storage asset:artifact AttackInfo.AttackRange set value 5 | ||
# MP消費量 (int) | ||
data modify storage asset:artifact MPCost set value 5 | ||
# MP必要量 (int) (オプション) | ||
# data modify storage asset:artifact MPRequire set value | ||
# 神器のクールダウン (int) (オプション) | ||
# data modify storage asset:artifact LocalCooldown set value | ||
# グローバルクールダウン (int) (オプション) | ||
# data modify storage asset:artifact SpecialCooldown set value | ||
# クールダウンによる使用不可のメッセージを非表示にするか否か (boolean) (オプション) | ||
# data modify storage asset:artifact DisableCooldownMessage set value | ||
# MP不足による使用不可のメッセージを非表示にするか否か (boolean) (オプション) | ||
# data modify storage asset:artifact DisableMPMessage set value | ||
# 扱える神 (string[]) Wikiを参照 | ||
data modify storage asset:artifact CanUsedGod set value ["Flora","Nyaptov", "Urban"] | ||
# カスタムNBT (NBTCompound) 追加で指定したいNBT (オプション) | ||
# data modify storage asset:artifact CustomNBT set value {} | ||
|
||
# 神器の入手用function | ||
function asset:artifact/common/give |
8 changes: 8 additions & 0 deletions
8
Asset/data/asset/functions/artifact/0983.icicle_blade/trigger/1.trigger.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#> asset:artifact/0983.icicle_blade/trigger/1.trigger | ||
# | ||
# 指定したイベントタイミングで実行されるfunction | ||
# | ||
# @within tag/function asset:artifact/** | ||
|
||
# storage asset:idのmainhandに装備している神器のIDが入っているので比較し、~/2.check_condition.mcfunctionを実行する | ||
execute if data storage asset:context id{mainhand:983} run function asset:artifact/0983.icicle_blade/trigger/2.check_condition |
12 changes: 12 additions & 0 deletions
12
Asset/data/asset/functions/artifact/0983.icicle_blade/trigger/2.check_condition.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#> asset:artifact/0983.icicle_blade/trigger/2.check_condition | ||
# | ||
# 神器の発動条件をチェックします | ||
# | ||
# @within function asset:artifact/0983.icicle_blade/trigger/1.trigger | ||
|
||
# 神器の基本的な条件の確認を行うfunction、成功している場合CanUsedタグが付く | ||
function asset:artifact/common/check_condition/mainhand | ||
# 他にアイテム等確認する場合はここに書く | ||
|
||
# CanUsedタグをチェックして3.main.mcfunctionを実行する | ||
execute if entity @s[tag=CanUsed] run function asset:artifact/0983.icicle_blade/trigger/3.main |
46 changes: 46 additions & 0 deletions
46
Asset/data/asset/functions/artifact/0983.icicle_blade/trigger/3.main.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#> asset:artifact/0983.icicle_blade/trigger/3.main | ||
# | ||
# 神器のメイン処理部 | ||
# | ||
# @within function asset:artifact/0983.icicle_blade/trigger/2.check_condition | ||
|
||
#> private | ||
# @private | ||
#declare score_holder $Random | ||
|
||
# 基本的な使用時の処理(MP消費や使用回数の処理など)を行う | ||
function asset:artifact/common/use/mainhand | ||
|
||
# ここから先は神器側の効果の処理を書く | ||
|
||
# 演出 | ||
playsound item.trident.throw player @a ~ ~ ~ 1 2 | ||
playsound minecraft:entity.glow_squid.squirt player @a ~ ~ ~ 1 2 | ||
playsound minecraft:block.glass.break neutral @a ~ ~ ~ 1 1.3 | ||
|
||
# パーティクルランダム | ||
# 疑似乱数取得 | ||
execute store result score $Random Temporary run function lib:random/ | ||
# ほしい範囲に剰余算 | ||
scoreboard players operation $Random Temporary %= $11 Const | ||
# メッセージ出力 | ||
execute if score $Random Temporary matches 0 positioned ~ ~1 ~ run function asset:artifact/0983.icicle_blade/trigger/slash/particle1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 今ならMacro化すれば若干軽くなるかも |
||
execute if score $Random Temporary matches 1 positioned ~ ~1 ~ run function asset:artifact/0983.icicle_blade/trigger/slash/particle2 | ||
execute if score $Random Temporary matches 2 positioned ~ ~1 ~ run function asset:artifact/0983.icicle_blade/trigger/slash/particle3 | ||
execute if score $Random Temporary matches 3 positioned ~ ~1 ~ run function asset:artifact/0983.icicle_blade/trigger/slash/particle4 | ||
execute if score $Random Temporary matches 4 positioned ~ ~1 ~ run function asset:artifact/0983.icicle_blade/trigger/slash/particle5 | ||
execute if score $Random Temporary matches 5 positioned ~ ~1 ~ run function asset:artifact/0983.icicle_blade/trigger/slash/particle6 | ||
execute if score $Random Temporary matches 6 positioned ~ ~1 ~ run function asset:artifact/0983.icicle_blade/trigger/slash/particle7 | ||
execute if score $Random Temporary matches 7 positioned ~ ~1 ~ run function asset:artifact/0983.icicle_blade/trigger/slash/particle8 | ||
execute if score $Random Temporary matches 8 positioned ~ ~1 ~ run function asset:artifact/0983.icicle_blade/trigger/slash/particle9 | ||
execute if score $Random Temporary matches 9 positioned ~ ~1 ~ run function asset:artifact/0983.icicle_blade/trigger/slash/particle10 | ||
execute if score $Random Temporary matches 10 positioned ~ ~1 ~ run function asset:artifact/0983.icicle_blade/trigger/slash/particle11 | ||
|
||
# 半円状に判定を出す | ||
tag @e[type=#lib:living,tag=Enemy,distance=..5] add RB.Hit | ||
execute as @e[type=#lib:living,tag=Enemy,tag=RB.Hit,distance=..6] positioned ^ ^ ^-100 run tag @s[type=#lib:living,tag=Enemy,tag=RB.Hit,distance=..100] remove RB.Hit | ||
execute as @e[type=#lib:living,tag=Enemy,tag=RB.Hit,distance=..6] at @s run function asset:artifact/0983.icicle_blade/trigger/4.damage | ||
|
||
|
||
# リセット | ||
scoreboard players reset $Random Temporary |
24 changes: 24 additions & 0 deletions
24
Asset/data/asset/functions/artifact/0983.icicle_blade/trigger/4.damage.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#> asset:artifact/0983.icicle_blade/trigger/4.damage | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Functionを分けずに処理したほうが軽くなるかもしれない |
||
# | ||
# | ||
# | ||
# @within function asset:artifact/0983.icicle_blade/trigger/3.main | ||
|
||
|
||
# 演出 | ||
particle snowflake ~ ~0.5 ~ 0 1 0 0 5 normal | ||
|
||
# ダメージを与える | ||
# 与えるダメージ | ||
data modify storage lib: Argument.Damage set value 170f | ||
# 属性 | ||
data modify storage lib: Argument.AttackType set value "Physical" | ||
data modify storage lib: Argument.ElementType set value "Water" | ||
# 補正function | ||
execute as @a[tag=this] run function lib:damage/modifier | ||
|
||
# 対象に | ||
function lib:damage/ | ||
# リセット | ||
function lib:damage/reset | ||
tag @s remove RB.Hit |
6 changes: 6 additions & 0 deletions
6
Asset/data/asset/functions/artifact/0983.icicle_blade/trigger/_index.d.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#> asset:artifact/0983.icicle_blade/trigger/_index.d | ||
# @private | ||
|
||
#> tag | ||
# @within function asset:artifact/0983.icicle_blade/trigger/** | ||
#declare tag RB.Hit |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
消費MPをもう少し上げないと余裕でOP超えるかもしれない。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
バランスはどーせ実際にプレイしないとわからんので適当でええやろ(雑)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
雑過ぎて草、軽くなるところが幾らかあるけど直すかどうかは任せる