-
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
6f0d186
commit 7fed27c
Showing
113 changed files
with
1,177 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
### 8 + 104 = 112 | ||
## *4 8 | ||
# 2 | ||
# 黑牌 | ||
scoreboard objectives add jk_uno_s0 dummy | ||
scoreboard objectives add jk_uno_s1 dummy | ||
## *2 104 | ||
# 4 * 13 = 52 | ||
# 红牌 | ||
scoreboard objectives add jk_uno_r0 dummy | ||
scoreboard objectives add jk_uno_r1 dummy | ||
scoreboard objectives add jk_uno_r2 dummy | ||
scoreboard objectives add jk_uno_r3 dummy | ||
scoreboard objectives add jk_uno_r4 dummy | ||
scoreboard objectives add jk_uno_r5 dummy | ||
scoreboard objectives add jk_uno_r6 dummy | ||
scoreboard objectives add jk_uno_r7 dummy | ||
scoreboard objectives add jk_uno_r8 dummy | ||
scoreboard objectives add jk_uno_r9 dummy | ||
scoreboard objectives add jk_uno_r10 dummy | ||
scoreboard objectives add jk_uno_r11 dummy | ||
scoreboard objectives add jk_uno_r12 dummy | ||
# 蓝牌 | ||
scoreboard objectives add jk_uno_b0 dummy | ||
scoreboard objectives add jk_uno_b1 dummy | ||
scoreboard objectives add jk_uno_b2 dummy | ||
scoreboard objectives add jk_uno_b3 dummy | ||
scoreboard objectives add jk_uno_b4 dummy | ||
scoreboard objectives add jk_uno_b5 dummy | ||
scoreboard objectives add jk_uno_b6 dummy | ||
scoreboard objectives add jk_uno_b7 dummy | ||
scoreboard objectives add jk_uno_b8 dummy | ||
scoreboard objectives add jk_uno_b9 dummy | ||
scoreboard objectives add jk_uno_b10 dummy | ||
scoreboard objectives add jk_uno_b11 dummy | ||
scoreboard objectives add jk_uno_b12 dummy | ||
# 绿牌 | ||
scoreboard objectives add jk_uno_g0 dummy | ||
scoreboard objectives add jk_uno_g1 dummy | ||
scoreboard objectives add jk_uno_g2 dummy | ||
scoreboard objectives add jk_uno_g3 dummy | ||
scoreboard objectives add jk_uno_g4 dummy | ||
scoreboard objectives add jk_uno_g5 dummy | ||
scoreboard objectives add jk_uno_g6 dummy | ||
scoreboard objectives add jk_uno_g7 dummy | ||
scoreboard objectives add jk_uno_g8 dummy | ||
scoreboard objectives add jk_uno_g9 dummy | ||
scoreboard objectives add jk_uno_g10 dummy | ||
scoreboard objectives add jk_uno_g11 dummy | ||
scoreboard objectives add jk_uno_g12 dummy | ||
# 黄牌 | ||
scoreboard objectives add jk_uno_y0 dummy | ||
scoreboard objectives add jk_uno_y1 dummy | ||
scoreboard objectives add jk_uno_y2 dummy | ||
scoreboard objectives add jk_uno_y3 dummy | ||
scoreboard objectives add jk_uno_y4 dummy | ||
scoreboard objectives add jk_uno_y5 dummy | ||
scoreboard objectives add jk_uno_y6 dummy | ||
scoreboard objectives add jk_uno_y7 dummy | ||
scoreboard objectives add jk_uno_y8 dummy | ||
scoreboard objectives add jk_uno_y9 dummy | ||
scoreboard objectives add jk_uno_y10 dummy | ||
scoreboard objectives add jk_uno_y11 dummy | ||
scoreboard objectives add jk_uno_y12 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,32 @@ | ||
# jkuno → 10 11 21 14 15 | ||
function jk_uno:init/reset | ||
scoreboard objectives add jk_uno.int dummy "整型数字" | ||
scoreboard players set #load jk_uno.int 1 | ||
scoreboard players set #13 jk_uno.int 13 | ||
scoreboard players set #2 jk_uno.int 2 | ||
|
||
scoreboard objectives add jk_uno.join trigger "uno报名" | ||
scoreboard objectives add jk_uno.food food "饱食度" | ||
scoreboard objectives add jk_uno.hp health "生命值" | ||
|
||
scoreboard objectives add jk_uno.player_cards dummy "卡牌余量" | ||
scoreboard objectives add jk_uno.player_num dummy "玩家人数" | ||
|
||
scoreboard objectives add jk_uno.time dummy "时间" | ||
|
||
scoreboard objectives add jk_uno.order dummy "玩家顺序序号" | ||
scoreboard objectives add jk_uno.rotation dummy "转向" | ||
scoreboard objectives add jk_uno.card_draw dummy "卡牌抓取数" | ||
scoreboard objectives add jk_uno.card_type dummy "卡牌种类标号" | ||
scoreboard objectives add jk_uno.color dummy "当前颜色" | ||
scoreboard objectives add jk_uno.color1 dummy "上一颜色" | ||
scoreboard objectives add jk_uno.remain dummy "牌堆剩余" | ||
|
||
function jk_uno:init/card_board | ||
|
||
team add jk_uno_player "玩uno的玩家队伍" | ||
team modify jk_uno_player prefix {"text": "[UNO] ","color": "gold"} | ||
team modify jk_uno_player color gold | ||
|
||
function jk_uno:init/set/table/give/4 | ||
function jk_uno:init/ticks/load |
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,82 @@ | ||
team remove jk_uno_player | ||
execute as @e[tag=jk_uno] run tp @s ~ ~-300 ~ | ||
kill @e[tag=jk_uno] | ||
clear @a paper{jk_uno:1} | ||
function jk_uno:init/ticks/clear | ||
|
||
scoreboard objectives remove jk_uno.int | ||
scoreboard objectives remove jk_uno.join | ||
scoreboard objectives remove jk_uno.food | ||
scoreboard objectives remove jk_uno.hp | ||
|
||
scoreboard objectives remove jk_uno.player_cards | ||
scoreboard objectives remove jk_uno.player_num | ||
|
||
scoreboard objectives remove jk_uno.time | ||
|
||
scoreboard objectives remove jk_uno.order | ||
scoreboard objectives remove jk_uno.rotation | ||
scoreboard objectives remove jk_uno.card_draw | ||
scoreboard objectives remove jk_uno.card_type | ||
scoreboard objectives remove jk_uno.color | ||
scoreboard objectives remove jk_uno.color1 | ||
scoreboard objectives remove jk_uno.remain | ||
|
||
scoreboard objectives remove jk_uno_s0 | ||
scoreboard objectives remove jk_uno_s1 | ||
|
||
scoreboard objectives remove jk_uno_r0 | ||
scoreboard objectives remove jk_uno_r1 | ||
scoreboard objectives remove jk_uno_r2 | ||
scoreboard objectives remove jk_uno_r3 | ||
scoreboard objectives remove jk_uno_r4 | ||
scoreboard objectives remove jk_uno_r5 | ||
scoreboard objectives remove jk_uno_r6 | ||
scoreboard objectives remove jk_uno_r7 | ||
scoreboard objectives remove jk_uno_r8 | ||
scoreboard objectives remove jk_uno_r9 | ||
scoreboard objectives remove jk_uno_r10 | ||
scoreboard objectives remove jk_uno_r11 | ||
scoreboard objectives remove jk_uno_r12 | ||
|
||
scoreboard objectives remove jk_uno_b0 | ||
scoreboard objectives remove jk_uno_b1 | ||
scoreboard objectives remove jk_uno_b2 | ||
scoreboard objectives remove jk_uno_b3 | ||
scoreboard objectives remove jk_uno_b4 | ||
scoreboard objectives remove jk_uno_b5 | ||
scoreboard objectives remove jk_uno_b6 | ||
scoreboard objectives remove jk_uno_b7 | ||
scoreboard objectives remove jk_uno_b8 | ||
scoreboard objectives remove jk_uno_b9 | ||
scoreboard objectives remove jk_uno_b10 | ||
scoreboard objectives remove jk_uno_b11 | ||
scoreboard objectives remove jk_uno_b12 | ||
|
||
scoreboard objectives remove jk_uno_g0 | ||
scoreboard objectives remove jk_uno_g1 | ||
scoreboard objectives remove jk_uno_g2 | ||
scoreboard objectives remove jk_uno_g3 | ||
scoreboard objectives remove jk_uno_g4 | ||
scoreboard objectives remove jk_uno_g5 | ||
scoreboard objectives remove jk_uno_g6 | ||
scoreboard objectives remove jk_uno_g7 | ||
scoreboard objectives remove jk_uno_g8 | ||
scoreboard objectives remove jk_uno_g9 | ||
scoreboard objectives remove jk_uno_g10 | ||
scoreboard objectives remove jk_uno_g11 | ||
scoreboard objectives remove jk_uno_g12 | ||
|
||
scoreboard objectives remove jk_uno_y0 | ||
scoreboard objectives remove jk_uno_y1 | ||
scoreboard objectives remove jk_uno_y2 | ||
scoreboard objectives remove jk_uno_y3 | ||
scoreboard objectives remove jk_uno_y4 | ||
scoreboard objectives remove jk_uno_y5 | ||
scoreboard objectives remove jk_uno_y6 | ||
scoreboard objectives remove jk_uno_y7 | ||
scoreboard objectives remove jk_uno_y8 | ||
scoreboard objectives remove jk_uno_y9 | ||
scoreboard objectives remove jk_uno_y10 | ||
scoreboard objectives remove jk_uno_y11 | ||
scoreboard objectives remove jk_uno_y12 |
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 @@ | ||
# 执行实体为桌子标记 | ||
# 分配玩家 | ||
tag @a[distance=..10,team=!jk_uno_player,scores={jk_uno.join=1},limit=4] add jk_uno_player_ready | ||
execute as @a[tag=jk_uno_player_ready] run function jk_uno:init/set/order/reset | ||
|
||
scoreboard players reset #distribute jk_uno.int | ||
execute as @a[tag=jk_uno_player_ready] store result score @s jk_uno.order run scoreboard players add #distribute jk_uno.int 1 | ||
|
||
ride @p[tag=jk_uno_player_ready,scores={jk_uno.order=1}] mount @e[limit=1,tag=jk_uno_chair_east] | ||
ride @p[tag=jk_uno_player_ready,scores={jk_uno.order=2}] mount @e[limit=1,tag=jk_uno_chair_south] | ||
ride @p[tag=jk_uno_player_ready,scores={jk_uno.order=3}] mount @e[limit=1,tag=jk_uno_chair_west] | ||
ride @p[tag=jk_uno_player_ready,scores={jk_uno.order=4}] mount @e[limit=1,tag=jk_uno_chair_north] | ||
|
||
team join jk_uno_player @a[tag=jk_uno_player_ready] | ||
execute as @s run function jk_uno:init/set/table/init | ||
execute as @a[tag=jk_uno_player_ready] run function jk_uno:play/table/card/draw/7 | ||
|
||
tag @a[distance=..10] remove jk_uno_player_ready | ||
kill @e[distance=..6,type=item,nbt={Item:{tag:{jk_uno:1}}}] |
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 @@ | ||
# 执行实体为桌子标记 | ||
tag @s remove jk_uno_table_refresh | ||
execute as @s[tag=jk_uno_table_4] run function jk_uno:init/set/order/4 | ||
function jk_uno:play/table/card/draw/global |
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,18 @@ | ||
# 重置玩家信息 | ||
ride @s dismount | ||
tp @s ~ ~6.5 ~ | ||
clear @s paper{jk_uno:1} | ||
team leave @s | ||
scoreboard players reset @s jk_uno.order | ||
tag @s remove jk_uno_player_init | ||
tag @s remove jk_uno_player_turn | ||
tag @s remove jk_uno_player_color | ||
tag @s remove jk_uno_player_skip | ||
tag @s remove jk_uno_player_draw_can | ||
tag @s remove jk_uno_player_draw_2 | ||
tag @s remove jk_uno_player_draw_4 | ||
tag @s remove jk_uno_player_draw_6 | ||
tag @s remove jk_uno_player_uno_can | ||
tag @s remove jk_uno_player_uno_said | ||
tag @s remove jk_uno_player_uno_catch | ||
tag @s remove jk_uno_player_uno_catched |
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 @@ | ||
# 执行实体为桌子标记 | ||
scoreboard players set @s jk_uno.time 10 | ||
tag @s add jk_uno_table_wait |
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,56 @@ | ||
## 实体 | ||
summon marker ~ ~ ~ {Tags:["jk_uno","jk_uno_npc","jk_uno_table","jk_uno_table_4"]} | ||
|
||
# 展示的计分板(文本展示实体) | ||
summon text_display ~ ~5 ~ {Tags:["jk_uno","jk_uno_npc","jk_uno_table_cards"],text:'[{"text":"本局剩余卡牌数: ","color":"white","bold":true},{"text":"112","color":"green"}]',alignment:"horizontal",billboard:"center",alignment:"fixed",line_width:200,interpolation_duration:0,transformation:{scale:[1f,1f,1f],translation:[0f,0f,0f],right_rotation:[0f,0f,0f,1f],left_rotation:[0f,0f,0f,1f]}} | ||
|
||
summon text_display ~ ~4.2 ~-4 {Tags:["jk_uno","jk_uno_npc","jk_uno_player_cards"],text:'{"text":"0","color":"aqua"}',alignment:"horizontal",billboard:"center",alignment:"fixed",line_width:200,interpolation_duration:0,transformation:{scale:[1f,1f,1f],translation:[0f,0f,0f],right_rotation:[0f,0f,0f,1f],left_rotation:[0f,0f,0f,1f]}} | ||
summon text_display ~ ~4.2 ~4 {Tags:["jk_uno","jk_uno_npc","jk_uno_player_cards"],text:'{"text":"0","color":"aqua"}',alignment:"horizontal",billboard:"center",alignment:"fixed",line_width:200,interpolation_duration:0,transformation:{scale:[1f,1f,1f],translation:[0f,0f,0f],right_rotation:[0f,0f,0f,1f],left_rotation:[0f,0f,0f,1f]}} | ||
summon text_display ~-4 ~4.2 ~ {Tags:["jk_uno","jk_uno_npc","jk_uno_player_cards"],text:'{"text":"0","color":"aqua"}',alignment:"horizontal",billboard:"center",alignment:"fixed",line_width:200,interpolation_duration:0,transformation:{scale:[1f,1f,1f],translation:[0f,0f,0f],right_rotation:[0f,0f,0f,1f],left_rotation:[0f,0f,0f,1f]}} | ||
summon text_display ~4 ~4.2 ~ {Tags:["jk_uno","jk_uno_npc","jk_uno_player_cards"],text:'{"text":"0","color":"aqua"}',alignment:"horizontal",billboard:"center",alignment:"fixed",line_width:200,interpolation_duration:0,transformation:{scale:[1f,1f,1f],translation:[0f,0f,0f],right_rotation:[0f,0f,0f,1f],left_rotation:[0f,0f,0f,1f]}} | ||
|
||
# 椅子 | ||
summon armor_stand ~ ~2 ~-4 {Small:1b,Invisible:1b,Silent:1b,Invulnerable:1b,Marker:1b,CustomName:'{"text": "UNO椅","color": "gold"}',Tags:["jk_uno","jk_uno_npc","jk_uno_chair","jk_uno_chair_north"]} | ||
summon armor_stand ~ ~2 ~4 {Small:1b,Invisible:1b,Silent:1b,Invulnerable:1b,Marker:1b,CustomName:'{"text": "UNO椅","color": "gold"}',Tags:["jk_uno","jk_uno_npc","jk_uno_chair","jk_uno_chair_south"]} | ||
summon armor_stand ~-4 ~2 ~ {Small:1b,Invisible:1b,Silent:1b,Invulnerable:1b,Marker:1b,CustomName:'{"text": "UNO椅","color": "gold"}',Tags:["jk_uno","jk_uno_npc","jk_uno_chair","jk_uno_chair_west"]} | ||
summon armor_stand ~4 ~2 ~ {Small:1b,Invisible:1b,Silent:1b,Invulnerable:1b,Marker:1b,CustomName:'{"text": "UNO椅","color": "gold"}',Tags:["jk_uno","jk_uno_npc","jk_uno_chair","jk_uno_chair_east"]} | ||
|
||
# 可交互实体 | ||
summon interaction ~ ~2 ~4 {Tags:["jk_uno","jk_uno_npc","jk_uno_touch"],height:2f,width:1f} | ||
summon interaction ~4 ~2 ~ {Tags:["jk_uno","jk_uno_npc","jk_uno_touch"],height:2f,width:1f} | ||
summon interaction ~ ~2 ~-4 {Tags:["jk_uno","jk_uno_npc","jk_uno_touch"],height:2f,width:1f} | ||
summon interaction ~-4 ~2 ~ {Tags:["jk_uno","jk_uno_npc","jk_uno_touch"],height:2f,width:1f} | ||
|
||
# 选颜色的展示实体 | ||
summon item_display ~-1.8 ~3.5 ~-0.25 {Tags:["jk_uno","jk_uno_npc","jk_uno_color","jk_uno_color_red"],item:{id:"air",Count:1},billboard:"fixed",alignment:"fixed",transformation:{scale:[0.3f,0.3f,0.3f],translation:[0f,0f,0f],right_rotation:[0f,0f,0f,1f],left_rotation:[0f,0f,0f,1f]}} | ||
summon item_display ~-1.8 ~3.5 ~0.25 {Tags:["jk_uno","jk_uno_npc","jk_uno_color","jk_uno_color_blue"],item:{id:"air",Count:1},billboard:"fixed",alignment:"fixed",transformation:{scale:[0.3f,0.3f,0.3f],translation:[0f,0f,0f],right_rotation:[0f,0f,0f,1f],left_rotation:[0f,0f,0f,1f]}} | ||
summon item_display ~-1.8 ~3 ~-0.25 {Tags:["jk_uno","jk_uno_npc","jk_uno_color","jk_uno_color_green"],item:{id:"air",Count:1},billboard:"fixed",alignment:"fixed",transformation:{scale:[0.3f,0.3f,0.3f],translation:[0f,0f,0f],right_rotation:[0f,0f,0f,1f],left_rotation:[0f,0f,0f,1f]}} | ||
summon item_display ~-1.8 ~3 ~0.25 {Tags:["jk_uno","jk_uno_npc","jk_uno_color","jk_uno_color_yellow"],item:{id:"air",Count:1},billboard:"fixed",alignment:"fixed",transformation:{scale:[0.3f,0.3f,0.3f],translation:[0f,0f,0f],right_rotation:[0f,0f,0f,1f],left_rotation:[0f,0f,0f,1f]}} | ||
summon item_display ~1.8 ~3.5 ~0.25 {Tags:["jk_uno","jk_uno_npc","jk_uno_color","jk_uno_color_red"],item:{id:"air",Count:1},billboard:"fixed",alignment:"fixed",transformation:{scale:[0.3f,0.3f,0.3f],translation:[0f,0f,0f],right_rotation:[0f,0f,0f,1f],left_rotation:[0f,0f,0f,1f]}} | ||
summon item_display ~1.8 ~3.5 ~-0.25 {Tags:["jk_uno","jk_uno_npc","jk_uno_color","jk_uno_color_blue"],item:{id:"air",Count:1},billboard:"fixed",alignment:"fixed",transformation:{scale:[0.3f,0.3f,0.3f],translation:[0f,0f,0f],right_rotation:[0f,0f,0f,1f],left_rotation:[0f,0f,0f,1f]}} | ||
summon item_display ~1.8 ~3 ~0.25 {Tags:["jk_uno","jk_uno_npc","jk_uno_color","jk_uno_color_green"],item:{id:"air",Count:1},billboard:"fixed",alignment:"fixed",transformation:{scale:[0.3f,0.3f,0.3f],translation:[0f,0f,0f],right_rotation:[0f,0f,0f,1f],left_rotation:[0f,0f,0f,1f]}} | ||
summon item_display ~1.8 ~3 ~-0.25 {Tags:["jk_uno","jk_uno_npc","jk_uno_color","jk_uno_color_yellow"],item:{id:"air",Count:1},billboard:"fixed",alignment:"fixed",transformation:{scale:[0.3f,0.3f,0.3f],translation:[0f,0f,0f],right_rotation:[0f,0f,0f,1f],left_rotation:[0f,0f,0f,1f]}} | ||
summon item_display ~0.25 ~3.5 ~-1.8 {Tags:["jk_uno","jk_uno_npc","jk_uno_color","jk_uno_color_red"],item:{id:"air",Count:1},billboard:"fixed",alignment:"fixed",transformation:{scale:[0.3f,0.3f,0.3f],translation:[0f,0f,0f],right_rotation:[0f,0f,0f,1f],left_rotation:[0f,0f,0f,1f]}} | ||
summon item_display ~-0.25 ~3.5 ~-1.8 {Tags:["jk_uno","jk_uno_npc","jk_uno_color","jk_uno_color_blue"],item:{id:"air",Count:1},billboard:"fixed",alignment:"fixed",transformation:{scale:[0.3f,0.3f,0.3f],translation:[0f,0f,0f],right_rotation:[0f,0f,0f,1f],left_rotation:[0f,0f,0f,1f]}} | ||
summon item_display ~0.25 ~3 ~-1.8 {Tags:["jk_uno","jk_uno_npc","jk_uno_color","jk_uno_color_green"],item:{id:"air",Count:1},billboard:"fixed",alignment:"fixed",transformation:{scale:[0.3f,0.3f,0.3f],translation:[0f,0f,0f],right_rotation:[0f,0f,0f,1f],left_rotation:[0f,0f,0f,1f]}} | ||
summon item_display ~-0.25 ~3 ~-1.8 {Tags:["jk_uno","jk_uno_npc","jk_uno_color","jk_uno_color_yellow"],item:{id:"air",Count:1},billboard:"fixed",alignment:"fixed",transformation:{scale:[0.3f,0.3f,0.3f],translation:[0f,0f,0f],right_rotation:[0f,0f,0f,1f],left_rotation:[0f,0f,0f,1f]}} | ||
summon item_display ~-0.25 ~3.5 ~1.8 {Tags:["jk_uno","jk_uno_npc","jk_uno_color","jk_uno_color_red"],item:{id:"air",Count:1},billboard:"fixed",alignment:"fixed",transformation:{scale:[0.3f,0.3f,0.3f],translation:[0f,0f,0f],right_rotation:[0f,0f,0f,1f],left_rotation:[0f,0f,0f,1f]}} | ||
summon item_display ~0.25 ~3.5 ~1.8 {Tags:["jk_uno","jk_uno_npc","jk_uno_color","jk_uno_color_blue"],item:{id:"air",Count:1},billboard:"fixed",alignment:"fixed",transformation:{scale:[0.3f,0.3f,0.3f],translation:[0f,0f,0f],right_rotation:[0f,0f,0f,1f],left_rotation:[0f,0f,0f,1f]}} | ||
summon item_display ~-0.25 ~3 ~1.8 {Tags:["jk_uno","jk_uno_npc","jk_uno_color","jk_uno_color_green"],item:{id:"air",Count:1},billboard:"fixed",alignment:"fixed",transformation:{scale:[0.3f,0.3f,0.3f],translation:[0f,0f,0f],right_rotation:[0f,0f,0f,1f],left_rotation:[0f,0f,0f,1f]}} | ||
summon item_display ~0.25 ~3 ~1.8 {Tags:["jk_uno","jk_uno_npc","jk_uno_color","jk_uno_color_yellow"],item:{id:"air",Count:1},billboard:"fixed",alignment:"fixed",transformation:{scale:[0.3f,0.3f,0.3f],translation:[0f,0f,0f],right_rotation:[0f,0f,0f,1f],left_rotation:[0f,0f,0f,1f]}} | ||
|
||
## 方块 | ||
# 初始化桌面 11*11*7 | ||
fill ~-5 ~-1 ~-5 ~5 ~5 ~5 air | ||
fill ~-5 ~-1 ~-5 ~5 ~5 ~5 barrier outline | ||
setblock ~ ~ ~-4 oak_wall_sign[facing=north] | ||
setblock ~ ~ ~4 oak_wall_sign[facing=south] | ||
setblock ~-4 ~ ~ oak_wall_sign[facing=west] | ||
setblock ~4 ~ ~ oak_wall_sign[facing=east] | ||
|
||
summon item_display ~ ~1 ~ {Tags:["jk_uno","jk_uno_card"],item:{id:"paper",Count:1,tag:{CustomModelData:211431}},billboard:"vertical",alignment:"fixed",glow_color_override:1039587,Glowing:1b,interpolation_duration:100,transformation:{scale:[1f,1f,1f],translation:[-0.25f,0.6f,-0.3f],right_rotation:[1f,0f,0f,0f],left_rotation:[1f,0f,0f,0f]}} | ||
scoreboard players set @e[limit=1,sort=nearest,distance=..2,tag=jk_uno_table] jk_uno.color 0 | ||
scoreboard players set @e[limit=1,sort=nearest,distance=..2,tag=jk_uno_table] jk_uno.card_type 9 | ||
scoreboard players set @e[limit=1,sort=nearest,distance=..2,tag=jk_uno_table] jk_uno.rotation 0 | ||
|
||
tp @a[distance=..8] ~ ~6 ~ |
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,5 @@ | ||
# 2t | ||
execute if entity @e[distance=.1..16,tag=jk_uno] run tellraw @a[distance=..4] {"text": "此处不能放置一个新桌子!","color": "red"} | ||
execute unless entity @e[distance=.1..16,tag=jk_uno] as @s[tag=jk_uno_table_set_4] run function jk_uno:init/set/table/4 | ||
|
||
kill @s |
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 @@ | ||
#clear @s | ||
give @s pig_spawn_egg{display:{Name:'{"text": "UNO游戏桌-4人","color": "yellow","italic": false}',Lore:['{"text": "可放置多个,但每个桌子需间隔至少 11 格!","color": "gold","italic": false}']},EntityTag:{id:"minecraft:marker",Tags:["jk_uno","jk_uno_npc","jk_uno_table_set","jk_uno_table_set_4"]},Enchantments:[{id:"unbreaking",lvl:5s}],CustomModelData:211415} |
Oops, something went wrong.