mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-24 23:56:51 +00:00
Fix #84 Parse floats and add info for chance list
This commit is contained in:
@@ -372,6 +372,7 @@ function updateField(el) {
|
||||
for (let i = 0; i < value.length; i += 1) {
|
||||
value[i] = value[i].trim();
|
||||
if (type === 'chance-list') {
|
||||
value[i] = parseFloat(value[i]);
|
||||
if (isNaN(value[i])) {
|
||||
value = [];
|
||||
break;
|
||||
|
||||
@@ -393,6 +393,7 @@
|
||||
"help.biome_source.type.checkerboard": "Biomes generating in a checkerboard chunk pattern",
|
||||
"help.biome_source.type.vanilla_layered": "Biome distribution for the overworld",
|
||||
"help.biome_source.type.the_end": "Biome distrubution for the end",
|
||||
"help.condition.chances": "List of floats between 0 and 1 separated by commas",
|
||||
"help.condition.time_period": "If present, time will be modulo-divided by this value. For example, if set to 24000, value will operate on a time period of days.",
|
||||
"help.dimension": "The identifier used for \"/execute in\". Must be all lowercase.",
|
||||
"help.dimension.type.ultrawarm": "If true, water will evaporate and sponges will dry",
|
||||
|
||||
@@ -541,6 +541,7 @@
|
||||
"id": "chances",
|
||||
"type": "chance-list",
|
||||
"translate": "condition.chances",
|
||||
"help": true,
|
||||
"require": [
|
||||
"minecraft:table_bonus"
|
||||
]
|
||||
|
||||
@@ -733,6 +733,7 @@
|
||||
"id": "chances",
|
||||
"type": "chance-list",
|
||||
"translate": "condition.chances",
|
||||
"help": true,
|
||||
"require": [
|
||||
"minecraft:table_bonus"
|
||||
]
|
||||
|
||||
@@ -733,6 +733,7 @@
|
||||
"id": "chances",
|
||||
"type": "chance-list",
|
||||
"translate": "condition.chances",
|
||||
"help": true,
|
||||
"require": [
|
||||
"minecraft:table_bonus"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user