mirror of
https://github.com/Xiao-MoMi/Custom-Crops.git
synced 2025-12-25 09:59:20 +00:00
Update default configs
This commit is contained in:
@@ -484,7 +484,7 @@ public abstract class ConfigManager implements ConfigLoader, Reloadable {
|
||||
new OutputStreamWriter(new FileOutputStream(file), StandardCharsets.UTF_8))) {
|
||||
String finalStr = sb.toString();
|
||||
if (!hasNamespace) {
|
||||
finalStr = finalStr.replace("CHORUS", "TRIPWIRE").replace("<font:customcrops:default>", "<font:minecraft:customcrops>");
|
||||
finalStr = finalStr.replace("<font:customcrops:default>", "<font:minecraft:customcrops>");
|
||||
}
|
||||
writer.write(finalStr.replace("{0}", hasNamespace ? "customcrops:" : ""));
|
||||
} catch (IOException e) {
|
||||
|
||||
@@ -67,7 +67,7 @@ public class BlockActionManager extends AbstractActionManager<CustomCropsBlockSt
|
||||
if (entry.getValue() instanceof Section inner) {
|
||||
VariationData variationData = new VariationData(
|
||||
inner.getString("item"),
|
||||
CustomForm.valueOf(inner.getString("type", "TripWire").toUpperCase(Locale.ENGLISH)).existenceForm(),
|
||||
CustomForm.valueOf(inner.getString("type", "BLOCK").toUpperCase(Locale.ENGLISH)).existenceForm(),
|
||||
inner.getDouble("chance")
|
||||
);
|
||||
variationDataList.add(variationData);
|
||||
|
||||
@@ -119,13 +119,13 @@ public class BukkitConfigManager extends ConfigManager {
|
||||
|
||||
enableScarecrow = config.getBoolean("mechanics.scarecrow.enable", true);
|
||||
scarecrow = new HashSet<>(ListUtils.toList(config.get("mechanics.scarecrow.id")));
|
||||
scarecrowExistenceForm = CustomForm.valueOf(config.getString("mechanics.scarecrow.type", "ITEM_FRAME")).existenceForm();
|
||||
scarecrowExistenceForm = CustomForm.valueOf(config.getString("mechanics.scarecrow.type", "FURNITURE")).existenceForm();
|
||||
scarecrowRange = config.getInt("mechanics.scarecrow.range", 7);
|
||||
scarecrowProtectChunk = config.getBoolean("mechanics.scarecrow.protect-chunk", false);
|
||||
|
||||
enableGreenhouse = config.getBoolean("mechanics.greenhouse.enable", true);
|
||||
greenhouse = new HashSet<>(ListUtils.toList(config.get("mechanics.greenhouse.id")));
|
||||
greenhouseExistenceForm = CustomForm.valueOf(config.getString("mechanics.greenhouse.type", "CHORUS")).existenceForm();
|
||||
greenhouseExistenceForm = CustomForm.valueOf(config.getString("mechanics.greenhouse.type", "BLOCK")).existenceForm();
|
||||
greenhouseRange = config.getInt("mechanics.greenhouse.range", 5);
|
||||
|
||||
syncSeasons = config.getBoolean("mechanics.sync-season.enable", false);
|
||||
|
||||
@@ -129,7 +129,7 @@ tomato:
|
||||
value:
|
||||
golden:
|
||||
item: {0}tomato_stage_golden
|
||||
type: TRIPWIRE
|
||||
type: BLOCK
|
||||
chance: 0.01
|
||||
break:
|
||||
# 100% chance to drop 1-2 tomato seeds when broken
|
||||
@@ -160,7 +160,7 @@ tomato:
|
||||
value:
|
||||
gigantic:
|
||||
item: {0}gigantic_tomato
|
||||
type: CHORUS
|
||||
type: BLOCK
|
||||
chance: 0.02
|
||||
# Special configuration for a non-standard growth stage (e.g., rare or unique crops)
|
||||
99:
|
||||
|
||||
Reference in New Issue
Block a user