File tree Expand file tree Collapse file tree 1 file changed +46
-2
lines changed
Expand file tree Collapse file tree 1 file changed +46
-2
lines changed Original file line number Diff line number Diff line change 1- # chit
1+ # Chit
22A 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+ ```
You can’t perform that action at this time.
0 commit comments