Skip to content

Commit fcb24d1

Browse files
committed
sr: add basic example page
1 parent fb1d9f1 commit fcb24d1

5 files changed

Lines changed: 99 additions & 0 deletions

File tree

wikis.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
},
1515
{
1616
"name": "morejs"
17+
},
18+
{
19+
"name": "summoningrituals"
1720
}
1821
]
1922
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { defineConfig } from "../../../main/defineAlmostWiki"
2+
3+
export default defineConfig({
4+
srcDir: "./docs",
5+
title: "Summoning Rituals",
6+
base: "/summoningrituals/",
7+
themeConfig: {
8+
sidebar: [
9+
{
10+
text: "Intro",
11+
items: [
12+
{ text: "Introduction", link: "/" },
13+
{ text: "Example", link: "/example" },
14+
],
15+
},
16+
],
17+
},
18+
})
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// https://vitepress.dev/guide/custom-theme
2+
import Theme from "../../../../main/theme"
3+
export default Theme
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
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+
```
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Getting Started
2+
3+
> [!WARNING]
4+
> This wiki is still work in progress! It just lists all examples for now without further explanation.
5+
6+
Useful links:
7+
8+
- [CurseForge](https://www.curseforge.com/minecraft/mc-mods/summoningrituals)
9+
- [Modrinth](https://modrinth.com/mod/summoningrituals)
10+
- [GitHub](https://github.com/almostreliable/summoningrituals)
11+
- [Discord](https://discord.com/invite/ThFnwZCyYY)

0 commit comments

Comments
 (0)