Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from Flubberschnub/indev
Indev jets to master
- Loading branch information
Showing
280 changed files
with
2,682 additions
and
31 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
1 change: 1 addition & 0 deletions
1
data/aestd.private/functions/lib1/entity/set_motion_from_position2d/check_v1.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 @@ | ||
execute if data storage aestd:core {Version:{Functions:{"entity/set_motion_from_position2d": 1}}} run function aestd.private:lib1/entity/set_motion_from_position2d/v1 |
22 changes: 22 additions & 0 deletions
22
data/aestd.private/functions/lib1/entity/set_motion_from_position2d/v1.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,22 @@ | ||
# Author: Aeldrion | ||
# Version: 19w42a | ||
# Project: AESTD | ||
|
||
# Get coordinates | ||
function aestd1:context/get_position_scale50 | ||
function aestd1:entity/get_position_scale50 | ||
|
||
# Calculate delta | ||
execute store result score @s aestd.math.var run scoreboard players operation #aestd aestd.pos.x -= @s aestd.pos.x | ||
execute store result score @s aestd.math.var2 run scoreboard players operation #aestd aestd.pos.y -= @s aestd.pos.y | ||
execute store result score @s aestd.math.var3 run scoreboard players operation #aestd aestd.pos.z -= @s aestd.pos.z | ||
|
||
# Truncate pos (Motion caps at 10 and resets values above 10 to 0) | ||
scoreboard players set @s[scores={aestd.math.var=2000..}] aestd.math.var 2000 | ||
scoreboard players set @s[scores={aestd.math.var2=2000..}] aestd.math.var2 2000 | ||
scoreboard players set @s[scores={aestd.math.var3=2000..}] aestd.math.var3 2000 | ||
|
||
# Set motion | ||
execute store result entity @s Motion[0] double 0.005 run scoreboard players get @s aestd.math.var | ||
execute store result entity @s Motion[1] double 0.005 run scoreboard players get @s aestd.math.var2 | ||
execute store result entity @s Motion[2] double 0.005 run scoreboard players get @s aestd.math.var3 |
1 change: 1 addition & 0 deletions
1
data/aestd.private/functions/lib1/entity/set_motion_from_rotation2d/check_v1.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 @@ | ||
execute if data storage aestd:core {Version:{Functions:{"entity/set_motion_from_rotation2d": 1}}} run function aestd.private:lib1/entity/set_motion_from_rotation2d/v1 |
5 changes: 5 additions & 0 deletions
5
data/aestd.private/functions/lib1/entity/set_motion_from_rotation2d/v1.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,5 @@ | ||
# Author: Aeldrion | ||
# Version: 19w42a | ||
# Project: AESTD | ||
|
||
execute positioned as @s positioned ^ ^ ^5 run function aestd1:entity/set_motion_from_position2d |
5 changes: 5 additions & 0 deletions
5
data/aestd.private/tags/functions/lib1/entity/set_motion_from_position2d.json
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,5 @@ | ||
{ | ||
"values": [ | ||
"aestd.private:lib1/entity/set_motion_from_position2d/check_v1" | ||
] | ||
} |
5 changes: 5 additions & 0 deletions
5
data/aestd.private/tags/functions/lib1/entity/set_motion_from_rotation2d.json
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,5 @@ | ||
{ | ||
"values": [ | ||
"aestd.private:lib1/entity/set_motion_from_rotation2d/check_v1" | ||
] | ||
} |
10 changes: 10 additions & 0 deletions
10
data/aestd1/functions/entity/set_motion_from_position2d.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,10 @@ | ||
# Author: Aeldrion | ||
# Version: 19w42a | ||
# Project: AESTD v1.0 | ||
|
||
# Sets the motion of the executing entity towards the context position | ||
# The magnitude of the motion vector is defined by distance to context position | ||
# Further than 40 blocks away, direction is not guaranteed to be exact due to Motion resetting values above 10 | ||
# WARNING: Does not work on players | ||
|
||
function #aestd.private:lib1/entity/set_motion_from_position2d |
8 changes: 8 additions & 0 deletions
8
data/aestd1/functions/entity/set_motion_from_rotation2d.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 @@ | ||
# Author: Aeldrion | ||
# Version: 19w42a | ||
# Project: AESTD v1.0 | ||
|
||
# Sets the motion of the executing entity following context rotation | ||
# WARNING: Does not work on players | ||
|
||
function #aestd.private:lib1/entity/set_motion_from_rotation2d |
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 @@ | ||
replaceitem entity @s[predicate=!lc:inventory/is_holding_item] weapon.mainhand minecraft:carrot_on_a_stick{display:{Name:'{"text":"Activator","color":"#A3CDDA","bold":false,"italic":false}',Lore:['{"text":"Light Cycle Activator Control","color":"dark_gray","italic":false}']},Unbreakable:1b,CustomModelData:787,Baton:1,Closed:0,Accelerator:1,BikeControl:1} 1 | ||
replaceitem entity @s[predicate=!lc:inventory/is_holding_item] weapon.mainhand minecraft:carrot_on_a_stick{display:{Name:'{"text":"Activator","color":"#A3CDDA","bold":false,"italic":false}',Lore:['{"text":"Light Cycle Activator Control","color":"dark_gray","italic":false}']},Unbreakable:1b,CustomModelData:787,Baton:1,Closed:0,Accelerator:1,BikeControl:1,VehicleType:1} 1 | ||
#replaceitem entity @s[predicate=!lc:inventory/is_holding_offhand_item] weapon.offhand minecraft:carrot_on_a_stick{display:{Name:'{"text":"Brake","color":"#a12e2e","bold":false,"italic":false}',Lore:['{"text":"Light Cycle Brake Control","color":"dark_gray","italic":false}']},Unbreakable:1b,CustomModelData:788,Baton:1,Closed:0,Brake:1,BikeControl:1} 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
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,2 +1,2 @@ | ||
execute unless score @s circuitcolor matches 2.. run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:carrot_on_a_stick",Count:1b,tag:{display:{Name:'{"text":"Light Baton","color":"gray","bold":true,"italic":false}',Lore:['{"text":"4th Generation Cycle","color":"dark_gray","italic":true}']},CustomModelData:4,Baton:1,CycleType:4,Closed:1}}} | ||
execute if score @s circuitcolor matches 2 run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:carrot_on_a_stick",Count:1b,tag:{display:{Name:'{"text":"Light Baton","color":"gray","bold":true,"italic":false}',Lore:['{"text":"4th Generation Cycle","color":"dark_gray","italic":true}']},CustomModelData:42,Baton:1,CycleType:4,Closed:1}}} | ||
execute unless score @s circuitcolor matches 2.. run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:carrot_on_a_stick",Count:1b,tag:{display:{Name:'{"text":"Light Baton","color":"gray","bold":true,"italic":false}',Lore:['{"text":"4th Generation Cycle","color":"dark_gray","italic":true}']},CustomModelData:4,Baton:1,CycleType:4,Closed:1,VehicleType:1}}} | ||
execute if score @s circuitcolor matches 2 run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:carrot_on_a_stick",Count:1b,tag:{display:{Name:'{"text":"Light Baton","color":"gray","bold":true,"italic":false}',Lore:['{"text":"4th Generation Cycle","color":"dark_gray","italic":true}']},CustomModelData:42,Baton:1,CycleType:4,Closed:1,VehicleType: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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
execute unless score @s circuitcolor matches 2.. run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:carrot_on_a_stick",Count:1b,tag:{display:{Name:'{"text":"Light Baton","color":"gray","bold":true,"italic":false}',Lore:['{"text":"5th Generation Cycle","color":"dark_gray","italic":true}']},CustomModelData:5,Baton:1,CycleType:5,Closed:1}}} | ||
execute if score @s circuitcolor matches 2 run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:carrot_on_a_stick",Count:1b,tag:{display:{Name:'{"text":"Light Baton","color":"gray","bold":true,"italic":false}',Lore:['{"text":"5th Generation Cycle","color":"dark_gray","italic":true}']},CustomModelData:52,Baton:1,CycleType:5,Closed:1}}} | ||
execute unless score @s circuitcolor matches 2.. run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:carrot_on_a_stick",Count:1b,tag:{display:{Name:'{"text":"Light Baton","color":"gray","bold":true,"italic":false}',Lore:['{"text":"5th Generation Cycle","color":"dark_gray","italic":true}']},CustomModelData:5,Baton:1,CycleType:5,Closed:1,VehicleType:1}}} | ||
execute if score @s circuitcolor matches 2 run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:carrot_on_a_stick",Count:1b,tag:{display:{Name:'{"text":"Light Baton","color":"gray","bold":true,"italic":false}',Lore:['{"text":"5th Generation Cycle","color":"dark_gray","italic":true}']},CustomModelData:52,Baton:1,CycleType:5,Closed:1,VehicleType: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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:carrot_on_a_stick",Count:1b,tag:{display:{Name:'{"text":"Light Baton","color":"gray","bold":true,"italic":false}',Lore:['{"text":"D-73","color":"dark_gray","italic":true}']},CustomModelData:4,Baton:1,CycleType:73,Closed:1}}} | ||
summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:carrot_on_a_stick",Count:1b,tag:{display:{Name:'{"text":"Light Baton","color":"gray","bold":true,"italic":false}',Lore:['{"text":"D-73","color":"dark_gray","italic":true}']},CustomModelData:4,Baton:1,CycleType:73,Closed:1,VehicleType: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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:carrot_on_a_stick",Count:1b,tag:{display:{Name:'{"text":"Light Baton","color":"gray","bold":true,"italic":false}',Lore:['{"text":"Encom 786","color":"dark_gray","italic":true}']},CustomModelData:786,Baton:1,CycleType:786,Closed:1}}} | ||
summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:carrot_on_a_stick",Count:1b,tag:{display:{Name:'{"text":"Light Baton","color":"gray","bold":true,"italic":false}',Lore:['{"text":"Encom 786","color":"dark_gray","italic":true}']},CustomModelData:786,Baton:1,CycleType:786,Closed:1,VehicleType: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
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
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
Binary file not shown.
Binary file not shown.
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,5 @@ | ||
##blue baton | ||
scoreboard players set @s aestd.item.cmd 4 | ||
scoreboard players set @s aestd.item.slot -1 | ||
function aestd1:item/set_custom_model_data | ||
tag @s add batoncolormatch |
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,3 @@ | ||
##match color | ||
execute unless score @s circuitcolor matches 2.. run function lj:color/batoncolor/4/blue | ||
execute if score @s circuitcolor matches 2 run function lj:color/batoncolor/4/orange |
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,5 @@ | ||
##blue baton | ||
scoreboard players set @s aestd.item.cmd 42 | ||
scoreboard players set @s aestd.item.slot -1 | ||
function aestd1:item/set_custom_model_data | ||
tag @s add batoncolormatch |
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,2 @@ | ||
##batoncolor match | ||
execute if score @s JetType matches 4 run function lj:color/batoncolor/4/match |
Oops, something went wrong.