Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ################################################################################
- *Every command of the command block system separated out for easy understanding*
- ************************** Comments marked with "..." **************************
- ****************** Command block system created by Sancarn *********************
- ################################################################################
- "Teleport all previous slimes to y=-1000 to despawn them instantly"
- /tp @e[name=PropelSlime] ~ -1000 ~
- "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"
- /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}]}
- "Summon a cloud particle at all flying players in survival mode"
- /execute @a[m=0,score_inAir_min=1] ~ ~ ~ /particle cloud ~ ~ ~ 0 0 0 0.02 100
- "Reset inAir score to test for flying players in the next game tick"
- /scoreboard players set @a inAir 0
- "Give the jump boost 7 effect to all players with gamemode=0 and a sneakTime ≥ 1"
- /effect @a[m=0,score_sneakTime_min=1] minecraft:jump_boost 1 7
- "Reset sneakTime score to test for sneaking players in the next game tick"
- /scoreboard players set @a sneakTime 0
- ################################################################################
- ***Every command of the 1-Click-Command separated out for easy understanding:***
- ################################################################################
- "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."
- /scoreboard objectives add inAir stat.flyOneCm
- "The stat.sneakTime increases by 1 for every game tick the player is sneaking. We bind this to the sneakTime score."
- /scoreboard objectives add sneakTime stat.sneakTime
- "This prevents command block chat spam"
- /gamerule commandBlockOutput false
- "This prevents excessive lag on servers where this is used for a long time"
- /gamerule logAdminCommands false
- "Gives all players in creative mode an Unbreakable Elytra"
- /give @a[m=1] minecraft:elytra 1 0 {Unbreakable:1}
- "Summons a redstone Lamp indicator and a lever for the command block system"
- /setblock ~-1 ~1 ~ redstone_lamp
- /setblock ~-1 ~1 ~1 lever 3
- "Introductory Speech Commands"
- /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"}]}}}]
- /tellraw @a ["",{"text":"Flick the lever attached to the redstone lamp to turn your Elytra into a jetpack!","color":"light_purple"}]
- /tellraw @a ["",{"text":"Make sure this module is in the spawn chunks.","color":"light_purple"}]
- /tellraw @a ["",{"text":"The jetpack only works in the survival game mode (gamemode 0).","color":"light_purple"}]
- /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}]
- /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}]
- "Creates the command block contraption"
- /setblock ~ ~1 ~ minecraft:repeating_command_block 5 replace {CustomName:1,Command:"tp @e[name=SGM4PropelSlime] ~ -1000 ~",TrackOutput:0}
- /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}
- /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}
- /setblock ~3 ~1 ~ minecraft:chain_command_block 5 replace {CustomName:4,auto:1b,Command:"/scoreboard players set @a inAir 0",TrackOutput:0}
- /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}
- /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