mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2026-01-04 15:41:38 +00:00
添加新的方块相关函数
This commit is contained in:
@@ -64,11 +64,8 @@ blocks:
|
||||
- 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
|
||||
- type: match_item
|
||||
id: default:ender_pearl_flower_seeds
|
||||
functions:
|
||||
- type: break_block
|
||||
x: <arg:block.block_x>
|
||||
|
||||
@@ -132,10 +132,9 @@ blocks:
|
||||
- type: match_block_property
|
||||
properties:
|
||||
age: 3
|
||||
- type: 'is_null'
|
||||
argument: item_in_hand
|
||||
- type: hand
|
||||
hand: main_hand
|
||||
- type: '!has_item'
|
||||
functions:
|
||||
- type: break_block
|
||||
x: <arg:block.block_x>
|
||||
|
||||
@@ -474,6 +474,8 @@ warning.config.function.merchant_trade.offer.missing_cost_1: "<yellow>Issue foun
|
||||
warning.config.function.merchant_trade.offer.missing_result: "<yellow>Issue found in file <arg:0> - The config '<arg:1>' is missing the required 'result' argument for merchant trade offers.</yellow>"
|
||||
warning.config.function.when.missing_source: "<yellow>Issue found in file <arg:0> - The config '<arg:1>' is missing the required 'source' argument for 'when' function.</yellow>"
|
||||
warning.config.function.if_else.missing_rules: "<yellow>Issue found in file <arg:0> - The config '<arg:1>' is missing the required 'rules' argument for 'if_else' function.</yellow>"
|
||||
warning.config.function.update_block_property.missing_properties: "<yellow>Issue found in file <arg:0> - The config '<arg:1>' is missing the required 'properties' argument for 'update_block_property' function.</yellow>"
|
||||
warning.config.function.transform_block.missing_block: "<yellow>Issue found in file <arg:0> - The config '<arg:1>' is missing the required 'block' argument for 'transform_block' 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>"
|
||||
|
||||
Reference in New Issue
Block a user