mirror of
https://github.com/JonasunderscoreJones/NotEnoughCursedness.git
synced 2025-10-22 20:19:19 +02:00
replaced "nec" with MOD_ID
This commit is contained in:
parent
62c793a58c
commit
6fd2e6a90e
3 changed files with 27 additions and 21 deletions
|
@ -11,6 +11,8 @@ import net.minecraft.registry.Registries;
|
|||
import net.minecraft.registry.Registry;
|
||||
import net.minecraft.util.Identifier;
|
||||
|
||||
import static me.jonasjones.nec.NotEnoughCursedness.MOD_ID;
|
||||
|
||||
public class ModBlocks {
|
||||
public static final Block GREEN_BIRCH_LOG = new PillarBlock(FabricBlockSettings.of(Material.WOOD).strength(4.0f));
|
||||
public static final Block BLAZE_BLOCK = new Block(FabricBlockSettings.of(Material.STONE).strength(4.0F));
|
||||
|
@ -38,32 +40,32 @@ public class ModBlocks {
|
|||
//public static final Block STRIPPED_GREEN_BIRCH_WOOD = new PillarBlock(FabricBlockSettings.of(Material.WOOD).strength(4.0f));
|
||||
|
||||
public static void register() {
|
||||
BLAZE_BLOCK_BLOCK = Registry.register(Registries.BLOCK, new Identifier("nec", "blaze_block"), BLAZE_BLOCK);
|
||||
BLAZE_BLOCK_ITEM = Registry.register(Registries.ITEM, new Identifier("nec", "blaze_block"), new BlockItem(BLAZE_BLOCK, new FabricItemSettings()));
|
||||
BLAZE_BLOCK_BLOCK = Registry.register(Registries.BLOCK, new Identifier(MOD_ID, "blaze_block"), BLAZE_BLOCK);
|
||||
BLAZE_BLOCK_ITEM = Registry.register(Registries.ITEM, new Identifier(MOD_ID, "blaze_block"), new BlockItem(BLAZE_BLOCK, new FabricItemSettings()));
|
||||
ModRegistries.register_item(BLAZE_BLOCK_ITEM);
|
||||
|
||||
GREEEN_BIRCH_LOG_BLOCK = Registry.register(Registries.BLOCK, new Identifier("nec", "green_birch_log"), GREEN_BIRCH_LOG);
|
||||
GREEN_BIRCH_LOG_ITEM = Registry.register(Registries.ITEM, new Identifier("nec", "green_birch_log"), new BlockItem(GREEN_BIRCH_LOG, new FabricItemSettings()));
|
||||
GREEEN_BIRCH_LOG_BLOCK = Registry.register(Registries.BLOCK, new Identifier(MOD_ID, "green_birch_log"), GREEN_BIRCH_LOG);
|
||||
GREEN_BIRCH_LOG_ITEM = Registry.register(Registries.ITEM, new Identifier(MOD_ID, "green_birch_log"), new BlockItem(GREEN_BIRCH_LOG, new FabricItemSettings()));
|
||||
ModRegistries.register_item(GREEN_BIRCH_LOG_ITEM);
|
||||
|
||||
GUN_BLOCK_BLOCK = Registry.register(Registries.BLOCK, new Identifier("nec", "gun_block"), GUN_BLOCK);
|
||||
GUN_BLOCK_ITEM = Registry.register(Registries.ITEM, new Identifier("nec", "gun_block"), new BlockItem(GUN_BLOCK, new FabricItemSettings()));
|
||||
GUN_BLOCK_BLOCK = Registry.register(Registries.BLOCK, new Identifier(MOD_ID, "gun_block"), GUN_BLOCK);
|
||||
GUN_BLOCK_ITEM = Registry.register(Registries.ITEM, new Identifier(MOD_ID, "gun_block"), new BlockItem(GUN_BLOCK, new FabricItemSettings()));
|
||||
ModRegistries.register_item(GUN_BLOCK_ITEM);
|
||||
|
||||
DIAMOND_ORE_ORE_BLOCK = Registry.register(Registries.BLOCK, new Identifier("nec", "diamond_ore_ore"), DIAMOND_ORE_ORE);
|
||||
DIAMOND_ORE_ORE_ITEM = Registry.register(Registries.ITEM, new Identifier("nec", "diamond_ore_ore"), new BlockItem(DIAMOND_ORE_ORE, new FabricItemSettings()));
|
||||
DIAMOND_ORE_ORE_BLOCK = Registry.register(Registries.BLOCK, new Identifier(MOD_ID, "diamond_ore_ore"), DIAMOND_ORE_ORE);
|
||||
DIAMOND_ORE_ORE_ITEM = Registry.register(Registries.ITEM, new Identifier(MOD_ID, "diamond_ore_ore"), new BlockItem(DIAMOND_ORE_ORE, new FabricItemSettings()));
|
||||
ModRegistries.register_item(DIAMOND_ORE_ORE_ITEM);
|
||||
|
||||
DEEPSLATE_DIAMOND_ORE_ORE_BLOCK = Registry.register(Registries.BLOCK, new Identifier("nec", "deepslate_diamond_ore_ore"), DEEPSLATE_DIAMOND_ORE_ORE);
|
||||
DEEPSLATE_DIAMOND_ORE_ORE_ITEM = Registry.register(Registries.ITEM, new Identifier("nec", "deepslate_diamond_ore_ore"), new BlockItem(DEEPSLATE_DIAMOND_ORE_ORE, new FabricItemSettings()));
|
||||
DEEPSLATE_DIAMOND_ORE_ORE_BLOCK = Registry.register(Registries.BLOCK, new Identifier(MOD_ID, "deepslate_diamond_ore_ore"), DEEPSLATE_DIAMOND_ORE_ORE);
|
||||
DEEPSLATE_DIAMOND_ORE_ORE_ITEM = Registry.register(Registries.ITEM, new Identifier(MOD_ID, "deepslate_diamond_ore_ore"), new BlockItem(DEEPSLATE_DIAMOND_ORE_ORE, new FabricItemSettings()));
|
||||
ModRegistries.register_item(DEEPSLATE_DIAMOND_ORE_ORE_ITEM);
|
||||
|
||||
JAVA_BLOCK_BLOCK = Registry.register(Registries.BLOCK, new Identifier("nec", "java_block"), JAVA_BLOCK);
|
||||
JAVA_BLOCK_ITEM = Registry.register(Registries.ITEM, new Identifier("nec", "java_block"), new BlockItem(JAVA_BLOCK, new FabricItemSettings()));
|
||||
JAVA_BLOCK_BLOCK = Registry.register(Registries.BLOCK, new Identifier(MOD_ID, "java_block"), JAVA_BLOCK);
|
||||
JAVA_BLOCK_ITEM = Registry.register(Registries.ITEM, new Identifier(MOD_ID, "java_block"), new BlockItem(JAVA_BLOCK, new FabricItemSettings()));
|
||||
ModRegistries.register_item(JAVA_BLOCK_ITEM);
|
||||
|
||||
POCKET_BLOCK_BLOCK = Registry.register(Registries.BLOCK, new Identifier("nec", "pocket_block"), POCKET_BLOCK);
|
||||
POCKET_BLOCK_ITEM = Registry.register(Registries.ITEM, new Identifier("nec", "pocket_block"), new BlockItem(POCKET_BLOCK, new FabricItemSettings()));
|
||||
POCKET_BLOCK_BLOCK = Registry.register(Registries.BLOCK, new Identifier(MOD_ID, "pocket_block"), POCKET_BLOCK);
|
||||
POCKET_BLOCK_ITEM = Registry.register(Registries.ITEM, new Identifier(MOD_ID, "pocket_block"), new BlockItem(POCKET_BLOCK, new FabricItemSettings()));
|
||||
ModRegistries.register_item(POCKET_BLOCK_ITEM);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,6 +8,8 @@ import net.minecraft.registry.Registries;
|
|||
import net.minecraft.registry.Registry;
|
||||
import net.minecraft.util.Identifier;
|
||||
|
||||
import static me.jonasjones.nec.NotEnoughCursedness.MOD_ID;
|
||||
|
||||
public class ModItems {
|
||||
private static Item STEEL_ITEM;
|
||||
private static ToolItem DIRT_SWORD_ITEM;
|
||||
|
@ -18,27 +20,27 @@ public class ModItems {
|
|||
|
||||
public static void register() {
|
||||
ToolItem DIRT_SWORD = new SwordItem(DirtToolMaterial.INSTANCE, 1, -3.0F, new Item.Settings());
|
||||
DIRT_SWORD_ITEM = Registry.register(Registries.ITEM, new Identifier("nec", "dirt_sword"), DIRT_SWORD);
|
||||
DIRT_SWORD_ITEM = Registry.register(Registries.ITEM, new Identifier(MOD_ID, "dirt_sword"), DIRT_SWORD);
|
||||
ModRegistries.register_item(DIRT_SWORD_ITEM);
|
||||
|
||||
Item STEEL = new Item(new FabricItemSettings());
|
||||
STEEL_ITEM = Registry.register(Registries.ITEM, new Identifier("nec", "steel"), STEEL);
|
||||
STEEL_ITEM = Registry.register(Registries.ITEM, new Identifier(MOD_ID, "steel"), STEEL);
|
||||
ModRegistries.register_item(STEEL_ITEM);
|
||||
|
||||
Item NEGATIVE_FLINT = new Item(new FabricItemSettings());
|
||||
NEGATIVE_FLINT_ITEM = Registry.register(Registries.ITEM, new Identifier("nec", "negative_flint"), NEGATIVE_FLINT);
|
||||
NEGATIVE_FLINT_ITEM = Registry.register(Registries.ITEM, new Identifier(MOD_ID, "negative_flint"), NEGATIVE_FLINT);
|
||||
ModRegistries.register_item(NEGATIVE_FLINT_ITEM);
|
||||
|
||||
Item LETTER = new Item(new FabricItemSettings());
|
||||
LETTER_ITEM = Registry.register(Registries.ITEM, new Identifier("nec", "letter"), LETTER);
|
||||
LETTER_ITEM = Registry.register(Registries.ITEM, new Identifier(MOD_ID, "letter"), LETTER);
|
||||
ModRegistries.register_item(LETTER_ITEM);
|
||||
|
||||
Item CHAINMAIL = new Item(new FabricItemSettings());
|
||||
CHAINMAIL_ITEM = Registry.register(Registries.ITEM, new Identifier("nec", "chainmail"), CHAINMAIL);
|
||||
CHAINMAIL_ITEM = Registry.register(Registries.ITEM, new Identifier(MOD_ID, "chainmail"), CHAINMAIL);
|
||||
ModRegistries.register_item(CHAINMAIL_ITEM);
|
||||
|
||||
Item AK47 = new Item(new FabricItemSettings());
|
||||
AK47_ITEM = Registry.register(Registries.ITEM, new Identifier("nec", "ak_47"), AK47);
|
||||
AK47_ITEM = Registry.register(Registries.ITEM, new Identifier(MOD_ID, "ak_47"), AK47);
|
||||
ModRegistries.register_item(AK47_ITEM);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,9 +11,11 @@ import net.minecraft.item.Item;
|
|||
import net.minecraft.item.ItemGroup;
|
||||
import net.minecraft.util.Identifier;
|
||||
|
||||
import static me.jonasjones.nec.NotEnoughCursedness.MOD_ID;
|
||||
|
||||
public class ModRegistries {
|
||||
|
||||
static final ItemGroup ITEM_GROUP = FabricItemGroup.builder(new Identifier("nec", "not_enough_cursedness"))
|
||||
static final ItemGroup ITEM_GROUP = FabricItemGroup.builder(new Identifier(MOD_ID, "not_enough_cursedness"))
|
||||
.icon(() -> ModBlocks.GREEN_BIRCH_LOG_ITEM.getDefaultStack())
|
||||
.build();
|
||||
public static void registerModStuffs() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue