Guest User

Minecraft 1.9 Jetpack Commands by Sancarn

a guest
Oct 11th, 2015
1,098
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.12 KB | None | 0 0
  1. ################################################################################
  2. *Every command of the command block system separated out for easy understanding*
  3. ************************** Comments marked with "..." **************************
  4. ****************** Command block system created by Sancarn *********************
  5. ################################################################################
  6.  
  7. "Teleport all previous slimes to y=-1000 to despawn them instantly"
  8. /tp @e[name=PropelSlime] ~ -1000 ~
  9.  
  10. "Summon an Invulnerable, Silent, Gravity-less, Invisible Slime at all players with gamemode=0, pitch-rotation between 20 and -90, and an inAir score ≥ 1"
  11. /execute @a[m=0,rx=20,rxm=-90,score_inAir_min=1] ~ ~ ~ summon Slime ~ ~ ~ {CustomName:PropelSlime,Size:0,Invulnerable:1,NoAI:1,Silent:1,ActiveEffects:[{Id:14,Amplifier:0,Duration:20,ShowParticles:0b}]}
  12.  
  13. "Summon a cloud particle at all flying players in survival mode"
  14. /execute @a[m=0,score_inAir_min=1] ~ ~ ~ /particle cloud ~ ~ ~ 0 0 0 0.02 100
  15.  
  16. "Reset inAir score to test for flying players in the next game tick"
  17. /scoreboard players set @a inAir 0
  18.  
  19. "Give the jump boost 7 effect to all players with gamemode=0 and a sneakTime ≥ 1"
  20. /effect @a[m=0,score_sneakTime_min=1] minecraft:jump_boost 1 7
  21.  
  22. "Reset sneakTime score to test for sneaking players in the next game tick"
  23. /scoreboard players set @a sneakTime 0
  24.  
  25.  
  26. ################################################################################
  27. ***Every command of the 1-Click-Command separated out for easy understanding:***
  28. ################################################################################
  29.  
  30. "The stat.flyOneCm increases by 1 for every centimetre flown in both creative mode and while using the elytra. We bind this to the inAir score."
  31. /scoreboard objectives add inAir stat.flyOneCm
  32.  
  33. "The stat.sneakTime increases by 1 for every game tick the player is sneaking. We bind this to the sneakTime score."
  34. /scoreboard objectives add sneakTime stat.sneakTime
  35.  
  36. "This prevents command block chat spam"
  37. /gamerule commandBlockOutput false
  38.  
  39. "This prevents excessive lag on servers where this is used for a long time"
  40. /gamerule logAdminCommands false
  41.  
  42. "Gives all players in creative mode an Unbreakable Elytra"
  43. /give @a[m=1] minecraft:elytra 1 0 {Unbreakable:1}
  44.  
  45. "Summons a redstone Lamp indicator and a lever for the command block system"
  46. /setblock ~-1 ~1 ~ redstone_lamp
  47. /setblock ~-1 ~1 ~1 lever 3
  48.  
  49. "Introductory Speech Commands"
  50. /tellraw @a ["",{"text":"Hello and Welcome to the Jetpack module made by","color":"green"},{"text":" Sancarn","color":"gold","bold":true,"clickEvent":{"action":"open_url","value":"http://www.youtube.com/sancarn"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Click to go to my YouTube channel"}]}}},{"text":" & ","color":"green","bold":false},{"text":"Selulance","color":"gold","bold":true,"clickEvent":{"action":"open_url","value":"http://www.youtube.com/selulancie"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Click to go to my YouTube channel"}]}}}]
  51. /tellraw @a ["",{"text":"Flick the lever attached to the redstone lamp to turn your Elytra into a jetpack!","color":"light_purple"}]
  52. /tellraw @a ["",{"text":"Make sure this module is in the spawn chunks.","color":"light_purple"}]
  53. /tellraw @a ["",{"text":"The jetpack only works in the survival game mode (gamemode 0).","color":"light_purple"}]
  54. /tellraw @a ["",{"text":"If you accidentally land somewhere","color":"light_purple"},{"text":" Sneak ","color":"aqua","bold":true},{"text":"and then","color":"light_purple","bold":false},{"text":" Jump ","color":"aqua","bold":true},{"text":"to return to flying, easily!","color":"light_purple","bold":false}]
  55. /tellraw @a ["",{"text":"Finally, the system only works between ","color":"light_purple"},{"text":"y=0","color":"aqua","bold":true},{"text":" and ","color":"light_purple","bold":false},{"text":"y=255","color":"aqua","bold":true},{"text":". So try not to fall into the void! Else you will die! ENJOY!","color":"light_purple","bold":false}]
  56.  
  57. "Creates the command block contraption"
  58. /setblock ~ ~1 ~ minecraft:repeating_command_block 5 replace {CustomName:1,Command:"tp @e[name=SGM4PropelSlime] ~ -1000 ~",TrackOutput:0}
  59. /setblock ~1 ~1 ~ minecraft:chain_command_block 5 replace {CustomName:2,auto:1b,Command:"execute @a[m=0,rx=20,rxm=-90,score_inAir_min=1] ~ ~ ~ summon Slime ~ ~ ~ {CustomName:SGM4PropelSlime,Size:0,Invulnerable:1,NoAI:1,Silent:1,ActiveEffects:[{Id:14,Amplifier:0,Duration:20,ShowParticles:0b}]}",TrackOutput:0}
  60. /setblock ~2 ~1 ~ minecraft:chain_command_block 5 replace {CustomName:3,auto:1b,Command:"execute @a[m=0,score_inAir_min=1] ~ ~ ~ /particle cloud ~ ~ ~ 0 0 0 0.02 100",TrackOutput:0}
  61. /setblock ~3 ~1 ~ minecraft:chain_command_block 5 replace {CustomName:4,auto:1b,Command:"/scoreboard players set @a inAir 0",TrackOutput:0}
  62. /setblock ~4 ~1 ~ minecraft:chain_command_block 5 replace {CustomName:5,auto:1b,Command:"/effect @a[m=0,score_sneakTime_min=1] minecraft:jump_boost 1 7",TrackOutput:0}
  63. /setblock ~5 ~1 ~ minecraft:chain_command_block 5 replace {CustomName:6,auto:1b,Command:"/scoreboard players set @a sneakTime 0",TrackOutput:0}
Advertisement
Add Comment
Please, Sign In to add comment