[Artifact 1556] バブルスプレッダーの作成#2062
Open
ogachu0331 wants to merge 8 commits into
Open
Conversation
Lapis-LJA
reviewed
Jun 14, 2026
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 |
Contributor
There was a problem hiding this comment.
もしかしたら、lib:reflection_bullet/ってライブラリが役立つかもなので一応見てみて
Lapis-LJA
requested changes
Jun 14, 2026
Comment on lines
+6
to
+8
|
|
||
|
|
||
|
|
…SB/Asset into dev/ogachu_artifact1556
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
神器とそれに必要なobject1165の作成