moved to mojmaps
This commit is contained in:
parent
8991ea9ee3
commit
7bb294a0d7
|
@ -19,14 +19,14 @@ repositories {
|
||||||
// See https://docs.gradle.org/current/userguide/platforms.html for information on how version catalogs work.
|
// See https://docs.gradle.org/current/userguide/platforms.html for information on how version catalogs work.
|
||||||
dependencies {
|
dependencies {
|
||||||
minecraft libs.minecraft
|
minecraft libs.minecraft
|
||||||
mappings variantOf(libs.quilt.mappings) { classifier "intermediary-v2" }
|
//mappings variantOf(libs.quilt.mappings) { classifier "intermediary-v2" }
|
||||||
// Replace the above line with the block below if you want to use Mojang mappings as your primary mappings, falling back on QM for parameters and Javadocs
|
// Replace the above line with the block below if you want to use Mojang mappings as your primary mappings, falling back on QM for parameters and Javadocs
|
||||||
/*
|
|
||||||
mappings loom.layered {
|
mappings loom.layered {
|
||||||
mappings "org.quiltmc:quilt-mappings:${libs.versions.quilt.mappings.get()}:intermediary-v2"
|
mappings "org.quiltmc:quilt-mappings:${libs.versions.quilt.mappings.get()}:intermediary-v2"
|
||||||
officialMojangMappings()
|
officialMojangMappings()
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
modImplementation libs.quilt.loader
|
modImplementation libs.quilt.loader
|
||||||
|
|
||||||
// QSL is not a complete API; You will need Quilted Fabric API to fill in the gaps.
|
// QSL is not a complete API; You will need Quilted Fabric API to fill in the gaps.
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
package com.danitheskunk.skunkstuff;
|
||||||
|
|
||||||
|
public class Blocks {
|
||||||
|
|
||||||
|
}
|
|
@ -1,11 +1,11 @@
|
||||||
package com.danitheskunk.skunkstuff;
|
package com.danitheskunk.skunkstuff;
|
||||||
|
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.core.Registry;
|
||||||
import net.minecraft.block.Material;
|
import net.minecraft.resources.ResourceLocation;
|
||||||
import net.minecraft.item.BlockItem;
|
import net.minecraft.world.item.BlockItem;
|
||||||
import net.minecraft.item.ItemGroup;
|
import net.minecraft.world.item.CreativeModeTab;
|
||||||
import net.minecraft.util.Identifier;
|
import net.minecraft.world.level.block.Block;
|
||||||
import net.minecraft.util.registry.Registry;
|
import net.minecraft.world.level.material.Material;
|
||||||
import org.quiltmc.loader.api.ModContainer;
|
import org.quiltmc.loader.api.ModContainer;
|
||||||
import org.quiltmc.qsl.base.api.entrypoint.ModInitializer;
|
import org.quiltmc.qsl.base.api.entrypoint.ModInitializer;
|
||||||
import org.quiltmc.qsl.block.extensions.api.QuiltBlockSettings;
|
import org.quiltmc.qsl.block.extensions.api.QuiltBlockSettings;
|
||||||
|
@ -16,15 +16,22 @@ import org.slf4j.LoggerFactory;
|
||||||
public class SkunkStuff implements ModInitializer {
|
public class SkunkStuff implements ModInitializer {
|
||||||
public static final Logger LOGGER = LoggerFactory.getLogger("SkunkStuff");
|
public static final Logger LOGGER = LoggerFactory.getLogger("SkunkStuff");
|
||||||
|
|
||||||
public static final Block GOBAN_BLOCK =
|
public static final Block GOBAN_BLOCK = new Block(QuiltBlockSettings.of(
|
||||||
new Block(QuiltBlockSettings.of(Material.WOOD).strength(2).opaque(false));
|
Material.WOOD).strength(2).opaque(false));
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onInitialize(ModContainer mod) {
|
public void onInitialize(ModContainer mod) {
|
||||||
Registry.register(Registry.BLOCK, new Identifier("skunkstuff", "goban"), GOBAN_BLOCK);
|
Registry.register(Registry.BLOCK,
|
||||||
Registry.register(Registry.ITEM, new Identifier("skunkstuff",
|
new ResourceLocation("skunkstuff", "goban"),
|
||||||
"goban"), new BlockItem(GOBAN_BLOCK,
|
GOBAN_BLOCK
|
||||||
new QuiltItemSettings().group(ItemGroup.MISC)));
|
);
|
||||||
|
Registry.register(
|
||||||
|
Registry.ITEM,
|
||||||
|
new ResourceLocation("skunkstuff", "goban"),
|
||||||
|
new BlockItem(GOBAN_BLOCK,
|
||||||
|
new QuiltItemSettings().group(CreativeModeTab.TAB_MISC)
|
||||||
|
)
|
||||||
|
);
|
||||||
LOGGER.info("Hello Quilt world from {}!", mod.metadata().name());
|
LOGGER.info("Hello Quilt world from {}!", mod.metadata().name());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue