Skip to content

Commit

Permalink
Fix publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexNijjar committed Feb 3, 2024
1 parent 3c6142b commit df3f6ba
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ jobs:
MAVEN_USER: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASS: ${{ secrets.MAVEN_PASSWORD }}

- name: Upload Forge Releases (Curse/Modrinth/Github)
id: forge_release
if: contains(steps.properties.outputs.enabledPlatforms, 'forge')
- name: Upload NeoForge Releases (Curse/Modrinth/Github)
id: neoforge_release
if: contains(steps.properties.outputs.enabledPlatforms, 'neoforge')
uses: Kir-Antipov/[email protected]
with:
curseforge-id: ${{ vars.CURSE_ID }}
Expand All @@ -48,12 +48,12 @@ jobs:
modrinth-id: ${{ vars.MODRINTH_ID }}
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}

files: ./forge/build/libs/!(*-@(dev|sources|dev-shadow)).jar
name: "[Forge] Chipped ${{ steps.properties.outputs.version }}"
files: ./neoforge/build/libs/!(*-@(dev|sources|dev-shadow)).jar
name: "[NeoForge] Chipped ${{ steps.properties.outputs.version }}"
version: ${{ steps.properties.outputs.version }}
version-type: release
changelog-file: changelog.md
loaders: forge
loaders: neoforge
game-versions: ${{ steps.properties.outputs.minecraftVersion }}
version-resolver: exact

Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,28 @@
package earth.terrarium.chipped.common.registry;

import com.teamresourceful.resourcefullib.common.item.tabs.ResourcefulCreativeModeTab;
import com.teamresourceful.resourcefullib.common.item.tabs.ResourcefulCreativeTab;
import com.teamresourceful.resourcefullib.common.registry.RegistryEntry;
import com.teamresourceful.resourcefullib.common.registry.ResourcefulRegistries;
import com.teamresourceful.resourcefullib.common.registry.ResourcefulRegistry;
import earth.terrarium.chipped.Chipped;
import net.minecraft.core.registries.BuiltInRegistries;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.item.BlockItem;
import net.minecraft.world.item.CreativeModeTab;
import net.minecraft.world.item.Item;
import net.minecraft.world.level.block.Block;

import java.util.function.BiFunction;
import java.util.function.Supplier;

public class ModItems {
public static final ResourcefulRegistry<Item> ITEMS = ResourcefulRegistries.create(BuiltInRegistries.ITEM, Chipped.MOD_ID);
public static final ResourcefulRegistry<Item> BENCHES = ResourcefulRegistries.create(ITEMS);

public static final ResourcefulCreativeModeTab ITEM_GROUP = new ResourcefulCreativeModeTab(new ResourceLocation(Chipped.MOD_ID, "main"))
public static final Supplier<CreativeModeTab> ITEM_GROUP = new ResourcefulCreativeTab(new ResourceLocation(Chipped.MOD_ID, "main"))
.setItemIcon(ModBlocks.BOTANIST_WORKBENCH)
.addRegistry(ITEMS);
.addRegistry(ITEMS)
.build();

public static final RegistryEntry<Item> BOTANIST_WORKBENCH = BENCHES.register("botanist_workbench", () -> new BlockItem(ModBlocks.BOTANIST_WORKBENCH.get(), new Item.Properties()));
public static final RegistryEntry<Item> GLASSBLOWER = BENCHES.register("glassblower", () -> new BlockItem(ModBlocks.GLASSBLOWER.get(), new Item.Properties()));
Expand Down
2 changes: 1 addition & 1 deletion templates/embed.json.template
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
{
"type": 2,
"label": "Forge",
"label": "NeoForge",
"style": 5,
"url": "https://modrinth.com/mod/chipped/version/${forge_link}"
}
Expand Down

0 comments on commit df3f6ba

Please sign in to comment.