User Tools

Site Tools


tutorial:fluids

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:fluids [2020/01/18 15:40] – Update tutorial to 1.15.1 + some cleanup virtuoeltutorial:fluids [2020/02/11 12:07] – Registry#add() -> Registry.register() upcraftlp
Line 176: Line 176:
  // ...  // ...
   
- STILL_ACID = Registry.FLUID.add(new Identifier(MOD_ID, "acid"), new AcidFluid.Still());+ STILL_ACID = Registry.register(Registry.FLUID, new Identifier(MOD_ID, "acid"), new AcidFluid.Still());
   
- FLOWING_ACID = Registry.FLUID.add(new Identifier(MOD_ID, "flowing_acid"), new AcidFluid.Flowing());+ FLOWING_ACID = Registry.register(Registry.FLUID, new Identifier(MOD_ID, "flowing_acid"), new AcidFluid.Flowing());
   
- ACID_BUCKET = Registry.ITEM.add(new Identifier(MOD_ID, "acid_bucket"), new BucketItem(STILL_ACID, new Item.Settings().recipeRemainder(Items.BUCKET).maxCount(1)));+ ACID_BUCKET = Registry.register(Registry.ITEM, new Identifier(MOD_ID, "acid_bucket"), new BucketItem(STILL_ACID, new Item.Settings().recipeRemainder(Items.BUCKET).maxCount(1)));
   
  // ...  // ...
Line 215: Line 215:
  // ...  // ...
   
- ACID = Registry.BLOCK.add(new Identifier(MOD_ID, "acid"), new FluidBlock(STILL_ACID, FabricBlockSettings.copy(Blocks.WATER).build()){});+ ACID = Registry.register(Registry.BLOCK, new Identifier(MOD_ID, "acid"), new FluidBlock(STILL_ACID, FabricBlockSettings.copy(Blocks.WATER).build()){});
   
  // ...  // ...
tutorial/fluids.txt · Last modified: 2023/05/04 11:31 by solidblock