diff --git a/data/lc/functions/load.mcfunction b/data/lc/functions/load.mcfunction index 27f89b3..ca8c08e 100644 --- a/data/lc/functions/load.mcfunction +++ b/data/lc/functions/load.mcfunction @@ -55,4 +55,4 @@ scoreboard players set 50 Constant 50 scoreboard players set 100 Constant 100 ##message -tellraw @a ["",{"text":"Reloaded!","underlined":true,"color":"green"},{"text":" TRON Vehicles v1.2.3","bold":true,"italic":true,"color":"white"},{"text":" "},{"text":"by","color":"yellow"},{"text":" "},{"text":"F","color":"dark_aqua"},{"text":"lubberschnub","color":"dark_gray"}] +tellraw @a ["",{"text":"Reloaded!","underlined":true,"color":"green"},{"text":" TRON Vehicles v1.2.4","bold":true,"italic":true,"color":"white"},{"text":" "},{"text":"by","color":"yellow"},{"text":" "},{"text":"F","color":"dark_aqua"},{"text":"lubberschnub","color":"dark_gray"}] diff --git a/data/lc/functions/motion/drag.mcfunction b/data/lc/functions/motion/drag.mcfunction index afa0513..8414732 100644 --- a/data/lc/functions/motion/drag.mcfunction +++ b/data/lc/functions/motion/drag.mcfunction @@ -1,5 +1,5 @@ ##drag execute as @s[tag=ribboning] if score @s speed > ribboning topSpeed run scoreboard players operation @s speed = ribboning topSpeed execute unless score @s speed matches ..0 unless entity @a[tag=matchedid,predicate=lc:lc/riding_cycle] run scoreboard players remove @s speed 15 -execute unless score @s speed matches ..0 if entity @s[tag=inAir] run scoreboard players remove @s speed 15 +execute unless score @s speed matches ..0 if entity @s[tag=inAir] run scoreboard players remove @s speed 10 execute if score @s speed matches ..0 run scoreboard players set @s speed 0 diff --git a/data/lc/functions/move.mcfunction b/data/lc/functions/move.mcfunction index f47cd55..8e19604 100644 --- a/data/lc/functions/move.mcfunction +++ b/data/lc/functions/move.mcfunction @@ -13,7 +13,8 @@ function aestd1:entity/set_motion_from_rotation #execute as @s[tag=moveup] run function aestd1:entity/set_motion_magnitude scoreboard players operation @s aestd.math.in = @s speed function aestd1:entity/set_motion_magnitude -execute as @s[tag=moveup] run data modify entity @s Motion[1] set value 0.5d +#execute as @s[tag=moveup] run data modify entity @s Motion[1] set value 0.5d +execute as @s[tag=moveup] store result entity @s Motion[1] double 0.0004 run scoreboard players get @s speed execute as @s run function lc:motion/tick execute as @s run function lc:rotate/tick kill @e[tag=aestd.context.position_cloud] diff --git a/data/lc/functions/rotate/tick.mcfunction b/data/lc/functions/rotate/tick.mcfunction index 927874e..07775df 100644 --- a/data/lc/functions/rotate/tick.mcfunction +++ b/data/lc/functions/rotate/tick.mcfunction @@ -12,7 +12,8 @@ execute as @a[predicate=lc:lc/riding_cycle,tag=matchedid] if entity @e[tag=cycle #execute as @e[tag=cyclefacing,tag=matchedid,limit=1] at @s facing entity @e[tag=cyclestand,tag=matchedid] feet facing ^ ^ ^-1 run tp @s ~ ~ ~ ~-90 ~ #execute as @e[tag=cyclestand,tag=matchedid] run data modify entity @s Rotation[0] set from entity @e[tag=cyclefacing,tag=matchedid,limit=1] Rotation[0] #execute as @e[tag=cyclefacing,tag=matchedid,limit=1] at @s run tp @s ~ ~ ~ ~90 ~ -execute as @e[tag=cyclefacing,tag=matchedid] run data modify entity @s Motion[1] set from entity @e[tag=cyclestand,tag=matchedid,limit=1] Motion[1] +#execute as @e[tag=cyclefacing,tag=matchedid] run data modify entity @s Motion[1] set from entity @e[tag=cyclestand,tag=matchedid,limit=1] Motion[1] +execute as @e[tag=cyclefacing,tag=matchedid] store result entity @s Motion[1] double 0.001 run data get entity @e[tag=cyclestand,tag=matchedid,limit=1] Motion[1] 1000 execute at @e[tag=cyclestand,tag=matchedid] at @s facing entity @e[tag=cyclefacing,tag=matchedid,limit=1] feet rotated ~-90 ~ run tp @s ~ ~ ~ ~ ~ execute as @e[tag=cyclestand,tag=matchedid] run data modify entity @s Motion[1] set from entity @e[tag=cyclefacing,tag=matchedid,limit=1] Motion[1] execute as @e[tag=cyclefacing,tag=matchedid] run data modify entity @s Motion[1] set value 0d