Advertisement
BlueCommander

setting_counts.mcfunction

Dec 22nd, 2018
338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. #==================NOTE====================#
  2. # This function was coded by BlueCommander #
  3. # Please don't claim this as your own work #
  4. # LINK www.youtube.com/c/BlueCommander #
  5. #==========================================#
  6. #----------------SETTINGS------------------#
  7. execute if score @s ItemCount <= @e[distance=0,limit=1] ItemCount run scoreboard players operation @s ItemCountTransf = @s ItemCount
  8. execute if score @s ItemCount > @e[distance=0,limit=1] ItemCount run scoreboard players operation @e[distance=0,limit=1] ItemCountTransf = @e[distance=0,limit=1] ItemCount
  9. execute store result entity @e[type=item,tag=AdCraft,limit=1,distance=..1,sort=nearest] Item.Count int 1 run scoreboard players get @e[distance=..1,scores={ItemCountTransf=1..},limit=1] ItemCountTransf
  10. tag @e[type=item,tag=AdCraft,limit=1,distance=..1,sort=nearest] remove AdCraft
  11. execute if entity @e[distance=0,limit=1,scores={ItemCountTransf=1..}] store result entity @s Item.Count int 1 run scoreboard players operation @s ItemCount -= @e[distance=..1,scores={ItemCountTransf=1..}] ItemCountTransf
  12. execute if entity @s[scores={ItemCountTransf=1..}] store result entity @e[distance=0,limit=1] Item.Count int 1 run scoreboard players operation @e[distance=0,limit=1] ItemCount -= @e[distance=..1,scores={ItemCountTransf=1..}] ItemCountTransf
  13. kill @e[distance=..1,scores={ItemCountTransf=1..}]
  14. particle minecraft:dragon_breath ~ ~ ~ 0.4 0.5 0.4 0.01 10 normal
  15. execute as @a[distance=..5] at @s run playsound minecraft:block.bamboo.hit master @s ~ ~ ~ 1 0 1
  16. #------------------------------------------#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement