Skip to content

Instantly share code, notes, and snippets.

@Permik
Last active January 14, 2020 19:52
Show Gist options
  • Save Permik/46f7751ffc6202f7ff77dcd092e1a96c to your computer and use it in GitHub Desktop.
Save Permik/46f7751ffc6202f7ff77dcd092e1a96c to your computer and use it in GitHub Desktop.
Minecraft morpheus **WIP**
** For setup **
/scoreboard objectives add Sleeping dummy
/scoreboard objectives add players trigger
/scoreboard objectives add playersCompare trigger
/scoreboard objectives add playersDivider trigger
/scoreboard players set @a playersDivider 2
Repeat c block >> /scoreboard players set @p[nbt=!{SleepTimer:0s}] Sleeping 1
chain c block
always active, conditional
V scoreboard players enable @a players
V
V execute as @a run trigger players set 0
V
V scoreboard players enable @a players
V
V execute as @a run trigger players add 1
V scoreboard players operation @a playersCompare = @a players
V scoreboard players operation @a playersCompare /= @a playersDivider
V execute if score @r Sleeping >= @r playersCompare run time add 50t
V setblock ~2 ~ ~ minecraft:redstone_block keep
Three blocks east of top command block
chain c block
V say Skipping night...
V gamerule randomTickSpeed 150
**TODO**
Revert tickspeed back to 3 when it's morning
Change the sleeping count to a trigger score as the counter is currently broken
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment