Skip to content

Commit

Permalink
Merge pull request #5 from LukeisStuff/1.7.7.x
Browse files Browse the repository at this point in the history
Fix support for Multiplayer
  • Loading branch information
baguchi authored Apr 22, 2024
2 parents 5d98c1b + 51743e5 commit 6ebc7d4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ halplibe_version=3.5.2
dragonfly_version=1.4.7-7.1
terrain_api_version=1.4.4-7.1
# Mod
mod_version=3.2.0
mod_version=3.3.0
mod_group=baguchan
mod_name=better_with_aquatic
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,25 @@
import net.minecraft.core.data.registry.recipe.RecipeSymbol;
import net.minecraft.core.data.registry.recipe.entry.RecipeEntryCrafting;
import net.minecraft.core.item.ItemStack;
import turniplabs.halplibe.helper.RecipeBuilder;
import turniplabs.halplibe.util.RecipeEntrypoint;

import static baguchan.better_with_aquatic.BetterWithAquatic.MOD_ID;

public class ModCraftings implements RecipeEntrypoint {
public static final RecipeNamespace AQUATIC = new RecipeNamespace();
public static final RecipeGroup<RecipeEntryCrafting<?, ?>> WORKBENCH = new RecipeGroup<>(new RecipeSymbol(new ItemStack(Block.workbench)));

@Override
public void onRecipesReady() {
AQUATIC.register("workbench", WORKBENCH);
Registries.RECIPES.register("aquatic", AQUATIC);
Registries.RECIPES.register(MOD_ID, AQUATIC);
DataLoader.loadRecipesFromFile("/assets/better_with_aquatic/recipes/workbench.json");
}

@Override
public void initNamespaces() {

RecipeEntrypoint.super.initNamespaces();
RecipeBuilder.initNameSpace(MOD_ID);
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"name": "aquatic:workbench/light_bulb",
"name": "better_with_aquatic:workbench/light_bulb",
"type": "minecraft:crafting/shaped",
"pattern": [
"TTT",
Expand Down

0 comments on commit 6ebc7d4

Please sign in to comment.