all tools complete

This commit is contained in:
Mohammad-Ali Minaie
2017-03-21 22:31:33 -04:00
parent 770e46795a
commit 958633ff2a
87 changed files with 2428 additions and 824 deletions

View File

@@ -2,9 +2,9 @@ To-Dos
*** Priority *** *** Priority ***
- [ ] Create the hoe Item - [ ] Create the hoe Item
- [x] Create the axe Item
- [ ] Create the shovel Item
- [ ] Create the Sword Model - [ ] Create the Sword Model
- [ ] Add randomInt to anvil
*** Backlog *** *** Backlog ***
- [ ] Create a method which adds the types of NBT upgrades and creates a unique float instead of using magic numbers - [ ] Create a method which adds the types of NBT upgrades and creates a unique float instead of using magic numbers
@@ -25,6 +25,8 @@ To-Dos
*** Completed *** *** Completed ***
- [x] Create the axe Item
- [x] Create the shovel Item
- [x] Create the axe Model - [x] Create the axe Model
- [x] Create the shovel model - [x] Create the shovel model
- [x] Create the hoe model - [x] Create the hoe model

View File

@@ -75,6 +75,40 @@ public class CommonEvents implements ToolNBT{
} }
} }
} }
if (event.crafting.getItem() == ModItems.ironshovel) {
NBTTagCompound tempTag = new NBTTagCompound();
for (int i = 0; i < event.craftMatrix.getSizeInventory(); i++) { // Checks all the slots
if (event.craftMatrix.getStackInSlot(i) != null) { // If there is an item
ItemStack a = event.craftMatrix.getStackInSlot(i); // Gets the item
if (a.getItem() instanceof ToolPart) {
tempTag = a.getSubCompound("tags").copy();
event.crafting.getTagCompound().setTag("tags", tempTag);
event.crafting.getItem().updateItemStackNBT(event.crafting.getTagCompound());
//if( getDiamondLevel(event.crafting) > 0 ){
// event.crafting.getItem().setHarvestLevel("pickaxe", 3);
//}
}
}
}
}
if (event.crafting.getItem() == ModItems.ironhoe) {
NBTTagCompound tempTag = new NBTTagCompound();
for (int i = 0; i < event.craftMatrix.getSizeInventory(); i++) { // Checks all the slots
if (event.craftMatrix.getStackInSlot(i) != null) { // If there is an item
ItemStack a = event.craftMatrix.getStackInSlot(i); // Gets the item
if (a.getItem() instanceof ToolPart) {
tempTag = a.getSubCompound("tags").copy();
event.crafting.getTagCompound().setTag("tags", tempTag);
event.crafting.getItem().updateItemStackNBT(event.crafting.getTagCompound());
//if( getDiamondLevel(event.crafting) > 0 ){
// event.crafting.getItem().setHarvestLevel("pickaxe", 3);
//}
}
}
}
}
} }
} }

View File

@@ -72,8 +72,7 @@ public class Anvil extends CustomContainerFacing {
} }
@Override @Override
public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, EnumFacing facing, float hitx, float hity, float hitz) public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, EnumFacing facing, float hitx, float hity, float hitz) {
{
if (!world.isRemote) { if (!world.isRemote) {
TileAnvil tile = (TileAnvil) world.getTileEntity(pos); TileAnvil tile = (TileAnvil) world.getTileEntity(pos);
if (tile != null) { if (tile != null) {
@@ -210,12 +209,74 @@ public class Anvil extends CustomContainerFacing {
if (hitx >= this.getNormalMin(x) && hitx <= this.getNormalMax(x)) { if (hitx >= this.getNormalMin(x) && hitx <= this.getNormalMax(x)) {
if (hitz >= this.getNormalMin(z) && hitz <= this.getNormalMax(z)) { if (hitz >= this.getNormalMin(z) && hitz <= this.getNormalMax(z)) {
return doWork(pItem, counter, tile, world, pos, player);
}
}
counter++;
}
}
}
if (state.getValue(FACING) == EnumFacing.SOUTH) {
int counter = 0;
for (int z = 0; z < 5; z++) {
for (int x = 0; x < 5; x++) {
if (hitx >= this.getReverseMin(x) && hitx <= this.getReverseMax(x)) {
if (hitz >= this.getReverseMin(z) && hitz <= this.getReverseMax(z)) {
return doWork(pItem, counter, tile, world, pos, player);
}
}
counter++;
}
}
}
if (state.getValue(FACING) == EnumFacing.WEST) {
int counter = 0;
for (int x = 0; x < 5; x++) {
for (int z = 0; z < 5; z++) {
if (hitx >= this.getNormalMin(x) && hitx <= this.getNormalMax(x)) {
if (hitz >= this.getReverseMin(z) && hitz <= this.getReverseMax(z)) {
return doWork(pItem, counter, tile, world, pos, player);
}
}
counter++;
}
}
}
if (state.getValue(FACING) == EnumFacing.EAST) {
int counter = 0;
for (int x = 0; x < 5; x++) {
for (int z = 0; z < 5; z++) {
if (hitx >= this.getReverseMin(x) && hitx <= this.getReverseMax(x)) {
if (hitz >= this.getNormalMin(z) && hitz <= this.getNormalMax(z)) {
return doWork(pItem, counter, tile, world, pos, player);
}
}
counter++;
}
}
}
}
return false;
}
}
return false;
}
private boolean doWork(ItemStack pItem, Integer counter, TileAnvil tile, World world, BlockPos pos, EntityPlayer player) {
if (pItem.getItem().equals(ModItems.stonetongs)) { if (pItem.getItem().equals(ModItems.stonetongs)) {
//System.out.println("Level 1"); //System.out.println("Level 1");
if ((pItem.getTagCompound().getInteger("type") == 6) || (pItem.getTagCompound().getInteger("type") == 7) || if ((pItem.getTagCompound().getInteger("type") == 6) || (pItem.getTagCompound().getInteger("type") == 7) ||
(pItem.getTagCompound().getInteger("type") == 8) || (pItem.getTagCompound().getInteger("type") == 8) ||
(pItem.getTagCompound().getInteger("type") == 9) || (pItem.getTagCompound().getInteger("type") == 9) ||
(pItem.getTagCompound().getInteger("type") == 10) || (pItem.getTagCompound().getInteger("type") == 10) ||
(pItem.getTagCompound().getInteger("type") == 11) ||
(pItem.getTagCompound().getInteger("type") == 0)) { (pItem.getTagCompound().getInteger("type") == 0)) {
if (!tile.getSlotStack(counter).isEmpty()) { if (!tile.getSlotStack(counter).isEmpty()) {
@@ -287,6 +348,22 @@ public class Anvil extends CustomContainerFacing {
tempStack.getTagCompound().setTag("tags", tags); tempStack.getTagCompound().setTag("tags", tags);
tile.setSlotStack((counter), tempStack); tile.setSlotStack((counter), tempStack);
pItem.getTagCompound().setInteger("type", 0);
pItem.getSubCompound("tags").setBoolean("hot", false);
pItem.getSubCompound("tags").setBoolean("emerald", false);
pItem.getSubCompound("tags").setInteger("diamond", 0);
pItem.getSubCompound("tags").setInteger("redstone", 0);
pItem.getSubCompound("tags").setInteger("lapis", 0);
pItem.getSubCompound("tags").setInteger("modifiers", 0);
return true;
}
if (pItem.getTagCompound().getInteger("type") == 11) {
ItemStack tempStack = new ItemStack(ModItems.ironhoehead, 1);
tempStack.setTagCompound(new NBTTagCompound());
NBTTagCompound tags = pItem.getSubCompound("tags").copy();
tempStack.getTagCompound().setTag("tags", tags);
tile.setSlotStack((counter), tempStack);
pItem.getTagCompound().setInteger("type", 0); pItem.getTagCompound().setInteger("type", 0);
pItem.getSubCompound("tags").setBoolean("hot", false); pItem.getSubCompound("tags").setBoolean("hot", false);
pItem.getSubCompound("tags").setBoolean("emerald", false); pItem.getSubCompound("tags").setBoolean("emerald", false);
@@ -357,184 +434,7 @@ public class Anvil extends CustomContainerFacing {
return true; return true;
} }
} }
} if (tile.getSlotStack(counter).getItem().equals(ModItems.ironhoehead)) {
if (pItem.getItem().equals(Items.DIAMOND)) {
if (tile.getSlotStack(counter).isEmpty()) {
tile.setSlotStack(counter, new ItemStack(pItem.getItem(), 1));
pItem.shrink(1);
return true;
}
}
if (pItem.getItem().equals(Items.EMERALD)) {
if (tile.getSlotStack(counter).isEmpty()) {
tile.setSlotStack(counter, new ItemStack(pItem.getItem(), 1));
pItem.shrink(1);
return true;
}
}
if (pItem.getItem().equals(PrimalItems.EMERALD_KNAPP)) {
if (tile.getSlotStack(counter).isEmpty()) {
tile.setSlotStack(counter, new ItemStack(pItem.getItem(), 1));
pItem.shrink(1);
return true;
}
}
if (pItem.getItem().equals(PrimalItems.DIAMOND_KNAPP)) {
if (tile.getSlotStack(counter).isEmpty()) {
tile.setSlotStack(counter, new ItemStack(pItem.getItem(), 1));
pItem.shrink(1);
return true;
}
}
if (pItem.getItem().equals(Items.REDSTONE)) {
if (tile.getSlotStack(counter).isEmpty()) {
tile.setSlotStack(counter, new ItemStack(pItem.getItem(), 1));
pItem.shrink(1);
return true;
}
}
if (pItem.getItem().equals(Items.DYE) && pItem.getItemDamage() == EnumDyeColor.BLUE.getDyeDamage()) {
if (tile.getSlotStack(counter).isEmpty()) {
tile.setSlotStack(counter, new ItemStack(pItem.getItem(), 1, pItem.getItemDamage()));
pItem.shrink(1);
return true;
}
}
}
}
counter++;
}
}
}
if (state.getValue(FACING) == EnumFacing.SOUTH) {
int counter = 0;
for (int z = 0; z < 5; z++) {
for (int x = 0; x < 5; x++) {
if (hitx >= this.getReverseMin(x) && hitx <= this.getReverseMax(x)) {
if (hitz >= this.getReverseMin(z) && hitz <= this.getReverseMax(z)) {
if (pItem.getItem().equals(ModItems.stonetongs)) {
if ((pItem.getTagCompound().getInteger("type") == 6) ||
(pItem.getTagCompound().getInteger("type") == 7) ||
(pItem.getTagCompound().getInteger("type") == 8) ||
(pItem.getTagCompound().getInteger("type") == 9) ||
(pItem.getTagCompound().getInteger("type") == 0)) {
if (!tile.getSlotStack(counter).isEmpty()) {
if (pItem.getTagCompound().getInteger("type") == 0) {
if (tile.getSlotStack(counter).getItem().equals(ModItems.ironingotballhot)) {
pItem.getTagCompound().setInteger("type", 6);
tile.setSlotStack(counter, ItemStack.EMPTY);
return true;
}
if (tile.getSlotStack(counter).getItem().equals(ModItems.ironchunkhot)) {
pItem.getTagCompound().setInteger("type", 7);
tile.setSlotStack(counter, ItemStack.EMPTY);
//System.out.println(counter);
return true;
}
}
}
if (tile.getSlotStack(counter).isEmpty()) {
if (pItem.getTagCompound().getInteger("type") == 6) {
tile.setSlotStack((counter), new ItemStack(ModItems.ironingotballhot, 1));
pItem.getTagCompound().setInteger("type", 0);
return true;
}
if (pItem.getTagCompound().getInteger("type") == 7) {
tile.setSlotStack((counter), new ItemStack(ModItems.ironchunkhot, 1));
pItem.getTagCompound().setInteger("type", 0);
//System.out.println(counter);
return true;
}
if (pItem.getTagCompound().getInteger("type") == 8) {
ItemStack tempStack = new ItemStack (ModItems.pickaxehead, 1);
tempStack.setTagCompound(new NBTTagCompound());
NBTTagCompound tags = pItem.getSubCompound("tags").copy();
tempStack.getTagCompound().setTag("tags", tags);
tile.setSlotStack((counter), tempStack);
pItem.getTagCompound().setInteger("type", 0);
pItem.getSubCompound("tags").setBoolean("hot", false);
pItem.getSubCompound("tags").setBoolean("emerald", false);
pItem.getSubCompound("tags").setInteger("diamond", 0);
pItem.getSubCompound("tags").setInteger("redstone", 0);
pItem.getSubCompound("tags").setInteger("lapis", 0);
pItem.getSubCompound("tags").setInteger("modifiers", 0);
return true;
}
if (pItem.getTagCompound().getInteger("type") == 9) {
ItemStack tempStack = new ItemStack (ModItems.ironaxehead, 1);
tempStack.setTagCompound(new NBTTagCompound());
NBTTagCompound tags = pItem.getSubCompound("tags").copy();
tempStack.getTagCompound().setTag("tags", tags);
tile.setSlotStack((counter), tempStack);
pItem.getTagCompound().setInteger("type", 0);
pItem.getSubCompound("tags").setBoolean("hot", false);
pItem.getSubCompound("tags").setBoolean("emerald", false);
pItem.getSubCompound("tags").setInteger("diamond", 0);
pItem.getSubCompound("tags").setInteger("redstone", 0);
pItem.getSubCompound("tags").setInteger("lapis", 0);
pItem.getSubCompound("tags").setInteger("modifiers", 0);
return true;
}
}
}
}
//System.out.println("1" + pItem);
if (pItem.getItem().equals(Items.AIR) && player.isSneaking()) {
if (tile.getSlotStack(counter).getItem().equals(Items.DIAMOND)) {
CommonUtils.spawnItemEntityFromWorld(world, pos, tile.getSlotStack(counter));
tile.setSlotStack(counter, ItemStack.EMPTY);
return true;
}
if (tile.getSlotStack(counter).getItem().equals(PrimalItems.DIAMOND_KNAPP)) {
CommonUtils.spawnItemEntityFromWorld(world, pos, tile.getSlotStack(counter));
tile.setSlotStack(counter, ItemStack.EMPTY);
return true;
}
if (tile.getSlotStack(counter).getItem().equals(Items.EMERALD)) {
CommonUtils.spawnItemEntityFromWorld(world, pos, tile.getSlotStack(counter));
tile.setSlotStack(counter, ItemStack.EMPTY);
return true;
}
if (tile.getSlotStack(counter).getItem().equals(PrimalItems.EMERALD_KNAPP)) {
CommonUtils.spawnItemEntityFromWorld(world, pos, tile.getSlotStack(counter));
tile.setSlotStack(counter, ItemStack.EMPTY);
return true;
}
if (tile.getSlotStack(counter).getItem().equals(Items.REDSTONE)) {
CommonUtils.spawnItemEntityFromWorld(world, pos, tile.getSlotStack(counter));
tile.setSlotStack(counter, ItemStack.EMPTY);
return true;
}
if (tile.getSlotStack(counter).getItem().equals(Items.DYE) && tile.getSlotStack(counter).getItemDamage() == EnumDyeColor.BLUE.getDyeDamage()) {
CommonUtils.spawnItemEntityFromWorld(world, pos, tile.getSlotStack(counter));
tile.setSlotStack(counter, ItemStack.EMPTY);
return true;
}
if (tile.getSlotStack(counter).getItem().equals(ModItems.pickaxehead)) {
if(tile.getSlotStack(counter).getSubCompound("tags").getBoolean("hot") == false){
CommonUtils.spawnItemEntityFromWorld(world, pos, tile.getSlotStack(counter));
tile.setSlotStack(counter, ItemStack.EMPTY);
return true;
}
}
if (tile.getSlotStack(counter).getItem().equals(ModItems.ironaxehead)) {
if (tile.getSlotStack(counter).getSubCompound("tags").getBoolean("hot") == false) { if (tile.getSlotStack(counter).getSubCompound("tags").getBoolean("hot") == false) {
CommonUtils.spawnItemEntityFromWorld(world, pos, tile.getSlotStack(counter)); CommonUtils.spawnItemEntityFromWorld(world, pos, tile.getSlotStack(counter));
tile.setSlotStack(counter, ItemStack.EMPTY); tile.setSlotStack(counter, ItemStack.EMPTY);
@@ -590,391 +490,11 @@ public class Anvil extends CustomContainerFacing {
return true; return true;
} }
} }
}
}
counter++;
}
}
}
if (state.getValue(FACING) == EnumFacing.WEST) {
int counter = 0;
for (int x = 0; x < 5; x++) {
for (int z = 0; z < 5; z++) {
if (hitx >= this.getNormalMin(x) && hitx <= this.getNormalMax(x)) {
if (hitz >= this.getReverseMin(z) && hitz <= this.getReverseMax(z)) {
if (pItem.getItem().equals(ModItems.stonetongs)) {
if ((pItem.getTagCompound().getInteger("type") == 6) ||
(pItem.getTagCompound().getInteger("type") == 7) ||
(pItem.getTagCompound().getInteger("type") == 8) ||
(pItem.getTagCompound().getInteger("type") == 9) ||
(pItem.getTagCompound().getInteger("type") == 0)) {
if (!tile.getSlotStack(counter).isEmpty()) {
if (pItem.getTagCompound().getInteger("type") == 0) {
if (tile.getSlotStack(counter).getItem().equals(ModItems.ironingotballhot)) {
pItem.getTagCompound().setInteger("type", 6);
tile.setSlotStack(counter, ItemStack.EMPTY);
return true;
}
if (tile.getSlotStack(counter).getItem().equals(ModItems.ironchunkhot)) {
pItem.getTagCompound().setInteger("type", 7);
tile.setSlotStack(counter, ItemStack.EMPTY);
//System.out.println(counter);
return true;
}
}
}
if (tile.getSlotStack(counter).isEmpty()) {
if (pItem.getTagCompound().getInteger("type") == 6) {
tile.setSlotStack((counter), new ItemStack(ModItems.ironingotballhot, 1));
pItem.getTagCompound().setInteger("type", 0);
return true;
}
if (pItem.getTagCompound().getInteger("type") == 7) {
tile.setSlotStack((counter), new ItemStack(ModItems.ironchunkhot, 1));
pItem.getTagCompound().setInteger("type", 0);
//System.out.println(counter);
return true;
}
if (pItem.getTagCompound().getInteger("type") == 8) {
ItemStack tempStack = new ItemStack (ModItems.pickaxehead, 1);
tempStack.setTagCompound(new NBTTagCompound());
NBTTagCompound tags = pItem.getSubCompound("tags").copy();
tempStack.getTagCompound().setTag("tags", tags);
tile.setSlotStack((counter), tempStack);
pItem.getTagCompound().setInteger("type", 0);
pItem.getSubCompound("tags").setBoolean("hot", false);
pItem.getSubCompound("tags").setBoolean("emerald", false);
pItem.getSubCompound("tags").setInteger("diamond", 0);
pItem.getSubCompound("tags").setInteger("redstone", 0);
pItem.getSubCompound("tags").setInteger("lapis", 0);
pItem.getSubCompound("tags").setInteger("modifiers", 0);
return true;
}
if (pItem.getTagCompound().getInteger("type") == 9) {
ItemStack tempStack = new ItemStack (ModItems.ironaxehead, 1);
tempStack.setTagCompound(new NBTTagCompound());
NBTTagCompound tags = pItem.getSubCompound("tags").copy();
tempStack.getTagCompound().setTag("tags", tags);
tile.setSlotStack((counter), tempStack);
pItem.getTagCompound().setInteger("type", 0);
pItem.getSubCompound("tags").setBoolean("hot", false);
pItem.getSubCompound("tags").setBoolean("emerald", false);
pItem.getSubCompound("tags").setInteger("diamond", 0);
pItem.getSubCompound("tags").setInteger("redstone", 0);
pItem.getSubCompound("tags").setInteger("lapis", 0);
pItem.getSubCompound("tags").setInteger("modifiers", 0);
return true;
}
}
}
}
//System.out.println("1" + pItem);
if (pItem.getItem().equals(Items.AIR) && player.isSneaking()) {
if (tile.getSlotStack(counter).getItem().equals(Items.DIAMOND)) {
CommonUtils.spawnItemEntityFromWorld(world, pos, tile.getSlotStack(counter));
tile.setSlotStack(counter, ItemStack.EMPTY);
return true;
}
if (tile.getSlotStack(counter).getItem().equals(PrimalItems.DIAMOND_KNAPP)) {
CommonUtils.spawnItemEntityFromWorld(world, pos, tile.getSlotStack(counter));
tile.setSlotStack(counter, ItemStack.EMPTY);
return true;
}
if (tile.getSlotStack(counter).getItem().equals(Items.EMERALD)) {
CommonUtils.spawnItemEntityFromWorld(world, pos, tile.getSlotStack(counter));
tile.setSlotStack(counter, ItemStack.EMPTY);
return true;
}
if (tile.getSlotStack(counter).getItem().equals(PrimalItems.EMERALD_KNAPP)) {
CommonUtils.spawnItemEntityFromWorld(world, pos, tile.getSlotStack(counter));
tile.setSlotStack(counter, ItemStack.EMPTY);
return true;
}
if (tile.getSlotStack(counter).getItem().equals(Items.REDSTONE)) {
CommonUtils.spawnItemEntityFromWorld(world, pos, tile.getSlotStack(counter));
tile.setSlotStack(counter, ItemStack.EMPTY);
return true;
}
if (tile.getSlotStack(counter).getItem().equals(Items.DYE) && tile.getSlotStack(counter).getItemDamage() == EnumDyeColor.BLUE.getDyeDamage()) {
CommonUtils.spawnItemEntityFromWorld(world, pos, tile.getSlotStack(counter));
tile.setSlotStack(counter, ItemStack.EMPTY);
return true;
}
if (tile.getSlotStack(counter).getItem().equals(ModItems.pickaxehead)) {
if(tile.getSlotStack(counter).getSubCompound("tags").getBoolean("hot") == false){
CommonUtils.spawnItemEntityFromWorld(world, pos, tile.getSlotStack(counter));
tile.setSlotStack(counter, ItemStack.EMPTY);
return true;
}
}
if (tile.getSlotStack(counter).getItem().equals(ModItems.ironaxehead)) {
if(tile.getSlotStack(counter).getSubCompound("tags").getBoolean("hot") == false){
CommonUtils.spawnItemEntityFromWorld(world, pos, tile.getSlotStack(counter));
tile.setSlotStack(counter, ItemStack.EMPTY);
return true;
}
}
}
if (pItem.getItem().equals(Items.DIAMOND)) {
if (tile.getSlotStack(counter).isEmpty()) {
tile.setSlotStack(counter, new ItemStack(pItem.getItem(), 1));
pItem.shrink(1);
return true;
}
}
if (pItem.getItem().equals(Items.EMERALD)) {
if (tile.getSlotStack(counter).isEmpty()) {
tile.setSlotStack(counter, new ItemStack(pItem.getItem(), 1));
pItem.shrink(1);
return true;
}
}
if (pItem.getItem().equals(PrimalItems.EMERALD_KNAPP)) {
if (tile.getSlotStack(counter).isEmpty()) {
tile.setSlotStack(counter, new ItemStack(pItem.getItem(), 1));
pItem.shrink(1);
return true;
}
}
if (pItem.getItem().equals(PrimalItems.DIAMOND_KNAPP)) {
if (tile.getSlotStack(counter).isEmpty()) {
tile.setSlotStack(counter, new ItemStack(pItem.getItem(), 1));
pItem.shrink(1);
return true;
}
}
if (pItem.getItem().equals(Items.REDSTONE)) {
if (tile.getSlotStack(counter).isEmpty()) {
tile.setSlotStack(counter, new ItemStack(pItem.getItem(), 1));
pItem.shrink(1);
return true;
}
}
if (pItem.getItem().equals(Items.DYE) && pItem.getItemDamage() == EnumDyeColor.BLUE.getDyeDamage()) {
if (tile.getSlotStack(counter).isEmpty()) {
tile.setSlotStack(counter, new ItemStack(pItem.getItem(), 1, pItem.getItemDamage()));
pItem.shrink(1);
return true;
}
}
}
}
counter++;
}
}
}
if (state.getValue(FACING) == EnumFacing.EAST) {
int counter = 0;
for (int x = 0; x < 5; x++) {
for (int z = 0; z < 5; z++) {
if (hitx >= this.getReverseMin(x) && hitx <= this.getReverseMax(x)) {
if (hitz >= this.getNormalMin(z) && hitz <= this.getNormalMax(z)) {
if (pItem.getItem().equals(ModItems.stonetongs)) {
if ((pItem.getTagCompound().getInteger("type") == 6) ||
(pItem.getTagCompound().getInteger("type") == 7) ||
(pItem.getTagCompound().getInteger("type") == 8) ||
(pItem.getTagCompound().getInteger("type") == 9) ||
(pItem.getTagCompound().getInteger("type") == 0)) {
if (!tile.getSlotStack(counter).isEmpty()) {
if (pItem.getTagCompound().getInteger("type") == 0) {
if (tile.getSlotStack(counter).getItem().equals(ModItems.ironingotballhot)) {
pItem.getTagCompound().setInteger("type", 6);
tile.setSlotStack(counter, ItemStack.EMPTY);
return true;
}
if (tile.getSlotStack(counter).getItem().equals(ModItems.ironchunkhot)) {
pItem.getTagCompound().setInteger("type", 7);
tile.setSlotStack(counter, ItemStack.EMPTY);
//System.out.println(counter);
return true;
}
}
}
if (tile.getSlotStack(counter).isEmpty()) {
if (pItem.getTagCompound().getInteger("type") == 6) {
tile.setSlotStack((counter), new ItemStack(ModItems.ironingotballhot, 1));
pItem.getTagCompound().setInteger("type", 0);
return true;
}
if (pItem.getTagCompound().getInteger("type") == 7) {
tile.setSlotStack((counter), new ItemStack(ModItems.ironchunkhot, 1));
pItem.getTagCompound().setInteger("type", 0);
//System.out.println(counter);
return true;
}
if (pItem.getTagCompound().getInteger("type") == 8) {
ItemStack tempStack = new ItemStack (ModItems.pickaxehead, 1);
tempStack.setTagCompound(new NBTTagCompound());
NBTTagCompound tags = pItem.getSubCompound("tags").copy();
tempStack.getTagCompound().setTag("tags", tags);
tile.setSlotStack((counter), tempStack);
pItem.getTagCompound().setInteger("type", 0);
pItem.getSubCompound("tags").setBoolean("hot", false);
pItem.getSubCompound("tags").setBoolean("emerald", false);
pItem.getSubCompound("tags").setInteger("diamond", 0);
pItem.getSubCompound("tags").setInteger("redstone", 0);
pItem.getSubCompound("tags").setInteger("lapis", 0);
pItem.getSubCompound("tags").setInteger("modifiers", 0);
return true;
}
if (pItem.getTagCompound().getInteger("type") == 9) {
ItemStack tempStack = new ItemStack (ModItems.ironaxehead, 1);
tempStack.setTagCompound(new NBTTagCompound());
NBTTagCompound tags = pItem.getSubCompound("tags").copy();
tempStack.getTagCompound().setTag("tags", tags);
tile.setSlotStack((counter), tempStack);
pItem.getTagCompound().setInteger("type", 0);
pItem.getSubCompound("tags").setBoolean("hot", false);
pItem.getSubCompound("tags").setBoolean("emerald", false);
pItem.getSubCompound("tags").setInteger("diamond", 0);
pItem.getSubCompound("tags").setInteger("redstone", 0);
pItem.getSubCompound("tags").setInteger("lapis", 0);
pItem.getSubCompound("tags").setInteger("modifiers", 0);
return true;
}
}
}
}
//System.out.println("1" + pItem);
if (pItem.getItem().equals(Items.AIR) && player.isSneaking()) {
if (tile.getSlotStack(counter).getItem().equals(Items.DIAMOND)) {
CommonUtils.spawnItemEntityFromWorld(world, pos, tile.getSlotStack(counter));
tile.setSlotStack(counter, ItemStack.EMPTY);
return true;
}
if (tile.getSlotStack(counter).getItem().equals(PrimalItems.DIAMOND_KNAPP)) {
CommonUtils.spawnItemEntityFromWorld(world, pos, tile.getSlotStack(counter));
tile.setSlotStack(counter, ItemStack.EMPTY);
return true;
}
if (tile.getSlotStack(counter).getItem().equals(Items.EMERALD)) {
CommonUtils.spawnItemEntityFromWorld(world, pos, tile.getSlotStack(counter));
tile.setSlotStack(counter, ItemStack.EMPTY);
return true;
}
if (tile.getSlotStack(counter).getItem().equals(PrimalItems.EMERALD_KNAPP)) {
CommonUtils.spawnItemEntityFromWorld(world, pos, tile.getSlotStack(counter));
tile.setSlotStack(counter, ItemStack.EMPTY);
return true;
}
if (tile.getSlotStack(counter).getItem().equals(Items.REDSTONE)) {
CommonUtils.spawnItemEntityFromWorld(world, pos, tile.getSlotStack(counter));
tile.setSlotStack(counter, ItemStack.EMPTY);
return true;
}
if (tile.getSlotStack(counter).getItem().equals(Items.DYE) && tile.getSlotStack(counter).getItemDamage() == EnumDyeColor.BLUE.getDyeDamage()) {
CommonUtils.spawnItemEntityFromWorld(world, pos, tile.getSlotStack(counter));
tile.setSlotStack(counter, ItemStack.EMPTY);
return true;
}
if (tile.getSlotStack(counter).getItem().equals(ModItems.pickaxehead)) {
if(tile.getSlotStack(counter).getSubCompound("tags").getBoolean("hot") == false){
CommonUtils.spawnItemEntityFromWorld(world, pos, tile.getSlotStack(counter));
tile.setSlotStack(counter, ItemStack.EMPTY);
return true;
}
}
if (tile.getSlotStack(counter).getItem().equals(ModItems.ironaxehead)) {
if(tile.getSlotStack(counter).getSubCompound("tags").getBoolean("hot") == false){
CommonUtils.spawnItemEntityFromWorld(world, pos, tile.getSlotStack(counter));
tile.setSlotStack(counter, ItemStack.EMPTY);
return true;
}
}
}
if (pItem.getItem().equals(Items.DIAMOND)) {
if (tile.getSlotStack(counter).isEmpty()) {
tile.setSlotStack(counter, new ItemStack(pItem.getItem(), 1));
pItem.shrink(1);
return true;
}
}
if (pItem.getItem().equals(Items.EMERALD)) {
if (tile.getSlotStack(counter).isEmpty()) {
tile.setSlotStack(counter, new ItemStack(pItem.getItem(), 1));
pItem.shrink(1);
return true;
}
}
if (pItem.getItem().equals(PrimalItems.EMERALD_KNAPP)) {
if (tile.getSlotStack(counter).isEmpty()) {
tile.setSlotStack(counter, new ItemStack(pItem.getItem(), 1));
pItem.shrink(1);
return true;
}
}
if (pItem.getItem().equals(PrimalItems.DIAMOND_KNAPP)) {
if (tile.getSlotStack(counter).isEmpty()) {
tile.setSlotStack(counter, new ItemStack(pItem.getItem(), 1));
pItem.shrink(1);
return true;
}
}
if (pItem.getItem().equals(Items.REDSTONE)) {
if (tile.getSlotStack(counter).isEmpty()) {
tile.setSlotStack(counter, new ItemStack(pItem.getItem(), 1));
pItem.shrink(1);
return true;
}
}
if (pItem.getItem().equals(Items.DYE) && pItem.getItemDamage() == EnumDyeColor.BLUE.getDyeDamage()) {
if (tile.getSlotStack(counter).isEmpty()) {
tile.setSlotStack(counter, new ItemStack(pItem.getItem(), 1, pItem.getItemDamage()));
pItem.shrink(1);
return true;
}
}
}
}
counter++;
}
}
}
}
return false;
}
}
return false; return false;
} }
@Override @Override
public void breakBlock(World world, BlockPos pos, IBlockState state) public void breakBlock(World world, BlockPos pos, IBlockState state)
{ {

View File

@@ -78,6 +78,14 @@ public class ModCrafting {
GameRegistry.addShapedRecipe(new ItemStack(ModItems.ironaxe, 1), GameRegistry.addShapedRecipe(new ItemStack(ModItems.ironaxe, 1),
" X ", " Y ", 'X', ModItems.ironaxehead, 'Y', Items.STICK); " X ", " Y ", 'X', ModItems.ironaxehead, 'Y', Items.STICK);
/***Shovel Crafting***/
GameRegistry.addShapedRecipe(new ItemStack(ModItems.ironshovel, 1),
" X ", " Y ", 'X', ModItems.ironshovelhead, 'Y', Items.STICK);
/***Hoe Crafting***/
GameRegistry.addShapedRecipe(new ItemStack(ModItems.ironhoe, 1),
" X ", " Y ", 'X', ModItems.ironhoehead, 'Y', Items.STICK);
/***Bloomery Crafting***/ /***Bloomery Crafting***/
//Makes the Empty Crucible //Makes the Empty Crucible
@@ -200,6 +208,16 @@ public class ModCrafting {
1.0f, 1.0f,
1.0f 1.0f
); );
//Makes a Hot HoeHead
ForgeCrafting.addRecipe(
ModItems.ironhoehead,
new ItemStack(ModItems.ironhoehead, 1 ),
800,
160,
400,
1.0f,
1.0f
);
/****************************************************************************** /******************************************************************************
@@ -219,6 +237,7 @@ public class ModCrafting {
String pickaxehead = ModItems.pickaxehead.getRegistryName().toString(); String pickaxehead = ModItems.pickaxehead.getRegistryName().toString();
String ironaxehead = ModItems.ironaxehead.getRegistryName().toString(); String ironaxehead = ModItems.ironaxehead.getRegistryName().toString();
String ironshovelhead = ModItems.ironshovelhead.getRegistryName().toString(); String ironshovelhead = ModItems.ironshovelhead.getRegistryName().toString();
String ironhoehead = ModItems.ironhoehead.getRegistryName().toString();
/* /*
Empty = 0 Empty = 0
@@ -442,6 +461,66 @@ public class ModCrafting {
"lapis" "lapis"
); );
/*** Hoe Head ***/
AnvilCrafting.addRecipe(
new String[] {
empty,empty,empty,hotChunk,hotChunk,
empty,empty,hotChunk,empty,empty,
empty,hotChunk,empty,empty,empty,
hotChunk,empty,empty,empty,empty,
empty,empty,empty,empty,empty },
new ItemStack(ModItems.ironhoehead, 1),
"null"
);
/*** Emerald Upgrade to Hoe Head ***/
AnvilCrafting.addRecipe(
new String[] {
empty,empty,empty,empty,empty,
empty,empty,emeraldShard,empty,empty,
empty,empty,ironhoehead,empty,empty,
empty,empty,empty,empty,empty,
empty,empty,empty,empty,empty },
new ItemStack(ModItems.ironhoehead, 1),
"emerald"
);
/*** Diamond Upgrade to Hoe Head ***/
AnvilCrafting.addRecipe(
new String[] {
empty,empty,empty,empty,empty,
empty,empty,diamondShard,empty,empty,
empty,empty,ironhoehead,empty,empty,
empty,empty,empty,empty,empty,
empty,empty,empty,empty,empty },
new ItemStack(ModItems.ironhoehead, 1),
"diamond"
);
/*** Redstone Upgrade to Hoe Head ***/
AnvilCrafting.addRecipe(
new String[] {
empty,empty,empty,empty,empty,
empty,empty,redstone,empty,empty,
empty,empty,ironhoehead,empty,empty,
empty,empty,empty,empty,empty,
empty,empty,empty,empty,empty },
new ItemStack(ModItems.ironhoehead, 1),
"redstone"
);
/*** Lapis Upgrade to Hoe Head ***/
AnvilCrafting.addRecipe(
new String[] {
empty,empty,empty,empty,empty,
empty,empty,lapis,empty,empty,
empty,empty,ironhoehead,empty,empty,
empty,empty,empty,empty,empty,
empty,empty,empty,empty,empty },
new ItemStack(ModItems.ironhoehead, 1),
"lapis"
);
} }
} }

View File

@@ -25,7 +25,9 @@ import nmd.primal.forgecraft.blocks.IngotBall;
import nmd.primal.forgecraft.items.*; import nmd.primal.forgecraft.items.*;
import nmd.primal.forgecraft.items.toolparts.ToolPart; import nmd.primal.forgecraft.items.toolparts.ToolPart;
import nmd.primal.forgecraft.items.tools.CustomAxe; import nmd.primal.forgecraft.items.tools.CustomAxe;
import nmd.primal.forgecraft.items.tools.CustomHoe;
import nmd.primal.forgecraft.items.tools.CustomPickaxe; import nmd.primal.forgecraft.items.tools.CustomPickaxe;
import nmd.primal.forgecraft.items.tools.CustomShovel;
/** /**
* Created by kitsu on 11/26/2016. * Created by kitsu on 11/26/2016.
@@ -43,9 +45,12 @@ public class ModItems {
public static Item pickaxehead; public static Item pickaxehead;
public static Item ironaxehead; public static Item ironaxehead;
public static Item ironshovelhead; public static Item ironshovelhead;
public static Item ironhoehead;
public static Item ironpickaxe; public static Item ironpickaxe;
public static Item ironaxe; public static Item ironaxe;
public static Item ironshovel;
public static Item ironhoe;
//public static Item forgingmanual; //public static Item forgingmanual;
@@ -58,10 +63,12 @@ public class ModItems {
pickaxehead = new ToolPart("ironpickaxehead"); pickaxehead = new ToolPart("ironpickaxehead");
ironaxehead = new ToolPart("ironaxehead"); ironaxehead = new ToolPart("ironaxehead");
ironshovelhead = new ToolPart("ironshovelhead"); ironshovelhead = new ToolPart("ironshovelhead");
ironhoehead = new ToolPart("ironhoehead");
ironpickaxe = new CustomPickaxe("ironpickaxe", Item.ToolMaterial.IRON); ironpickaxe = new CustomPickaxe("ironpickaxe", Item.ToolMaterial.IRON);
ironaxe = new CustomAxe("ironaxe", Item.ToolMaterial.IRON); ironaxe = new CustomAxe("ironaxe", Item.ToolMaterial.IRON);
ironshovel = new CustomShovel("ironshovel", Item.ToolMaterial.IRON);
ironhoe = new CustomHoe("ironhoe", Item.ToolMaterial.IRON);
//ironingotballcool = new BaseMultiItem("ironingotcool") {}; //ironingotballcool = new BaseMultiItem("ironingotcool") {};
//test = new ItemTest(); //test = new ItemTest();
@@ -114,10 +121,12 @@ public class ModItems {
GameRegistry.register(pickaxehead); GameRegistry.register(pickaxehead);
GameRegistry.register(ironaxehead); GameRegistry.register(ironaxehead);
GameRegistry.register(ironshovelhead); GameRegistry.register(ironshovelhead);
GameRegistry.register(ironhoehead);
GameRegistry.register(ironpickaxe); GameRegistry.register(ironpickaxe);
GameRegistry.register(ironaxe); GameRegistry.register(ironaxe);
GameRegistry.register(ironshovel);
GameRegistry.register(ironhoe);
//GameRegistry.register(forgingmanual); //GameRegistry.register(forgingmanual);
} }
@@ -133,9 +142,12 @@ public class ModItems {
registerRender(pickaxehead); registerRender(pickaxehead);
registerRender(ironaxehead); registerRender(ironaxehead);
registerRender(ironshovelhead); registerRender(ironshovelhead);
registerRender(ironhoehead);
registerRender(ironpickaxe); registerRender(ironpickaxe);
registerRender(ironaxe); registerRender(ironaxe);
registerRender(ironshovel);
registerRender(ironhoe);
//registerRender(forgingmanual); //registerRender(forgingmanual);
} }
@@ -153,7 +165,8 @@ public class ModItems {
new ResourceLocation(ModInfo.MOD_ID, "stonetongs_chunk"), new ResourceLocation(ModInfo.MOD_ID, "stonetongs_chunk"),
new ResourceLocation(ModInfo.MOD_ID, "stonetongs_pickaxe_hot"), new ResourceLocation(ModInfo.MOD_ID, "stonetongs_pickaxe_hot"),
new ResourceLocation(ModInfo.MOD_ID, "stonetongs_axe_hot"), new ResourceLocation(ModInfo.MOD_ID, "stonetongs_axe_hot"),
new ResourceLocation(ModInfo.MOD_ID, "stonetongs_shovel_hot") new ResourceLocation(ModInfo.MOD_ID, "stonetongs_shovel_hot"),
new ResourceLocation(ModInfo.MOD_ID, "stonetongs_hoe_hot")
); );
ModelLoader.setCustomMeshDefinition(ModItems.stonetongs, new ItemMeshDefinition() { ModelLoader.setCustomMeshDefinition(ModItems.stonetongs, new ItemMeshDefinition() {
@@ -193,6 +206,9 @@ public class ModItems {
else if (stack.getTagCompound().getInteger("type") == 10 ) { else if (stack.getTagCompound().getInteger("type") == 10 ) {
return new ModelResourceLocation(stack.getItem().getRegistryName() + "_shovel_hot", "inventory"); return new ModelResourceLocation(stack.getItem().getRegistryName() + "_shovel_hot", "inventory");
} }
else if (stack.getTagCompound().getInteger("type") == 11 ) {
return new ModelResourceLocation(stack.getItem().getRegistryName() + "_hoe_hot", "inventory");
}
else return new ModelResourceLocation(stack.getItem().getRegistryName(), "inventory"); else return new ModelResourceLocation(stack.getItem().getRegistryName(), "inventory");
} }
return new ModelResourceLocation(stack.getItem().getRegistryName(), "inventory"); return new ModelResourceLocation(stack.getItem().getRegistryName(), "inventory");

View File

@@ -292,6 +292,16 @@ public class ItemStoneTongs extends Item {
return EnumActionResult.SUCCESS; return EnumActionResult.SUCCESS;
} }
} }
if (tile.getSlotStack(i).getItem().equals(ModItems.ironhoehead)) {
if(tile.getSlotStack(i).getSubCompound("tags").getBoolean("hot") == true) {
itemstack.getTagCompound().setInteger("type", 11);
NBTTagCompound tags = tile.getSlotStack(i).getSubCompound("tags").copy();
itemstack.getTagCompound().setTag("tags", tags);
//itemstack.getSubCompound("tags").setBoolean("hot", true);
tile.setSlotStack(i, ItemStack.EMPTY);
return EnumActionResult.SUCCESS;
}
}
} }
} }
} }

View File

@@ -0,0 +1,353 @@
package nmd.primal.forgecraft.items.tools;
import com.mojang.realmsclient.gui.ChatFormatting;
import net.minecraft.block.state.IBlockState;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.IItemPropertyGetter;
import net.minecraft.item.Item;
import net.minecraft.item.ItemHoe;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import nmd.primal.forgecraft.ModInfo;
import nmd.primal.forgecraft.ToolNBT;
import javax.annotation.Nullable;
import java.util.List;
/**
* Created by mminaie on 3/21/17.
*/
public class CustomHoe extends ItemHoe implements ToolNBT {
public CustomHoe(String name, Item.ToolMaterial material) {
super(material);
this.setUnlocalizedName(name);
this.setRegistryName(name);
this.setCreativeTab(ModInfo.TAB_FORGECRAFT);
this.setMaxStackSize(1);
this.setNoRepair();
this.addPropertyOverride(new ResourceLocation("type"), new IItemPropertyGetter() {
/***
hot . emerald . diamond . redstone . lapis
0 . 0 . 0 . 0 . 0
***/
@SideOnly(Side.CLIENT)
public float apply(ItemStack item, @Nullable World worldIn, @Nullable EntityLivingBase entityIn) {
if (item.hasTagCompound()) {
if (getHot(item) == false) {
if (getModifiers(item) != 0) {
if ( (getEmerald(item) == true) &&
(getDiamondLevel(item) == 0) &&
(getRedstoneLevel(item) == 0) &&
(getLapisLevel(item) == 0)) {
return 0.1F;
}
if ( (getEmerald(item) == true) &&
(getDiamondLevel(item) == 1) &&
(getRedstoneLevel(item) == 0) &&
(getLapisLevel(item) == 0)) {
return 0.11F;
}
if ( (getEmerald(item) == true) &&
(getDiamondLevel(item) == 2) &&
(getRedstoneLevel(item) == 0) &&
(getLapisLevel(item) == 0)) {
return 0.12F;
}
if ( (getEmerald(item) == true) &&
(getDiamondLevel(item) == 1) &&
(getRedstoneLevel(item) == 1) &&
(getLapisLevel(item) == 0)) {
return 0.111F;
}
if ( (getEmerald(item) == true) &&
(getDiamondLevel(item) == 0) &&
(getRedstoneLevel(item) == 2) &&
(getLapisLevel(item) == 0)) {
return 0.102F;
}
// ============
if ( (getEmerald(item) == false) &&
(getDiamondLevel(item) == 1) &&
(getRedstoneLevel(item) == 0) &&
(getLapisLevel(item) == 0)) {
return 0.01F;
}
if ( (getEmerald(item) == false) &&
(getDiamondLevel(item) == 2) &&
(getRedstoneLevel(item) == 0) &&
(getLapisLevel(item) == 0)) {
return 0.02F;
}
if ( (getEmerald(item) == false) &&
(getDiamondLevel(item) == 3) &&
(getRedstoneLevel(item) == 0) &&
(getLapisLevel(item) == 0)) {
return 0.03F;
}
//=======
if ( (getEmerald(item) == false) &&
(getDiamondLevel(item) == 0) &&
(getRedstoneLevel(item) == 1) &&
(getLapisLevel(item) == 0)) {
return 0.001F;
}
if ( (getEmerald(item) == false) &&
(getDiamondLevel(item) == 0) &&
(getRedstoneLevel(item) == 2) &&
(getLapisLevel(item) == 0)) {
return 0.002F;
}
if ( (getEmerald(item) == false) &&
(getDiamondLevel(item) == 0) &&
(getRedstoneLevel(item) == 3) &&
(getLapisLevel(item) == 0)) {
return 0.003F;
}
//=========
if ( (getEmerald(item) == false) &&
(getDiamondLevel(item) == 0) &&
(getRedstoneLevel(item) == 0) &&
(getLapisLevel(item) == 1)) {
return 0.0001F;
}
if ( (getEmerald(item) == false) &&
(getDiamondLevel(item) == 0) &&
(getRedstoneLevel(item) == 0) &&
(getLapisLevel(item) == 2)) {
return 0.0002F;
}
if ( (getEmerald(item) == false) &&
(getDiamondLevel(item) == 0) &&
(getRedstoneLevel(item) == 0) &&
(getLapisLevel(item) == 3)) {
return 0.0003F;
}
//=======
if ( (getEmerald(item) == false) &&
(getDiamondLevel(item) == 1) &&
(getRedstoneLevel(item) == 1) &&
(getLapisLevel(item) == 1)) {
return 0.0111F;
}
if ( (getEmerald(item) == false) &&
(getDiamondLevel(item) == 2) &&
(getRedstoneLevel(item) == 1) &&
(getLapisLevel(item) == 0)) {
return 0.021F;
}
if ( (getEmerald(item) == false) &&
(getDiamondLevel(item) == 1) &&
(getRedstoneLevel(item) == 2) &&
(getLapisLevel(item) == 0)) {
return 0.012F;
}
if ( (getEmerald(item) == false) &&
(getDiamondLevel(item) == 0) &&
(getRedstoneLevel(item) == 1) &&
(getLapisLevel(item) == 2)) {
return 0.0012F;
}
if ( (getEmerald(item) == false) &&
(getDiamondLevel(item) == 0) &&
(getRedstoneLevel(item) == 2) &&
(getLapisLevel(item) == 1)) {
return 0.0021F;
}
if ( (getEmerald(item) == false) &&
(getDiamondLevel(item) == 1) &&
(getRedstoneLevel(item) == 0) &&
(getLapisLevel(item) == 2) ) {
return 0.0102F;
}
}
}
if (getHot(item) == true) {
return 1.0F;
}
if (getHot(item) == false) {
if (item.getSubCompound("tags").getInteger("modifiers") == 0) {
return 0.0F;
}
}
}
return 0.0F;
}
});
}
public static boolean isHidden()
{
return false;
}
@Override
public void onCreated(ItemStack item, World world, EntityPlayer playerIn) {
if(!world.isRemote) {
if (!item.hasTagCompound()) {
item.setTagCompound(new NBTTagCompound());
NBTTagCompound tags = new NBTTagCompound();
item.getTagCompound().setTag("tags", tags);
/*setHot(item, false);
setHot(item, false);
setEmerald(item, false);
setDiamondLevel(item, 0);
setRedstoneLevel(item, 0);
setLapisLevel(item, 0);
setModifiers(item, 0);*/
}
}
}
@Override
public void onUpdate(ItemStack item, World world, Entity player, int itemSlot, boolean isSelected) {
if(!world.isRemote) {
if (!item.hasTagCompound()) {
item.setTagCompound(new NBTTagCompound());
NBTTagCompound tags = new NBTTagCompound();
item.getTagCompound().setTag("tags", tags);
setHot(item, false);
setEmerald(item, false);
setDiamondLevel(item, 0);
setRedstoneLevel(item, 0);
setLapisLevel(item, 0);
setModifiers(item, 0);
}
}
}
//public void onItemTooltip(ItemTooltipEvent event){
@Override
@SideOnly(Side.CLIENT)
public void addInformation(ItemStack item, EntityPlayer player, List<String> tooltip, boolean advanced)
{
if(player.getEntityWorld().isRemote) {
if(item.hasTagCompound()) {
tooltip.add(ChatFormatting.GRAY + "Upgrades Left: " + (3 - getModifiers(item)) );
if (item.getSubCompound("tags").getBoolean("emerald") == true) {
tooltip.add(ChatFormatting.DARK_GREEN + "Emerald");
}
if (item.getSubCompound("tags").getInteger("diamond") > 0) {
tooltip.add(ChatFormatting.AQUA + "Diamond Level: " + getDiamondLevel(item));
}
if (item.getSubCompound("tags").getInteger("redstone") > 0) {
tooltip.add(ChatFormatting.RED + "Redstone Level: " + getRedstoneLevel(item) );
}
if (item.getSubCompound("tags").getInteger("lapis") > 0) {
tooltip.add(ChatFormatting.BLUE + "Lapis Level: " + getLapisLevel(item) );
}
}
}
}
@Override
public boolean onBlockStartBreak(ItemStack itemstack, BlockPos pos, EntityPlayer player)
{
if(!player.world.isRemote){
World world = player.getEntityWorld();
System.out.println(world.getBlockState(pos).getBlock());
if(itemstack.getItem() instanceof CustomPickaxe){
if( getEmerald(itemstack)){
itemstack.addEnchantment(Enchantment.getEnchantmentByID(33), 1);
}
if( getDiamondLevel(itemstack) > 0 ){
itemstack.addEnchantment(Enchantment.getEnchantmentByID(34), getDiamondLevel(itemstack));
itemstack.getItem().setHarvestLevel("hoe", 3);
}
if( getRedstoneLevel(itemstack) > 0 ){
itemstack.addEnchantment(Enchantment.getEnchantmentByID(32), getRedstoneLevel(itemstack));
}
if ( getLapisLevel(itemstack) > 0) {
itemstack.addEnchantment(Enchantment.getEnchantmentByID(35), getLapisLevel(itemstack));
}
}
}
return false;
}
@Override
public boolean onBlockDestroyed(ItemStack stack, World worldIn, IBlockState state, BlockPos pos, EntityLivingBase entityLiving)
{
if (!worldIn.isRemote && (double)state.getBlockHardness(worldIn, pos) != 0.0D)
{
stack.getTagCompound().removeTag("ench");
//System.out.println(stack.getTagCompound());
stack.damageItem(1, entityLiving);
}
return true;
}
@SideOnly(Side.CLIENT)
@Override
public boolean hasEffect(ItemStack stack)
{
return false;
}
@Override
public boolean isRepairable()
{
return false;
}
public int getItemEnchantability(ItemStack stack)
{
return 0;
}
}

View File

@@ -0,0 +1,353 @@
package nmd.primal.forgecraft.items.tools;
import com.mojang.realmsclient.gui.ChatFormatting;
import net.minecraft.block.state.IBlockState;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.IItemPropertyGetter;
import net.minecraft.item.Item;
import net.minecraft.item.ItemSpade;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import nmd.primal.forgecraft.ModInfo;
import nmd.primal.forgecraft.ToolNBT;
import javax.annotation.Nullable;
import java.util.List;
/**
* Created by mminaie on 3/21/17.
*/
public class CustomShovel extends ItemSpade implements ToolNBT {
public CustomShovel(String name, Item.ToolMaterial material) {
super(material);
this.setUnlocalizedName(name);
this.setRegistryName(name);
this.setCreativeTab(ModInfo.TAB_FORGECRAFT);
this.setMaxStackSize(1);
this.setNoRepair();
this.addPropertyOverride(new ResourceLocation("type"), new IItemPropertyGetter() {
/***
hot . emerald . diamond . redstone . lapis
0 . 0 . 0 . 0 . 0
***/
@SideOnly(Side.CLIENT)
public float apply(ItemStack item, @Nullable World worldIn, @Nullable EntityLivingBase entityIn) {
if (item.hasTagCompound()) {
if (getHot(item) == false) {
if (getModifiers(item) != 0) {
if ( (getEmerald(item) == true) &&
(getDiamondLevel(item) == 0) &&
(getRedstoneLevel(item) == 0) &&
(getLapisLevel(item) == 0)) {
return 0.1F;
}
if ( (getEmerald(item) == true) &&
(getDiamondLevel(item) == 1) &&
(getRedstoneLevel(item) == 0) &&
(getLapisLevel(item) == 0)) {
return 0.11F;
}
if ( (getEmerald(item) == true) &&
(getDiamondLevel(item) == 2) &&
(getRedstoneLevel(item) == 0) &&
(getLapisLevel(item) == 0)) {
return 0.12F;
}
if ( (getEmerald(item) == true) &&
(getDiamondLevel(item) == 1) &&
(getRedstoneLevel(item) == 1) &&
(getLapisLevel(item) == 0)) {
return 0.111F;
}
if ( (getEmerald(item) == true) &&
(getDiamondLevel(item) == 0) &&
(getRedstoneLevel(item) == 2) &&
(getLapisLevel(item) == 0)) {
return 0.102F;
}
// ============
if ( (getEmerald(item) == false) &&
(getDiamondLevel(item) == 1) &&
(getRedstoneLevel(item) == 0) &&
(getLapisLevel(item) == 0)) {
return 0.01F;
}
if ( (getEmerald(item) == false) &&
(getDiamondLevel(item) == 2) &&
(getRedstoneLevel(item) == 0) &&
(getLapisLevel(item) == 0)) {
return 0.02F;
}
if ( (getEmerald(item) == false) &&
(getDiamondLevel(item) == 3) &&
(getRedstoneLevel(item) == 0) &&
(getLapisLevel(item) == 0)) {
return 0.03F;
}
//=======
if ( (getEmerald(item) == false) &&
(getDiamondLevel(item) == 0) &&
(getRedstoneLevel(item) == 1) &&
(getLapisLevel(item) == 0)) {
return 0.001F;
}
if ( (getEmerald(item) == false) &&
(getDiamondLevel(item) == 0) &&
(getRedstoneLevel(item) == 2) &&
(getLapisLevel(item) == 0)) {
return 0.002F;
}
if ( (getEmerald(item) == false) &&
(getDiamondLevel(item) == 0) &&
(getRedstoneLevel(item) == 3) &&
(getLapisLevel(item) == 0)) {
return 0.003F;
}
//=========
if ( (getEmerald(item) == false) &&
(getDiamondLevel(item) == 0) &&
(getRedstoneLevel(item) == 0) &&
(getLapisLevel(item) == 1)) {
return 0.0001F;
}
if ( (getEmerald(item) == false) &&
(getDiamondLevel(item) == 0) &&
(getRedstoneLevel(item) == 0) &&
(getLapisLevel(item) == 2)) {
return 0.0002F;
}
if ( (getEmerald(item) == false) &&
(getDiamondLevel(item) == 0) &&
(getRedstoneLevel(item) == 0) &&
(getLapisLevel(item) == 3)) {
return 0.0003F;
}
//=======
if ( (getEmerald(item) == false) &&
(getDiamondLevel(item) == 1) &&
(getRedstoneLevel(item) == 1) &&
(getLapisLevel(item) == 1)) {
return 0.0111F;
}
if ( (getEmerald(item) == false) &&
(getDiamondLevel(item) == 2) &&
(getRedstoneLevel(item) == 1) &&
(getLapisLevel(item) == 0)) {
return 0.021F;
}
if ( (getEmerald(item) == false) &&
(getDiamondLevel(item) == 1) &&
(getRedstoneLevel(item) == 2) &&
(getLapisLevel(item) == 0)) {
return 0.012F;
}
if ( (getEmerald(item) == false) &&
(getDiamondLevel(item) == 0) &&
(getRedstoneLevel(item) == 1) &&
(getLapisLevel(item) == 2)) {
return 0.0012F;
}
if ( (getEmerald(item) == false) &&
(getDiamondLevel(item) == 0) &&
(getRedstoneLevel(item) == 2) &&
(getLapisLevel(item) == 1)) {
return 0.0021F;
}
if ( (getEmerald(item) == false) &&
(getDiamondLevel(item) == 1) &&
(getRedstoneLevel(item) == 0) &&
(getLapisLevel(item) == 2) ) {
return 0.0102F;
}
}
}
if (getHot(item) == true) {
return 1.0F;
}
if (getHot(item) == false) {
if (item.getSubCompound("tags").getInteger("modifiers") == 0) {
return 0.0F;
}
}
}
return 0.0F;
}
});
}
public static boolean isHidden()
{
return false;
}
@Override
public void onCreated(ItemStack item, World world, EntityPlayer playerIn) {
if(!world.isRemote) {
if (!item.hasTagCompound()) {
item.setTagCompound(new NBTTagCompound());
NBTTagCompound tags = new NBTTagCompound();
item.getTagCompound().setTag("tags", tags);
/*setHot(item, false);
setHot(item, false);
setEmerald(item, false);
setDiamondLevel(item, 0);
setRedstoneLevel(item, 0);
setLapisLevel(item, 0);
setModifiers(item, 0);*/
}
}
}
@Override
public void onUpdate(ItemStack item, World world, Entity player, int itemSlot, boolean isSelected) {
if(!world.isRemote) {
if (!item.hasTagCompound()) {
item.setTagCompound(new NBTTagCompound());
NBTTagCompound tags = new NBTTagCompound();
item.getTagCompound().setTag("tags", tags);
setHot(item, false);
setEmerald(item, false);
setDiamondLevel(item, 0);
setRedstoneLevel(item, 0);
setLapisLevel(item, 0);
setModifiers(item, 0);
}
}
}
//public void onItemTooltip(ItemTooltipEvent event){
@Override
@SideOnly(Side.CLIENT)
public void addInformation(ItemStack item, EntityPlayer player, List<String> tooltip, boolean advanced)
{
if(player.getEntityWorld().isRemote) {
if(item.hasTagCompound()) {
tooltip.add(ChatFormatting.GRAY + "Upgrades Left: " + (3 - getModifiers(item)) );
if (item.getSubCompound("tags").getBoolean("emerald") == true) {
tooltip.add(ChatFormatting.DARK_GREEN + "Emerald");
}
if (item.getSubCompound("tags").getInteger("diamond") > 0) {
tooltip.add(ChatFormatting.AQUA + "Diamond Level: " + getDiamondLevel(item));
}
if (item.getSubCompound("tags").getInteger("redstone") > 0) {
tooltip.add(ChatFormatting.RED + "Redstone Level: " + getRedstoneLevel(item) );
}
if (item.getSubCompound("tags").getInteger("lapis") > 0) {
tooltip.add(ChatFormatting.BLUE + "Lapis Level: " + getLapisLevel(item) );
}
}
}
}
@Override
public boolean onBlockStartBreak(ItemStack itemstack, BlockPos pos, EntityPlayer player)
{
if(!player.world.isRemote){
World world = player.getEntityWorld();
System.out.println(world.getBlockState(pos).getBlock());
if(itemstack.getItem() instanceof CustomShovel){
if( getEmerald(itemstack)){
itemstack.addEnchantment(Enchantment.getEnchantmentByID(33), 1);
}
if( getDiamondLevel(itemstack) > 0 ){
itemstack.addEnchantment(Enchantment.getEnchantmentByID(34), getDiamondLevel(itemstack));
itemstack.getItem().setHarvestLevel("shovel", 3);
}
if( getRedstoneLevel(itemstack) > 0 ){
itemstack.addEnchantment(Enchantment.getEnchantmentByID(32), getRedstoneLevel(itemstack));
}
if ( getLapisLevel(itemstack) > 0) {
itemstack.addEnchantment(Enchantment.getEnchantmentByID(35), getLapisLevel(itemstack));
}
}
}
return false;
}
@Override
public boolean onBlockDestroyed(ItemStack stack, World worldIn, IBlockState state, BlockPos pos, EntityLivingBase entityLiving)
{
if (!worldIn.isRemote && (double)state.getBlockHardness(worldIn, pos) != 0.0D)
{
stack.getTagCompound().removeTag("ench");
//System.out.println(stack.getTagCompound());
stack.damageItem(1, entityLiving);
}
return true;
}
@SideOnly(Side.CLIENT)
@Override
public boolean hasEffect(ItemStack stack)
{
return false;
}
@Override
public boolean isRepairable()
{
return false;
}
public int getItemEnchantability(ItemStack stack)
{
return 0;
}
}

View File

@@ -129,6 +129,15 @@ public class TileAnvilRender extends TileEntitySpecialRenderer<TileAnvil>
renderItem.renderItem(tile.getSlotStack(counter), ItemCameraTransforms.TransformType.FIXED); renderItem.renderItem(tile.getSlotStack(counter), ItemCameraTransforms.TransformType.FIXED);
GL11.glPopMatrix(); GL11.glPopMatrix();
} }
if(tile.getSlotStack(counter).getItem().equals(ModItems.ironhoehead)){
GL11.glPushMatrix();
double scale = 1.0D;
GL11.glScaled(scale, scale, scale);
GL11.glTranslated(tile.getNormalX(a), -0.435D, tile.getNormalZ(i));
GL11.glRotated(180.0F, 1.0F, 0.0F, 0.0F);
renderItem.renderItem(tile.getSlotStack(counter), ItemCameraTransforms.TransformType.FIXED);
GL11.glPopMatrix();
}
if(tile.getSlotStack(counter).getItem() == ModItems.ironingotballhot ){ if(tile.getSlotStack(counter).getItem() == ModItems.ironingotballhot ){
GL11.glPushMatrix(); GL11.glPushMatrix();
double scale = 1.0D; double scale = 1.0D;
@@ -181,16 +190,34 @@ public class TileAnvilRender extends TileEntitySpecialRenderer<TileAnvil>
GL11.glPushMatrix(); GL11.glPushMatrix();
double scale = 1.0D; double scale = 1.0D;
GL11.glScaled(scale, scale, scale); GL11.glScaled(scale, scale, scale);
GL11.glTranslated(tile.getNormalX(a), -0.435D, tile.getNormalZ(i)); GL11.glTranslated( tile.getReverseX(a), -0.435D, tile.getReverseZ(i) );
GL11.glRotated(90.0F, 1.0F, 0.0F, 0.0F); GL11.glRotated(90.0F, 1.0F, 0.0F, 0.0F);
renderItem.renderItem(tile.getSlotStack(counter), ItemCameraTransforms.TransformType.FIXED); renderItem.renderItem(tile.getSlotStack(counter), ItemCameraTransforms.TransformType.FIXED);
GL11.glPopMatrix(); GL11.glPopMatrix();
} }
if(tile.getSlotStack(counter).getItem().equals(ModItems.ironshovelhead)){
GL11.glPushMatrix();
double scale = 1.0D;
GL11.glScaled(scale, scale, scale);
GL11.glTranslated( tile.getReverseX(a), -0.435D, tile.getReverseZ(i) );
GL11.glRotated(90.0F, 1.0F, 0.0F, 0.0F);
renderItem.renderItem(tile.getSlotStack(counter), ItemCameraTransforms.TransformType.FIXED);
GL11.glPopMatrix();
}
if(tile.getSlotStack(counter).getItem().equals(ModItems.ironhoehead)){
GL11.glPushMatrix();
double scale = 1.0D;
GL11.glScaled(scale, scale, scale);
GL11.glTranslated( tile.getReverseX(a), -0.435D, tile.getReverseZ(i) );
GL11.glRotated(180.0F, 1.0F, 0.0F, 0.0F);
renderItem.renderItem(tile.getSlotStack(counter), ItemCameraTransforms.TransformType.FIXED);
GL11.glPopMatrix();
}
if(tile.getSlotStack(counter).getItem() == ModItems.ironingotballhot ){ if(tile.getSlotStack(counter).getItem() == ModItems.ironingotballhot ){
GL11.glPushMatrix(); GL11.glPushMatrix();
double scale = 1.0D; double scale = 1.0D;
GL11.glScaled(scale, scale, scale); GL11.glScaled(scale, scale, scale);
GL11.glTranslated(tile.getNormalX(a), -0.44D, tile.getNormalZ(i)); GL11.glTranslated( tile.getReverseX(a), -0.44D, tile.getReverseZ(i) );
renderItem.renderItem(tile.getSlotStack(counter), ItemCameraTransforms.TransformType.FIXED); renderItem.renderItem(tile.getSlotStack(counter), ItemCameraTransforms.TransformType.FIXED);
GL11.glPopMatrix(); GL11.glPopMatrix();
} }
@@ -198,7 +225,7 @@ public class TileAnvilRender extends TileEntitySpecialRenderer<TileAnvil>
GL11.glPushMatrix(); GL11.glPushMatrix();
double scale = 1.0D; double scale = 1.0D;
GL11.glScaled(scale, scale, scale); GL11.glScaled(scale, scale, scale);
GL11.glTranslated(tile.getNormalX(a), -0.455D, tile.getNormalZ(i)); GL11.glTranslated( tile.getReverseX(a), -0.455D, tile.getReverseZ(i) );
renderItem.renderItem(tile.getSlotStack(counter), ItemCameraTransforms.TransformType.FIXED); renderItem.renderItem(tile.getSlotStack(counter), ItemCameraTransforms.TransformType.FIXED);
GL11.glPopMatrix(); GL11.glPopMatrix();
} }
@@ -240,16 +267,34 @@ public class TileAnvilRender extends TileEntitySpecialRenderer<TileAnvil>
GL11.glPushMatrix(); GL11.glPushMatrix();
double scale = 1.0D; double scale = 1.0D;
GL11.glScaled(scale, scale, scale); GL11.glScaled(scale, scale, scale);
GL11.glTranslated(tile.getNormalX(a), -0.435D, tile.getNormalZ(i)); GL11.glTranslated( tile.getNormalX(a), -0.435D, tile.getReverseZ(i) );
GL11.glRotated(90.0F, 1.0F, 0.0F, 0.0F); GL11.glRotated(90.0F, 1.0F, 0.0F, 0.0F);
renderItem.renderItem(tile.getSlotStack(counter), ItemCameraTransforms.TransformType.FIXED); renderItem.renderItem(tile.getSlotStack(counter), ItemCameraTransforms.TransformType.FIXED);
GL11.glPopMatrix(); GL11.glPopMatrix();
} }
if(tile.getSlotStack(counter).getItem().equals(ModItems.ironshovelhead)){
GL11.glPushMatrix();
double scale = 1.0D;
GL11.glScaled(scale, scale, scale);
GL11.glTranslated( tile.getNormalX(a), -0.435D, tile.getReverseZ(i) );
GL11.glRotated(90.0F, 1.0F, 0.0F, 0.0F);
renderItem.renderItem(tile.getSlotStack(counter), ItemCameraTransforms.TransformType.FIXED);
GL11.glPopMatrix();
}
if(tile.getSlotStack(counter).getItem().equals(ModItems.ironhoehead)){
GL11.glPushMatrix();
double scale = 1.0D;
GL11.glScaled(scale, scale, scale);
GL11.glTranslated( tile.getNormalX(a), -0.435D, tile.getReverseZ(i) );
GL11.glRotated(180.0F, 1.0F, 0.0F, 0.0F);
renderItem.renderItem(tile.getSlotStack(counter), ItemCameraTransforms.TransformType.FIXED);
GL11.glPopMatrix();
}
if(tile.getSlotStack(counter).getItem() == ModItems.ironingotballhot ){ if(tile.getSlotStack(counter).getItem() == ModItems.ironingotballhot ){
GL11.glPushMatrix(); GL11.glPushMatrix();
double scale = 1.0D; double scale = 1.0D;
GL11.glScaled(scale, scale, scale); GL11.glScaled(scale, scale, scale);
GL11.glTranslated(tile.getNormalX(a), -0.44D, tile.getNormalZ(i)); GL11.glTranslated( tile.getNormalX(a), -0.44D, tile.getReverseZ(i) );
renderItem.renderItem(tile.getSlotStack(counter), ItemCameraTransforms.TransformType.FIXED); renderItem.renderItem(tile.getSlotStack(counter), ItemCameraTransforms.TransformType.FIXED);
GL11.glPopMatrix(); GL11.glPopMatrix();
} }
@@ -257,7 +302,7 @@ public class TileAnvilRender extends TileEntitySpecialRenderer<TileAnvil>
GL11.glPushMatrix(); GL11.glPushMatrix();
double scale = 1.0D; double scale = 1.0D;
GL11.glScaled(scale, scale, scale); GL11.glScaled(scale, scale, scale);
GL11.glTranslated(tile.getNormalX(a), -0.455D, tile.getNormalZ(i)); GL11.glTranslated( tile.getNormalX(a), -0.455D, tile.getReverseZ(i) );
renderItem.renderItem(tile.getSlotStack(counter), ItemCameraTransforms.TransformType.FIXED); renderItem.renderItem(tile.getSlotStack(counter), ItemCameraTransforms.TransformType.FIXED);
GL11.glPopMatrix(); GL11.glPopMatrix();
} }
@@ -297,6 +342,82 @@ public class TileAnvilRender extends TileEntitySpecialRenderer<TileAnvil>
renderItem.renderItem(tile.getSlotStack(counter), ItemCameraTransforms.TransformType.FIXED); renderItem.renderItem(tile.getSlotStack(counter), ItemCameraTransforms.TransformType.FIXED);
GL11.glPopMatrix(); GL11.glPopMatrix();
} }
if(tile.getSlotStack(counter).getItem().equals(ModItems.ironaxehead)){
GL11.glPushMatrix();
double scale = 1.0D;
GL11.glScaled(scale, scale, scale);
GL11.glTranslated( tile.getReverseX(a), -0.435D, tile.getNormalZ(i) );
GL11.glRotated(90.0F, 1.0F, 0.0F, 0.0F);
renderItem.renderItem(tile.getSlotStack(counter), ItemCameraTransforms.TransformType.FIXED);
GL11.glPopMatrix();
}
if(tile.getSlotStack(counter).getItem().equals(ModItems.ironshovelhead)){
GL11.glPushMatrix();
double scale = 1.0D;
GL11.glScaled(scale, scale, scale);
GL11.glTranslated( tile.getReverseX(a), -0.435D, tile.getNormalZ(i) );
GL11.glRotated(90.0F, 1.0F, 0.0F, 0.0F);
renderItem.renderItem(tile.getSlotStack(counter), ItemCameraTransforms.TransformType.FIXED);
GL11.glPopMatrix();
}
if(tile.getSlotStack(counter).getItem().equals(ModItems.ironhoehead)){
GL11.glPushMatrix();
double scale = 1.0D;
GL11.glScaled(scale, scale, scale);
GL11.glTranslated( tile.getReverseX(a), -0.435D, tile.getNormalZ(i) );
GL11.glRotated(180.0F, 1.0F, 0.0F, 0.0F);
renderItem.renderItem(tile.getSlotStack(counter), ItemCameraTransforms.TransformType.FIXED);
GL11.glPopMatrix();
}
if(tile.getSlotStack(counter).getItem() == ModItems.ironingotballhot ){
GL11.glPushMatrix();
double scale = 1.0D;
GL11.glScaled(scale, scale, scale);
GL11.glTranslated( tile.getReverseX(a), -0.44D, tile.getNormalZ(i) );
renderItem.renderItem(tile.getSlotStack(counter), ItemCameraTransforms.TransformType.FIXED);
GL11.glPopMatrix();
}
if(tile.getSlotStack(counter).getItem() == ModItems.ironchunkhot){
GL11.glPushMatrix();
double scale = 1.0D;
GL11.glScaled(scale, scale, scale);
GL11.glTranslated( tile.getReverseX(a), -0.455D, tile.getNormalZ(i) );
renderItem.renderItem(tile.getSlotStack(counter), ItemCameraTransforms.TransformType.FIXED);
GL11.glPopMatrix();
}
}
counter++;
}
}
}
OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, prevLGTX, prevLGTY);
GL11.glPopMatrix();
}
private void doRendering(TileAnvil tile, Integer counter, Integer i, Integer a){
if(tile.getSlotStack(counter).getItem().equals(Items.REDSTONE) ||
(tile.getSlotStack(counter).getItem().equals(Items.DYE) && tile.getSlotStack(counter).getItemDamage() == EnumDyeColor.BLUE.getDyeDamage()) ||
tile.getSlotStack(counter).getItem().equals(PrimalItems.EMERALD_KNAPP) ||
tile.getSlotStack(counter).getItem().equals(PrimalItems.DIAMOND_KNAPP)
){
GL11.glPushMatrix();
GL11.glTranslated( tile.getNormalX(a), -0.49D, tile.getNormalZ(i) );
GL11.glRotated(-90.0F, 1.0F, -0.0F, 0.0F);
GL11.glScaled(0.25D, 0.25D, 0.25D);
renderItem.renderItem(tile.getSlotStack(counter), ItemCameraTransforms.TransformType.FIXED);
GL11.glPopMatrix();
}
if(tile.getSlotStack(counter).getItem().equals(ModItems.pickaxehead)){
GL11.glPushMatrix();
double scale = 1.0D;
GL11.glScaled(scale, scale, scale);
GL11.glTranslated(tile.getNormalX(a), -0.435D, tile.getNormalZ(i));
renderItem.renderItem(tile.getSlotStack(counter), ItemCameraTransforms.TransformType.FIXED);
GL11.glPopMatrix();
}
if(tile.getSlotStack(counter).getItem().equals(ModItems.ironaxehead)){ if(tile.getSlotStack(counter).getItem().equals(ModItems.ironaxehead)){
GL11.glPushMatrix(); GL11.glPushMatrix();
double scale = 1.0D; double scale = 1.0D;
@@ -306,6 +427,24 @@ public class TileAnvilRender extends TileEntitySpecialRenderer<TileAnvil>
renderItem.renderItem(tile.getSlotStack(counter), ItemCameraTransforms.TransformType.FIXED); renderItem.renderItem(tile.getSlotStack(counter), ItemCameraTransforms.TransformType.FIXED);
GL11.glPopMatrix(); GL11.glPopMatrix();
} }
if(tile.getSlotStack(counter).getItem().equals(ModItems.ironshovelhead)){
GL11.glPushMatrix();
double scale = 1.0D;
GL11.glScaled(scale, scale, scale);
GL11.glTranslated(tile.getNormalX(a), -0.435D, tile.getNormalZ(i));
GL11.glRotated(90.0F, 1.0F, 0.0F, 0.0F);
renderItem.renderItem(tile.getSlotStack(counter), ItemCameraTransforms.TransformType.FIXED);
GL11.glPopMatrix();
}
if(tile.getSlotStack(counter).getItem().equals(ModItems.ironhoehead)){
GL11.glPushMatrix();
double scale = 1.0D;
GL11.glScaled(scale, scale, scale);
GL11.glTranslated(tile.getNormalX(a), -0.435D, tile.getNormalZ(i));
GL11.glRotated(180.0F, 1.0F, 0.0F, 0.0F);
renderItem.renderItem(tile.getSlotStack(counter), ItemCameraTransforms.TransformType.FIXED);
GL11.glPopMatrix();
}
if(tile.getSlotStack(counter).getItem() == ModItems.ironingotballhot ){ if(tile.getSlotStack(counter).getItem() == ModItems.ironingotballhot ){
GL11.glPushMatrix(); GL11.glPushMatrix();
double scale = 1.0D; double scale = 1.0D;
@@ -322,14 +461,6 @@ public class TileAnvilRender extends TileEntitySpecialRenderer<TileAnvil>
renderItem.renderItem(tile.getSlotStack(counter), ItemCameraTransforms.TransformType.FIXED); renderItem.renderItem(tile.getSlotStack(counter), ItemCameraTransforms.TransformType.FIXED);
GL11.glPopMatrix(); GL11.glPopMatrix();
} }
}
counter++;
}
}
} }
OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, prevLGTX, prevLGTY);
GL11.glPopMatrix();
}
} }

View File

@@ -81,6 +81,10 @@ public class TileForgeRender extends TileEntitySpecialRenderer<TileForge>
if(tile.getSlotStack(i).getItem() == ModItems.ironshovelhead) { if(tile.getSlotStack(i).getItem() == ModItems.ironshovelhead) {
GL11.glRotated(90.0F, 1.0F, 0.0F, 0.0F); GL11.glRotated(90.0F, 1.0F, 0.0F, 0.0F);
} }
if(tile.getSlotStack(i).getItem() == ModItems.ironhoehead) {
GL11.glRotated(180.0F, 1.0F, 0.0F, 0.0F);
GL11.glTranslated(0.0, 0.025D, 0.0D);
}
} }
if(i == 5){ if(i == 5){

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 B

View File

@@ -1,9 +1,9 @@
{ {
"__comment": "Designed by Kitsushadow with Cubik Studio - https://cubik.studio", "__comment": "Designed by Kitsushadow with Cubik Studio - https://cubik.studio",
"textures": { "textures": {
"particle": "blocks/e_particle", "particle": "forgecraft:items/iron_ingot",
"texture": "blocks/e_texture", "texture": "blocks/planks_oak",
"texture1": "blocks/e_texture" "texture1": "forgecraft:items/iron_ingot"
}, },
"elements": [ "elements": [
{ {
@@ -12,12 +12,12 @@
"to": [ 9, 14, 6 ], "to": [ 9, 14, 6 ],
"rotation": { "origin": [ 7, 13, 6 ], "axis": "x", "angle": -22.5 }, "rotation": { "origin": [ 7, 13, 6 ], "axis": "x", "angle": -22.5 },
"faces": { "faces": {
"down": { "uv": [ 11, 16, 8, 15 ], "texture": "#texture", "rotation": 270 }, "down": { "uv": [ 6, 5, 3, 4 ], "texture": "#texture1", "rotation": 270 },
"up": { "uv": [ 5, 15, 8, 16 ], "texture": "#texture", "rotation": 90 }, "up": { "uv": [ 11, 3, 14, 4 ], "texture": "#texture1", "rotation": 90 },
"north": { "uv": [ 5, 15, 6, 16 ], "texture": "#texture", "rotation": 270 }, "north": { "uv": [ 2, 13, 3, 14 ], "texture": "#texture1", "rotation": 270 },
"south": { "uv": [ 10, 15, 11, 16 ], "texture": "#texture", "rotation": 90 }, "south": { "uv": [ 12, 9, 13, 10 ], "texture": "#texture1", "rotation": 90 },
"west": { "uv": [ 5, 5, 6, 8 ], "texture": "#texture", "rotation": 270 }, "west": { "uv": [ 6, 5, 7, 8 ], "texture": "#texture1", "rotation": 270 },
"east": { "uv": [ 6, 11, 5, 8 ], "texture": "#texture", "rotation": 90 } "east": { "uv": [ 6, 11, 5, 8 ], "texture": "#texture1", "rotation": 90 }
} }
}, },
{ {
@@ -25,12 +25,12 @@
"from": [ 7, 13, 5.5 ], "from": [ 7, 13, 5.5 ],
"to": [ 9, 14, 7.5 ], "to": [ 9, 14, 7.5 ],
"faces": { "faces": {
"down": { "uv": [ 8.5, 16, 6.5, 14 ], "texture": "#texture", "rotation": 270 }, "down": { "uv": [ 13, 13, 11, 11 ], "texture": "#texture1", "rotation": 270 },
"up": { "uv": [ 7.5, 14, 9.5, 16 ], "texture": "#texture", "rotation": 90 }, "up": { "uv": [ 4, 5, 6, 7 ], "texture": "#texture1", "rotation": 90 },
"north": { "uv": [ 7.5, 14, 8.5, 16 ], "texture": "#texture", "rotation": 270 }, "north": { "uv": [ 10, 8, 11, 10 ], "texture": "#texture1", "rotation": 270 },
"south": { "uv": [ 7.5, 14, 8.5, 16 ], "texture": "#texture", "rotation": 90 }, "south": { "uv": [ 5, 8, 6, 10 ], "texture": "#texture1", "rotation": 90 },
"west": { "uv": [ 7.5, 7.5, 9.5, 8.5 ], "texture": "#texture" }, "west": { "uv": [ 7, 8, 9, 9 ], "texture": "#texture1" },
"east": { "uv": [ 9.5, 8.5, 7.5, 7.5 ], "texture": "#texture" } "east": { "uv": [ 14, 3, 12, 2 ], "texture": "#texture1" }
} }
}, },
{ {
@@ -38,12 +38,12 @@
"from": [ 7, 13, 8.5 ], "from": [ 7, 13, 8.5 ],
"to": [ 9, 14, 9.5 ], "to": [ 9, 14, 9.5 ],
"faces": { "faces": {
"down": { "uv": [ 8.5, 16, 7.5, 14 ], "texture": "#texture", "rotation": 270 }, "down": { "uv": [ 6, 6, 5, 4 ], "texture": "#texture1", "rotation": 270 },
"up": { "uv": [ 7.5, 14, 8.5, 16 ], "texture": "#texture", "rotation": 90 }, "up": { "uv": [ 12, 4, 13, 6 ], "texture": "#texture1", "rotation": 90 },
"north": { "uv": [ 7.5, 14, 8.5, 16 ], "texture": "#texture", "rotation": 270 }, "north": { "uv": [ 4, 12, 5, 14 ], "texture": "#texture1", "rotation": 270 },
"south": { "uv": [ 7.5, 14, 8.5, 16 ], "texture": "#texture", "rotation": 90 }, "south": { "uv": [ 11, 11, 12, 13 ], "texture": "#texture1", "rotation": 90 },
"west": { "uv": [ 7.5, 7.5, 8.5, 8.5 ], "texture": "#texture" }, "west": { "uv": [ 8, 8, 9, 9 ], "texture": "#texture1" },
"east": { "uv": [ 8.5, 8.5, 7.5, 7.5 ], "texture": "#texture" } "east": { "uv": [ 6, 6, 5, 5 ], "texture": "#texture1" }
} }
}, },
{ {
@@ -51,12 +51,12 @@
"from": [ 7, 13, 7.5 ], "from": [ 7, 13, 7.5 ],
"to": [ 7.5, 14, 8.5 ], "to": [ 7.5, 14, 8.5 ],
"faces": { "faces": {
"down": { "uv": [ 6.5, 16, 5.5, 15.5 ], "texture": "#texture", "rotation": 270 }, "down": { "uv": [ 8, 11, 7, 10.5 ], "texture": "#texture1", "rotation": 270 },
"up": { "uv": [ 9.5, 15.5, 10.5, 16 ], "texture": "#texture", "rotation": 90 }, "up": { "uv": [ 11, 11.5, 12, 12 ], "texture": "#texture1", "rotation": 90 },
"north": { "uv": [ 7.5, 15.5, 8.5, 16 ], "texture": "#texture", "rotation": 270 }, "north": { "uv": [ 4, 4.5, 5, 5 ], "texture": "#texture1", "rotation": 270 },
"south": { "uv": [ 7.5, 15.5, 8.5, 16 ], "texture": "#texture", "rotation": 90 }, "south": { "uv": [ 12, 3.5, 13, 4 ], "texture": "#texture1", "rotation": 90 },
"west": { "uv": [ 9.5, 7.5, 10.5, 8.5 ], "texture": "#texture" }, "west": { "uv": [ 9, 8, 10, 9 ], "texture": "#texture1" },
"east": { "uv": [ 10.5, 8.5, 9.5, 7.5 ], "texture": "#texture" } "east": { "uv": [ 11, 9, 10, 8 ], "texture": "#texture1" }
} }
}, },
{ {
@@ -64,12 +64,12 @@
"from": [ 8.5, 13, 7.5 ], "from": [ 8.5, 13, 7.5 ],
"to": [ 9, 14, 8.5 ], "to": [ 9, 14, 8.5 ],
"faces": { "faces": {
"down": { "uv": [ 7.5, 16, 6.5, 15.5 ], "texture": "#texture", "rotation": 270 }, "down": { "uv": [ 5, 10, 4, 9.5 ], "texture": "#texture1", "rotation": 270 },
"up": { "uv": [ 8.5, 15.5, 9.5, 16 ], "texture": "#texture", "rotation": 90 }, "up": { "uv": [ 8, 6.5, 9, 7 ], "texture": "#texture1", "rotation": 90 },
"north": { "uv": [ 14, 15.5, 15, 16 ], "texture": "#texture", "rotation": 270 }, "north": { "uv": [ 10, 10.5, 11, 11 ], "texture": "#texture1", "rotation": 270 },
"south": { "uv": [ 1, 15.5, 2, 16 ], "texture": "#texture", "rotation": 90 }, "south": { "uv": [ 6, 10.5, 7, 11 ], "texture": "#texture1", "rotation": 90 },
"west": { "uv": [ 8.5, 1, 9.5, 2 ], "texture": "#texture" }, "west": { "uv": [ 8, 1, 9, 2 ], "texture": "#texture1" },
"east": { "uv": [ 9.5, 15, 8.5, 14 ], "texture": "#texture" } "east": { "uv": [ 6, 9, 5, 8 ], "texture": "#texture1" }
} }
}, },
{ {
@@ -78,12 +78,12 @@
"to": [ 9, 12, 3.5 ], "to": [ 9, 12, 3.5 ],
"rotation": { "origin": [ 9, 12, 3.5 ], "axis": "x", "angle": 45 }, "rotation": { "origin": [ 9, 12, 3.5 ], "axis": "x", "angle": 45 },
"faces": { "faces": {
"down": { "uv": [ 9, 4, 7, 3.5 ], "texture": "#texture" }, "down": { "uv": [ 9, 4, 7, 3.5 ], "texture": "#texture1" },
"up": { "uv": [ 7, 3.5, 9, 4 ], "texture": "#texture" }, "up": { "uv": [ 7, 4, 9, 4.5 ], "texture": "#texture1" },
"north": { "uv": [ 9, 3.5, 7, 1.5 ], "texture": "#texture", "rotation": 180 }, "north": { "uv": [ 12, 5, 10, 3 ], "texture": "#texture1", "rotation": 180 },
"south": { "uv": [ 7, 12.5, 9, 14.5 ], "texture": "#texture", "rotation": 180 }, "south": { "uv": [ 7, 12.5, 9, 14.5 ], "texture": "#texture1", "rotation": 180 },
"west": { "uv": [ 12.5, 3.5, 14.5, 4 ], "texture": "#texture", "rotation": 270 }, "west": { "uv": [ 12.5, 3.5, 14.5, 4 ], "texture": "#texture1", "rotation": 270 },
"east": { "uv": [ 1.5, 3.5, 3.5, 4 ], "texture": "#texture", "rotation": 90 } "east": { "uv": [ 1.5, 4.5, 3.5, 5 ], "texture": "#texture1", "rotation": 90 }
} }
}, },
{ {

View File

@@ -0,0 +1,122 @@
{
"__comment": "Designed by Kitsushadow with Cubik Studio - https://cubik.studio",
"textures": {
"particle": "items/iron_ingot",
"texture": "blocks/planks_oak",
"texture1": "items/iron_ingot",
"textur1e": "items/e_texture"
},
"elements": [
{
"__comment": "Cube2",
"from": [ 7, 13, 3 ],
"to": [ 9, 14, 6 ],
"rotation": { "origin": [ 7, 13, 6 ], "axis": "x", "angle": -22.5 },
"faces": {
"down": { "uv": [ 6, 5, 3, 4 ], "texture": "#texture1", "rotation": 270 },
"up": { "uv": [ 11, 3, 14, 4 ], "texture": "#texture1", "rotation": 90 },
"north": { "uv": [ 2, 13, 3, 14 ], "texture": "#texture1", "rotation": 270 },
"south": { "uv": [ 12, 9, 13, 10 ], "texture": "#texture1", "rotation": 90 },
"west": { "uv": [ 6, 5, 7, 8 ], "texture": "#texture1", "rotation": 270 },
"east": { "uv": [ 6, 11, 5, 8 ], "texture": "#texture1", "rotation": 90 }
}
},
{
"__comment": "Cube4",
"from": [ 7, 13, 5.5 ],
"to": [ 9, 14, 7.5 ],
"faces": {
"down": { "uv": [ 13, 13, 11, 11 ], "texture": "#texture1", "rotation": 270 },
"up": { "uv": [ 4, 5, 6, 7 ], "texture": "#texture1", "rotation": 90 },
"north": { "uv": [ 10, 8, 11, 10 ], "texture": "#texture1", "rotation": 270 },
"south": { "uv": [ 5, 8, 6, 10 ], "texture": "#texture1", "rotation": 90 },
"west": { "uv": [ 7, 8, 9, 9 ], "texture": "#texture1" },
"east": { "uv": [ 14, 3, 12, 2 ], "texture": "#texture1" }
}
},
{
"__comment": "Cube4",
"from": [ 7, 13, 8.5 ],
"to": [ 9, 14, 9.5 ],
"faces": {
"down": { "uv": [ 6, 6, 5, 4 ], "texture": "#texture1", "rotation": 270 },
"up": { "uv": [ 12, 4, 13, 6 ], "texture": "#texture1", "rotation": 90 },
"north": { "uv": [ 4, 12, 5, 14 ], "texture": "#texture1", "rotation": 270 },
"south": { "uv": [ 11, 11, 12, 13 ], "texture": "#texture1", "rotation": 90 },
"west": { "uv": [ 8, 8, 9, 9 ], "texture": "#texture1" },
"east": { "uv": [ 6, 6, 5, 5 ], "texture": "#texture1" }
}
},
{
"__comment": "Cube6",
"from": [ 7, 13, 7.5 ],
"to": [ 7.5, 14, 8.5 ],
"faces": {
"down": { "uv": [ 8, 11, 7, 10.5 ], "texture": "#texture1", "rotation": 270 },
"up": { "uv": [ 11, 11.5, 12, 12 ], "texture": "#texture1", "rotation": 90 },
"north": { "uv": [ 4, 4.5, 5, 5 ], "texture": "#texture1", "rotation": 270 },
"south": { "uv": [ 12, 3.5, 13, 4 ], "texture": "#texture1", "rotation": 90 },
"west": { "uv": [ 9, 8, 10, 9 ], "texture": "#texture1" },
"east": { "uv": [ 11, 9, 10, 8 ], "texture": "#texture1" }
}
},
{
"__comment": "Cube6",
"from": [ 8.5, 13, 7.5 ],
"to": [ 9, 14, 8.5 ],
"faces": {
"down": { "uv": [ 5, 10, 4, 9.5 ], "texture": "#texture1", "rotation": 270 },
"up": { "uv": [ 8, 6.5, 9, 7 ], "texture": "#texture1", "rotation": 90 },
"north": { "uv": [ 10, 10.5, 11, 11 ], "texture": "#texture1", "rotation": 270 },
"south": { "uv": [ 6, 10.5, 7, 11 ], "texture": "#texture1", "rotation": 90 },
"west": { "uv": [ 8, 1, 9, 2 ], "texture": "#texture1" },
"east": { "uv": [ 6, 9, 5, 8 ], "texture": "#texture1" }
}
},
{
"__comment": "Cube9",
"from": [ 7, 10, 3 ],
"to": [ 9, 12, 3.5 ],
"rotation": { "origin": [ 9, 12, 3.5 ], "axis": "x", "angle": 45 },
"faces": {
"down": { "uv": [ 9, 4, 7, 3.5 ], "texture": "#texture1" },
"up": { "uv": [ 7, 4, 9, 4.5 ], "texture": "#texture1" },
"north": { "uv": [ 12, 5, 10, 3 ], "texture": "#texture1", "rotation": 180 },
"south": { "uv": [ 7, 12.5, 9, 14.5 ], "texture": "#texture1", "rotation": 180 },
"west": { "uv": [ 12.5, 3.5, 14.5, 4 ], "texture": "#texture1", "rotation": 270 },
"east": { "uv": [ 1.5, 4.5, 3.5, 5 ], "texture": "#texture1", "rotation": 90 }
}
},
{
"__comment": "Cube10",
"from": [ 7.5, 0, 7.5 ],
"to": [ 8.5, 14.5, 8.5 ],
"faces": {
"down": { "uv": [ 7.5, 7.5, 8.5, 8.5 ], "texture": "#texture" },
"up": { "uv": [ 7.5, 7.5, 8.5, 8.5 ], "texture": "#texture" },
"north": { "uv": [ 7.5, 1.5, 8.5, 16 ], "texture": "#texture" },
"south": { "uv": [ 7.5, 1.5, 8.5, 16 ], "texture": "#texture" },
"west": { "uv": [ 7.5, 1.5, 8.5, 16 ], "texture": "#texture" },
"east": { "uv": [ 7.5, 1.5, 8.5, 16 ], "texture": "#texture" }
}
}
],
"display": {
"thirdperson_righthand": {
"translation": [ 0, 5, 1 ]
},
"firstperson_righthand": {
"translation": [ 0, 5, 1 ]
},
"gui": {
"rotation": [ 90, 45, -90 ]
},
"ground": {
"rotation": [ 90, 90, 0 ],
"translation": [ 0, -3, 0 ]
},
"fixed": {
"rotation": [ -90, -135, -90 ]
}
}
}

View File

@@ -1,9 +1,9 @@
{ {
"__comment": "Designed by Kitsushadow with Cubik Studio - https://cubik.studio", "__comment": "Designed by Kitsushadow with Cubik Studio - https://cubik.studio",
"textures": { "textures": {
"particle": "blocks/e_particle", "particle": "forgecraft:items/iron_ingot",
"texture": "blocks/e_texture", "texture": "forgecraft:items/iron_ingot",
"texture1": "blocks/e_texture" "texture1": "forgecraft:items/iron_ingot"
}, },
"elements": [ "elements": [
{ {
@@ -12,12 +12,12 @@
"to": [ 8.5, 2, 8 ], "to": [ 8.5, 2, 8 ],
"rotation": { "origin": [ 8.5, 0, 7 ], "axis": "y", "angle": 22.5 }, "rotation": { "origin": [ 8.5, 0, 7 ], "axis": "y", "angle": 22.5 },
"faces": { "faces": {
"down": { "uv": [ 5, 5, 6, 8 ], "texture": "#texture", "rotation": 270 }, "down": { "uv": [ 5, 5, 6, 8 ], "texture": "#texture1", "rotation": 270 },
"up": { "uv": [ 5, 8, 6, 11 ], "texture": "#texture", "rotation": 90 }, "up": { "uv": [ 5, 8, 6, 11 ], "texture": "#texture1", "rotation": 90 },
"north": { "uv": [ 8, 15, 11, 16 ], "texture": "#texture" }, "north": { "uv": [ 8, 10, 11, 11 ], "texture": "#texture1" },
"south": { "uv": [ 5, 15, 8, 16 ], "texture": "#texture" }, "south": { "uv": [ 5, 8, 8, 9 ], "texture": "#texture1" },
"west": { "uv": [ 5, 15, 6, 16 ], "texture": "#texture" }, "west": { "uv": [ 5, 3, 6, 4 ], "texture": "#texture1" },
"east": { "uv": [ 10, 15, 11, 16 ], "texture": "#texture" } "east": { "uv": [ 9, 4, 10, 5 ], "texture": "#texture1" }
} }
}, },
{ {
@@ -26,12 +26,12 @@
"to": [ 6.5, 2, 10.5 ], "to": [ 6.5, 2, 10.5 ],
"rotation": { "origin": [ 6, 0, 8.5 ], "axis": "y", "angle": -45 }, "rotation": { "origin": [ 6, 0, 8.5 ], "axis": "y", "angle": -45 },
"faces": { "faces": {
"down": { "uv": [ 5.5, 5, 6, 7 ], "texture": "#texture" }, "down": { "uv": [ 5.5, 5, 6, 7 ], "texture": "#texture1" },
"up": { "uv": [ 5.5, 9, 6, 11 ], "texture": "#texture" }, "up": { "uv": [ 5.5, 9, 6, 11 ], "texture": "#texture1" },
"north": { "uv": [ 10, 15, 10.5, 16 ], "texture": "#texture" }, "north": { "uv": [ 9.5, 9, 10, 10 ], "texture": "#texture1" },
"south": { "uv": [ 5.5, 15, 6, 16 ], "texture": "#texture" }, "south": { "uv": [ 9, 8, 9.5, 9 ], "texture": "#texture1" },
"west": { "uv": [ 9, 15, 11, 16 ], "texture": "#texture" }, "west": { "uv": [ 10, 10, 12, 11 ], "texture": "#texture1" },
"east": { "uv": [ 5, 15, 7, 16 ], "texture": "#texture" } "east": { "uv": [ 6, 10, 8, 11 ], "texture": "#texture1" }
} }
}, },
{ {
@@ -39,12 +39,12 @@
"from": [ 8, 0, 7 ], "from": [ 8, 0, 7 ],
"to": [ 10, 2, 8 ], "to": [ 10, 2, 8 ],
"faces": { "faces": {
"down": { "uv": [ 7.5, 7.5, 9.5, 8.5 ], "texture": "#texture" }, "down": { "uv": [ 7, 8, 9, 9 ], "texture": "#texture1" },
"up": { "uv": [ 7.5, 7.5, 9.5, 8.5 ], "texture": "#texture" }, "up": { "uv": [ 10, 6, 12, 7 ], "texture": "#texture1" },
"north": { "uv": [ 6.5, 14, 8.5, 16 ], "texture": "#texture" }, "north": { "uv": [ 4, 3, 6, 5 ], "texture": "#texture1" },
"south": { "uv": [ 7.5, 14, 9.5, 16 ], "texture": "#texture" }, "south": { "uv": [ 8, 5, 10, 7 ], "texture": "#texture1" },
"west": { "uv": [ 7.5, 14, 8.5, 16 ], "texture": "#texture" }, "west": { "uv": [ 9, 9, 10, 11 ], "texture": "#texture1" },
"east": { "uv": [ 7.5, 14, 8.5, 16 ], "texture": "#texture" } "east": { "uv": [ 8, 9, 9, 11 ], "texture": "#texture1" }
} }
}, },
{ {
@@ -52,12 +52,12 @@
"from": [ 11, 0, 7 ], "from": [ 11, 0, 7 ],
"to": [ 12, 2, 8 ], "to": [ 12, 2, 8 ],
"faces": { "faces": {
"down": { "uv": [ 7.5, 7.5, 8.5, 8.5 ], "texture": "#texture" }, "down": { "uv": [ 5, 2, 6, 3 ], "texture": "#texture1" },
"up": { "uv": [ 7.5, 7.5, 8.5, 8.5 ], "texture": "#texture" }, "up": { "uv": [ 7, 8, 8, 9 ], "texture": "#texture1" },
"north": { "uv": [ 7.5, 14, 8.5, 16 ], "texture": "#texture" }, "north": { "uv": [ 4, 13, 5, 15 ], "texture": "#texture1" },
"south": { "uv": [ 7.5, 14, 8.5, 16 ], "texture": "#texture" }, "south": { "uv": [ 13, 11, 14, 13 ], "texture": "#texture1" },
"west": { "uv": [ 7.5, 14, 8.5, 16 ], "texture": "#texture" }, "west": { "uv": [ 4, 11, 5, 13 ], "texture": "#texture1" },
"east": { "uv": [ 7.5, 14, 8.5, 16 ], "texture": "#texture" } "east": { "uv": [ 10, 10, 11, 12 ], "texture": "#texture1" }
} }
}, },
{ {
@@ -65,12 +65,12 @@
"from": [ 10, 0, 7 ], "from": [ 10, 0, 7 ],
"to": [ 11, 0.5, 8 ], "to": [ 11, 0.5, 8 ],
"faces": { "faces": {
"down": { "uv": [ 9.5, 7.5, 10.5, 8.5 ], "texture": "#texture" }, "down": { "uv": [ 10, 8, 11, 9 ], "texture": "#texture1" },
"up": { "uv": [ 9.5, 7.5, 10.5, 8.5 ], "texture": "#texture" }, "up": { "uv": [ 6, 5, 7, 6 ], "texture": "#texture1" },
"north": { "uv": [ 5.5, 15.5, 6.5, 16 ], "texture": "#texture" }, "north": { "uv": [ 3, 12.5, 4, 13 ], "texture": "#texture1" },
"south": { "uv": [ 9.5, 15.5, 10.5, 16 ], "texture": "#texture" }, "south": { "uv": [ 3, 13, 4, 13.5 ], "texture": "#texture1" },
"west": { "uv": [ 7.5, 15.5, 8.5, 16 ], "texture": "#texture" }, "west": { "uv": [ 12, 9.5, 13, 10 ], "texture": "#texture1" },
"east": { "uv": [ 7.5, 15.5, 8.5, 16 ], "texture": "#texture" } "east": { "uv": [ 12, 10.5, 13, 11 ], "texture": "#texture1" }
} }
}, },
{ {
@@ -78,13 +78,41 @@
"from": [ 10, 1.5, 7 ], "from": [ 10, 1.5, 7 ],
"to": [ 11, 2, 8 ], "to": [ 11, 2, 8 ],
"faces": { "faces": {
"down": { "uv": [ 8.5, 1, 9.5, 2 ], "texture": "#texture" }, "down": { "uv": [ 5, 1, 6, 2 ], "texture": "#texture1" },
"up": { "uv": [ 8.5, 14, 9.5, 15 ], "texture": "#texture" }, "up": { "uv": [ 10, 4, 11, 5 ], "texture": "#texture1" },
"north": { "uv": [ 6.5, 15.5, 7.5, 16 ], "texture": "#texture" }, "north": { "uv": [ 7, 2.5, 8, 3 ], "texture": "#texture1" },
"south": { "uv": [ 8.5, 15.5, 9.5, 16 ], "texture": "#texture" }, "south": { "uv": [ 7, 11.5, 8, 12 ], "texture": "#texture1" },
"west": { "uv": [ 14, 15.5, 15, 16 ], "texture": "#texture" }, "west": { "uv": [ 13, 2.5, 14, 3 ], "texture": "#texture1" },
"east": { "uv": [ 1, 15.5, 2, 16 ], "texture": "#texture" } "east": { "uv": [ 3, 5.5, 4, 6 ], "texture": "#texture1" }
}
}
],
"display": {
"thirdperson_righthand": {
"rotation": [ -20, 0, -90 ],
"translation": [ 7, 2.9, 0 ]
},
"thirdperson_lefthand": {
"rotation": [ -20, 0, -90 ],
"translation": [ 7, 2.9, 0 ]
},
"firstperson_righthand": {
"rotation": [ -60, 0, -90 ],
"translation": [ 7, 2.9, 0 ]
},
"firstperson_lefthand": {
"rotation": [ -60, 0, -90 ],
"translation": [ 7, 2.9, 0 ]
},
"gui": {
"translation": [ -0.25, 7, 8 ]
},
"ground": {
"translation": [ 0, 4, 0 ]
},
"fixed": {
"rotation": [ 90, 0, -180 ],
"translation": [ 0, 0, -7.25 ]
} }
} }
]
} }

View File

@@ -0,0 +1,118 @@
{
"__comment": "Designed by Kitsushadow with Cubik Studio - https://cubik.studio",
"textures": {
"particle": "items/iron_ingot",
"texture": "items/iron_ingot",
"texture1": "items/iron_ingot"
},
"elements": [
{
"__comment": "Cube2",
"from": [ 5.5, 0, 7 ],
"to": [ 8.5, 2, 8 ],
"rotation": { "origin": [ 8.5, 0, 7 ], "axis": "y", "angle": 22.5 },
"faces": {
"down": { "uv": [ 5, 5, 6, 8 ], "texture": "#texture1", "rotation": 270 },
"up": { "uv": [ 5, 8, 6, 11 ], "texture": "#texture1", "rotation": 90 },
"north": { "uv": [ 8, 10, 11, 11 ], "texture": "#texture1" },
"south": { "uv": [ 5, 8, 8, 9 ], "texture": "#texture1" },
"west": { "uv": [ 5, 3, 6, 4 ], "texture": "#texture1" },
"east": { "uv": [ 9, 4, 10, 5 ], "texture": "#texture1" }
}
},
{
"__comment": "Cube3",
"from": [ 6, 0, 8.5 ],
"to": [ 6.5, 2, 10.5 ],
"rotation": { "origin": [ 6, 0, 8.5 ], "axis": "y", "angle": -45 },
"faces": {
"down": { "uv": [ 5.5, 5, 6, 7 ], "texture": "#texture1" },
"up": { "uv": [ 5.5, 9, 6, 11 ], "texture": "#texture1" },
"north": { "uv": [ 9.5, 9, 10, 10 ], "texture": "#texture1" },
"south": { "uv": [ 9, 8, 9.5, 9 ], "texture": "#texture1" },
"west": { "uv": [ 10, 10, 12, 11 ], "texture": "#texture1" },
"east": { "uv": [ 6, 10, 8, 11 ], "texture": "#texture1" }
}
},
{
"__comment": "Cube4",
"from": [ 8, 0, 7 ],
"to": [ 10, 2, 8 ],
"faces": {
"down": { "uv": [ 7, 8, 9, 9 ], "texture": "#texture1" },
"up": { "uv": [ 10, 6, 12, 7 ], "texture": "#texture1" },
"north": { "uv": [ 4, 3, 6, 5 ], "texture": "#texture1" },
"south": { "uv": [ 8, 5, 10, 7 ], "texture": "#texture1" },
"west": { "uv": [ 9, 9, 10, 11 ], "texture": "#texture1" },
"east": { "uv": [ 8, 9, 9, 11 ], "texture": "#texture1" }
}
},
{
"__comment": "Cube4",
"from": [ 11, 0, 7 ],
"to": [ 12, 2, 8 ],
"faces": {
"down": { "uv": [ 5, 2, 6, 3 ], "texture": "#texture1" },
"up": { "uv": [ 7, 8, 8, 9 ], "texture": "#texture1" },
"north": { "uv": [ 4, 13, 5, 15 ], "texture": "#texture1" },
"south": { "uv": [ 13, 11, 14, 13 ], "texture": "#texture1" },
"west": { "uv": [ 4, 11, 5, 13 ], "texture": "#texture1" },
"east": { "uv": [ 10, 10, 11, 12 ], "texture": "#texture1" }
}
},
{
"__comment": "Cube6",
"from": [ 10, 0, 7 ],
"to": [ 11, 0.5, 8 ],
"faces": {
"down": { "uv": [ 10, 8, 11, 9 ], "texture": "#texture1" },
"up": { "uv": [ 6, 5, 7, 6 ], "texture": "#texture1" },
"north": { "uv": [ 3, 12.5, 4, 13 ], "texture": "#texture1" },
"south": { "uv": [ 3, 13, 4, 13.5 ], "texture": "#texture1" },
"west": { "uv": [ 12, 9.5, 13, 10 ], "texture": "#texture1" },
"east": { "uv": [ 12, 10.5, 13, 11 ], "texture": "#texture1" }
}
},
{
"__comment": "Cube6",
"from": [ 10, 1.5, 7 ],
"to": [ 11, 2, 8 ],
"faces": {
"down": { "uv": [ 5, 1, 6, 2 ], "texture": "#texture1" },
"up": { "uv": [ 10, 4, 11, 5 ], "texture": "#texture1" },
"north": { "uv": [ 7, 2.5, 8, 3 ], "texture": "#texture1" },
"south": { "uv": [ 7, 11.5, 8, 12 ], "texture": "#texture1" },
"west": { "uv": [ 13, 2.5, 14, 3 ], "texture": "#texture1" },
"east": { "uv": [ 3, 5.5, 4, 6 ], "texture": "#texture1" }
}
}
],
"display": {
"thirdperson_righthand": {
"rotation": [ -20, 0, -90 ],
"translation": [ 7, 2.9, 0 ]
},
"thirdperson_lefthand": {
"rotation": [ -20, 0, -90 ],
"translation": [ 7, 2.9, 0 ]
},
"firstperson_righthand": {
"rotation": [ -60, 0, -90 ],
"translation": [ 7, 2.9, 0 ]
},
"firstperson_lefthand": {
"rotation": [ -60, 0, -90 ],
"translation": [ 7, 2.9, 0 ]
},
"gui": {
"translation": [ -0.25, 7, 8 ]
},
"ground": {
"translation": [ 0, 4, 0 ]
},
"fixed": {
"rotation": [ 90, 0, -180 ],
"translation": [ 0, 0, -7.25 ]
}
}
}

View File

@@ -0,0 +1,33 @@
{
"parent": "forgecraft:item/hoe",
"textures": {
"particle": "forgecraft:items/iron_ingot",
"texture": "blocks/planks_oak",
"texture1": "forgecraft:items/iron_ingot"
},
"overrides": [
{"predicate": {"type": 0.0},"model": "forgecraft:item/ironhoe"},
{"predicate": {"type": 0.0001},"model": "forgecraft:item/ironhoe_13"},
{"predicate": {"type": 0.0002},"model": "forgecraft:item/ironhoe_14"},
{"predicate": {"type": 0.0003},"model": "forgecraft:item/ironhoe_15"},
{"predicate": {"type": 0.001},"model": "forgecraft:item/ironhoe_10"},
{"predicate": {"type": 0.0012},"model": "forgecraft:item/ironhoe_19"},
{"predicate": {"type": 0.002},"model": "forgecraft:item/ironhoe_11"},
{"predicate": {"type": 0.0021},"model": "forgecraft:item/ironhoe_20"},
{"predicate": {"type": 0.003},"model": "forgecraft:item/ironhoe_12"},
{"predicate": {"type": 0.01},"model": "forgecraft:item/ironhoe_7"},
{"predicate": {"type": 0.0102},"model": "forgecraft:item/ironhoe_21"},
{"predicate": {"type": 0.0111},"model": "forgecraft:item/ironhoe_16"},
{"predicate": {"type": 0.012},"model": "forgecraft:item/ironhoe_18"},
{"predicate": {"type": 0.02},"model": "forgecraft:item/ironhoe_8"},
{"predicate": {"type": 0.021},"model": "forgecraft:item/ironhoe_17"},
{"predicate": {"type": 0.03},"model": "forgecraft:item/ironhoe_9"},
{"predicate": {"type": 0.1},"model": "forgecraft:item/ironhoe_2"},
{"predicate": {"type": 0.102},"model": "forgecraft:item/ironhoe_6"},
{"predicate": {"type": 0.11},"model": "forgecraft:item/ironhoe_3"},
{"predicate": {"type": 0.111},"model": "forgecraft:item/ironhoe_5"},
{"predicate": {"type": 0.12},"model": "forgecraft:item/ironhoe_4"},
{"predicate": {"type": 1.0},"model": "forgecraft:item/ironhoe_1"}
]
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,37 @@
{
"parent": "forgecraft:item/hoehead",
"textures": {
"particle": "forgecraft:items/iron_ingot",
"texture": "blocks/planks_oak",
"texture1": "forgecraft:items/iron_ingot"
},
"overrides": [
{"predicate": {"type": 0.0},"model": "forgecraft:item/ironhoehead_0"},
{"predicate": {"type": 0.0001},"model": "forgecraft:item/ironhoehead_13"},
{"predicate": {"type": 0.0002},"model": "forgecraft:item/ironhoehead_14"},
{"predicate": {"type": 0.0003},"model": "forgecraft:item/ironhoehead_15"},
{"predicate": {"type": 0.001},"model": "forgecraft:item/ironhoehead_10"},
{"predicate": {"type": 0.0012},"model": "forgecraft:item/ironhoehead_19"},
{"predicate": {"type": 0.002},"model": "forgecraft:item/ironhoehead_11"},
{"predicate": {"type": 0.0021},"model": "forgecraft:item/ironhoehead_20"},
{"predicate": {"type": 0.003},"model": "forgecraft:item/ironhoehead_12"},
{"predicate": {"type": 0.01},"model": "forgecraft:item/ironhoehead_7"},
{"predicate": {"type": 0.0102},"model": "forgecraft:item/ironhoehead_21"},
{"predicate": {"type": 0.0111},"model": "forgecraft:item/ironhoehead_16"},
{"predicate": {"type": 0.012},"model": "forgecraft:item/ironhoehead_18"},
{"predicate": {"type": 0.02},"model": "forgecraft:item/ironhoehead_8"},
{"predicate": {"type": 0.021},"model": "forgecraft:item/ironhoehead_17"},
{"predicate": {"type": 0.03},"model": "forgecraft:item/ironhoehead_9"},
{"predicate": {"type": 0.1},"model": "forgecraft:item/ironhoehead_2"},
{"predicate": {"type": 0.102},"model": "forgecraft:item/ironhoehead_6"},
{"predicate": {"type": 0.11},"model": "forgecraft:item/ironhoehead_3"},
{"predicate": {"type": 0.111},"model": "forgecraft:item/ironhoehead_5"},
{"predicate": {"type": 0.12},"model": "forgecraft:item/ironhoehead_4"},
{"predicate": {"type": 1.0},"model": "forgecraft:item/ironhoehead_1"}
]
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,33 @@
{
"parent": "forgecraft:item/shovel",
"textures": {
"particle": "forgecraft:items/iron_ingot",
"texture": "blocks/planks_oak",
"texture1": "forgecraft:items/iron_ingot"
},
"overrides": [
{"predicate": {"type": 0.0},"model": "forgecraft:item/ironshovel_0"},
{"predicate": {"type": 0.0001},"model": "forgecraft:item/ironshovel_13"},
{"predicate": {"type": 0.0002},"model": "forgecraft:item/ironshovel_14"},
{"predicate": {"type": 0.0003},"model": "forgecraft:item/ironshovel_15"},
{"predicate": {"type": 0.001},"model": "forgecraft:item/ironshovel_10"},
{"predicate": {"type": 0.0012},"model": "forgecraft:item/ironshovel_19"},
{"predicate": {"type": 0.002},"model": "forgecraft:item/ironshovel_11"},
{"predicate": {"type": 0.0021},"model": "forgecraft:item/ironshovel_20"},
{"predicate": {"type": 0.003},"model": "forgecraft:item/ironshovel_12"},
{"predicate": {"type": 0.01},"model": "forgecraft:item/ironshovel_7"},
{"predicate": {"type": 0.0102},"model": "forgecraft:item/ironshovel_21"},
{"predicate": {"type": 0.0111},"model": "forgecraft:item/ironshovel_16"},
{"predicate": {"type": 0.012},"model": "forgecraft:item/ironshovel_18"},
{"predicate": {"type": 0.02},"model": "forgecraft:item/ironshovel_8"},
{"predicate": {"type": 0.021},"model": "forgecraft:item/ironshovel_17"},
{"predicate": {"type": 0.03},"model": "forgecraft:item/ironshovel_9"},
{"predicate": {"type": 0.1},"model": "forgecraft:item/ironshovel_2"},
{"predicate": {"type": 0.102},"model": "forgecraft:item/ironshovel_6"},
{"predicate": {"type": 0.11},"model": "forgecraft:item/ironshovel_3"},
{"predicate": {"type": 0.111},"model": "forgecraft:item/ironshovel_5"},
{"predicate": {"type": 0.12},"model": "forgecraft:item/ironshovel_4"},
{"predicate": {"type": 1.0},"model": "forgecraft:item/ironshovel_1"}
]
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,193 @@
{
"__comment": "Designed by Kitsushadow with Cubik Studio - https://cubik.studio",
"textures": {
"particle": "blocks/planks_oak",
"texture": "blocks/planks_oak",
"texture1": "forgecraft:blocks/stone_slab",
"texture2": "forgecraft:blocks/iron_ingot_hot"
},
"elements": [
{
"__comment": "Cube1",
"from": [ 6, 0, 1 ],
"to": [ 7, 1, 4 ],
"faces": {
"down": { "uv": [ 4, 12, 5, 15 ], "texture": "#texture1" },
"up": { "uv": [ 4, 1, 5, 4 ], "texture": "#texture1" },
"north": { "uv": [ 11, 13, 12, 14 ], "texture": "#texture1" },
"south": { "uv": [ 4, 13, 5, 14 ], "texture": "#texture1" },
"west": { "uv": [ 1, 14, 4, 15 ], "texture": "#texture1" },
"east": { "uv": [ 12, 14, 15, 15 ], "texture": "#texture1" }
}
},
{
"__comment": "Cube2",
"from": [ 9, 0, 1 ],
"to": [ 10, 1, 4 ],
"faces": {
"down": { "uv": [ 4, 12, 5, 15 ], "texture": "#texture1" },
"up": { "uv": [ 4, 1, 5, 4 ], "texture": "#texture1" },
"north": { "uv": [ 11, 13, 12, 14 ], "texture": "#texture1" },
"south": { "uv": [ 4, 13, 5, 14 ], "texture": "#texture1" },
"west": { "uv": [ 1, 14, 4, 15 ], "texture": "#texture1" },
"east": { "uv": [ 12, 14, 15, 15 ], "texture": "#texture1" }
}
},
{
"__comment": "Cube3",
"from": [ 6, 0, 4 ],
"to": [ 7, 1, 9 ],
"rotation": { "origin": [ 6, 0, 4 ], "axis": "y", "angle": 45 },
"faces": {
"down": { "uv": [ 7, 0, 8, 7 ], "texture": "#texture" },
"up": { "uv": [ 4, 3, 5, 10 ], "texture": "#texture" },
"north": { "uv": [ 11, 15, 12, 16 ], "texture": "#texture" },
"south": { "uv": [ 4, 15, 5, 16 ], "texture": "#texture" },
"west": { "uv": [ 3, 15, 10, 16 ], "texture": "#texture" },
"east": { "uv": [ 7, 15, 14, 16 ], "texture": "#texture" }
}
},
{
"__comment": "Cube5",
"from": [ 6, 0, 7 ],
"to": [ 7, 1, 16 ],
"faces": {
"down": { "uv": [ 6, 0, 7, 9 ], "texture": "#texture" },
"up": { "uv": [ 6, 0, 7, 9 ], "texture": "#texture" },
"north": { "uv": [ 9, 15, 10, 16 ], "texture": "#texture" },
"south": { "uv": [ 7, 15, 8, 16 ], "texture": "#texture" },
"west": { "uv": [ 7, 15, 16, 16 ], "texture": "#texture" },
"east": { "uv": [ 0, 15, 9, 16 ], "texture": "#texture" }
}
},
{
"__comment": "Cube6",
"from": [ 9, 0, 7 ],
"to": [ 10, 1, 16 ],
"faces": {
"down": { "uv": [ 6, 0, 7, 9 ], "texture": "#texture" },
"up": { "uv": [ 6, 7, 7, 16 ], "texture": "#texture" },
"north": { "uv": [ 9, 15, 10, 16 ], "texture": "#texture" },
"south": { "uv": [ 7, 15, 8, 16 ], "texture": "#texture" },
"west": { "uv": [ 7, 15, 16, 16 ], "texture": "#texture" },
"east": { "uv": [ 0, 15, 9, 16 ], "texture": "#texture" }
}
},
{
"__comment": "Cube3",
"from": [ 9, 0, 4 ],
"to": [ 10, 1, 9 ],
"rotation": { "origin": [ 10, 1, 4 ], "axis": "y", "angle": -45 },
"faces": {
"down": { "uv": [ 4, 3, 5, 10 ], "texture": "#texture", "rotation": 180 },
"up": { "uv": [ 4, 2, 5, 9 ], "texture": "#texture", "rotation": 180 },
"north": { "uv": [ 12, 16, 11, 15 ], "texture": "#texture" },
"south": { "uv": [ 5, 16, 4, 15 ], "texture": "#texture" },
"west": { "uv": [ 7, 15, 14, 16 ], "texture": "#texture", "rotation": 180 },
"east": { "uv": [ 3, 15, 10, 16 ], "texture": "#texture", "rotation": 180 }
}
},
{
"__comment": "Cube2",
"from": [ 7, 0, -2 ],
"to": [ 9, 1, 1 ],
"rotation": { "origin": [ 9, 1, 1 ], "axis": "x", "angle": 22.5 },
"faces": {
"down": { "uv": [ 5, 15, 8, 16 ], "texture": "#texture2", "rotation": 270 },
"up": { "uv": [ 11, 16, 8, 15 ], "texture": "#texture2", "rotation": 90 },
"north": { "uv": [ 5, 15, 6, 16 ], "texture": "#texture2", "rotation": 90 },
"south": { "uv": [ 10, 15, 11, 16 ], "texture": "#texture2", "rotation": 270 },
"west": { "uv": [ 5, 8, 6, 11 ], "texture": "#texture2", "rotation": 90 },
"east": { "uv": [ 6, 8, 5, 5 ], "texture": "#texture2", "rotation": 270 }
}
},
{
"__comment": "Cube3",
"from": [ 7, 1.5, -3.5 ],
"to": [ 9, 2, -1.5 ],
"rotation": { "origin": [ 9, 2, -1.5 ], "axis": "x", "angle": 45 },
"faces": {
"down": { "uv": [ 5, 15, 7, 16 ], "texture": "#texture2", "rotation": 270 },
"up": { "uv": [ 11, 16, 9, 15 ], "texture": "#texture2", "rotation": 90 },
"north": { "uv": [ 5.5, 15, 6, 16 ], "texture": "#texture2", "rotation": 90 },
"south": { "uv": [ 10, 15, 10.5, 16 ], "texture": "#texture2", "rotation": 270 },
"west": { "uv": [ 5.5, 9, 6, 11 ], "texture": "#texture2", "rotation": 90 },
"east": { "uv": [ 6, 7, 5.5, 5 ], "texture": "#texture2", "rotation": 270 }
}
},
{
"__comment": "Cube4",
"from": [ 7, 0, 0.5 ],
"to": [ 9, 1, 2.5 ],
"faces": {
"down": { "uv": [ 8.5, 16, 6.5, 14 ], "texture": "#texture2", "rotation": 270 },
"up": { "uv": [ 7.5, 14, 9.5, 16 ], "texture": "#texture2", "rotation": 90 },
"north": { "uv": [ 7.5, 14, 8.5, 16 ], "texture": "#texture2", "rotation": 270 },
"south": { "uv": [ 7.5, 14, 8.5, 16 ], "texture": "#texture2", "rotation": 90 },
"west": { "uv": [ 7.5, 7.5, 9.5, 8.5 ], "texture": "#texture2" },
"east": { "uv": [ 9.5, 8.5, 7.5, 7.5 ], "texture": "#texture2" }
}
},
{
"__comment": "Cube4",
"from": [ 7, 0, 3.5 ],
"to": [ 9, 1, 4 ],
"faces": {
"down": { "uv": [ 8.5, 16, 8, 14 ], "texture": "#texture2", "rotation": 270 },
"up": { "uv": [ 7.5, 14, 8, 16 ], "texture": "#texture2", "rotation": 90 },
"north": { "uv": [ 7.5, 14, 8.5, 16 ], "texture": "#texture2", "rotation": 270 },
"south": { "uv": [ 7.5, 14, 8.5, 16 ], "texture": "#texture2", "rotation": 90 },
"west": { "uv": [ 7.5, 7.5, 8, 8.5 ], "texture": "#texture2" },
"east": { "uv": [ 8.5, 8.5, 8, 7.5 ], "texture": "#texture2" }
}
},
{
"__comment": "Cube6",
"from": [ 7, 0, 2.5 ],
"to": [ 7.5, 1, 3.5 ],
"faces": {
"down": { "uv": [ 6.5, 16, 5.5, 15.5 ], "texture": "#texture2", "rotation": 270 },
"up": { "uv": [ 9.5, 15.5, 10.5, 16 ], "texture": "#texture2", "rotation": 90 },
"north": { "uv": [ 7.5, 15.5, 8.5, 16 ], "texture": "#texture2", "rotation": 270 },
"south": { "uv": [ 7.5, 15.5, 8.5, 16 ], "texture": "#texture2", "rotation": 90 },
"west": { "uv": [ 9.5, 7.5, 10.5, 8.5 ], "texture": "#texture2" },
"east": { "uv": [ 10.5, 8.5, 9.5, 7.5 ], "texture": "#texture2" }
}
},
{
"__comment": "Cube6",
"from": [ 8.5, 0, 2.5 ],
"to": [ 9, 1, 3.5 ],
"faces": {
"down": { "uv": [ 7.5, 16, 6.5, 15.5 ], "texture": "#texture2", "rotation": 270 },
"up": { "uv": [ 8.5, 15.5, 9.5, 16 ], "texture": "#texture2", "rotation": 90 },
"north": { "uv": [ 14, 15.5, 15, 16 ], "texture": "#texture2", "rotation": 270 },
"south": { "uv": [ 1, 15.5, 2, 16 ], "texture": "#texture2", "rotation": 90 },
"west": { "uv": [ 8.5, 1, 9.5, 2 ], "texture": "#texture2" },
"east": { "uv": [ 9.5, 15, 8.5, 14 ], "texture": "#texture2" }
}
}
],
"display": {
"thirdperson_righthand": {
"rotation": [ 60, 0, 0 ],
"translation": [ 0, 8.33, 3.5 ]
},
"firstperson_righthand": {
"rotation": [ 20, 0, 0 ],
"translation": [ 0, 8, -2 ]
},
"gui": {
"rotation": [ 90, -45, 0 ],
"translation": [ -1.5, -1.5, 6 ],
"scale": [ 0.75, 0.75, 0.75 ]
},
"ground": {
"translation": [ 0, 4, 0 ]
},
"fixed": {
"rotation": [ -90, 135, 0 ],
"translation": [ 2.5, -2.5, -7 ]
}
}
}

View File

@@ -0,0 +1,10 @@
{
"forge_marker":1,
"textures": {
"particle": "blocks/planks_oak",
"texture": "blocks/planks_oak",
"texture1": "forgecraft:blocks/stone_slab",
"texture2": "forgecraft:blocks/iron_ingot_hot"
},
"parent": "forgecraft:item/stonetongs_hoe_default"
}

View File

@@ -1,10 +1,10 @@
{ {
"__comment": "Designed by Kitsushadow with Cubik Studio - https://cubik.studio", "__comment": "Designed by Kitsushadow with Cubik Studio - https://cubik.studio",
"textures": { "textures": {
"particle": "blocks/e_particle", "particle": "blocks/planks_oak",
"texture": "items/iron_ingot", "texture": "blocks/planks_oak",
"texture1": "blocks/e_texture", "texture1": "forgecraft:blocks/stone_slab",
"texture2": "blocks/iron_ingot_hot" "texture2": "forgecraft:blocks/iron_ingot_hot"
}, },
"elements": [ "elements": [
{ {