-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix
friendliness-pellet-ring
AJ model not exporting custom NBT (#31)
- Loading branch information
1 parent
7846cb6
commit 63a78b9
Showing
10 changed files
with
46 additions
and
22 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...acks/omega-flowey/data/animated_java/functions/friendliness_pellet_ring/summon.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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
summon minecraft:item_display ~ ~ ~ {id:"minecraft:item_display",Tags:["aj.new","aj.friendliness_pellet_ring.rig_entity","aj.friendliness_pellet_ring.bone","aj.friendliness_pellet_ring.bone.root","aj.new","aj.friendliness_pellet_ring.rig_entity","aj.friendliness_pellet_ring.root","aj.rig_root"],transformation:[-4f,0f,4.898587196589413e-16f,0f,0f,4f,0f,0.9375f,-4.898587196589413e-16f,0f,-4f,0f,0f,0f,0f,1f],interpolation_duration:1,item_display:"head",item:{id:"minecraft:white_dye",Count:1b,tag:{CustomModelData:26}},CustomName:"[{\"text\":\"[\",\"color\":\"gray\"},{\"text\":\"AJ\",\"color\":\"aqua\"},\"] \",[\"\",{\"text\":\"friendliness_pellet_ring\",\"color\":\"light_purple\"},\".\",{\"text\":\"bone\",\"color\":\"white\"},\"[\",{\"text\":\"root\",\"color\":\"yellow\"},\"]\"]]",height:16f,width:48f} | ||
summon minecraft:item_display ~ ~ ~ {CustomName:"\"Friendliness Pellet Ring\"",Tags:["omega-flowey-remastered","hostile","omega-flowey","attack","friendliness-pellets","friendliness-pellet-ring","friendliness-pellet-ring-new","aj.new","aj.friendliness_pellet_ring.rig_entity","aj.friendliness_pellet_ring.bone","aj.friendliness_pellet_ring.bone.root","aj.new","aj.friendliness_pellet_ring.rig_entity","aj.friendliness_pellet_ring.root","aj.rig_root"],id:"minecraft:item_display",transformation:[-4f,0f,4.898587196589413e-16f,0f,0f,4f,0f,0.9375f,-4.898587196589413e-16f,0f,-4f,0f,0f,0f,0f,1f],interpolation_duration:1,item_display:"head",item:{id:"minecraft:white_dye",Count:1b,tag:{CustomModelData:26}},height:16f,width:48f} | ||
execute as @e[type=minecraft:item_display,tag=aj.friendliness_pellet_ring.root,tag=aj.new,limit=1,distance=..0.1] run function animated_java:friendliness_pellet_ring/zzzzzzzz/summon/as_root |
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
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
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
8 changes: 8 additions & 0 deletions
8
...owey/attack/friendliness-pellets/indicator/initialize/friendliness-pellet-ring.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 @@ | ||
# Add tags | ||
tag @s add groupable | ||
|
||
# Copy parent indicator's group id to blinking-ring | ||
function entity:group/copy with storage group | ||
|
||
# Remove tags | ||
tag @s remove friendliness-pellet-ring-new |
1 change: 1 addition & 0 deletions
1
...ctions/hostile/omega-flowey/attack/x-bullets-lower/executor/initialize/effects.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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# Play eye sheen particles | ||
# TODO: this should be summoned at a specific position relative to the eye model (TBD where exactly) | ||
# TODO: make better expanding-sheen model with transparency (see todo in `scratch.txt`) | ||
particle minecraft:explosion ~ ~ ~ 0 0 0 10 1 force | ||
|
||
playsound omega-flowey:attack.x-bullets.start hostile @a ~ ~ ~ 3 1 1 |
1 change: 1 addition & 0 deletions
1
...ctions/hostile/omega-flowey/attack/x-bullets-upper/executor/initialize/effects.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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# Play eye sheen particles | ||
# TODO: this should be summoned at a specific position relative to the eye model (TBD where exactly) | ||
# TODO: make better expanding-sheen model with transparency (see todo in `scratch.txt`) | ||
particle minecraft:explosion ~ ~ ~ 0 0 0 10 1 force | ||
|
||
playsound omega-flowey:attack.x-bullets.start hostile @a ~ ~ ~ 3 1 1 |
8 changes: 4 additions & 4 deletions
8
datapacks/omega-flowey/data/entity/functions/utils/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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# TODO remove these `unless entity @e[tag=boss]`/`if entity @e[tag=boss]` checks when boss fight is fully setup | ||
# TODO remove these `unless entity @e[tag=boss_fight]`/`if entity @e[tag=boss_fight]` checks when boss fight is fully setup | ||
# we have it here for development so that the boss entity (omega-flowey) | ||
# does not need to exist for attacks to damage. | ||
# `by @e[tag=boss,limit=1]` is needed to have proper damage knockback + death messages ("killed by Omega Flowey") | ||
$execute unless entity @e[tag=boss] as @a[distance=..$(radius),team=player] run damage @s $(damage) minecraft:mob_projectile | ||
$execute if entity @e[tag=boss] as @a[distance=..$(radius),team=player] run damage @s $(damage) minecraft:mob_projectile by @e[tag=boss,limit=1] | ||
# `by @e[tag=boss_fight,limit=1]` is needed to have proper damage knockback + death messages ("killed by Omega Flowey") | ||
$execute unless entity @e[tag=boss_fight] as @a[distance=..$(radius),team=player] run damage @s $(damage) minecraft:mob_projectile | ||
$execute if entity @e[tag=boss_fight] as @a[distance=..$(radius),team=player] run damage @s $(damage) minecraft:mob_projectile by @e[tag=boss_fight,limit=1] |
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
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