Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
running animations + no reload and shooting while running
- Loading branch information
1 parent
05852a5
commit b35b9f0
Showing
7 changed files
with
45 additions
and
18 deletions.
There are no files selected for viewing
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,7 +1,7 @@ | ||
##reload gun | ||
scoreboard players reset @s[scores={magazine=1..}] reloadtimer | ||
scoreboard players reset @s[scores={magazine=1..},tag=!reloading] reloadtimer | ||
replaceitem entity @s weapon.offhand air | ||
function guns:graviton/resetads | ||
#replaceitem entity @s weapon.mainhand carrot_on_a_stick{display:{Name:'{"text":"Sunshot","color":"gold","bold":true,"italic":false}',Lore:['{"text":"\\"Can\'t outrun the sunrise.\\"","color":"gray"}','{"text":"-Liu Feng","color":"gray"}']},HideFlags:63,Unbreakable:1b,CustomModelData:2,gun:1,sunshot:1} 1 | ||
tag @s[scores={magazine=..29}] add reloading | ||
execute as @s[nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",Count:1b,tag:{gun:1,graviton:1}}}] if score @s magazine matches ..29 run function guns:graviton/loading | ||
tag @s[scores={magazine=..29},predicate=!aestd1:flags/is_sprinting] add reloading | ||
execute as @s[nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",Count:1b,tag:{gun:1,graviton:1}}},predicate=!aestd1:flags/is_sprinting] if score @s magazine matches ..29 run function guns:graviton/loading |
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,4 @@ | ||
##sunshot sprinting animation | ||
replaceitem entity @s weapon.mainhand carrot_on_a_stick{display:{Name:'{"text":"Graviton Lance","color":"dark_purple","bold":true,"italic":false}',Lore:['{"text":"Think of space-time as a tapestry on a loom.","color":"gray"}','{"text":"This weapon is the needle.","color":"gray"}']},HideFlags:63,Unbreakable:1b,CustomModelData:99,gun:1,graviton:1,ads:0} 1 | ||
|
||
function guns:general/setmag |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
##reload gun | ||
scoreboard players reset @s[scores={magazine=1..}] reloadtimer | ||
scoreboard players reset @s[scores={magazine=1..},tag=!reloading] reloadtimer | ||
replaceitem entity @s weapon.offhand air | ||
function guns:recluse/resetads | ||
#replaceitem entity @s weapon.mainhand carrot_on_a_stick{display:{Name:'{"text":"Sunshot","color":"gold","bold":true,"italic":false}',Lore:['{"text":"\\"Can\'t outrun the sunrise.\\"","color":"gray"}','{"text":"-Liu Feng","color":"gray"}']},HideFlags:63,Unbreakable:1b,CustomModelData:2,gun:1,sunshot:1} 1 | ||
tag @s[scores={magazine=..35}] add reloading | ||
execute as @s[nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",Count:1b,tag:{gun:1,recluse:1}}}] if score @s magazine matches ..35 unless score @s feedingFrenzy matches 1.. run function guns:recluse/loading | ||
execute as @s[nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",Count:1b,tag:{gun:1,recluse:1}}}] if score @s magazine matches ..35 if score @s feedingFrenzy matches 1.. run function guns:recluse/fastloading | ||
tag @s[scores={magazine=..35},predicate=!aestd1:flags/is_sprinting] add reloading | ||
execute as @s[nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",Count:1b,tag:{gun:1,recluse:1}}},predicate=!aestd1:flags/is_sprinting] if score @s magazine matches ..35 unless score @s feedingFrenzy matches 1.. run function guns:recluse/loading | ||
execute as @s[nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",Count:1b,tag:{gun:1,recluse:1}}},predicate=!aestd1:flags/is_sprinting] if score @s magazine matches ..35 if score @s feedingFrenzy matches 1.. run function guns:recluse/fastloading |
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,4 @@ | ||
##sunshot sprinting animation | ||
replaceitem entity @s weapon.mainhand carrot_on_a_stick{display:{Name:'{"text":"The Recluse","color":"dark_red","bold":true,"italic":false}',Lore:['{"text":"My bite will turn your","color":"gray"}','{"text":"sweet flesh to vile rot.","color":"gray"}']},HideFlags:63,Unbreakable:1b,CustomModelData:174,gun:1,recluse:1,ads:0} 1 | ||
|
||
function guns:general/setmag |
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,7 +1,7 @@ | ||
##reload gun | ||
scoreboard players reset @s[scores={magazine=1..}] reloadtimer | ||
scoreboard players reset @s[scores={magazine=1..},tag=!reloading] reloadtimer | ||
replaceitem entity @s weapon.offhand air | ||
function guns:sunshot/resetads | ||
#replaceitem entity @s weapon.mainhand carrot_on_a_stick{display:{Name:'{"text":"Sunshot","color":"gold","bold":true,"italic":false}',Lore:['{"text":"\\"Can\'t outrun the sunrise.\\"","color":"gray"}','{"text":"-Liu Feng","color":"gray"}']},HideFlags:63,Unbreakable:1b,CustomModelData:2,gun:1,sunshot:1} 1 | ||
tag @s[scores={magazine=..11}] add reloading | ||
execute as @s[nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",Count:1b,tag:{gun:1,sunshot:1}}}] if score @s magazine matches ..11 run function guns:sunshot/loading | ||
tag @s[scores={magazine=..11},predicate=!aestd1:flags/is_sprinting] add reloading | ||
execute as @s[nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",Count:1b,tag:{gun:1,sunshot:1}}},predicate=!aestd1:flags/is_sprinting] if score @s magazine matches ..11 run function guns:sunshot/loading |
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,4 @@ | ||
##sunshot sprinting animation | ||
replaceitem entity @s weapon.mainhand minecraft:carrot_on_a_stick{display:{Name:'{"text":"Sunshot","color":"gold","bold":true,"italic":false}',Lore:['{"text":"a pew pew gun"}']},Unbreakable:1b,CustomModelData:56,gun:1,sunshot:1} 1 | ||
|
||
function guns:general/setmag |