-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmultiplayer_setup.mcfunction
More file actions
43 lines (35 loc) · 3.24 KB
/
multiplayer_setup.mcfunction
File metadata and controls
43 lines (35 loc) · 3.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#Copyright (C) Loweredgames (Lorenzo Giannini)
#Contacted:<https://github.com/Loweredgames>
#This Source Code Form is subject to the terms of the License.
#NOT OFFICIAL MINECRAFT PRODUCT. NOT APPROVED BY OR ASSOCIATED WITH MOJANG STUDIO.
#READING THE COPYRIGHT (C): <https://www.minecraft.net/en-us/terms>
##MULTIPLAYER SETUP
execute store result score SkyblockCE_PlayerOnline SkyblockCE_multiplayer if entity @a
execute if score SkyblockCE_PlayerOnline SkyblockCE_multiplayer matches 1 run scoreboard players set @a SkyblockCE_multiplayer_reset 1
execute if score SkyblockCE_PlayerOnline SkyblockCE_multiplayer matches 2.. run scoreboard players set @a SkyblockCE_multiplayer_reset 2
##MULTIPLAYER RESET (RESETTA LE SCOREBOARD E ALTRO)
execute as @a[scores={SkyblockCE_multiplayer_join=2..}] run scoreboard players set @a SkyblockCE_install -2
execute as @a[scores={SkyblockCE_multiplayer_join=2..}] run scoreboard players set @a SkyblockCE_islands -2
execute as @a[scores={SkyblockCE_multiplayer_join=2..}] run scoreboard players set @a SkyblockCE_tp 0
execute as @a[scores={SkyblockCE_multiplayer_join=2..}] run scoreboard players set @a SkyblockCE_id 24000
execute as @a[scores={SkyblockCE_multiplayer_join=2..}] run scoreboard players set @a SkyblockCE_structures_id 24005
execute as @a[scores={SkyblockCE_multiplayer_join=2..}] run scoreboard players set @a SkyblockCE_custom_structures 24000
execute as @a[scores={SkyblockCE_multiplayer_join=2..}] run scoreboard players set @a SkyblockCE_test_structures 24000
execute as @a[scores={SkyblockCE_multiplayer_join=2..}] run clear @a written_book[custom_data={tag:generated_book}]
execute as @a[scores={SkyblockCE_multiplayer_join=2..}] run scoreboard players set @a SkyblockCE_large 24000
execute as @a[scores={SkyblockCE_multiplayer_join=2..}] run scoreboard players set @a SkyblockCE_default 24000
execute as @a[scores={SkyblockCE_multiplayer_join=2..}] run scoreboard players set @a SkyblockCE_small 24000
execute as @a[scores={SkyblockCE_multiplayer_join=2..}] run scoreboard players set @a SkyblockCE_very_small 24000
##MULTIPLAYER JOIN PLAYERS
execute as @a[scores={SkyblockCE_multiplayer_reset=2..}] run scoreboard objectives add SkyblockCE_multiplayer_join dummy
execute as @a[scores={SkyblockCE_multiplayer_reset=2..}] run scoreboard players add @a SkyblockCE_multiplayer_join 1
execute as @a[gamemode=spectator,scores={SkyblockCE_multiplayer_join=0..5}] run tp @p 0 65 0 0 0
execute as @a[gamemode=spectator,scores={SkyblockCE_multiplayer_join=1..}] run gamemode survival @p
execute as @a[scores={SkyblockCE_multiplayer_join=0..5}] run fill 0 63 0 0 64 0 minecraft:air destroy
execute as @a[scores={SkyblockCE_multiplayer_join=0..5}] run spawnpoint @p 0 63 0
execute as @a[scores={SkyblockCE_multiplayer_join=0..5}] run setworldspawn 0 63 0
##MULTIPLAYER LOOP
execute as @a[scores={SkyblockCE_multiplayer_join=10005..}] run scoreboard players set @p SkyblockCE_multiplayer_join 1000
execute as @a[scores={SkyblockCE_multiplayer=2000000..}] run scoreboard players set @p SkyblockCE_multiplayer 1000
execute as @a[scores={SkyblockCE_multiplayer_tick=2000000..}] run scoreboard players set @p SkyblockCE_multiplayer_tick 1000
execute as @a[scores={SkyblockCE_multiplayer_reset=61..}] run scoreboard players set @a SkyblockCE_multiplayer_reset 60