Add reference condition

This commit is contained in:
Misode
2019-10-09 21:20:05 +02:00
parent a176fd1e08
commit 169a2dd342
2 changed files with 11 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
"$type": {
"alternative": "Alternative",
"inverted": "Inverted",
"reference": "Reference",
"entity_properties": "Entity Properties",
"block_state_propery": "Block Properties",
"match_tool": "Tool Properties",
@@ -17,6 +18,7 @@
"survives_explosion": "Survives Explosion"
},
"type": "Condition",
"name": "Predicate Name",
"chance": "Chance",
"looting_multiplier": "Looting Multiplier",
"inverse": "Inverted",

View File

@@ -488,6 +488,7 @@
"values": [
"minecraft:alternative",
"minecraft:inverted",
"minecraft:reference",
"minecraft:entity_properties",
{
"value": "minecraft:block_state_propery",
@@ -517,6 +518,14 @@
}
]
},
{
"id": "name",
"type": "string",
"translate": "$condition.name",
"require": [
"minecraft:reference"
]
},
{
"id": "chance",
"type": "float",