Jump to content

Choonster

Moderators
  • Posts

    5126
  • Joined

  • Last visited

  • Days Won

    76

Posts posted by Choonster

  1. 19 minutes ago, Sweetmimike said:

    Hello,

    Thank you for your anwsers, I finally succeeded. I have just one more question : 

    Why in the code below, the parameter TOOL is not considered ? Indeed, when I try to generate loot from a cow, it generates beef whereas I added a parameter TOOL with a diamond sword with fire aspect, so It should generate Steak.

    If you look at the loot table for cows, you'll see that it checks whether the entity is on fire to determine whether to drop steak; not whether the tool has Fire Aspect.

  2. The second argument of withExistingParent is the path to a model file to use as a parent, not a texture. For basic block items, the model normally uses the block model as the parent, rather than specifying individual textures.

    I use this helper method in my BlockStateProvider implementation to generate block item models that simply extend the block model. You can see an example of this here.

    On a side note, the DeferredRegister instance should always be created in the same class as it's used in; don't put the DeferredRegister and RegistryObject fields in separate classes.

    • Thanks 1
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.