Skip to content

Commit

Permalink
Add CCL To Dep List, Remove Mod Tooltip, Change Mod Name
Browse files Browse the repository at this point in the history
  • Loading branch information
IntegerLimit committed Jan 4, 2024
1 parent fb3c2ff commit 883c477
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 16 deletions.
3 changes: 3 additions & 0 deletions dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@
dependencies {
implementation rfg.deobf("curse.maven:storage-drawers-223852:2952606")
implementation rfg.deobf("curse.maven:chameleon-230497:2450900")

runtimeOnly rfg.deobf("curse.maven:codechicken-lib-1-8-242818:2779848") // Version 3.2.3.358
runtimeOnly rfg.deobf("maven.modrinth:gregtech-ce-unofficial:Kff6K1WR") // Version 2.8.5
}
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
modName = Gregtech Drawers
modName = GregTech Drawers

# This is a case-sensitive string to identify your mod. Convention is to use lower case.
modId = gregtechdrawers
Expand Down Expand Up @@ -113,7 +113,7 @@ curseForgeProjectId = 845779
# Where type can be one of [requiredDependency, embeddedLibrary, optionalDependency, tool, incompatible],
# and the name is the CurseForge project slug of the other mod.
# Example: requiredDependency:railcraft;embeddedLibrary:cofhlib;incompatible:buildcraft
curseForgeRelations = requiredDependency:storage-drawers;requiredDependency:chameleon;requiredDependency:gregtech-ce-unofficial;
curseForgeRelations = requiredDependency:storage-drawers;requiredDependency:chameleon;requiredDependency:gregtech-ce-unofficial;requiredDependency:codechicken-lib-1-8;

# This project's release type on CurseForge and/or Modrinth
# Alternatively this can be set with the 'RELEASE_TYPE' environment variable.
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/nomiceu/gregtechdrawers/GTDrawers.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@
name = GTDrawers.NAME,
acceptedMinecraftVersions = "[1.12.2,1.13)",
dependencies = "required:forge@[14.23.5.2847,);"
+ "required-after:codechickenlib@[3.2.3,);"
+ "required-after:gregtech@[2.6,);"
+ "required-after:storagedrawers;")
public class GTDrawers {
public static final String MODID = "gregtechdrawers";

public static final String NAME = "Gregtech Drawers";
public static final String NAME = "GregTech Drawers";

@Instance(GTDrawers.MODID)
public static GTDrawers instance;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ public int getMetadata(int damage) {
@SideOnly(Side.CLIENT)
public void addInformation(@Nonnull ItemStack itemStack, @Nullable World world, List<String> list, ITooltipFlag advanced) {
list.add(I18n.format("storagedrawers.material", I18n.format("storagedrawers.material." + this.mod + '.' + this.material)));
if(advanced.isAdvanced())
list.add(I18n.format("storagedrawers.mod", mod.getModName()));
list.add(I18n.format("storagedrawers.drawers.description", getCapacityForBlock(itemStack)));

if(itemStack.hasTagCompound() && itemStack.getTagCompound().hasKey("tile"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,4 @@ public ItemGTTrim(BlockGTTrim block) {
public String getItemStackDisplayName(ItemStack stack) {
return I18n.format("storagedrawers.trim", I18n.format("storagedrawers.material." + this.mod + '.' + this.material), super.getItemStackDisplayName(stack));
}

@Override
@SideOnly(Side.CLIENT)
public void addInformation(@Nonnull ItemStack itemStack, @Nullable World world, List<String> list, ITooltipFlag advanced) {
if(advanced.isAdvanced())
list.add(I18n.format("storagedrawers.mod", mod.getModName()));
}
}
1 change: 0 additions & 1 deletion src/main/resources/assets/gregtechdrawers/lang/en_us.lang
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
itemGroup.gregtechdrawers=GregTech Drawers
storagedrawers.mod=Mod: %s
storagedrawers.trim=%1$s %2$s
tile.storagedrawers.trim.name=Trim

Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/mcmod.info
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[{
"modid": "gregtechdrawers",
"name": "Gregtech Drawers",
"description": "Rubber and Treated Wood Drawers from GTCEu",
"name": "GregTech Drawers",
"description": "Rubber and Treated Wood Drawers from GTCEu!",
"version": "${version}",
"mcversion": "${mcversion}",
"logoFile": "assets/gregtechdrawers/textures/logo.png",
"url": "https://www.curseforge.com/minecraft/mc-mods/gregtech-drawers",
"authorList": [ "integerlimit_", "ung3froren", "Raptor__" ],
"credits": "Forked from Storage Drawers KAPPA Addon by ung3froren",
"credits": "Forked from Storage Drawers KAPPA Addon by ung3froren.",
"dependencies": [
"storagedrawers",
"gregtech"
Expand Down

0 comments on commit 883c477

Please sign in to comment.