fix a bunch of errors and have to wait for architectury api version 20 or something that will support 26.1 since i am currently getting Expected offical namespace for access widener entry, found: intermadiary in mod: architectury-19.0.1.jar
Some checks failed
Build and Artifact / build (pull_request) Has been cancelled
Some checks failed
Build and Artifact / build (pull_request) Has been cancelled
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
architectury {
|
||||
common rootProject.enabled_platforms.split(',')
|
||||
common rootProject.enabled_platforms.toString().split(',')
|
||||
}
|
||||
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
resources {
|
||||
@@ -15,8 +14,8 @@ dependencies {
|
||||
// We depend on Fabric Loader here to use the Fabric @Environment annotations,
|
||||
// which get remapped to the correct annotations on each platform.
|
||||
// Do NOT use other classes from Fabric Loader.
|
||||
modImplementation "net.fabricmc:fabric-loader:$rootProject.fabric_loader_version"
|
||||
implementation "net.fabricmc:fabric-loader:$rootProject.fabric_loader_version"
|
||||
|
||||
// Architectury API. This is optional, and you can comment it out if you don't need it.
|
||||
modImplementation "dev.architectury:architectury:$rootProject.architectury_api_version"
|
||||
api "dev.architectury:architectury:$rootProject.architectury_api_version"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/spear_in_hand",
|
||||
"textures": {
|
||||
"layer0": "nuggetmod:item/nugget_spear_in_hand"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"parent": "minecraft:recipes/root",
|
||||
"criteria": {
|
||||
"has_nugget": {
|
||||
"conditions": {
|
||||
"items": [
|
||||
{
|
||||
"items": "nuggetmod:nugget"
|
||||
}
|
||||
]
|
||||
},
|
||||
"trigger": "minecraft:inventory_changed"
|
||||
},
|
||||
"has_the_recipe": {
|
||||
"conditions": {
|
||||
"recipe": "nuggetmod:nugget_cake"
|
||||
},
|
||||
"trigger": "minecraft:recipe_unlocked"
|
||||
}
|
||||
},
|
||||
"requirements": [
|
||||
[
|
||||
"has_the_recipe",
|
||||
"has_nugget"
|
||||
]
|
||||
],
|
||||
"rewards": {
|
||||
"recipes": [
|
||||
"nuggetmod:nugget_cake"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"type": "minecraft:crafting_shaped",
|
||||
"category": "misc",
|
||||
"key": {
|
||||
"E": "nuggetmod:raw_nugget",
|
||||
"M": "nuggetmod:nugget_block",
|
||||
"S": "minecraft:sugar",
|
||||
"W": "nuggetmod:nugget"
|
||||
},
|
||||
"pattern": [
|
||||
"MMM",
|
||||
"SES",
|
||||
"WWW"
|
||||
],
|
||||
"result": {
|
||||
"count": 1,
|
||||
"id": "nuggetmod:nugget_cake"
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
"type": "minecraft:ore",
|
||||
"config": {
|
||||
"discard_chance_on_air_exposure": 0.0,
|
||||
"size": 12,
|
||||
"size": 9,
|
||||
"targets": [
|
||||
{
|
||||
"state": {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"placement": [
|
||||
{
|
||||
"type": "minecraft:count",
|
||||
"count": 14
|
||||
"count": 12
|
||||
},
|
||||
{
|
||||
"type": "minecraft:in_square"
|
||||
|
||||
@@ -3,6 +3,7 @@ package dev.sillyangel.nuggetmod.block;
|
||||
import dev.architectury.registry.registries.DeferredRegister;
|
||||
import dev.architectury.registry.registries.RegistrySupplier;
|
||||
import dev.sillyangel.nuggetmod.NuggetMod;
|
||||
import net.minecraft.world.level.block.CakeBlock;
|
||||
import net.minecraft.world.level.block.state.BlockBehaviour;
|
||||
import net.minecraft.world.level.block.Block;
|
||||
import net.minecraft.world.level.block.DropExperienceBlock;
|
||||
@@ -20,6 +21,12 @@ public class ModBlocks {
|
||||
public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(NuggetMod.MOD_ID, Registries.BLOCK);
|
||||
public static final DeferredRegister<Item> BLOCK_ITEMS = DeferredRegister.create(NuggetMod.MOD_ID, Registries.ITEM);
|
||||
|
||||
public static final RegistrySupplier<Block> NUGGET_CAKE = registerBlockWithItem("nugget_cake",
|
||||
() -> new CakeBlock(createBlockSettings("nugget_cake")
|
||||
.strength(0.5f)
|
||||
.forceSolidOn()
|
||||
.sound(SoundType.WOOL)));
|
||||
|
||||
public static final RegistrySupplier<Block> NUGGET_BLOCK = registerBlockWithItem("nugget_block",
|
||||
() -> new Block(createBlockSettings("nugget_block")
|
||||
.strength(4f)
|
||||
|
||||
@@ -54,7 +54,7 @@ public class ModItemGroups {
|
||||
entries.accept(ModItems.NUGGET_SMITHING_TEMPLATE.get());
|
||||
entries.accept(ModItems.NUGGET_MUSIC_DISC.get());
|
||||
|
||||
entries.accept(ModItems.NUGGET_CAKE.get());
|
||||
entries.accept(ModBlocks.NUGGET_CAKE.get());
|
||||
}).build());
|
||||
|
||||
public static void init() {
|
||||
|
||||
@@ -17,9 +17,6 @@ public class ModItems {
|
||||
public static final RegistrySupplier<Item> NUGGET = ITEMS.register("nugget",
|
||||
() -> new Item(createSettings("nugget").food(ModFoodComponents.NUGGET)));
|
||||
|
||||
public static final RegistrySupplier<Item> NUGGET_CAKE = ITEMS.register("nugget_cake",
|
||||
() -> new Item(createSettings("nugget_cake")));
|
||||
|
||||
public static final RegistrySupplier<Item> RAW_NUGGET = ITEMS.register("raw_nugget",
|
||||
() -> new Item(createSettings("raw_nugget")));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user