User Tools

Site Tools


tutorial:datagen_buckets

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
tutorial:datagen_buckets [2023/06/21 10:25] tinypandastutorial:datagen_buckets [2023/06/21 10:27] – [Setting up the Bucket class] tinypandas
Line 49: Line 49:
 </code> </code>
  
 +
 +Here our ''getColor(int tintIndex)'' will return the defined ''fluidColor'' value when our ''tintIndex'' is ''1'' (this can be associated with the number of the texture layer). By returning ''-1'', we are saying that the color should remain as is in the image (which in this case is our base bucket image).
 ===== Create our bucket item ===== ===== Create our bucket item =====
  
Line 116: Line 118:
 {{:tutorial:buckets.png?400|}} {{:tutorial:buckets.png?400|}}
  
-Now that we have reached the end, upon starting up minecraft and joining a world, we should be able to `/give @a examplemod:red_water_bucketand see we now have a red water bucket! (I'll leave adding translations and item grouping to you! 8-) )+Now that we have reached the end, upon starting up minecraft and joining a world, we should be able to ''/give @a examplemod:red_water_bucket'' and see we now have a red water bucket! (I'll leave adding translations and item grouping to you! 8-) )
  
 ''[[https://github.com/TinyPandas/DataGenBucketsTutorial|Source Code]]'' ''[[https://github.com/TinyPandas/DataGenBucketsTutorial|Source Code]]''
tutorial/datagen_buckets.txt · Last modified: 2023/06/21 17:30 by tinypandas