User Tools

Site Tools


tutorial:model_predicate_providers

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
tutorial:model_predicate_providers [2021/03/05 19:11] – Add example oroarmortutorial:model_predicate_providers [2021/03/05 19:18] – Add that model predicates need to be initialized in client oroarmor
Line 9: Line 9:
 For this example, let's say we have we have a custom bow item called ''EXAMPLE_BOW''. For this example, let's say we have we have a custom bow item called ''EXAMPLE_BOW''.
  
-Inside a method, we register a ''ModelPredicateProvider'' with our item and an ''Identifier''. For the ''Identifier''s use, you do not need to provide a namespace, as none of these should conflict with Minecraft's providers.+Inside a method, we register a ''ModelPredicateProvider'' with our item and an ''Identifier''. For the ''Identifier''s use, you do not need to provide a namespace, as none of these should conflict with Minecraft's providers. This must be done in the ''onInitializeClient'' method of your ''ClientModInitializer''. If you do not have a ''ClientModInitializer'', look at the [[documentation:entrypoint|entrypoints]] tutorial on how to add one.
  
 <code java [enable_line_numbers="true"]> <code java [enable_line_numbers="true"]>
tutorial/model_predicate_providers.txt · Last modified: 2022/06/01 11:48 by 127.0.0.1