-
Notifications
You must be signed in to change notification settings - Fork 6
💥 呪われた神器の中身をitem_displayに変更 #2134
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
Draft
Lapis-LJA
wants to merge
3
commits into
master
Choose a base branch
from
fix/lapis_cursed_artifact
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.
Draft
Changes from all commits
Commits
Show all changes
3 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
12 changes: 9 additions & 3 deletions
12
TheSkyBlessing/data/asset_manager/functions/island/register/construct/.mcfunction
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,14 @@ | ||
| #> asset_manager:island/register/construct/ | ||
| # @within function world_manager:nexus_loader/try_load_asset/construct.m | ||
|
|
||
| # 呪われた神器の本体 | ||
| summon armor_stand ~ ~ ~ {Tags:["Object","CursedArtifact","CursedArtifactInit","Uninterferable"],Marker:1b,Invisible:1b,ArmorItems:[{},{},{},{id:"stick",Count:1b,tag:{CustomModelData:20100}}]} | ||
| # 呪われた神器の本体を召喚する | ||
| # ロードの関係で召喚後に向きを変えると反映されない可能性があるため、直接マクロでRotationを指定して召喚する | ||
| data modify storage asset:island Args.Rotation set from storage asset:island Rotation | ||
| function asset_manager:island/register/construct/summon.m with storage asset:island Args | ||
| data remove storage asset:island Args | ||
|
|
||
| # 空気にしておく | ||
| setblock ~ ~ ~ air | ||
|
|
||
| # データの適用 | ||
| execute as @e[type=armor_stand,tag=CursedArtifactInit,distance=..0.01,limit=1] run function asset_manager:island/register/construct/set_data | ||
| execute as @e[type=item_display,tag=CursedArtifactInit,distance=..0.01,limit=1] run function asset_manager:island/register/construct/set_data |
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
7 changes: 7 additions & 0 deletions
7
TheSkyBlessing/data/asset_manager/functions/island/register/construct/summon.m.mcfunction
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| #> asset_manager:island/register/construct/summon.m | ||
| # | ||
| # 呪われた神器の本体を召喚する | ||
| # | ||
| # @within function asset_manager:island/register/construct/ | ||
|
|
||
| $summon item_display ~ ~ ~ {Rotation:[$(Rotation)f,0.0f],Tags:["Object","CursedArtifact","CursedArtifactInit","Uninterferable"],item:{id:"stick",Count:1b,tag:{CustomModelData:20100}},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.28f,1.28f,1.28f],translation:[0f,0.64f,0f]}} | ||
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
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.
Uh oh!
There was an error while loading. Please reload this page.