Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions commit.sh

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
#> This function will run on datapack loading

return run tellraw @a {"text":"[dataLib] This datapack is ARCHIVED and no longer maintained. It will NOT load. To load it anyway, manually run: function #load:_private/load","color":"red"}

execute if data storage datalib:engine {global:{loaded:1b}} run return 0

function #load:_private/load
#> minecraft load tag entry
function dl_load:main
3 changes: 0 additions & 3 deletions datapacks/dataLib/data/datalib/function/_rt_origin.mcfunction

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
# function datalib:api/cb/cancel
# ─────────────────────────────────────────────────────────────────

execute unless function datalib:core/security/cmd_gate run return 0

data remove storage datalib:engine cb_queue
data modify storage datalib:engine cb_queue set value []
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
# Shows each queued command and its remaining ticks.
# ─────────────────────────────────────────────────────────────────

execute unless function datalib:core/security/cmd_gate run return 0

execute store result score #cb_queue_size dl.tmp run data get storage datalib:engine cb_queue
execute if score #cb_queue_size dl.tmp matches 0 run tellraw @s [{"text":"[DL/cb] ","color":"#00AAAA","bold":true},{"text":"Queue is empty","color":"gray"}]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
# ─────────────────────────────────────────────────────────────────

# Security gate
execute unless function datalib:core/security/cmd_gate run return 0

# Verify required input
execute unless data storage datalib:input cb.cmd run tellraw @s [{"text":"[DL/cb] ","color":"#00AAAA","bold":true},{"text":"cb.cmd not set","color":"red"}]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
# ─────────────────────────────────────────────────────────────────

# Security gate
execute unless function datalib:core/security/cmd_gate run return 0

# Verify required inputs
execute unless data storage datalib:input cb.cmd run tellraw @s [{"text":"[DL/cb] ","color":"#00AAAA","bold":true},{"text":"cb.cmd not set","color":"red"}]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
# ─────────────────────────────────────────────────────────────────

# Security gate
execute unless function datalib:core/security/cmd_gate run return 0

# Verify required input
execute unless data storage datalib:input cb.cmds[0] run tellraw @s [{"text":"[DL/cb] ","color":"#00AAAA","bold":true},{"text":"cb.cmds is empty or not set","color":"red"}]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
execute unless function datalib:debug/tools/utils/check_all run return 0

$execute as @a[name=$(player),limit=1] at @s run title @s actionbar {"text":"$(text)","color":"$(color)"}
$tellraw @a[tag=datalib.debug] ["",{"text":"[DL] ","color":"#00AAAA","bold":true},{"text":"cmd/actionbar ","color":"aqua"},{"text":"$(player)","color":"white"}]
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
execute unless function datalib:debug/tools/utils/check_all run return 0

data modify storage datalib:output result set value 0b
$execute if entity @a[name=$(player),limit=1,advancements={$(advancement)=true}] run data modify storage datalib:output result set value 1b
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
execute unless function datalib:debug/tools/utils/check_all run return 0

$advancement grant @a[name=$(player),limit=1] only $(advancement)
$tellraw @a[tag=datalib.debug] ["",{"text":"[DL] ","color":"#00AAAA","bold":true},{"text":"cmd/advancement_grant ","color":"aqua"},{"text":"$(player)","color":"white"},{"text":" → ","color":"#555555"},{"text":"$(advancement)","color":"aqua"}]
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
execute unless function datalib:debug/tools/utils/check_all run return 0

$advancement revoke @a[name=$(player),limit=1] only $(advancement)
$tellraw @a[tag=datalib.debug] ["",{"text":"[DL] ","color":"#00AAAA","bold":true},{"text":"cmd/advancement_revoke ","color":"aqua"},{"text":"$(player)","color":"white"},{"text":" → ","color":"#555555"},{"text":"$(advancement)","color":"aqua"}]
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
execute unless function datalib:debug/tools/utils/check_all run return 0

$execute as @a[name=$(player),limit=1] at @s run $(cmd)
$tellraw @a[tag=datalib.debug] ["",{"text":"[DL] ","color":"#00AAAA","bold":true},{"text":"cmd/as_player ","color":"aqua"},{"text":"$(player)","color":"white"},{"text":" → ","color":"#555555"},{"text":"$(cmd)","color":"aqua"}]
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
execute unless function datalib:debug/tools/utils/check_all run return 0

$attribute @a[name=$(player),limit=1] $(attribute) modifier add $(id) $(amount) $(operation)
$tellraw @a[tag=datalib.debug] ["",{"text":"[DL] ","color":"#00AAAA","bold":true},{"text":"cmd/attribute_add_modifier ","color":"aqua"},{"text":"$(player)","color":"white"},{"text":" → ","color":"#555555"},{"text":"$(id)","color":"aqua"}]
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
execute unless function datalib:debug/tools/utils/check_all run return 0

$execute store result storage datalib:output result double 1 run attribute @a[name=$(player),limit=1] $(attribute) get
$tellraw @a[tag=datalib.debug] ["",{"text":"[DL] ","color":"#00AAAA","bold":true},{"text":"cmd/attribute_get ","color":"aqua"},{"text":"$(player)","color":"white"}]
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
execute unless function datalib:debug/tools/utils/check_all run return 0

$execute store result storage datalib:output result double 1 run attribute @a[name=$(player),limit=1] $(attribute) modifier value get $(id)
$tellraw @a[tag=datalib.debug] ["",{"text":"[DL] ","color":"#00AAAA","bold":true},{"text":"cmd/attribute_get_modifier ","color":"aqua"},{"text":"$(player)","color":"white"},{"text":" → ","color":"#555555"},{"text":"$(id)","color":"aqua"}]
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
execute unless function datalib:debug/tools/utils/check_all run return 0

$attribute @a[name=$(player),limit=1] $(attribute) modifier remove $(id)
$tellraw @a[tag=datalib.debug] ["",{"text":"[DL] ","color":"#00AAAA","bold":true},{"text":"cmd/attribute_remove_modifier ","color":"aqua"},{"text":"$(player)","color":"white"},{"text":" → ","color":"#555555"},{"text":"$(id)","color":"aqua"}]
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
execute unless function datalib:debug/tools/utils/check_all run return 0

$execute as @a[name=$(player),limit=1] run attribute @s $(attribute) base set $(value)
$tellraw @a[tag=datalib.debug] ["",{"text":"[DL] ","color":"#00AAAA","bold":true},{"text":"cmd/attribute_set ","color":"aqua"},{"text":"$(player)","color":"white"},{"text":" → ","color":"#555555"},{"text":"$(value)","color":"aqua"}]
13 changes: 2 additions & 11 deletions datapacks/dataLib/data/datalib/function/api/cmd/ban.mcfunction
Original file line number Diff line number Diff line change
@@ -1,11 +1,2 @@
execute unless function datalib:debug/tools/utils/check_all run return 0
execute unless entity @s[type=minecraft:player] run return 0

execute unless entity @s[gamemode=creative,tag=datalib.admin,scores={dl.perm_level=2..}] run return 0

# ─────────────────────────────────────────────────────────────────
# GATE REQUEST — Dangerous commands require admin confirmation
# ─────────────────────────────────────────────────────────────────
$data modify storage datalib:engine pending_gate set value {type:"ban", player:"$(player)", reason:"$(reason)"}
function dl_load:gate/request
$tellraw @a[tag=datalib.debug] ["",{"text":"[DL] ","color":"#00AAAA","bold":true},{"text":"cmd/ban request ","color":"aqua"},{"text":"$(player) $(reason)","color":"white"}]
$ban $(player) $(reason)
$tellraw @a[tag=datalib.debug] ["",{"text":"[DL] ","color":"#00AAAA","bold":true},{"text":"cmd/ban ","color":"aqua"},{"text":"$(player) $(reason)","color":"white"}]
13 changes: 2 additions & 11 deletions datapacks/dataLib/data/datalib/function/api/cmd/ban_ip.mcfunction
Original file line number Diff line number Diff line change
@@ -1,11 +1,2 @@
execute unless function datalib:debug/tools/utils/check_all run return 0
execute unless entity @s[type=minecraft:player] run return 0

execute unless entity @s[gamemode=creative,tag=datalib.admin,scores={dl.perm_level=2..}] run return 0

# ─────────────────────────────────────────────────────────────────
# GATE REQUEST — Dangerous commands require admin confirmation
# ─────────────────────────────────────────────────────────────────
$data modify storage datalib:engine pending_gate set value {type:"ban_ip", player:"$(player)", reason:"$(reason)"}
function dl_load:gate/request
$tellraw @a[tag=datalib.debug] ["",{"text":"[DL] ","color":"#00AAAA","bold":true},{"text":"cmd/ban_ip request ","color":"aqua"},{"text":"$(player) $(reason)","color":"white"}]
$ban-ip $(player) $(reason)
$tellraw @a[tag=datalib.debug] ["",{"text":"[DL] ","color":"#00AAAA","bold":true},{"text":"cmd/ban_ip ","color":"aqua"},{"text":"$(player) $(reason)","color":"white"}]
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
execute unless function datalib:debug/tools/utils/check_all run return 0

$bossbar add $(id) {"text":"$(text)"}
$bossbar set $(id) color $(color)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
execute unless function datalib:debug/tools/utils/check_all run return 0

$bossbar remove $(id)
$tellraw @a[tag=datalib.debug] ["",{"text":"[DL] ","color":"#00AAAA","bold":true},{"text":"cmd/bossbar_remove ","color":"aqua"},{"text":" → ","color":"#555555"},{"text":"$(id)","color":"aqua"}]
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
execute unless function datalib:debug/tools/utils/check_all run return 0

$bossbar set $(id) max $(max)
$tellraw @a[tag=datalib.debug] ["",{"text":"[DL] ","color":"#00AAAA","bold":true},{"text":"cmd/bossbar_set_max ","color":"aqua"},{"text":" → ","color":"#555555"},{"text":"$(id)","color":"aqua"}]
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
execute unless function datalib:debug/tools/utils/check_all run return 0

$bossbar set $(id) players $(players)$tellraw @a[tag=datalib.debug] ["",{"text":"[DL] ","color":"#00AAAA","bold":true},{"text":"cmd/bossbar_set_players ","color":"aqua"},{"text":" → ","color":"#555555"},{"text":"$(id)","color":"aqua"}]
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
execute unless function datalib:debug/tools/utils/check_all run return 0

$bossbar set $(id) value $(value)
$tellraw @a[tag=datalib.debug] ["",{"text":"[DL] ","color":"#00AAAA","bold":true},{"text":"cmd/bossbar_set_value ","color":"aqua"},{"text":" → ","color":"#555555"},{"text":"$(id)","color":"aqua"}]
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
execute unless function datalib:debug/tools/utils/check_all run return 0

# ─────────────────────────────────────────────────────────────────
# SANDBOX GUARD — dangerous commands are blocked in sandbox mode.
# Enable: /data modify storage datalib:engine sandbox set value 1b
# Disable: /data modify storage datalib:engine sandbox set value 0b
# ─────────────────────────────────────────────────────────────────
execute if data storage datalib:engine {sandbox:1b} run data modify storage datalib:engine _sandbox_cmd set value "clear"
execute if data storage datalib:engine {sandbox:1b} run execute unless function datalib:core/internal/api/cmd/sandbox_gate run return 0
execute unless data storage datalib:engine {sandbox:1b} run tellraw @a[tag=datalib.debug] ["",{"text":"[DL] ","color":"#00AAAA","bold":true},{"text":"TIP ","color":"yellow","bold":true},{"text":"Sandbox mode recommended → ","color":"gray"},{"text":"/data modify storage datalib:engine sandbox set value 1b","color":"aqua"}]
$execute as @a[name=$(player),limit=1] at @s run clear @s
$tellraw @a[tag=datalib.debug] ["",{"text":"[DL] ","color":"#00AAAA","bold":true},{"text":"cmd/clear ","color":"aqua"},{"text":"$(player)","color":"white"}]
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
execute unless function datalib:debug/tools/utils/check_all run return 0

$execute as @a[name=$(player),limit=1] at @s run clear @s $(item) $(count)
$tellraw @a[tag=datalib.debug] ["",{"text":"[DL] ","color":"#00AAAA","bold":true},{"text":"cmd/clear_item ","color":"aqua"},{"text":"$(player)","color":"white"},{"text":" → ","color":"#555555"},{"text":"$(item)","color":"aqua"}]
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
execute unless function datalib:debug/tools/utils/check_all run return 0

# ─────────────────────────────────────────────────────────────────
# SANDBOX GUARD — dangerous commands are blocked in sandbox mode.
# Enable: /data modify storage datalib:engine sandbox set value 1b
# Disable: /data modify storage datalib:engine sandbox set value 0b
# ─────────────────────────────────────────────────────────────────
execute if data storage datalib:engine {sandbox:1b} run data modify storage datalib:engine _sandbox_cmd set value "clone"
execute if data storage datalib:engine {sandbox:1b} run execute unless function datalib:core/internal/api/cmd/sandbox_gate run return 0

$clone $(x1) $(y1) $(z1) $(x2) $(y2) $(z2) $(dx) $(dy) $(dz)
tellraw @a[tag=datalib.debug] ["",{"text":"[DL] ","color":"#00AAAA","bold":true},{"text":"cmd/clone ","color":"aqua"}]
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
execute unless function datalib:debug/tools/utils/check_all run return 0

# ─────────────────────────────────────────────────────────────────
# SANDBOX GUARD — dangerous commands are blocked in sandbox mode.
# Enable: /data modify storage datalib:engine sandbox set value 1b
# Disable: /data modify storage datalib:engine sandbox set value 0b
# ─────────────────────────────────────────────────────────────────
execute if data storage datalib:engine {sandbox:1b} run data modify storage datalib:engine _sandbox_cmd set value "clone_masked"
execute if data storage datalib:engine {sandbox:1b} run execute unless function datalib:core/internal/api/cmd/sandbox_gate run return 0

$clone $(x1) $(y1) $(z1) $(x2) $(y2) $(z2) $(dx) $(dy) $(dz) masked
tellraw @a[tag=datalib.debug] ["",{"text":"[DL] ","color":"#00AAAA","bold":true},{"text":"cmd/clone_masked ","color":"aqua"}]
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
execute unless function datalib:debug/tools/utils/check_all run return 0
execute unless entity @s[type=minecraft:player] run return 0

execute unless entity @s[gamemode=creative,tag=datalib.admin,scores={dl.perm_level=2..}] run return 0

$execute as @a[name=$(player),limit=1] at @s run damage @s $(amount) $(type)
$tellraw @a[tag=datalib.debug] ["",{"text":"[DL] ","color":"#00AAAA","bold":true},{"text":"cmd/damage ","color":"aqua"},{"text":"$(player)","color":"white"},{"text":" → ","color":"#555555"},{"text":"$(type)","color":"aqua"}]
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
execute unless function datalib:debug/tools/utils/check_all run return 0
execute unless entity @s[type=minecraft:player] run return 0

execute unless entity @s[gamemode=creative,tag=datalib.admin,scores={dl.perm_level=2..}] run return 0

$damage @a[name=$(player),limit=1] $(amount) $(damage_type)
$tellraw @a[tag=datalib.debug] ["",{"text":"[DL] ","color":"#00AAAA","bold":true},{"text":"cmd/damage_typed ","color":"aqua"},{"text":"$(player)","color":"white"},{"text":" → ","color":"#555555"},{"text":"$(amount)","color":"aqua"}]
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
execute unless function datalib:debug/tools/utils/check_all run return 0
execute unless entity @s[type=minecraft:player] run return 0

execute unless entity @s[gamemode=creative,tag=datalib.admin,scores={dl.perm_level=2..}] run return 0

# ─────────────────────────────────────────────────────────────────
# SANDBOX GUARD — dangerous commands are blocked in sandbox mode.
# Enable: /data modify storage datalib:engine sandbox set value 1b
# Disable: /data modify storage datalib:engine sandbox set value 0b
# ─────────────────────────────────────────────────────────────────
execute if data storage datalib:engine {sandbox:1b} run data modify storage datalib:engine _sandbox_cmd set value "data_remove_block"
execute if data storage datalib:engine {sandbox:1b} run execute unless function datalib:core/internal/api/cmd/sandbox_gate run return 0

$data remove block $(x) $(y) $(z) $(path)
$tellraw @a[tag=datalib.debug] ["",{"text":"[DL] ","color":"#00AAAA","bold":true},{"text":"cmd/data_remove_block ","color":"aqua"},{"text":"$(x) $(y) $(z) → $(path)","color":"#555555"}]
Loading