|
| 1 | +```js |
| 2 | +ServerEvents.recipes(event => { |
| 3 | + event.recipes.summoningrituals |
| 4 | + .altar("stick") |
| 5 | + .itemInputs(["cobblestone", "#c:glass_blocks", "3x #c:ingots"]) |
| 6 | + .entityInputs([ |
| 7 | + "3x minecraft:elder_guardian", |
| 8 | + "phantom", |
| 9 | + "silverfish", |
| 10 | + "3x cow", |
| 11 | + "minecraft:wither", |
| 12 | + SummoningEntity.input("cat").tooltip("Meow"), |
| 13 | + ]) |
| 14 | + .itemOutputs([ |
| 15 | + "apple", |
| 16 | + "carrot", |
| 17 | + SummoningItem.of("3x diamond"), |
| 18 | + SummoningItem.of("emerald").offset([1, 2, 2]).spread([4, 2, 4]), |
| 19 | + ]) |
| 20 | + .entityOutputs([ |
| 21 | + "bat", |
| 22 | + "ender_dragon", |
| 23 | + "4x creeper", |
| 24 | + SummoningEntity.output("fox", 2), |
| 25 | + SummoningEntity.output("blaze", 2) |
| 26 | + .data({ |
| 27 | + Health: 50, |
| 28 | + Attributes: [{ Name: "generic.max_health", Base: 50 }], |
| 29 | + }) |
| 30 | + .offset([1, 2, 2]) |
| 31 | + .tooltip([Text.of("50 health").aqua()]), |
| 32 | + SummoningEntity.output("zombie", 3) |
| 33 | + .data({ |
| 34 | + HandItems: [ |
| 35 | + { |
| 36 | + id: "minecraft:diamond_sword", |
| 37 | + Count: 1, |
| 38 | + tag: { ench: [{ id: 16, lvl: 1 }] }, |
| 39 | + }, |
| 40 | + ], |
| 41 | + }) |
| 42 | + .tooltip("Has Sword lol"), |
| 43 | + SummoningEntity.output("ghast") |
| 44 | + .offset([1, 2, 2]) |
| 45 | + .spread([4, 2, 4]) |
| 46 | + .data({ |
| 47 | + Health: 50, |
| 48 | + Attributes: [{ Name: "generic.max_health", Base: 50 }], |
| 49 | + }), |
| 50 | + ]) |
| 51 | + .commands(["say Hi", "/say Hello"]) // doesn't matter if with slash or not |
| 52 | + .sacrificeZone([3, 3, 3]) |
| 53 | + .conditions(conditions => |
| 54 | + conditions |
| 55 | + .biomes(["minecraft:plains", "minecraft:desert"]) |
| 56 | + .dimension("minecraft:overworld") |
| 57 | + .maxHeight(30) |
| 58 | + .setOpenSky(true) |
| 59 | + .structures("#minecraft:mineshaft") |
| 60 | + .time("night") |
| 61 | + .weather(w => w.setThundering(true)) |
| 62 | + ) |
| 63 | +}) |
| 64 | +``` |
0 commit comments