diff --git a/index.html b/index.html index 4e8b67cf..810d6812 100644 --- a/index.html +++ b/index.html @@ -94,7 +94,7 @@
-
diff --git a/model.js b/model.js index 7b782996..024015f4 100644 --- a/model.js +++ b/model.js @@ -227,12 +227,13 @@ function removeFromSet(el, array) { } function toggleCollapseObject(el) { - let parent = getSuperParent(el); - let field = $(el).closest('[data-field]').attr('data-field'); - if (!parent[field]) { - parent[field] = {}; + let path = getPath(el); + let index = path.pop(); + let node = getNode(path); + if (!node[index]) { + node[index] = {}; } else { - delete parent[field]; + delete node[index]; } invalidated(); } diff --git a/schemas/1.14.json b/schemas/1.14.json index eac10729..54066a3c 100644 --- a/schemas/1.14.json +++ b/schemas/1.14.json @@ -81,6 +81,11 @@ "minecraft:dynamic" ] }, + { + "id": "quality", + "type": "random", + "luck_based": true + }, { "id": "children", "type": "array",