內容來自 Discord使用者flesyz0169
<物品ID>
[<物品屬性>
=<屬性值>
]{<物品標籤>
}
<物品標籤>
} 等同於 [custom_data={<物品標籤>
}]舊:
{id: "stone", Count: 3, tag: {...}}
新:{id: "stone", count: 3, components: {...}}
count
-非必填,且在預設值 (1)
的時候會被省略components
-取代原有的 tag
,裡面帶有物品屬性與物品標籤
!<物品屬性>:{}
可將該屬性移除count
為 0 的物品
{}
來表示custom_data={name: "value"}
RepairCost
0
repair_cost=12
Unbreakable
show_in_tooltip
-是否顯示於物品描述上
true
和 false
,預設為 true
HideFlags:<±4>
unbreakable={}
Enchantments
<附魔名稱>
與 <附魔等級>
為一組,並存入 levels
項目中
<附魔名稱>
-只接受字串<附魔等級>
-只接受非負整數, 範圍:0 - 255show_in_tooltip
-是否顯示於物品描述上
true
和 false
,預設為 true
HideFlags:<±1>
enchantments={levels: {'efficiency': 5}}
{levels: {}}
StoredEnchantments
levels
-請參照enchantments的 levels
show_in_tooltip
-是否顯示於物品描述上
true
和 false
,預設為 true
HideFlags:<±32>
stored_enchantments={levels: {'mending': 1}}
{levels: {}}
display.Name
custom_name='["道具名稱"]'
display.Lore
[]
lore=['["一段描述"]', '{"text": "另一段描述", "color": "red"}']
CanDestroy
predicates
-用於偵測方塊細節
blocks
-可破壞的方塊,只接受方塊/方塊清單/方塊標籤
nbt
-符合的方塊資料({}
)state
-符合的方塊屬性([]
)show_in_tooltip
-是否顯示於物品描述上
true
和 false
,預設為 true
HideFlags:<±8>
can_break={predicates: {blocks: 'furnance', state: {facing: 'north'}}}
can_break={blocks: 'stone'}
CanPlaceOn
predicates
-請參照can_break的 predicates
show_in_tooltip
-是否顯示於物品描述上
true
和 false
,預設為 true
HideFlags:<±16>
can_place_on={predicates: {blocks: 'furnance', state: {facing: 'north'}}}
can_place_on={blocks: 'stone'}
display.color
rgb
-只接受RGB整數show_in_tooltip
-是否顯示於物品描述上
true
和 false
,預設為 true
HideFlags:<±64>
dyed_color={rgb: 16711680}
AttributeModifiers
modifiers
-修改器清單
type
-屬性ID,用單引號字串slot
-使用欄位,用單引號字串,非必填,以下擇一
any
(任意, 預設值)hand
(雙手)/mainhand
(慣用手)/offhand
(副手)armor
(裝備欄)/head
(頭)/chest
(胸)/legs
(腿)/feet
(腳)uuid
-UUID,只接受4個整數的陣列name
-會寫在物品上面的屬性名稱amount
-修改值,接受雙精浮點數operation
-修改方式,以下擇一
add_value
-加算add_multiplied_base
-以基值乘算add_multiplied_total
-以總值乘算show_in_tooltip
- 是否顯示於物品描述上,非必填,只接受 true
和 false
,預設為 true
HideFlags:<±2>
attribute_modifiers={modifiers: [{type: 'generic.attack_damage', uuid: [1, 2, 3, 4], name: '很痛', amount: 2.0, operation: 'add_multiplied_base'}]}
Charged
ChargedProjectiles
charged_projectiles=[{id: 'arrow'}]
Items
bundle_contents=[{id:'poisonous_potato'}]
[]
display.MapColor
map_color=16711680
Decorations
type
:記號種類,以下擇一
player
(玩家/色白箭頭)/frame
(展示框/綠色箭頭)/red_marker
(紅色箭頭)/blue_marker
(藍色箭頭)target_x
(白色叉叉)/target_point
(紅色地標)/red_x
(紅色叉叉)player_off_map
(地圖外的附近玩家)/player_off_limits
(離地圖外超遠的玩家)mansion
(森林大宅)/monument
(海底神殿)banner_<color>
(旗幟,共16種顏色)/village_<biome>
(村莊,共6種生態域)swamp_hut
(沼澤小屋)x
:橫向座標,接受浮點數z
:縱向座標,接受浮點數rotation
:順時針朝向,接受單精度浮點數map_decorations={'顯示名稱': {type: 'target_x', x: 123.0, z: -45.0, rotation: 0.0f}}
{}
map
map_id=1
CustomModelData
custom_model_data=-1
Potion
/CustomPotionColor
/custom_potion_effects
potion
-只接受效果藥水 ID,非必填custom_color
-只接受 RGB 整數值,非必填
custom_effects
-自訂藥水效果,可省略,預設為 []
potion
疊加potion_contents={potion: 'invisibility', custom_color: 16711680}
potion_contents={custom_potion_effects: [{id: 'instant_damage', amplifier: 3}]}
pages
/filtered_pages
pages
清單中只接受純文字或下列項目:
text
-一般字串filtered
-過濾字串,非必填writable_book_content={pages: [{text:'Hello world!'}]}
{pages: []}
pages
/filtered_pages
/title
/filtered_title
/author
/generation
/resolved
pages
-書頁內容,請參照writtable_book_content的 pages
pages
的內容可接受JSON文字title
-書名,只接受純文字author
-作者,通常以玩家ID儲存generation
-原作/複本/複本的複本,只接受整數,範圍:0 - 2resolved
-是否被解析過JSON文字(目標選擇器,分數等)
false
時,玩家一打開就會開始解析written_book_contents={pages: [{text: 'Hello world!'}], title: {text: 'A delightful read'}, author: 'Herobrine', generation: 1, resolved: true}
Trim
#trimmable_armor
的物品pattern
-模板 IDmaterial
-素材 IDshow_in_tooltip
-是否顯示於物品描述上
true
和 false
,預設為 true
HideFlags:<±128>
trim={pattern: 'silence', material: 'redstone'}
effects
id
:狀態 IDduration
:持續時間,只接受非負整數值,非必填,預設為 160
suspicious_stew=[{id: 'poison'}]
[]
HideFlags:<+32>
DebugProperty
debug_stick_state={'turtle_egg': 'eggs', 'furnace': 'facing'}
{}
EntityTag
id
-實體 ID,必填entity_data={id: 'pig', Health: 1.0f}
NoAI
/Silent
/NoGravity
/Glowing
/Invulnerable
/Health
/Age
/Variant
/HuntingCooldown
/BucketVariantTag
bucket_entity_data={NoAI: 1, Age: 43}
instrument
instrument='ponder_goat_horn'
Recipes
recipes=['minecraft:acacia_boat', 'minecraft:anvil']
[]
LodestonePos
LodestoneDimension
LodestoneTracked
target
pos
-只接受座標整數陣列dimension
-只接受世界維度 IDtracked
-磁石狀態追蹤,可省略,預設為 true
true
時,磁石被打掉時會移除整個屬性lodestone_tracker={target:{pos: [13, 64, -43], dimension: 'the_nether'}}
Explosion.Type
/Explosion.Colors
/Explosion.FadeColors
/Explosion.Trail
/Explosion.Flicker
shape
-爆炸形狀,以下擇一
small_ball
(小型球狀)/large_ball
(大型球狀)/star
(星型)/creeper
(苦力帕型)/burst
(爆裂)colors
-初始顏色,只接受 RGB 整數陣列,預設為 []
fade_colors
-漸變顏色,只接受 RGB 整數陣列,可省略,預設為 []
has_trail
-是否帶有蹤跡,可省略,預設值為 false
has_twinkle
-是否帶有閃爍,可省略,預設值為 false
Explosion.Flicker
中更名firework_explosion={shape: 'large_ball', colors: [16711680], has_trail: true}
Fireworks.Explosions
Fireworks.Flight
explosions
-清單只接受爆炸方式,請參照firework_explosionflight_duration
-飛行時間,等同於製作煙火時用的火藥數量,接受位元組fireworks={explosions: [{shape: 'large_ball', colors: [16711680], has_trail: true}], flight_duration: 2}
SkullOwner
name
-玩家 ID, 只接受字串
id
-玩家 UUID,非必填properties
-玩家的附屬資料,非必填
name
-所有物的名稱(如 textures
),以字串存入value
-材質資料,以被 base64 加密過後的字串存入signature
-以字串存入,可省略profile={name: 'MHF_Sheep'}
BlockEntityTag.note_block_sound
note_block_sound='minecraft:ambient.cave'
BlockEntityTag.Base
white
/orange
/magenta
/light_blue
/yellow
/lime
/pink
/gray
light_gray
/cyan
/purple
/blue
/brown
/green
/red
/black
base_color='magenta'
BlockEntityTag.Patterns
pattern
-旗幟圖樣 ID, 不再以簡寫方式呈現(見表一)color
-圖樣顏色,請參照base_colorbanner_patterns=[{pattern: 'minecraft:stripe_top', color: 'red'}]
BlockEntityTag.sherds
pot_decorations=['arms_up_pottery_sherd', 'angler_pottery_sherd', 'danger_pottery_sherd', 'shelter_pottery_sherd']
['brick', 'brick', 'brick', 'brick']
BlockEntityTag.Items
slot
-欄位,只接受整數,範圍:0 - 255item
-物品格式container=[{slot: 7, item: {id: 'diamond_pickaxe', components: {'unbreakable': {}}}}]
BlockEntityTag:Bees
entity_data
-實體資料,請參照entity_data的可讀項目ticks_in_hive
-只接受整數值min_ticks_in_hive
-只接受整數值bees=[{entity_data: {id: 'minecraft:bee'}, ticks_in_hive: 3, min_ticks_in_hive: 10}]
[]
BlockEntityTag.Lock
lock='hunter2'
BlockStateTag
block_state={eggs: '10'}
true
和 false
enchantment_glint_override=true
旗幟圖案表
舊名稱 | 新名稱 | 舊名稱 | 新名稱 | |
---|---|---|---|---|
b |
minecraft:base |
rd |
minecraft:diagonal_right |
|
bl |
minecraft:square_bottom_left |
lud |
minecraft:diagonal_up_left |
|
br |
minecraft:square_bottom_right |
rud |
minecraft:diagonal_up_right |
|
tl |
minecraft:square_top_left |
mc |
minecraft:circle |
|
tr |
minecraft:square_top_right |
mr |
minecraft:rhombus |
|
bs |
minecraft:stripe_bottom |
vh |
minecraft:half_vertical |
|
ts |
minecraft:stripe_top |
hh |
minecraft:half_horizontal |
|
ls |
minecraft:stripe_left |
vhr |
minecraft:half_vertical_right |
|
rs |
minecraft:stripe_right |
hhb |
minecraft:half_vertical_bottom |
|
cs |
minecraft:stripe_center |
bo |
minecraft:border |
|
ms |
minecraft:stripe_middle |
cbo |
minecraft:curly_border |
|
drs |
minecraft:stripe_down_right |
gra |
minecraft:gradient |
|
dls |
minecraft:stripe_down_left |
gru |
minecraft:gradient_up |
|
ss |
minecraft:small_stripe |
bri |
minecraft:bricks |
|
cr |
minecraft:cross |
glb |
minecraft:globe |
|
sc |
minecraft:straight_cross |
cre |
minecraft:creeper |
|
bt |
minecraft:triangle_bottom |
sku |
minecraft:skull |
|
tt |
minecraft:triangle_top |
flo |
minecraft:flower |
|
bts |
minecraft:triangles_bottom |
moj |
minecraft:mojang |
|
tts |
minecraft:triangle_top |
pig |
minecraft:piglin |
|
ld |
minecraft:diagonal_left |