Skip to content

Commit 4daa4a4

Browse files
committed
Add examples to README
1 parent 4a2179e commit 4daa4a4

File tree

1 file changed

+46
-2
lines changed

1 file changed

+46
-2
lines changed

README.md

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# chit
1+
# Chit
22
A vanilla-like implementation of Optifine's CIT, shaped how I believe it would be/like.
33

4+
## Types
45
#### Conditional:
56
- has_enchantment
67
- fields:
@@ -11,4 +12,47 @@ A vanilla-like implementation of Optifine's CIT, shaped how I believe it would b
1112
- enchantment_level
1213
- value based on enchantment level
1314
- fields:
14-
- enchantment id (required)
15+
- enchantment id (required)
16+
17+
## Examples
18+
diamond_sword.json
19+
```json
20+
{
21+
"model": {
22+
"type": "minecraft:condition",
23+
"property": "chit:has_enchantment",
24+
"enchantment": "minecraft:fire_aspect",
25+
"on_false": {
26+
"type": "minecraft:model",
27+
"model": "minecraft:item/diamond_sword"
28+
},
29+
"on_true": {
30+
"type": "minecraft:model",
31+
"model": "minecraft:item/golden_sword"
32+
}
33+
}
34+
}
35+
```
36+
enchanted_book.json
37+
```json
38+
{
39+
"model": {
40+
"type": "minecraft:range_dispatch",
41+
"property": "chit:enchantment_level",
42+
"enchantment": "minecraft:bane_of_arthropods",
43+
"entries": [
44+
{
45+
"threshold": 3,
46+
"model": {
47+
"type": "minecraft:model",
48+
"model": "minecraft:item/book"
49+
}
50+
}
51+
],
52+
"fallback": {
53+
"type": "minecraft:model",
54+
"model": "minecraft:item/enchanted_book"
55+
}
56+
}
57+
}
58+
```

0 commit comments

Comments
 (0)