mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2026-01-03 22:26:16 +00:00
添加particle函数
This commit is contained in:
@@ -203,6 +203,50 @@ blocks:
|
||||
crop_item: minecraft:ender_pearl
|
||||
crop_seed: default:ender_pearl_flower_seeds
|
||||
ripe_age: 2
|
||||
events:
|
||||
- on: break
|
||||
conditions:
|
||||
- type: match_block_property
|
||||
properties:
|
||||
age: 2
|
||||
functions:
|
||||
- type: particle
|
||||
x: "<arg:block.block_x> + 0.5"
|
||||
y: "<arg:block.block_y> + 0.5"
|
||||
z: "<arg:block.block_z> + 0.5"
|
||||
particle: "minecraft:end_rod"
|
||||
count: 15
|
||||
offset-x: 0.4
|
||||
offset-y: 0.4
|
||||
offset-z: 0.4
|
||||
- type: play_sound
|
||||
sound: minecraft:entity.enderman.teleport
|
||||
x: "<arg:block.block_x> + 0.5"
|
||||
y: "<arg:block.block_y> + 0.5"
|
||||
z: "<arg:block.block_z> + 0.5"
|
||||
- on: right_click
|
||||
conditions:
|
||||
- type: match_block_property
|
||||
properties:
|
||||
age: 2
|
||||
- type: "!is_null"
|
||||
argument: "item_in_hand"
|
||||
- type: "equals"
|
||||
value1: "<arg:item_in_hand.id>"
|
||||
value2: "default:ender_pearl_flower_seeds"
|
||||
functions:
|
||||
- type: break_block
|
||||
x: "<arg:block.block_x>"
|
||||
y: "<arg:block.block_y>"
|
||||
z: "<arg:block.block_z>"
|
||||
- type: place_block
|
||||
x: "<arg:block.block_x>"
|
||||
y: "<arg:block.block_y>"
|
||||
z: "<arg:block.block_z>"
|
||||
block-state: default:ender_pearl_flower[age=0]
|
||||
- type: set_count
|
||||
add: true
|
||||
count: -1
|
||||
states:
|
||||
properties:
|
||||
age:
|
||||
|
||||
@@ -324,6 +324,12 @@ warning.config.function.place_block.missing_block_state: "<yellow>Issue found in
|
||||
warning.config.function.set_food.missing_food: "<yellow>Issue found in file <arg:0> - The config '<arg:1>' is missing the required 'food' argument for 'set_food' function.</yellow>"
|
||||
warning.config.function.set_saturation.missing_saturation: "<yellow>Issue found in file <arg:0> - The config '<arg:1>' is missing the required 'saturation' argument for 'set_saturation' function.</yellow>"
|
||||
warning.config.function.play_sound.missing_sound: "<yellow>Issue found in file <arg:0> - The config '<arg:1>' is missing the required 'sound' argument for 'play_sound' function.</yellow>"
|
||||
warning.config.function.particle.missing_particle: "<yellow>Issue found in file <arg:0> - The config '<arg:1>' is missing the required 'particle' argument for 'particle' function.</yellow>"
|
||||
warning.config.function.particle.missing_color: "<yellow>Issue found in file <arg:0> - The config '<arg:1>' is missing the required 'color' argument for 'particle' function.</yellow>"
|
||||
warning.config.function.particle.missing_from: "<yellow>Issue found in file <arg:0> - The config '<arg:1>' is missing the required 'from' argument for 'particle' function.</yellow>"
|
||||
warning.config.function.particle.missing_to: "<yellow>Issue found in file <arg:0> - The config '<arg:1>' is missing the required 'to' argument for 'particle' function.</yellow>"
|
||||
warning.config.function.particle.missing_item: "<yellow>Issue found in file <arg:0> - The config '<arg:1>' is missing the required 'item' argument for 'particle' function.</yellow>"
|
||||
warning.config.function.particle.missing_block_state: "<yellow>Issue found in file <arg:0> - The config '<arg:1>' is missing the required 'block-state' argument for 'particle' function.</yellow>"
|
||||
warning.config.selector.missing_type: "<yellow>Issue found in file <arg:0> - The config '<arg:1>' is missing the required 'type' argument for selector.</yellow>"
|
||||
warning.config.selector.invalid_type: "<yellow>Issue found in file <arg:0> - The config '<arg:1>' is using an invalid selector type '<arg:2>'.</yellow>"
|
||||
warning.config.selector.invalid_target: "<yellow>Issue found in file <arg:0> - The config '<arg:1>' is using an invalid selector target '<arg:2>'.</yellow>"
|
||||
|
||||
@@ -324,6 +324,12 @@ warning.config.function.place_block.missing_block_state: "<yellow>在文件 <arg
|
||||
warning.config.function.set_food.missing_food: "<yellow>Issue found in file <arg:0> - The config '<arg:1>' is missing the required 'food' argument for 'set_food' function.</yellow>"
|
||||
warning.config.function.set_saturation.missing_saturation: "<yellow>Issue found in file <arg:0> - The config '<arg:1>' is missing the required 'saturation' argument for 'set_saturation' function.</yellow>"
|
||||
warning.config.function.play_sound.missing_sound: "<yellow>Issue found in file <arg:0> - The config '<arg:1>' is missing the required 'sound' argument for 'play_sound' function.</yellow>"
|
||||
warning.config.function.particle.missing_particle: "<yellow>Issue found in file <arg:0> - The config '<arg:1>' is missing the required 'particle' argument for 'particle' function.</yellow>"
|
||||
warning.config.function.particle.missing_color: "<yellow>Issue found in file <arg:0> - The config '<arg:1>' is missing the required 'color' argument for 'particle' function.</yellow>"
|
||||
warning.config.function.particle.missing_from: "<yellow>Issue found in file <arg:0> - The config '<arg:1>' is missing the required 'from' argument for 'particle' function.</yellow>"
|
||||
warning.config.function.particle.missing_to: "<yellow>Issue found in file <arg:0> - The config '<arg:1>' is missing the required 'to' argument for 'particle' function.</yellow>"
|
||||
warning.config.function.particle.missing_item: "<yellow>Issue found in file <arg:0> - The config '<arg:1>' is missing the required 'item' argument for 'particle' function.</yellow>"
|
||||
warning.config.function.particle.missing_block_state: "<yellow>Issue found in file <arg:0> - The config '<arg:1>' is missing the required 'block-state' argument for 'particle' function.</yellow>"
|
||||
warning.config.selector.missing_type: "<yellow>在文件 <arg:0> 中发现问题 - 配置项 '<arg:1>' 缺少选择器必需的 'type' 参数</yellow>"
|
||||
warning.config.selector.invalid_type: "<yellow>在文件 <arg:0> 中发现问题 - 配置项 '<arg:1>' 使用了无效的选择器类型 '<arg:2>'</yellow>"
|
||||
warning.config.selector.invalid_target: "<yellow>在文件 <arg:0> 中发现问题 - 配置项 '<arg:1>' 使用了无效的选择器目标 '<arg:2>'</yellow>"
|
||||
|
||||
Reference in New Issue
Block a user