放置榜忽略流体,避免连点器刷榜

This commit is contained in:
延皓 2023-01-10 01:01:45 +08:00
parent 010ba03f41
commit 8afd7410d5
9 changed files with 51 additions and 4 deletions

View File

@ -0,0 +1,13 @@
{
"parent": "fzsd:game_event/on_placed_block",
"criteria": {
"on_placed_liquid": {
"trigger": "minecraft:placed_block",
"conditions": {
"item": {
"tag": "fzsd:bucket_of_liquid"
}
}
}
}
}

View File

@ -1,9 +1,8 @@
# 调用者advancements/fzsd:~ # 调用者advancements/fzsd:~
## 调试
execute if score fzsd.logger.level fzsd.variable.integer matches ..400 run tellraw @a [{"nbt": "fzsd.level.debug", "interpret": true, "storage": "fzsd:logger"}, {"text": "事件已触发:玩家"}, {"selector": "@s"}, {"text": "放置了方块"}]
## 运行事件 ## 运行事件
execute if entity @s[advancements={fzsd:game_event/on_placed_block/on_placed_liquid=true}] run function #fzsd:game_event/player/on_placed_liquid
execute if entity @s[advancements={fzsd:game_event/on_placed_block/on_placed_liquid=false}] run function #fzsd:game_event/player/on_placed_solid
function #fzsd:game_event/player/on_placed_block function #fzsd:game_event/player/on_placed_block
## 重置事件进度 ## 重置事件进度

View File

@ -0,0 +1,2 @@
## 调试
execute if score fzsd.logger.level fzsd.variable.integer matches ..400 run tellraw @a [{"nbt": "fzsd.level.debug", "interpret": true, "storage": "fzsd:logger"}, {"text": "事件已触发:玩家"}, {"selector": "@s"}, {"text": "放置了流体"}]

View File

@ -0,0 +1,2 @@
## 调试
execute if score fzsd.logger.level fzsd.variable.integer matches ..400 run tellraw @a [{"nbt": "fzsd.level.debug", "interpret": true, "storage": "fzsd:logger"}, {"text": "事件已触发:玩家"}, {"selector": "@s"}, {"text": "放置了实体方块"}]

View File

@ -1,6 +1,5 @@
{ {
"replace": false, "replace": false,
"values": [ "values": [
"#fzsd:module/scoreboard/assign/scoreboard/placement_count"
] ]
} }

View File

@ -0,0 +1,6 @@
{
"replace": false,
"values": [
"fzsd:game_event/callback/on_placed_liquid"
]
}

View File

@ -0,0 +1,7 @@
{
"replace": false,
"values": [
"fzsd:game_event/callback/on_placed_solid",
"#fzsd:module/scoreboard/assign/scoreboard/placement_count"
]
}

View File

@ -0,0 +1,8 @@
{
"replace": false,
"values": [
"minecraft:lava_bucket",
"minecraft:water_bucket",
"#fzsd:bucket_of_mob"
]
}

View File

@ -0,0 +1,11 @@
{
"replace": false,
"values": [
"minecraft:cod_bucket",
"minecraft:salmon_bucket",
"minecraft:axolotl_bucket",
"minecraft:pufferfish_bucket",
"minecraft:powder_snow_bucket",
"minecraft:tropical_fish_bucket"
]
}