Skip to content

Commit

Permalink
move fluid stuff to fluid experiments branch
Browse files Browse the repository at this point in the history
  • Loading branch information
woodiertexas committed Oct 14, 2023
1 parent 2410681 commit a14ad47
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,19 +73,8 @@ public void onInitialize(ModContainer mod) {
Registry.register(Registries.ITEM, new Identifier(MODID, "chocolate_bar"), CHOCOLATE_BAR);
Registry.register(Registries.ITEM, new Identifier(MODID, "chocolate_bar_zoomies"), CHOCOLATE_BAR_ZOOMIES);

/*
STILL_CHOCOLATE = Registry.register(Registries.FLUID, new Identifier(MODID, "still_chocolate"), new ChocolateFluid.Still());
FLOWING_CHOCOLATE = Registry.register(Registries.FLUID, new Identifier(MODID, "flowing_chocolate"), new ChocolateFluid.Flowing());
CHOCOLATE_BUCKET = Registry.register(Registries.ITEM, new Identifier(MODID, "chocolate_bucket"),
new BucketItem(STILL_CHOCOLATE, new Item.Settings().recipeRemainder(Items.BUCKET).maxCount(1)));
CHOCOLATE = Registry.register(Registries.BLOCK, new Identifier(MODID, "chocolate"), new FluidBlock(STILL_CHOCOLATE, QuiltBlockSettings.copy(Blocks.WATER)){});
*/

ItemGroupEvents.modifyEntriesEvent(ItemGroups.FOOD_AND_DRINKS).register(entries -> entries.addItem(CHOCOLATE_BAR));
ItemGroupEvents.modifyEntriesEvent(ItemGroups.FOOD_AND_DRINKS).register(entries -> entries.addItem(CHOCOLATE_BAR_ZOOMIES));
//ItemGroupEvents.modifyEntriesEvent(ItemGroups.FOOD_AND_DRINKS).register(entries -> entries.addItem(CHOCOLATE_BUCKET));

// Registers the recipe for Chocolate Bar
RecipeManagerHelper.registerStaticRecipe(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,12 @@
public class ChocolateBarClient implements ClientModInitializer {
@Override
public void onInitializeClient(ModContainer mod) {
//System.out.println("yeef");

/*
FluidRenderHandlerRegistry.INSTANCE.register(ChocolateBar.STILL_CHOCOLATE, ChocolateBar.FLOWING_CHOCOLATE, new SimpleFluidRenderHandler(
new Identifier("minecraft:block/water_still"),
new Identifier("minecraft:block/water_flow"),
0xff0000
));

BlockRenderLayerMap.put(RenderLayer.getTranslucent(), ChocolateBar.STILL_CHOCOLATE, ChocolateBar.FLOWING_CHOCOLATE);
*/
}
}
8 changes: 0 additions & 8 deletions src/main/resources/data/minecraft/tags/fluids/water.json

This file was deleted.

3 changes: 1 addition & 2 deletions src/main/resources/quilt.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
},
"intermediate_mappings": "net.fabricmc:intermediary",
"entrypoints": {
"init": "io.github.woodiertexas.chocolate_bar.ChocolateBar",
"client_init": "io.github.woodiertexas.chocolate_bar.client.ChocolateBarClient"
"init": "io.github.woodiertexas.chocolate_bar.ChocolateBar"
},
"depends": [
{
Expand Down

0 comments on commit a14ad47

Please sign in to comment.