-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Obsidian Lantern item entry Added temp texture for obsidian lantern Added en_us translation file Folder structure setup Mod properties setup
- Loading branch information
1 parent
93db0a4
commit 5bcbeca
Showing
5 changed files
with
60 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/main/java/net/lord_of_owls/ancientcityenhancement/item/ModCreativeModeTabs.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package net.lord_of_owls.ancientcityenhancement.item; | ||
|
||
import net.lord_of_owls.ancientcityenhancement.AncientCityEnhancement; | ||
import net.minecraft.core.registries.Registries; | ||
import net.minecraft.network.chat.Component; | ||
import net.minecraft.world.item.CreativeModeTab; | ||
import net.minecraft.world.item.ItemStack; | ||
import net.minecraftforge.eventbus.api.IEventBus; | ||
import net.minecraftforge.registries.DeferredRegister; | ||
import net.minecraftforge.registries.RegistryObject; | ||
|
||
public class ModCreativeModeTabs { | ||
public static final DeferredRegister<CreativeModeTab> CREATIVE_MODE_TABS = DeferredRegister.create( Registries.CREATIVE_MODE_TAB, AncientCityEnhancement.MOD_ID ); | ||
|
||
public static RegistryObject<CreativeModeTab> ANCIENT_TAB = CREATIVE_MODE_TABS.register( "ancient_tab", () -> CreativeModeTab.builder().icon( () -> new ItemStack( ModItems.OBSIDIAN_LANTERN.get() ) ).title( Component.translatable("creativemodetab.ancient_tab") ).build() ); | ||
|
||
public static void register( IEventBus eventBus ) { | ||
CREATIVE_MODE_TABS.register( eventBus ); | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/java/net/lord_of_owls/ancientcityenhancement/item/ModItems.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package net.lord_of_owls.ancientcityenhancement.item; | ||
|
||
import net.lord_of_owls.ancientcityenhancement.AncientCityEnhancement; | ||
import net.minecraft.world.item.Item; | ||
import net.minecraftforge.eventbus.api.IEventBus; | ||
import net.minecraftforge.registries.DeferredRegister; | ||
import net.minecraftforge.registries.ForgeRegistries; | ||
import net.minecraftforge.registries.RegistryObject; | ||
|
||
public class ModItems { | ||
public static final DeferredRegister<Item> ITEMS = DeferredRegister.create( ForgeRegistries.ITEMS, AncientCityEnhancement.MOD_ID ); | ||
|
||
public static final RegistryObject<Item> OBSIDIAN_LANTERN = ITEMS.register( "obsidian_lantern", () -> new Item( new Item.Properties() ) ); | ||
|
||
|
||
public static void register( IEventBus eventBus ) { | ||
ITEMS.register( eventBus ); | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
src/main/resources/assets/ancientcityenhancement/lang/en_us.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"item.ancientcityenhancement.obsidian_lantern": "Obsidian Lantern", | ||
"creativemodetab.ancient_tab": "Ancient Tab" | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/ancientcityenhancement/models/item/obsidian_lantern.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "minecraft:item/generated", | ||
"textures": { | ||
"layer0": "ancientcityenhancement:item/obsidian_lantern" | ||
} | ||
} |