mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-29 09:15:27 +00:00
Water objects need flat water
- Single-piece structures stay forced but keep the river and pond exclusion - Water-flagged objects skip footprints on dams, cascades, waterfalls or water at another head - The provisional guard runs before any bore and throws an engine failure - Saplings stay when a tree override is rejected or the terrain is still being planned - Object paste reports a retry when the terrain is still being planned - Tests cover structures over rivers, flat water, lava, bore ordering, explicit Y and saplings
This commit is contained in:
1 parent
2d52cc409e
commit
65d06ae83c
37 files changed
+777
-242
No files matched your search
+5
@@ -28,6 +28,7 @@ import art.arcane.iris.pack.loading.IrisData;
|
||||
import art.arcane.iris.studio.tree.TreePlausibilizeBatch;
|
||||
import art.arcane.iris.studio.tree.TreePlausibilizer;
|
||||
import art.arcane.iris.generation.runtime.Engine;
|
||||
import art.arcane.iris.generation.stream.ProvisionalAnswerException;
|
||||
import art.arcane.iris.structure.object.IrisObject;
|
||||
import art.arcane.iris.structure.object.IrisObjectPlacement;
|
||||
import art.arcane.iris.structure.object.IrisObjectRotation;
|
||||
@@ -366,6 +367,10 @@ public final class ModdedObjectCommands {
|
||||
try {
|
||||
object = placement.scaleObject(new RNG(), object, engine == null ? null : engine.getDimension());
|
||||
object.place(target.x(), target.y() + object.getCenter().getY(), target.z(), placer, placement, new RNG(), object.getLoader());
|
||||
} catch (ProvisionalAnswerException provisional) {
|
||||
ModdedIrisLog.info("Iris paste of {} at {},{},{} waits for the terrain plan", key, target.x(), target.y(), target.z());
|
||||
IrisModdedCommands.fail(source, IrisLanguage.plain(ModdedCommandMessages.MODDED_OBJECT_COMMANDS_PASTE_WAITS_FOR_TERRAIN_PLAN, MessageArgument.untrusted("value", target.x()), MessageArgument.untrusted("value2", target.y()), MessageArgument.untrusted("value3", target.z())));
|
||||
return 0;
|
||||
} catch (Throwable e) {
|
||||
ModdedIrisLog.error("Iris paste failed for {}", key, e);
|
||||
ModdedObjectUndo.record(player == null ? ModdedObjectUndo.CONSOLE : player.id(), placer.undoSnapshot());
|
||||
|
||||
+5
@@ -599,6 +599,10 @@ public final class ModdedCommandMessages {
|
||||
"iris.modded.moddedobjectcommands.paste_failed_partial_changes_recorded_undo",
|
||||
"Paste failed: " + "{value}" + " (partial changes recorded for undo)"
|
||||
);
|
||||
public static final TextKey MODDED_OBJECT_COMMANDS_PASTE_WAITS_FOR_TERRAIN_PLAN = TextKey.of(
|
||||
"iris.modded.moddedobjectcommands.paste_waits_for_terrain_plan",
|
||||
"The terrain at " + "{value}" + " " + "{value2}" + " " + "{value3}" + " is still being planned. Nothing was pasted; run the paste again in a moment."
|
||||
);
|
||||
public static final TextKey MODDED_OBJECT_COMMANDS_PLACED_AT_ROT_WRITE_S_NON_AIR = TextKey.of(
|
||||
"iris.modded.moddedobjectcommands.placed_at_rot_write_s_non_air",
|
||||
"Placed " + "{key}" + " at " + "{value}" + " " + "{value2}" + " " + "{value3}" + " rot=" + "{rotation}" + " (" + "{value4}" + " write(s), " + "{value5}" + " non-air" + "{tileNote}" + ")"
|
||||
@@ -1438,6 +1442,7 @@ public final class ModdedCommandMessages {
|
||||
MODDED_OBJECT_COMMANDS_CONSOLE_MUST_SPECIFY_COORDINATES_IRIS_OBJECT_PASTE_AT_X_Y,
|
||||
MODDED_OBJECT_COMMANDS_YOU_ARE_NOT_LOOKING_AT_BLOCK_WITHIN_BLOCKS,
|
||||
MODDED_OBJECT_COMMANDS_PASTE_FAILED_PARTIAL_CHANGES_RECORDED_UNDO,
|
||||
MODDED_OBJECT_COMMANDS_PASTE_WAITS_FOR_TERRAIN_PLAN,
|
||||
MODDED_OBJECT_COMMANDS_PLACED_AT_ROT_WRITE_S_NON_AIR,
|
||||
MODDED_OBJECT_COMMANDS_THIS_COMMAND_CAN_ONLY_BE_USED_BY_PLAYERS,
|
||||
MODDED_OBJECT_COMMANDS_HOLD_YOUR_IRIS_WAND_IRIS_WAND_2,
|
||||
|
||||
Reference in new issue
Block a user