Upgrade 1ps
This commit is contained in:
		
							parent
							
								
									48cff062ce
								
							
						
					
					
						commit
						1708bd1ae5
					
				@ -1 +0,0 @@
 | 
				
			|||||||
execute if entity @a[nbt={Sleeping:1b}] run function 1ps:internal_loop
 | 
					 | 
				
			||||||
@ -1,3 +1,3 @@
 | 
				
			|||||||
time add 125
 | 
					execute as @a[nbt={SleepTimer:1s}] run tellraw @a [{"selector":"@s","color":"yellow"},{"text":" is now sleeping ","color":"yellow"}]
 | 
				
			||||||
execute as @a[nbt={SleepTimer:1s}] run tellraw @a [{"selector":"@s","color":"yellow"},{"text":" is now sleeping ","color":"yellow"}]
 | 
					execute as @a[nbt={SleepTimer:99s}] run function 1ps:skipday
 | 
				
			||||||
execute if entity @a[nbt={SleepTimer:99s}] run weather clear 0
 | 
					execute if entity @a[nbt={SleepTimer:100s}] run weather clear 0
 | 
				
			||||||
@ -0,0 +1 @@
 | 
				
			|||||||
 | 
					scoreboard objectives add 1ps.dayTimer dummy
 | 
				
			||||||
@ -0,0 +1 @@
 | 
				
			|||||||
 | 
					execute if entity @a[nbt=!{SleepTimer:0s}] run function 1ps:internal_loop
 | 
				
			||||||
@ -0,0 +1,34 @@
 | 
				
			|||||||
 | 
					execute store result score @s 1ps.dayTimer run time query daytime
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					scoreboard players remove @s 1ps.dayTimer 24000
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					execute if entity @s[scores={1ps.dayTimer=..-16384}] run time add 16384
 | 
				
			||||||
 | 
					execute if entity @s[scores={1ps.dayTimer=..-16384}] run scoreboard players add @s 1ps.dayTimer 16384
 | 
				
			||||||
 | 
					execute if entity @s[scores={1ps.dayTimer=..-8192}] run time add 8192
 | 
				
			||||||
 | 
					execute if entity @s[scores={1ps.dayTimer=..-8192}] run scoreboard players add @s 1ps.dayTimer 8192
 | 
				
			||||||
 | 
					execute if entity @s[scores={1ps.dayTimer=..-4096}] run time add 4096
 | 
				
			||||||
 | 
					execute if entity @s[scores={1ps.dayTimer=..-4096}] run scoreboard players add @s 1ps.dayTimer 4096
 | 
				
			||||||
 | 
					execute if entity @s[scores={1ps.dayTimer=..-2048}] run time add 2048
 | 
				
			||||||
 | 
					execute if entity @s[scores={1ps.dayTimer=..-2048}] run scoreboard players add @s 1ps.dayTimer 2048
 | 
				
			||||||
 | 
					execute if entity @s[scores={1ps.dayTimer=..-1024}] run time add 1024
 | 
				
			||||||
 | 
					execute if entity @s[scores={1ps.dayTimer=..-1024}] run scoreboard players add @s 1ps.dayTimer 1024
 | 
				
			||||||
 | 
					execute if entity @s[scores={1ps.dayTimer=..-512}] run time add 512
 | 
				
			||||||
 | 
					execute if entity @s[scores={1ps.dayTimer=..-512}] run scoreboard players add @s 1ps.dayTimer 512
 | 
				
			||||||
 | 
					execute if entity @s[scores={1ps.dayTimer=..-256}] run time add 256
 | 
				
			||||||
 | 
					execute if entity @s[scores={1ps.dayTimer=..-256}] run scoreboard players add @s 1ps.dayTimer 256
 | 
				
			||||||
 | 
					execute if entity @s[scores={1ps.dayTimer=..-128}] run time add 128
 | 
				
			||||||
 | 
					execute if entity @s[scores={1ps.dayTimer=..-128}] run scoreboard players add @s 1ps.dayTimer 128
 | 
				
			||||||
 | 
					execute if entity @s[scores={1ps.dayTimer=..-64}] run time add 64
 | 
				
			||||||
 | 
					execute if entity @s[scores={1ps.dayTimer=..-64}] run scoreboard players add @s 1ps.dayTimer 64
 | 
				
			||||||
 | 
					execute if entity @s[scores={1ps.dayTimer=..-32}] run time add 32
 | 
				
			||||||
 | 
					execute if entity @s[scores={1ps.dayTimer=..-32}] run scoreboard players add @s 1ps.dayTimer 32
 | 
				
			||||||
 | 
					execute if entity @s[scores={1ps.dayTimer=..-16}] run time add 16
 | 
				
			||||||
 | 
					execute if entity @s[scores={1ps.dayTimer=..-16}] run scoreboard players add @s 1ps.dayTimer 16
 | 
				
			||||||
 | 
					execute if entity @s[scores={1ps.dayTimer=..-8}] run time add 8
 | 
				
			||||||
 | 
					execute if entity @s[scores={1ps.dayTimer=..-8}] run scoreboard players add @s 1ps.dayTimer 8
 | 
				
			||||||
 | 
					execute if entity @s[scores={1ps.dayTimer=..-4}] run time add 4
 | 
				
			||||||
 | 
					execute if entity @s[scores={1ps.dayTimer=..-4}] run scoreboard players add @s 1ps.dayTimer 4
 | 
				
			||||||
 | 
					execute if entity @s[scores={1ps.dayTimer=..-2}] run time add 2
 | 
				
			||||||
 | 
					execute if entity @s[scores={1ps.dayTimer=..-2}] run scoreboard players add @s 1ps.dayTimer 2
 | 
				
			||||||
 | 
					execute if entity @s[scores={1ps.dayTimer=..-1}] run time add 1
 | 
				
			||||||
 | 
					execute if entity @s[scores={1ps.dayTimer=..-1}] run scoreboard players add @s 1ps.dayTimer 1
 | 
				
			||||||
							
								
								
									
										0
									
								
								datapacks/1ps-1516729816-1/data/1ps/tags/functions/tick.json → datapacks/1ps-1556049967/data/1ps/tags/functions/tick.json
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							
							
						
						
									
										0
									
								
								datapacks/1ps-1516729816-1/data/1ps/tags/functions/tick.json → datapacks/1ps-1556049967/data/1ps/tags/functions/tick.json
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							@ -0,0 +1,4 @@
 | 
				
			|||||||
 | 
					{
 | 
				
			||||||
 | 
						"replace": false,
 | 
				
			||||||
 | 
						"values": ["1ps:load"]
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										0
									
								
								datapacks/1ps-1516729816-1/pack.mcmeta → datapacks/1ps-1556049967/pack.mcmeta
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							
							
						
						
									
										0
									
								
								datapacks/1ps-1516729816-1/pack.mcmeta → datapacks/1ps-1556049967/pack.mcmeta
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user