added tourmaline item
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -38,3 +38,4 @@ hs_err_*.log
|
|||||||
replay_*.log
|
replay_*.log
|
||||||
*.hprof
|
*.hprof
|
||||||
*.jfr
|
*.jfr
|
||||||
|
/.sdkmanrc
|
||||||
|
|||||||
3
.sdkmanrc
Normal file
3
.sdkmanrc
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# Enable auto-env through the sdkman_auto_env config
|
||||||
|
# Add key=value pairs of SDKs to use below
|
||||||
|
java=21.0.7-tem
|
||||||
@@ -4,14 +4,14 @@ org.gradle.parallel=true
|
|||||||
|
|
||||||
# Fabric Properties
|
# Fabric Properties
|
||||||
# check these on https://fabricmc.net/develop
|
# check these on https://fabricmc.net/develop
|
||||||
minecraft_version=1.21.5
|
minecraft_version=1.21.2
|
||||||
yarn_mappings=1.21.5+build.1
|
yarn_mappings=1.21.2+build.1
|
||||||
loader_version=0.16.13
|
loader_version=0.16.13
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version=1.0.0
|
mod_version=0.0.1-1.21.2
|
||||||
maven_group=com.smithy.darcevo
|
maven_group=com.smithy.darcevo
|
||||||
archives_base_name=darcevo
|
archives_base_name=darcevo
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
fabric_version=0.121.0+1.21.5
|
fabric_version=0.106.1+1.21.2
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.smithy.darcevo;
|
package com.smithy.darcevo;
|
||||||
|
|
||||||
|
import com.smithy.darcevo.items.TourmalineItems;
|
||||||
import net.fabricmc.api.ModInitializer;
|
import net.fabricmc.api.ModInitializer;
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
@@ -7,18 +8,12 @@ import org.slf4j.LoggerFactory;
|
|||||||
|
|
||||||
public class DarcEvolution implements ModInitializer {
|
public class DarcEvolution implements ModInitializer {
|
||||||
public static final String MOD_ID = "darcevo";
|
public static final String MOD_ID = "darcevo";
|
||||||
|
|
||||||
// This logger is used to write text to the console and the log file.
|
|
||||||
// It is considered best practice to use your mod id as the logger's name.
|
|
||||||
// That way, it's clear which mod wrote info, warnings, and errors.
|
|
||||||
public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);
|
public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onInitialize() {
|
public void onInitialize() {
|
||||||
// This code runs as soon as Minecraft is in a mod-load-ready state.
|
|
||||||
// However, some things (like resources) may still be uninitialized.
|
|
||||||
// Proceed with mild caution.
|
|
||||||
|
|
||||||
LOGGER.info("Hello Fabric world!");
|
TourmalineItems.registerTourmalineItems();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
21
src/main/java/com/smithy/darcevo/items/SapphireItems.java
Normal file
21
src/main/java/com/smithy/darcevo/items/SapphireItems.java
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
package com.smithy.darcevo.items;
|
||||||
|
|
||||||
|
import com.smithy.darcevo.DarcEvolution;
|
||||||
|
import net.minecraft.item.Item;
|
||||||
|
import net.minecraft.registry.Registries;
|
||||||
|
import net.minecraft.registry.Registry;
|
||||||
|
import net.minecraft.util.Identifier;
|
||||||
|
|
||||||
|
public class SapphireItems {
|
||||||
|
|
||||||
|
// helper method to more easily create and register items
|
||||||
|
private static Item registerItem(String name, Item item) {
|
||||||
|
return Registry.register(Registries.ITEM, Identifier.of(DarcEvolution.MOD_ID, name), item);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public static void registerSapphireItems() {
|
||||||
|
DarcEvolution.LOGGER.info("Sapphire items loaded.");
|
||||||
|
}
|
||||||
|
}
|
||||||
24
src/main/java/com/smithy/darcevo/items/TourmalineItems.java
Normal file
24
src/main/java/com/smithy/darcevo/items/TourmalineItems.java
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
package com.smithy.darcevo.items;
|
||||||
|
|
||||||
|
import com.smithy.darcevo.DarcEvolution;
|
||||||
|
import net.minecraft.item.Item;
|
||||||
|
import net.minecraft.registry.Registries;
|
||||||
|
import net.minecraft.registry.Registry;
|
||||||
|
import net.minecraft.registry.RegistryKey;
|
||||||
|
import net.minecraft.registry.RegistryKeys;
|
||||||
|
import net.minecraft.util.Identifier;
|
||||||
|
|
||||||
|
public class TourmalineItems {
|
||||||
|
|
||||||
|
public static final Item TOURMALINE = registerItem("tourmaline", new Item(new Item.Settings()
|
||||||
|
.registryKey(RegistryKey.of(RegistryKeys.ITEM, Identifier.of(DarcEvolution.MOD_ID, "tourmaline")))));
|
||||||
|
|
||||||
|
// helper method to more easily create and register items
|
||||||
|
private static Item registerItem(String name, Item item) {
|
||||||
|
return Registry.register(Registries.ITEM, Identifier.of(DarcEvolution.MOD_ID, name), item);
|
||||||
|
};
|
||||||
|
|
||||||
|
public static void registerTourmalineItems() {
|
||||||
|
DarcEvolution.LOGGER.info("Tourmaline items loaded.");
|
||||||
|
}
|
||||||
|
}
|
||||||
4
src/main/resources/assets/darcevo/lang/en_us.json
Normal file
4
src/main/resources/assets/darcevo/lang/en_us.json
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
//-----Tourmaline Items-----//
|
||||||
|
"item.darcevo.tourmaline": "Tourmaline"
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "minecraft:item/generated",
|
||||||
|
"textures": {
|
||||||
|
"layer0": "darcevo:item/tourmaline"
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
src/main/resources/assets/darcevo/textures/item/tourmaline.png
Normal file
BIN
src/main/resources/assets/darcevo/textures/item/tourmaline.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.9 KiB |
@@ -3,7 +3,7 @@
|
|||||||
"id": "darcevo",
|
"id": "darcevo",
|
||||||
"version": "${version}",
|
"version": "${version}",
|
||||||
"name": "Darc Evolution",
|
"name": "Darc Evolution",
|
||||||
"description": "This is an example description! Tell everyone what your mod is about!",
|
"description": "This mod is a magic-tech mod that is heavily inspired by orespawn as well as spectrum",
|
||||||
"authors": [
|
"authors": [
|
||||||
"Me!"
|
"Me!"
|
||||||
],
|
],
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
],
|
],
|
||||||
"depends": {
|
"depends": {
|
||||||
"fabricloader": ">=0.16.13",
|
"fabricloader": ">=0.16.13",
|
||||||
"minecraft": "~1.21.5",
|
"minecraft": "~1.21.2",
|
||||||
"java": ">=21",
|
"java": ">=21",
|
||||||
"fabric-api": "*"
|
"fabric-api": "*"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user