tutorial:model_predicate_providers
Differences
This shows you the differences between two versions of the page.
Next revisionBoth sides next revision | |||
tutorial:model_predicate_providers [2021/03/05 18:49] – created oroarmor | tutorial:model_predicate_providers [2021/03/05 19:11] – Add example oroarmor | ||
---|---|---|---|
Line 8: | Line 8: | ||
For this example, let's say we have we have a custom bow item called '' | For this example, let's say we have we have a custom bow item called '' | ||
+ | |||
+ | Inside a method, we register a '' | ||
<code java [enable_line_numbers=" | <code java [enable_line_numbers=" | ||
Line 26: | Line 28: | ||
</ | </ | ||
+ | The '' | ||
+ | |||
+ | All '' | ||
+ | |||
+ | Taking a closer look at the '' | ||
+ | |||
+ | All of this is useful, but is only half of the features we need to implement in order to have our item change its model. | ||
+ | |||
+ | <code json [enable_line_numbers=" | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | }, | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | }, | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | } | ||
+ | ] | ||
+ | </ | ||
+ | |||
+ | The way that Minecraft works is that it checks to see which model is last in the list that either matches or has values greater than specified. so with a pull value of '' |
tutorial/model_predicate_providers.txt · Last modified: 2022/06/01 11:48 by 127.0.0.1