Add set_stew_effect function

This commit is contained in:
Misode
2019-10-05 17:16:25 +02:00
parent a73062e824
commit 00336111c2
4 changed files with 44 additions and 12 deletions
+10 -4
View File
@@ -130,7 +130,8 @@
"copy_name": "Copy Name",
"copy_nbt": "Copy NBT",
"apply_bonus": "Apply Bonus",
"exploration_map": "Exploration Map Properties"
"exploration_map": "Exploration Map Properties",
"set_stew_effect": "Set Stew Effect"
},
"type": "Function",
"count": "Count",
@@ -146,7 +147,6 @@
"source": "Source",
"replace": "Replace",
"enchantments": "Optional Enchantments",
"operation_add": "Add Operation",
"enchantment": "Enchantment",
"formula": "Formula",
"$formula": {
@@ -271,6 +271,10 @@
"ambient": "Ambient",
"visible": "Visible"
},
"$potion_effect": {
"type": "Effect",
"duration": "Duration"
},
"$item": {
"name": "Item ID",
"tag": "Item Tag",
@@ -287,8 +291,9 @@
"entry_add": "Add Entry",
"function_add": "Add Function",
"attribute_modifier_add": "Add Modifier",
"operation_add": "Add Operation",
"nbt_operation_add": "Add Operation",
"pool_add": "Add Pool",
"potion_effect_add": "Add Effect",
"term_add": "Add Term",
"author": "by Misode",
"copy": "Copy",
@@ -304,8 +309,9 @@
"error": "Error",
"function_remove": "Remove Function",
"attribute_modifier_remove": "Remove Modifier",
"operation_remove": "Remove Operation",
"nbt_operation_remove": "Remove Operation",
"pool_remove": "Remove Pool",
"potion_effect_remove": "Remove Effect",
"term_remove": "Remove Term",
"share": "Share",
"show_source": "Show Source",
+2 -3
View File
@@ -144,7 +144,6 @@
"source": "Источник",
"replace": "Заменить старое",
"enchantments": "Чары",
"operation_add": "Добавить действие",
"enchantment": "Чары",
"formula": "Формула",
"$formula": {
@@ -263,7 +262,7 @@
"entry_add": "Добавить запись",
"function_add": "Добавить функцию",
"attribute_modifier_add": "Добавить модификатор",
"operation_add": "Добавить действие",
"nbt_operation_add": "Добавить действие",
"pool_add": "Добавить пул",
"term_add": "Добавить выражение",
"author": "Автор: Misode",
@@ -279,7 +278,7 @@
"entry_remove": "Удалить запись",
"function_remove": "Удалить функцию",
"attribute_modifier_remove": "Удалить модификатор",
"operation_remove": "Удалить действие",
"nbt_operation_remove": "Удалить действие",
"pool_remove": "Удалить пул",
"term_remove": "Удалить выражение",
"share": "Поделиться",
+2 -3
View File
@@ -144,7 +144,6 @@
"source": "源",
"replace": "覆盖",
"enchantments": "可选附魔",
"operation_add": "添加操作",
"enchantment": "附魔",
"formula": "公式",
"$formula": {
@@ -268,7 +267,7 @@
"entry_add": "添加项目",
"function_add": "添加函数",
"modifier_add": "添加属性修饰器",
"operation_add": "添加操作",
"nbt_operation_add": "添加操作",
"pool_add": "添加随机池",
"term_add": "添加条件",
"author": "作者 @Misode",
@@ -284,7 +283,7 @@
"entry_remove": "移除项目",
"function_remove": "移除函数",
"modifier_remove": "移除属性修饰器",
"operation_remove": "移除操作",
"nbt_operation_remove": "移除操作",
"pool_remove": "移除随机池",
"term_remove": "移除条件",
"share": "分享",
+30 -2
View File
@@ -175,7 +175,8 @@
"minecraft:copy_name",
"minecraft:copy_nbt",
"minecraft:apply_bonus",
"minecraft:exploration_map"
"minecraft:exploration_map",
"minecraft:set_stew_effect"
]
},
{
@@ -295,6 +296,16 @@
"minecraft:exploration_map"
]
},
{
"id": "effects",
"type": "array",
"translate": "potion_effect",
"button": "field",
"values": "potion_effect",
"require": [
"minecraft:set_stew_effect"
]
},
{
"id": "entity",
"type": "enum",
@@ -360,7 +371,7 @@
{
"id": "ops",
"type": "array",
"translate": "$function.operation",
"translate": "nbt_operation",
"button": "field",
"values": "nbt_operation",
"require": [
@@ -894,6 +905,23 @@
}
]
},
{
"id": "potion_effect",
"type": "object",
"color": "dark",
"fields": [
{
"id": "type",
"type": "string",
"translate": "$potion_effect.type"
},
{
"id": "duration",
"type": "range",
"translate": "$potion_effect.duration"
}
]
},
{
"id": "item",
"type": "object",