Skip to content

[Artifact 1556] バブルスプレッダーの作成#2062

Open
ogachu0331 wants to merge 8 commits into
masterfrom
dev/ogachu_artifact1556
Open

[Artifact 1556] バブルスプレッダーの作成#2062
ogachu0331 wants to merge 8 commits into
masterfrom
dev/ogachu_artifact1556

Conversation

@ogachu0331

Copy link
Copy Markdown

神器とそれに必要なobject1165の作成

Comment on lines +8 to +20
# 1. 計算用に「-1」をスコアボード(Temporary)に用意しておく
scoreboard players set $-1 Temporary -1

# 2. 現在の上下の角度(Pitch: Rotationの2番目)を、小数を維持するため1000倍して取得する
execute store result score $pitch Temporary run data get entity @s Rotation[1] 1000

# 3. もし下を向いている(スコアがプラス)なら、-1を掛けてマイナス(上向き)に反転させる
execute if score $pitch Temporary matches 1.. run scoreboard players operation $pitch Temporary *= $-1 Temporary

# 4. 反転させた数値を0.001倍して元のサイズに戻し、エンティティのPitchに上書きする
execute store result entity @s Rotation[1] float 0.001 run scoreboard players get $pitch Temporary
# スコアリセット
scoreboard players reset * Temporary

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

もしかしたら、lib:reflection_bullet/ってライブラリが役立つかもなので一応見てみて

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

使って地面以外でも反射できるようにしました

Comment on lines +6 to +8



Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

流石に改行が多すぎるかな、ちょっと気になった

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

修正済み

Comment thread Asset/data/asset/functions/object/1165.bubble_spreader/range_over/.mcfunction Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants