
物品:
假物品 (mdpf:dummy_item)
右键点击时增加计分板数值
属性:
mdpf:generic.detection_range_multiplier
影响其他生物能看见玩家的最大距离。
mdpf:player.eating_time_multiplier
影响进食所需的时间。
mdpf:player.nutrition_multiplier
影响食用食物后获得的营养量。
mdpf:player.saturation_multiplier
影响进食后获得的饱和度的数值。
命令:
/food
/food <玩家> get base
(返回玩家的饥饿值)
/food <玩家> get saturation
(返回玩家的饱和度)
/food <玩家> get exhaustion
(返回玩家的疲劳度)
/food <玩家> set base <数值>
(将玩家的饥饿值设置为指定数值)
/food <玩家> set saturation <数值>
(将玩家的饱和度设置为指定数值)
/food <玩家> set exhaustion <数值>
(将玩家的疲劳值设置为指定数值)
food <player> add base <value>
(将指定玩家的饥饿值增加一个指定的数值)
food <player> add saturation <value>
(将指定玩家的饱和值增加一个指定的数值)
/food <player> add exhaustion <value>)
(增加指定玩家的不耐烦等级,增加量为给定值)
/food <player> remove base <value>
(减少指定玩家的饥饿等级,减少量为给定值)
/food <player> remove saturation <value>
(减少指定玩家的饱和等级,减少量为给定值)
/food <player> remove exhaustion <value>
(减少指定玩家的不耐烦等级,减少量为给定值)
/ignite
/ignite <targets> <duration> [<ignoreCurrentStatus>]
(使目标燃烧指定的时长。(持续时间不应低于目标的燃烧时间,但如果将 ignoreCurrentStatus 设置为 true,则忽略此条件))
/extinguish
/extinguish <targets> 0
(熄灭目标身上的火焰)
物品组件:
mdpf:craft_requirement
接受任意字符串值。不影响物品
合成配方:
配方的原料现在支持组件变更。
示例:

现在,合成配方的原料会比较输入物品的组件值与目标物品的组件值。如果两个物品的 mdpf:craft_requirement 组件值相同,则会输出结果(不包含该组件的物品将被视为具有空字符串作为合成要求的物品)
示例:


Items:
Dummy Item (mdpf:dummy_item)
Increases scoreboard value on right click
Attributes:
mdpf:generic.detection_range_multiplier
Affects the maximum distance that players can be seen by other mobs.
- values: base 1, max. 1, min. 0
mdpf:player.eating_time_multiplier
Affects the time it takes to eat food.
- values: base 1, max. 100, min. 0
mdpf:player.nutrition_multiplier
Affects the amount of nutrition given after eating food.
- values: base 1, max. 20, min. 0
mdpf:player.saturation_multiplier
Affects the saturation level given after eating food.
- values: base 1, max. 100, min. 0
commands:
/food
/food <player> get base
(Returns the hunger level of player)
/food <player> get saturation
(Returns the saturation level of player)
/food <player> get exhaustion
(Returns the exhaustion level of player)
/food <player> set base <value>
(Sets the hunger level of player to a specified value)
/food <player> set saturation <value>
(Sets the saturation level of player to a specified value)
/food <player> set exhaustion <value>
(Sets the exhaustion level of player to a specified value)
food <player> add base <value>
(Increases the hunger level of player by a specified value)
/food <player> add saturation <value>
(Increases the saturation level of player by a specified value)
/food <player> add exhaustion <value>)
(Increases the exhaustion level of player by a specified value)
/food <player> remove base <value>
(Decreases the hunger level of player by a specified value)
/food <player> remove saturation <value>
(Decreases the saturation level of player by a specified value)
/food <player> remove exhaustion <value>
(Decreases the exhaustion level of player by a specified value)
/ignite
/ignite <targets> <duration> [<ignoreCurrentStatus>]
(Sets targets on fire for a specified duration. (duration shouldn't be lower than target's burning time, but, if ignoreCurrentStatus is set to true, this condition is ignored))
/extinguish
/extinguish <targets> 0
(Extinguishes targets)
Item components:
mdpf:craft_requirement
Accepts any string value. Doesn't affect the item
Recipes:
The recipe's ingredients now accept component changes.
Example:

Now crafting recipe ingredients will compare the value of the components with the components of the input item. If the value of the mdpf:craft_requirement component is the same for both items, the recipe will output the result (items that don't contain this component will be counted as items with empty string as the craft requirement)
Example:

评论 0
登录后参与评分
还没有评论,来抢沙发吧