-
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
Showing
12 changed files
with
60 additions
and
12 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 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 |
---|---|---|
@@ -1,3 +1,11 @@ | ||
scoreboard players add @s kdx.kits.record 200 | ||
execute at @s run playsound block.amethyst_block.chime master @s ~ ~ ~ 1.0 1.0 0 | ||
execute at @s run playsound minecraft:block.anvil.use master @s ~ ~ ~ 1.0 1.0 | ||
effect give @s minecraft:slowness 1 126 true | ||
setblock ~ ~1 ~ minecraft:chest replace | ||
data modify block ~ ~1 ~ Items set from storage kdx.kits:chest items | ||
fill ~-1 ~ ~-1 ~1 ~2 ~1 minecraft:barrier keep | ||
tag @s add kdx.kits.process | ||
effect give @s minecraft:resistance 1 4 true | ||
summon minecraft:tnt ~ ~1 ~ {Silent:true,fuse:0,NoGravity:true} | ||
schedule function kdx.kits:afterward 2t append | ||
tellraw @s [{"text":"✓ 你收到了一个礼包!","color":"gold"}] |
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 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,3 @@ | ||
data modify storage kdx.kits:chest items set from block ~ ~ ~ Items | ||
execute if block ~ ~ ~ minecraft:chest run tellraw @s [{"text":"已设置礼包","color":"green"}] | ||
execute unless block ~ ~ ~ minecraft:chest run tellraw @s [{"text":"无法设置礼包:您必须站在一个箱子上","color":"red"}] |
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,3 @@ | ||
execute at @a[tag=kdx.kits.process] run kill @e[type=item,nbt={Item:{id:"minecraft:chest"}},limit=1,sort=nearest,nbt=!{Item:{components:{}}}] | ||
execute at @a[tag=kdx.kits.process] run fill ~-2 ~ ~-2 ~2 ~2 ~2 minecraft:air replace minecraft:barrier | ||
execute as @a[tag=kdx.kits.process] run tag @s remove kdx.kits.process |
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 |
---|---|---|
@@ -1 +1 @@ | ||
scoreboard objectives add kdx.kits.record dummy "礼包领取记录" | ||
scoreboard objectives add kdx.kits.record dummy "礼包领取记录" |
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 @@ | ||
advancement revoke @a only kdx.kits:trigger requirement |
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 |
---|---|---|
@@ -1,3 +1,32 @@ | ||
# 此trigger由同名进度控制 | ||
# 触发条件:玩家不着火、没有位移、着陆,每秒触发一次 | ||
execute unless score @s kdx.kits.record >= 200 run function kdx.kits:_get | ||
execute at @s \ | ||
if block ~-1 ~ ~-1 air \ | ||
if block ~-1 ~ ~ air \ | ||
if block ~-1 ~ ~1 air \ | ||
if block ~ ~ ~-1 air \ | ||
if block ~ ~ ~ air \ | ||
if block ~ ~ ~1 air \ | ||
if block ~1 ~ ~-1 air \ | ||
if block ~1 ~ ~ air \ | ||
if block ~1 ~ ~1 air \ | ||
if block ~-1 ~1 ~1 air \ | ||
if block ~-1 ~1 ~ air \ | ||
if block ~-1 ~1 ~1 air \ | ||
if block ~ ~1 ~ air \ | ||
if block ~ ~1 ~ air \ | ||
if block ~ ~1 ~ air \ | ||
if block ~1 ~1 ~-1 air \ | ||
if block ~1 ~1 ~ air \ | ||
if block ~1 ~1 ~1 air \ | ||
if block ~-1 ~2 ~-1 air \ | ||
if block ~-1 ~2 ~ air \ | ||
if block ~-1 ~2 ~1 air \ | ||
if block ~ ~2 ~-1 air \ | ||
if block ~ ~2 ~ air \ | ||
if block ~ ~2 ~1 air \ | ||
if block ~1 ~2 ~-1 air \ | ||
if block ~1 ~2 ~ air \ | ||
if block ~1 ~2 ~1 air \ | ||
unless score @s kdx.kits.record >= "kdx.state.ok" kdx \ | ||
run function kdx.kits:_get |
2 changes: 1 addition & 1 deletion
2
...x.kits/function/zreset_WARNING.mcfunction → ...ction/zreset_warning_confirmed.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
scoreboard objectives remove kdx.kits.record | ||
scoreboard objectives add kdx.kits.record dummy "礼包领取记录" | ||
tellraw @s [{"text":"已重置礼包领取记录","color":"green"}] | ||
tellraw @s {"text":"已重置礼包领取记录","color":"green"} |
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 @@ | ||
function kdx.kits:on_tick |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
function kdx:system/carpet_auto_setting | ||
|
||
scoreboard objectives add kdx dummy "KDX.BASENUM" | ||
scoreboard players set "kdx.state.ok" kdx 200 | ||
data modify storage kdx:initialized status set value 1b | ||
tellraw @a [{"text":"kdxSMP Service Datapack ","color":"aqua"},{"text":" 已完成初始化 ✓\n","color":"green"}] |
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