Skip to content

Commit e26fa31

Browse files
committed
kjs-aa: fix coffee recipe ingredient order
1 parent d25f999 commit e26fa31

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

wikis/kubejs-actuallyadditions/docs/examples.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,16 @@ ServerEvents.recipes(event => {
174174
// removes all coffee ingredient recipes
175175
event.remove({ type: "actuallyadditions:coffee_ingredient" })
176176

177+
// adds a recipe that produces a coffee without any effects from any wool
178+
// uses the default extraText of an empty string
179+
event.recipes.actuallyadditions.coffee_ingredient("#minecraft:wool")
180+
177181
// adds a recipe that produces a coffee with a strength effect from any sapling
178182
// uses the default effect duration of 10 seconds
179183
// uses the default effect amplifier of 0 (level 1)
180184
// uses the default maxAmplifier of 1
181185
// uses the default extraText of an empty string
182-
event.recipes.actuallyadditions.coffee_ingredient("minecraft:strength", "#minecraft:saplings")
186+
event.recipes.actuallyadditions.coffee_ingredient("#minecraft:saplings", ["minecraft:strength"])
183187

184188
// adds a recipe that produces a coffee with a speed effect from a carrot
185189
// uses the MobEffect binding to define the effect
@@ -188,8 +192,8 @@ ServerEvents.recipes(event => {
188192
// uses the default maxAmplifier of 1
189193
// uses the an extra text of "Carrot Edition"
190194
event.recipes.actuallyadditions.coffee_ingredient(
191-
MobEffect.MOVEMENT_SPEED,
192195
"carrot",
196+
[MobEffect.MOVEMENT_SPEED],
193197
3,
194198
"Carrot Edition"
195199
)
@@ -200,14 +204,11 @@ ServerEvents.recipes(event => {
200204
// Haste 4 (30 seconds), Regeneration 1 (10 seconds), Strength 3 (1 minute)
201205
// uses builder functions to define the maxAmplifier and extraText properties
202206
event.recipes.actuallyadditions
203-
.coffee_ingredient(
204-
[
205-
EffectInstance.ofEffect(MobEffect.DIG_SPEED, 30, 3),
206-
EffectInstance.ofEffect(MobEffect.REGENERATION, 10),
207-
EffectInstance.ofId("minecraft:strength", 60, 2),
208-
],
209-
"potato"
210-
)
207+
.coffee_ingredient("potato", [
208+
EffectInstance.ofEffect(MobEffect.DIG_SPEED, 30, 3),
209+
EffectInstance.ofEffect(MobEffect.REGENERATION, 10),
210+
EffectInstance.ofId("minecraft:strength", 60, 2),
211+
])
211212
.maxAmplifier(2)
212213
.extraText("Multi Effect")
213214
})

0 commit comments

Comments
 (0)