forked from MinervaMc/Datapacks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
09a817a
commit c195428
Showing
66 changed files
with
270 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
tellraw @a[scores={.DisableMob=1}] [{"text":"Mobs that can be disabled are with commands:","color":"yellow"},{"text":"\n"},{"text":"/trigger .DisableMob set 2","color":"yellow","bold":true},{"text":" - All Fish"},{"text":"\n"},{"text":"/trigger .DisableMob set 3","color":"yellow","bold":true},{"text":" - Bats"},{"text":"\n"},{"text":"/trigger .DisableMob set 4","color":"yellow","bold":true},{"text":" - Guardians"}] | ||
|
||
execute at @a[scores={.DisableMob=2}] run scoreboard players set Fish disabledMobs 1 | ||
execute at @a[scores={.DisableMob=2}] run tellraw @a[scores={.DisableMob=2}] [{"text":"Enabled void teleports for cod, salmon, tropical fish and pufferfish","color":"yellow"}] | ||
|
||
execute at @a[scores={.DisableMob=3}] run scoreboard players set Bat disabledMobs 1 | ||
execute at @a[scores={.DisableMob=3}] run tellraw @a[scores={.DisableMob=3}] [{"text":"Enabled void teleports for bats","color":"yellow"}] | ||
|
||
execute at @a[scores={.DisableMob=4}] run scoreboard players set Guardian disabledMobs 1 | ||
execute at @a[scores={.DisableMob=4}] run tellraw @a[scores={.DisableMob=4}] [{"text":"Enabled void teleports for guardians","color":"yellow"}] | ||
|
||
scoreboard players reset @a[scores={.DisableMob=1..}] .DisableMob |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
scoreboard objectives add disabledMobs dummy | ||
scoreboard objectives add .DisableMob trigger | ||
scoreboard players set #ONE disabledMobs 1 | ||
scoreboard players set Bat disabledMobs 0 | ||
scoreboard players set Fish disabledMobs 1 | ||
scoreboard players set Guardian disabledMobs 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
execute if score Bat disabledMobs = #ONE disabledMobs run execute as @e[type=minecraft:bat] at @s run teleport @s ~ -1000 ~ | ||
execute if score Fish disabledMobs = #ONE disabledMobs run execute as @e[type=minecraft:cod] at @s run teleport @s ~ -1000 ~ | ||
execute if score Fish disabledMobs = #ONE disabledMobs run execute as @e[type=minecraft:salmon] at @s run teleport @s ~ -1000 ~ | ||
execute if score Fish disabledMobs = #ONE disabledMobs run execute as @e[type=minecraft:tropical_fish] at @s run teleport @s ~ -1000 ~ | ||
execute if score Fish disabledMobs = #ONE disabledMobs run execute as @e[type=minecraft:pufferfish] at @s run teleport @s ~ -1000 ~ | ||
execute if score Guardian disabledMobs = #ONE disabledMobs run execute as @e[type=minecraft:guardian] at @s run teleport @s ~ -1000 ~ | ||
|
||
execute at @p[scores={.DisableMob=1}] run function disable_mobs:add | ||
|
||
execute at @p[scores={.DisableMob=2}] run execute if score Fish disabledMobs matches 1 run function disable_mobs:remove | ||
execute at @p[scores={.DisableMob=2}] run execute if score Fish disabledMobs matches 0 run function disable_mobs:add | ||
|
||
execute at @p[scores={.DisableMob=3}] run execute if score Bat disabledMobs matches 1 run function disable_mobs:remove | ||
execute at @p[scores={.DisableMob=3}] run execute if score Bat disabledMobs matches 0 run function disable_mobs:add | ||
|
||
execute at @p[scores={.DisableMob=4}] run execute if score Guardian disabledMobs matches 1 run function disable_mobs:remove | ||
execute at @p[scores={.DisableMob=4}] run execute if score Guardian disabledMobs matches 0 run function disable_mobs:add | ||
|
||
scoreboard players enable @a[tag=admin] .DisableMob |
10 changes: 10 additions & 0 deletions
10
disable_mobs/data/disable_mobs/functions/remove.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
execute at @a[scores={.DisableMob=2}] run scoreboard players set Fish disabledMobs 0 | ||
execute at @a[scores={.DisableMob=2}] run tellraw @a[scores={.DisableMob=2}] [{"text":"Disabled void teleports for cod, salmon, tropical fish and pufferfish","color":"yellow"}] | ||
|
||
execute at @a[scores={.DisableMob=3}] run scoreboard players set Bat disabledMobs 0 | ||
execute at @a[scores={.DisableMob=3}] run tellraw @a[scores={.DisableMob=3}] [{"text":"Disabled void teleports for bats","color":"yellow"}] | ||
|
||
execute at @a[scores={.DisableMob=4}] run scoreboard players set Guardian disabledMobs 0 | ||
execute at @a[scores={.DisableMob=4}] run tellraw @a[scores={.DisableMob=4}] [{"text":"Disabled void teleports for guardians","color":"yellow"}] | ||
|
||
scoreboard players reset @a[scores={.DisableMob=1..}] .DisableMob |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"replace": false, | ||
"values": [ | ||
"disable_mobs:loop" | ||
] | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
tellraw @a[scores={.DespawnItems=1}] [{"text":"Items that can be despawned quickly with commands:","color":"yellow"},{"text":"\n"},{"text":"/trigger .DespawnItems set 2","color":"yellow","bold":true},{"text":" - Stone"},{"text":"\n"},{"text":"/trigger .DespawnItems set 3","color":"yellow","bold":true},{"text":" - Gravel"},{"text":"\n"},{"text":"/trigger .DespawnItems set 4","color":"yellow","bold":true},{"text":" - Dirt"},{"text":"\n"},{"text":"/trigger .DespawnItems set 5","color":"yellow","bold":true},{"text":" - Special Stones"},{"text":"\n"},{"text":"/trigger .DespawnItems set 6","color":"yellow","bold":true},{"text":" - Netherrack"},{"text":"\n"},{"text":"/trigger .DespawnItems set 7","color":"yellow","bold":true},{"text":" - Ender Pearls"},{"text":"\n"},{"text":"/trigger .DespawnItems set 8","color":"yellow","bold":true},{"text":" - Kelp"}] | ||
|
||
execute at @a[scores={.DespawnItems=2}] run scoreboard players set Stone despawnItems 1 | ||
execute at @a[scores={.DespawnItems=2}] run tellraw @a[scores={.DespawnItems=2}] [{"text":"Enabled fast despawn for stone and cobblestone items","color":"yellow"}] | ||
|
||
execute at @a[scores={.DespawnItems=3}] run scoreboard players set Gravel despawnItems 1 | ||
execute at @a[scores={.DespawnItems=3}] run tellraw @a[scores={.DespawnItems=3}] [{"text":"Enabled fast despawn for gravel items","color":"yellow"}] | ||
|
||
execute at @a[scores={.DespawnItems=4}] run scoreboard players set Dirt despawnItems 1 | ||
execute at @a[scores={.DespawnItems=4}] run tellraw @a[scores={.DespawnItems=4}] [{"text":"Enabled fast despawn for dirt items","color":"yellow"}] | ||
|
||
execute at @a[scores={.DespawnItems=5}] run scoreboard players set SpecialStone despawnItems 1 | ||
execute at @a[scores={.DespawnItems=5}] run tellraw @a[scores={.DespawnItems=5}] [{"text":"Enabled fast despawn for granite, andesite and diorite items","color":"yellow"}] | ||
|
||
execute at @a[scores={.DespawnItems=6}] run scoreboard players set Netherrack despawnItems 1 | ||
execute at @a[scores={.DespawnItems=6}] run tellraw @a[scores={.DespawnItems=6}] [{"text":"Enabled fast despawn for netherrack items","color":"yellow"}] | ||
|
||
execute at @a[scores={.DespawnItems=7}] run scoreboard players set EnderPearl despawnItems 1 | ||
execute at @a[scores={.DespawnItems=7}] run tellraw @a[scores={.DespawnItems=7}] [{"text":"Enabled fast despawn for ender pearl items","color":"yellow"}] | ||
|
||
execute at @a[scores={.DespawnItems=8}] run scoreboard players set Kelp despawnItems 1 | ||
execute at @a[scores={.DespawnItems=8}] run tellraw @a[scores={.DespawnItems=8}] [{"text":"Enabled fast despawn for kelp items","color":"yellow"}] | ||
|
||
scoreboard players reset @a[scores={.DespawnItems=1..}] .DespawnItems |
11 changes: 11 additions & 0 deletions
11
fast_despawn/data/fast_despawn/functions/install.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
scoreboard objectives add despawnItems dummy | ||
scoreboard objectives add .DespawnItems trigger | ||
|
||
scoreboard players set #ONE despawnItems 1 | ||
scoreboard players set Kelp despawnItems 1 | ||
scoreboard players set Dirt despawnItems 0 | ||
scoreboard players set Stone despawnItems 0 | ||
scoreboard players set Gravel despawnItems 0 | ||
scoreboard players set EnderPearl despawnItems 1 | ||
scoreboard players set Netherrack despawnItems 0 | ||
scoreboard players set SpecialStone despawnItems 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
execute if score Kelp despawnItems = #ONE despawnItems run execute as @e[nbt={Item:{id:"minecraft:kelp"}}] run data merge entity @s {Age:5800s} | ||
execute if score Dirt despawnItems = #ONE despawnItems run execute as @e[nbt={Item:{id:"minecraft:dirt"}}] run data merge entity @s {Age:5800s} | ||
execute if score Stone despawnItems = #ONE despawnItems run execute as @e[nbt={Item:{id:"minecraft:stone"}}] run data merge entity @s {Age:5800s} | ||
execute if score Stone despawnItems = #ONE despawnItems run execute as @e[nbt={Item:{id:"minecraft:cobblestone"}}] run data merge entity @s {Age:5800s} | ||
execute if score Gravel despawnItems = #ONE despawnItems run execute as @e[nbt={Item:{id:"minecraft:gravel"}}] run data merge entity @s {Age:5900s} | ||
execute if score Netherrack despawnItems = #ONE despawnItems run execute as @e[nbt={Item:{id:"minecraft:ender_pearl"}}] run data merge entity @s {Age:5800s} | ||
execute if score EnderPearl despawnItems = #ONE despawnItems run execute as @e[nbt={Item:{id:"minecraft:netherrack"}}] run data merge entity @s {Age:5800s} | ||
execute if score SpecialStone despawnItems = #ONE despawnItems run execute as @e[nbt={Item:{id:"minecraft:granite"}}] run data merge entity @s {Age:5800s} | ||
execute if score SpecialStone despawnItems = #ONE despawnItems run execute as @e[nbt={Item:{id:"minecraft:andesite"}}] run data merge entity @s {Age:5800s} | ||
execute if score SpecialStone despawnItems = #ONE despawnItems run execute as @e[nbt={Item:{id:"minecraft:diorite"}}] run data merge entity @s {Age:5800s} | ||
|
||
execute at @p[scores={.DespawnItems=1}] run function fast_despawn:add | ||
|
||
execute at @p[scores={.DespawnItems=2}] run execute if score Stone despawnItems matches 1 run function fast_despawn:remove | ||
execute at @p[scores={.DespawnItems=2}] run execute if score Stone despawnItems matches 0 run function fast_despawn:add | ||
|
||
execute at @p[scores={.DespawnItems=3}] run execute if score Gravel despawnItems matches 1 run function fast_despawn:remove | ||
execute at @p[scores={.DespawnItems=3}] run execute if score Gravel despawnItems matches 0 run function fast_despawn:add | ||
|
||
execute at @p[scores={.DespawnItems=4}] run execute if score Dirt despawnItems matches 1 run function fast_despawn:remove | ||
execute at @p[scores={.DespawnItems=4}] run execute if score Dirt despawnItems matches 0 run function fast_despawn:add | ||
|
||
execute at @p[scores={.DespawnItems=5}] run execute if score SpecialStone despawnItems matches 1 run function fast_despawn:remove | ||
execute at @p[scores={.DespawnItems=5}] run execute if score SpecialStone despawnItems matches 0 run function fast_despawn:add | ||
|
||
execute at @p[scores={.DespawnItems=6}] run execute if score Netherrack despawnItems matches 1 run function fast_despawn:remove | ||
execute at @p[scores={.DespawnItems=6}] run execute if score Netherrack despawnItems matches 0 run function fast_despawn:add | ||
|
||
execute at @p[scores={.DespawnItems=7}] run execute if score EnderPearl despawnItems matches 1 run function fast_despawn:remove | ||
execute at @p[scores={.DespawnItems=7}] run execute if score EnderPearl despawnItems matches 0 run function fast_despawn:add | ||
|
||
execute at @p[scores={.DespawnItems=8}] run execute if score Kelp despawnItems matches 1 run function fast_despawn:remove | ||
execute at @p[scores={.DespawnItems=8}] run execute if score Kelp despawnItems matches 0 run function fast_despawn:add | ||
|
||
scoreboard players enable @a[tag=admin] .DespawnItems |
22 changes: 22 additions & 0 deletions
22
fast_despawn/data/fast_despawn/functions/remove.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
execute at @a[scores={.DespawnItems=2}] run scoreboard players set Stone despawnItems 0 | ||
execute at @a[scores={.DespawnItems=2}] run tellraw @a[scores={.DespawnItems=2}] [{"text":"Disabled fast despawn for stone and cobblestone items","color":"yellow"}] | ||
|
||
execute at @a[scores={.DespawnItems=3}] run scoreboard players set Gravel despawnItems 0 | ||
execute at @a[scores={.DespawnItems=3}] run tellraw @a[scores={.DespawnItems=3}] [{"text":"Disabled fast despawn for gravel items","color":"yellow"}] | ||
|
||
execute at @a[scores={.DespawnItems=4}] run scoreboard players set Dirt despawnItems 0 | ||
execute at @a[scores={.DespawnItems=4}] run tellraw @a[scores={.DespawnItems=4}] [{"text":"Disabled fast despawn for dirt items","color":"yellow"}] | ||
|
||
execute at @a[scores={.DespawnItems=5}] run scoreboard players set SpecialStone despawnItems 0 | ||
execute at @a[scores={.DespawnItems=5}] run tellraw @a[scores={.DespawnItems=5}] [{"text":"Disabled fast despawn for granite, andesite and diorite items","color":"yellow"}] | ||
|
||
execute at @a[scores={.DespawnItems=6}] run scoreboard players set Netherrack despawnItems 0 | ||
execute at @a[scores={.DespawnItems=6}] run tellraw @a[scores={.DespawnItems=6}] [{"text":"Disabled fast despawn for netherrack items","color":"yellow"}] | ||
|
||
execute at @a[scores={.DespawnItems=7}] run scoreboard players set EnderPearl despawnItems 0 | ||
execute at @a[scores={.DespawnItems=7}] run tellraw @a[scores={.DespawnItems=7}] [{"text":"Disabled fast despawn for ender pearl items","color":"yellow"}] | ||
|
||
execute at @a[scores={.DespawnItems=8}] run scoreboard players set Kelp despawnItems 0 | ||
execute at @a[scores={.DespawnItems=8}] run tellraw @a[scores={.DespawnItems=8}] [{"text":"Disabled fast despawn for kelp items","color":"yellow"}] | ||
|
||
scoreboard players reset @a[scores={.DespawnItems=1..}] .DespawnItems |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"replace": false, | ||
"values": [ | ||
"fast_despawn:loop" | ||
] | ||
} |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
tag @s add admin | ||
tellraw @s [{"text":"You now have the admin tag","color":"yellow"}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
function slow_tick:install | ||
function scoreboards:install | ||
function scoreboards:setup_scoreboards | ||
function scoreboards:setup_triggers | ||
function spectator:install | ||
function tools:install | ||
function afk:install | ||
function fast_despawn:install | ||
function disable_mobs:install |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"replace": false, | ||
"values": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"pack": { | ||
"description": "Main centre for datapack operations", | ||
"pack_format": 4 | ||
} | ||
} |
28 changes: 0 additions & 28 deletions
28
multiplayer_sleep/data/main/advancements/main/multiplayer_sleep.json
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.