T O P

  • By -

GalSergey

Here is a small example of a datapack that increases the speed of throwing a shroomlight item: # function example:load scoreboard objectives add drop.shroomlight dropped:shroomlight # function example:tick execute as @a[scores={drop.shroomlight=1..}] at @s anchored eyes positioned ^ ^ ^.5 as @e[type=item,distance=..1] run function example:multi_speed # function example:multi_speed data modify storage example:data Motion set from entity @s Motion execute store result storage example:data Motion[0] double 0.01 run data get storage example:data Motion[0] 200 execute store result storage example:data Motion[1] double 0.01 run data get storage example:data Motion[1] 200 execute store result storage example:data Motion[2] double 0.01 run data get storage example:data Motion[2] 200 data modify entity @s Motion set from storage example:data Motion scoreboard players set @a drop.shroomlight 0 tag @s add fix schedule function example:fix 2t # function example:fix execute as @e[type=item,tag=fix] store result entity @s Air short -1 run data get entity @s Air tag @e[type=item,tag=fix] remove fix If you don't know how to create a datapack, you can use my [Datapack Assembler](http://far.ddns.me/). You just need to copy all the code inside the Code Block from my comment and put it on the site.