adding texture for pickaxehead

This commit is contained in:
Mohammad-Ali Minaie
2017-03-13 21:22:29 -04:00
parent 8fdbfc1bdc
commit 9017d6ac0f
20 changed files with 52 additions and 243 deletions

View File

@@ -22,8 +22,8 @@ import nmd.primal.forgecraft.proxy.CommonProxy;
@Mod( modid = ModInfo.MOD_ID,
name = ModInfo.MOD_NAME,
version = ModInfo.MOD_VERSION,
acceptedMinecraftVersions = ModInfo.MC_VERSIONS
//dependencies = ModInfo.DEPENDENCIES,
acceptedMinecraftVersions = ModInfo.MC_VERSIONS,
dependencies = ModInfo.DEPENDENCIES
//guiFactory = ModInfo.GUI_FACTORY,
//updateJSON = ModInfo.UPDATE_JSON
)

View File

@@ -18,8 +18,10 @@ public class ModInfo {
public static final String MOD_NAME = "Kitsu's ForgeCraft";
//public static final String MOD_PREFIX = MOD_ID + ":";
public static final String MOD_CHANNEL = MOD_ID;
public static final String MOD_VERSION = "1.1.12";
public static final String MOD_VERSION = "1.1.2";
public static final String MC_VERSIONS = "[1.11.0, 1.12.0)";
public static final String DEPENDENCIES = "required-after:forge@[13.20.0.2226,);"
+ "after:primal;";
/** Mod Structures **/
public static final String SERVER_PROXY = "nmd.primal.forgecraft.proxy.ServerProxy";

View File

@@ -36,12 +36,31 @@ public class PickaxePart extends ToolPart {
{
if (item.hasTagCompound()) {
if (item.getSubCompound("tags").getBoolean("hot") == true) {
return 1.0F;
if (item.getSubCompound("tags").getInteger("modifiers") >= 0) {
if ( (item.getSubCompound("tags").getBoolean("emerald") == false) &&
(item.getSubCompound("tags").getInteger("diamond") >= 0) &&
(item.getSubCompound("tags").getInteger("redstone") >= 0) &&
(item.getSubCompound("tags").getInteger("lapis") >= 0)) {
return 1.0F;
}
if ( item.getSubCompound("tags").getBoolean("emerald") == true &&
(item.getSubCompound("tags").getInteger("diamond") >= 0) &&
(item.getSubCompound("tags").getInteger("redstone") >= 0) &&
(item.getSubCompound("tags").getInteger("lapis") >= 0)) {
return 1.0F;
}
}
}
if (item.getSubCompound("tags").getBoolean("hot") == false) {
if (item.getSubCompound("tags").getInteger("modifiers") == 0) {
return 0.0F;
if (item.getSubCompound("tags").getInteger("modifiers") >= 0) {
if ( (item.getSubCompound("tags").getBoolean("emerald") == false) ||
(item.getSubCompound("tags").getBoolean("emerald") == true) &&
(item.getSubCompound("tags").getInteger("diamond") >= 0) &&
(item.getSubCompound("tags").getInteger("redstone") >= 0) &&
(item.getSubCompound("tags").getInteger("lapis") >= 0)) {
return 0.0F;
}
}
}

View File

@@ -142,7 +142,7 @@ public class TileForge extends TileBaseSlot implements ITickable {
if (cookCounter4 >= recipe.getIdealTime()) {
if(this.getSlotStack(i).hasTagCompound()){
this.getSlotStack(i).getSubCompound("tags").setBoolean("hot", true);
//System.out.println("its hot now");
System.out.println("its hot now");
} else this.setSlotStack(i, recipe.getOutput());
cookCounter4 = 0;
}

View File

@@ -1,13 +1,14 @@
{
"parent": "forgecraft:item/pickaxehead",
"textures": {
"particle": "forgecraft:blocks/iron_ingot",
"particle": "forgecraft:items/iron_ingot",
"texture": "blocks/planks_oak",
"texture1": "forgecraft:blocks/iron_ingot"
"texture1": "forgecraft:items/iron_ingot"
},
"overrides": [
{"predicate": {"type": 0.0},"model": "forgecraft:item/ironpickaxehead_0"},
{"predicate": {"type": 1.0},"model": "forgecraft:item/ironpickaxehead_1"}
{"predicate": {"type": 1.0},"model": "forgecraft:item/ironpickaxehead_1"},
{"predicate": {"type": 0.1},"model": "forgecraft:item/ironpickaxehead_2"}
]
}

View File

@@ -1,8 +1,8 @@
{
"parent": "forgecraft:item/pickaxehead",
"textures": {
"particle": "forgecraft:blocks/iron_ingot",
"particle": "forgecraft:items/iron_ingot",
"texture": "blocks/planks_oak",
"texture1": "forgecraft:blocks/iron_ingot"
"texture1": "forgecraft:items/iron_ingot"
}
}

View File

@@ -1,8 +1,8 @@
{
"parent": "forgecraft:item/pickaxehead",
"textures": {
"particle": "forgecraft:blocks/iron_ingot_hot",
"particle": "forgecraft:items/iron_ingot_hot",
"texture": "blocks/planks_oak",
"texture1": "forgecraft:blocks/iron_ingot_hot"
"texture1": "forgecraft:items/iron_ingot_hot"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "forgecraft:item/pickaxehead",
"textures": {
"particle": "forgecraft:items/iron_ingot_emerald1",
"texture": "blocks/planks_oak",
"texture1": "forgecraft:items/iron_ingot_emerald1"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 714 B

After

Width:  |  Height:  |  Size: 741 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 741 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 912 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 801 B

View File

@@ -2,7 +2,7 @@
"modid": "forgecraft",
"name": "Kitsu's Forgecraft",
"description": "Forged with sweat and blood",
"version": "1.1.12",
"version": "1.1.2",
"mcversion": "1.11.2",
"url": "",
"updateUrl": "",