Jump to content

[1.7.2] Github Questions. [SOLVED!]


ianno1993

Recommended Posts

You can probably somehow change it. But it's a standardized setup (specified by maven), so there really is no point in doing so. Most java projects use it.

 

Well the thing is, we are using Github to sync stuff between me and my friend, and the name of the repository is the name of the folder it syncs with. so the name main was inconvenient  to use as the repository name.

 

The problem we have now is everything works the name from the en_US.lang file, but not the textures.

 

Here is our map structure:

7ajsl.png

 

The code we use for the texture:

package dmmt.dp.blocks.rawores;

import java.util.Random;

import dmmt.dp.main.Main;
import dmmt.dp.main.ModInfo;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;

public class TitaniumOre extends Block {

public TitaniumOre(int i, Material par2Material) {
	super(par2Material);

	setHardness(5.0F);
	setStepSound(Block.soundTypeStone);
	setBlockName("titaniumOre");
	setCreativeTab(CreativeTabs.tabBlock);
	setBlockTextureName(ModInfo.NAME.toLowerCase() + ":titaniumOre");
}
}

 

And the modinfo.java code:

package dmmt.dp.main;

public class ModInfo {

public static final String ID = "dmmt-dutchpower";
public static final String NAME = "dmmt-dutchpower";
public static final String VERSION = "1.7.2 - 0.0.00A";
public static final String CLIENTPROXY = "dmmt.dp.main.client.";
public static final String COMMONPROXY = "dmmt.dp.main.";

}

Link to comment
Share on other sites

Why are you syncing the src folder you should sync the ENTIRE project.

gradlew

gradlew.bat

build.gradle

gradle/

src/

That should be your git repo.

 

Hhmm okay, If we dont could that cause strange derps in the mod if we dont sync everything, like we have here:

Link to comment
Share on other sites

Why are you syncing the src folder you should sync the ENTIRE project.

gradlew

gradlew.bat

build.gradle

gradle/

src/

That should be your git repo.

 

NVM that should fix any derps... like we will have the default route to the textures and stuff like that. Thanks you allot! You are a true Coding God :D

Hhmm okay, If we dont could that cause strange derps in the mod if we dont sync everything, like we have here:

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.