+ Added sapphire item

main
Herobane 11 months ago
parent 0467d0a5ee
commit 3d12817b9a

@ -41,8 +41,11 @@ public class Learning {
}
private void addCreative(BuildCreativeModeTabContentsEvent event) {
if (event.getTabKey() == CreativeModeTabs.INGREDIENTS)
if (event.getTabKey() == CreativeModeTabs.INGREDIENTS) {
event.accept(ModItems.RUBY);
event.accept(ModItems.SAPPHIRE);
}
}
@SubscribeEvent

@ -10,7 +10,10 @@ import net.minecraftforge.registries.RegistryObject;
public class ModItems {
public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, Learning.MODID);
// Simple Items
public static final RegistryObject<Item> RUBY = ITEMS.register("ruby", () -> new Item(new Item.Properties()));
public static final RegistryObject<Item> SAPPHIRE = ITEMS.register("sapphire", () -> new Item(new Item.Properties()));
public static void register(IEventBus eventBus) {
ITEMS.register(eventBus);

@ -1,3 +1,4 @@
{
"item.learning.ruby": "Ruby"
"item.learning.ruby": "Ruby",
"item.learning.sapphire": "Sapphire"
}

@ -1,3 +1,4 @@
{
"item.learning.ruby": "Rubis"
"item.learning.ruby": "Rubis",
"item.learning.sapphire": "Saphir"
}

@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "learning:item/sapphire"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 736 B

Loading…
Cancel
Save