Skip to content

Commit

Permalink
Add Tiny Coke
Browse files Browse the repository at this point in the history
  • Loading branch information
IntegerLimit committed Oct 17, 2024
1 parent 5533a02 commit a5f947b
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/main/java/com/nomiceu/nomilabs/item/ItemTinyCoke.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package com.nomiceu.nomilabs.item;

import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.EnumRarity;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;

import org.jetbrains.annotations.NotNull;

import com.nomiceu.nomilabs.util.LabsTranslate;

public class ItemTinyCoke extends ItemBase {

public ItemTinyCoke(ResourceLocation rl, CreativeTabs tab) {
super(rl, tab, EnumRarity.COMMON, 64, new LabsTranslate.Translatable("tooltip.nomilabs.tiny_fuels"));
}

@Override
public int getItemBurnTime(@NotNull ItemStack stack) {
return 200;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ public class LabsItems {

public static ItemBase MAGNETRON;

public static ItemTinyCoke TINY_COKE;

public static ItemInfo INFO_ITEM;

public static ItemBase PULSATING_DUST;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import com.nomiceu.nomilabs.item.ItemBase;
import com.nomiceu.nomilabs.item.ItemInfo;
import com.nomiceu.nomilabs.item.ItemSmore;
import com.nomiceu.nomilabs.item.ItemTinyCoke;

public class LabsMisc {

Expand Down Expand Up @@ -41,6 +42,8 @@ public static void initMisc() {

MAGNETRON = createItem(new ItemBase(makeLabsName("magnetron"), LabsCreativeTabs.TAB_NOMI_LABS));

TINY_COKE = createItem(new ItemTinyCoke(makeLabsName("tiny_coke"), LabsCreativeTabs.TAB_NOMI_LABS));

// Custom model handling is in LabsItems
INFO_ITEM = createItemWithoutModelHandling(new ItemInfo(makeLabsName("info_item"), EnumRarity.EPIC));

Expand Down
3 changes: 3 additions & 0 deletions src/main/resources/assets/nomilabs/lang/en_us.lang
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,7 @@ item.nomilabs.hand_framing_tool.desc4=If you wish to frame the tool in a Craftin
item.nomilabs.hand_framing_tool.desc5=Then, once the tool is framed, right clicking any drawers in-world will frame them.
item.nomilabs.hand_framing_tool.desc6=When right clicking any wood-type drawers in world, they will also be turned into framed drawers.

item.nomilabs.tiny_coke.name=Tiny Coke
item.nomilabs.info_item.name=Information

item.nomilabs.pulsatingdust.name=Pulsating Dust
Expand Down Expand Up @@ -649,6 +650,8 @@ tooltip.nomilabs.info.ae2-stuff.3=§eAll Existing Items §l(including in Pattern
tooltip.nomilabs.info.ae2-stuff.4=§eBlocks, and usages in Recipes,§r
tooltip.nomilabs.info.ae2-stuff.5=§ehave been replaced by AE2 Interfaces.§r

tooltip.nomilabs.tiny_fuels=Smelts Exactly One Item in a Furnace!

# Multiblocks
tooltip.nomilabs.microverse_projector_1.description=§8A machine capable of stabilizing projection into microverses for basic micro miner missions.§r
tooltip.nomilabs.microverse_projector_2.description=§8An advanced machine capable of stabilizing projection into microverses for complex missions into the deepest parts of space.§r
Expand Down
6 changes: 6 additions & 0 deletions src/main/resources/assets/nomilabs/models/item/tiny_coke.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "nomilabs:items/tiny_coke"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a5f947b

Please sign in to comment.