You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -135,10 +134,10 @@ public void validate(GroovyLog.Msg msg) {
135
134
msg.add(life < 0, "life must be a positive integer greater than 0, yet it was {}", life);
136
135
msg.add(fuel < 0, "fuel must be a positive integer greater than 0, yet it was {}", fuel);
137
136
if (lootTable != null) {
138
-
validateCustom(msg, output, 0, 0, "item output");
139
137
msg.add(entity != null, "entity was defined even though lootTable was defined");
140
138
msg.add(!output.isEmpty(), "output was defined even though lootTable was defined");
141
139
}
140
+
msg.add(!output.isEmpty() && entity != null, "both entity and output were defined, yet only one can be");
142
141
msg.add(output.isEmpty() && lootTable == null && entity == null, "output, lootTable, and entity were all not defined. one of them should be defined to properly create the recipe");
143
142
}
144
143
@@ -168,21 +167,17 @@ public void validate(GroovyLog.Msg msg) {
groovyscript.wiki.thebetweenlands.animator.description=Converts an input item, Life amount from Life Crystals, and Fuel from Sulfur into an output itemstack, summoning an entity, a random item from a loottable, or summoning an entity and outputting an itemstack.
779
+
groovyscript.wiki.thebetweenlands.animator.description=Converts an input item, Life amount from Life Crystals, and Fuel from Sulfur into an output itemstack, summoning an entity, or a random item from a loottable.
780
780
groovyscript.wiki.thebetweenlands.animator.fuel.value=Sets the fuel consumed
781
781
groovyscript.wiki.thebetweenlands.animator.life.value=Sets the life consumed from the life crystal
782
782
groovyscript.wiki.thebetweenlands.animator.entity.value=Sets the entity being spawned
783
783
groovyscript.wiki.thebetweenlands.animator.render.value=Sets the entity to render, typically the same as the entity to be spawned
784
784
groovyscript.wiki.thebetweenlands.animator.lootTable.value=Sets the LootTable used to generate outputs
785
+
groovyscript.wiki.thebetweenlands.animator.pick_one.required=Only one of output, entity, or lootTable can be set
785
786
groovyscript.wiki.thebetweenlands.animator.removeByEntity=Removes all entries that match the given entity
786
787
groovyscript.wiki.thebetweenlands.animator.removeByLootTable=Removes all entries that output the given Loot Table
0 commit comments