From f5f00fd2e73cf0aeb472b3421f666d3af6f5686b Mon Sep 17 00:00:00 2001 From: Mohammad-Ali Minaie Date: Wed, 3 Oct 2018 17:39:12 -0400 Subject: [PATCH] updated enchantment remove logic and created models for chisel and sledgehammer --- kfc/To-Dos.md | 1 + .../forgecraft/blocks/ingots/IngotBall.java | 126 ---------- .../forgecraft/items/tools/AbstractAxe.java | 3 +- .../forgecraft/items/tools/AbstractHoe.java | 6 +- .../items/tools/AbstractPickaxe.java | 6 +- .../items/tools/AbstractShovel.java | 6 +- .../forgecraft/models/item/chisel_model.json | 230 ++++++++++++++++++ .../models/item/sledgehammer_model.json | 88 +++++++ 8 files changed, 333 insertions(+), 133 deletions(-) delete mode 100644 kfc/src/main/java/nmd/primal/forgecraft/blocks/ingots/IngotBall.java create mode 100644 kfc/src/main/resources/assets/forgecraft/models/item/chisel_model.json create mode 100644 kfc/src/main/resources/assets/forgecraft/models/item/sledgehammer_model.json diff --git a/kfc/To-Dos.md b/kfc/To-Dos.md index ae5f5856..33c1fe7b 100644 --- a/kfc/To-Dos.md +++ b/kfc/To-Dos.md @@ -1,6 +1,7 @@ # To-Dos ## Bugs +- [ ] Can't put a crucible straight from creative inventory into bloomery and pull with tongs ## Current Feature - [ ] Hardness and Resistance calculation for durability damage diff --git a/kfc/src/main/java/nmd/primal/forgecraft/blocks/ingots/IngotBall.java b/kfc/src/main/java/nmd/primal/forgecraft/blocks/ingots/IngotBall.java deleted file mode 100644 index ac0b2ef4..00000000 --- a/kfc/src/main/java/nmd/primal/forgecraft/blocks/ingots/IngotBall.java +++ /dev/null @@ -1,126 +0,0 @@ -package nmd.primal.forgecraft.blocks.ingots; - -import net.minecraft.block.BlockDynamicLiquid; -import net.minecraft.block.material.Material; -import net.minecraft.block.properties.IProperty; -import net.minecraft.block.state.BlockStateContainer; -import net.minecraft.block.state.IBlockState; -import net.minecraft.entity.EntityLivingBase; -import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.init.Blocks; -import net.minecraft.init.SoundEvents; -import net.minecraft.item.ItemStack; -import net.minecraft.util.SoundCategory; -import net.minecraft.util.math.AxisAlignedBB; -import net.minecraft.util.math.BlockPos; -import net.minecraft.world.IBlockAccess; -import net.minecraft.world.World; -import nmd.primal.core.api.PrimalAPI; -import nmd.primal.forgecraft.ModInfo; -import nmd.primal.forgecraft.blocks.BlockCustomBase; - -import java.util.Random; -import java.util.concurrent.ThreadLocalRandom; - -/** - * Created by mminaie on 2/6/17. - */ -public class IngotBall extends BlockCustomBase { - - protected static AxisAlignedBB boundBoxLarge = new AxisAlignedBB(6/16D, 0.0D, 6/16D, 10/16D, 4/16D, 10/16D); - protected static AxisAlignedBB boundBoxSmall = new AxisAlignedBB(7/16D, 0.0D, 7/16D, 9/16D, 2/16D, 9/16D); - //public static final PropertyBool ACTIVE = PropertyBool.create("active"); - private String AABBsize; - - public IngotBall(Material material, String registryName, Float hardness, String size){ - super(material, registryName, hardness); - this.setTickRandomly(true); - this.AABBsize = size; - setCreativeTab(ModInfo.TAB_FORGECRAFT); - setDefaultState(this.blockState.getBaseState().withProperty(PrimalAPI.States.ACTIVE, Boolean.valueOf(false))); - } - - - @Override - public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos) - { - - if(this.AABBsize.equals("small")){ - return boundBoxSmall; - }else - return boundBoxLarge; - } - - - - @Override - public void onBlockPlacedBy(World worldIn, BlockPos pos, IBlockState state, EntityLivingBase placer, ItemStack stack) - { - System.out.println("Print Something"); - System.out.println(stack.getTagCompound()); - //worldIn.setBlockState(pos, state.withProperty(PrimalAPI.States.ACTIVE, Boolean.valueOf(false)), 2); - //System.out.println(state.getValue(ACTIVE)); - } - - public void onBlockDestroyedByPlayer(World world, BlockPos pos, IBlockState state) - { - - if(!world.isRemote){ - if(state.getValue(PrimalAPI.States.ACTIVE)){ - world.setBlockState(pos, Blocks.FLOWING_LAVA.getDefaultState().withProperty(BlockDynamicLiquid.LEVEL, 1), 3); - } - if(!state.getValue(PrimalAPI.States.ACTIVE)){ - //PlayerHelper.spawnItemOnGround(world, pos, new ItemStack(this, 1)); - } - } - } - - @Override - public int getMetaFromState(IBlockState state) { - int i = 0; - - if( state.getValue(PrimalAPI.States.ACTIVE) == false) { - i = 0; - return i; - } - if( state.getValue(PrimalAPI.States.ACTIVE) == true) { - i = 1; - return i; - } - return i; - } - - @Override - public IBlockState getStateFromMeta(int meta) - { - IBlockState iblockstate = this.getDefaultState(); - - if (meta == 0){ - iblockstate = iblockstate.withProperty(PrimalAPI.States.ACTIVE, Boolean.valueOf(false)); - } - if (meta == 1) { - iblockstate = iblockstate.withProperty(PrimalAPI.States.ACTIVE, Boolean.valueOf(true)); - } - return iblockstate; - } - - @Override - protected BlockStateContainer createBlockState() { - return new BlockStateContainer(this, new IProperty[] {PrimalAPI.States.ACTIVE}); - } - - @Override - public void randomTick(World world, BlockPos pos, IBlockState state, Random random) - { - this.updateTick(world, pos, state, random); - if(!world.isRemote){ - if ( ThreadLocalRandom.current().nextInt(0,4) == 0) { - if(state.getValue(PrimalAPI.States.ACTIVE) == true) { - world.setBlockState(pos, state.withProperty(PrimalAPI.States.ACTIVE, Boolean.valueOf(false)), 2); - world.playSound((EntityPlayer) null, pos, SoundEvents.BLOCK_FIRE_EXTINGUISH, SoundCategory.BLOCKS, 1.0F, world.rand.nextFloat() * 0.4F + 0.8F); - } - } - } - } - -} diff --git a/kfc/src/main/java/nmd/primal/forgecraft/items/tools/AbstractAxe.java b/kfc/src/main/java/nmd/primal/forgecraft/items/tools/AbstractAxe.java index 9f7efb26..076799e6 100644 --- a/kfc/src/main/java/nmd/primal/forgecraft/items/tools/AbstractAxe.java +++ b/kfc/src/main/java/nmd/primal/forgecraft/items/tools/AbstractAxe.java @@ -210,8 +210,9 @@ public abstract class AbstractAxe extends ItemAxe implements ToolNBT { { if (!world.isRemote && (double)state.getBlockHardness(world, pos) != 0.0D) { + stack.getTagCompound().removeTag("ench"); if(stack.getMaxDamage() - stack.getItemDamage() >1 ) { - stack.getTagCompound().removeTag("ench"); + //stack.getTagCompound().removeTag("ench"); if(getDiamondLevel(stack) > 0) { if(ThreadLocalRandom.current().nextInt(0, getDiamondLevel(stack)) == 0) { stack.damageItem(1, entityLiving); diff --git a/kfc/src/main/java/nmd/primal/forgecraft/items/tools/AbstractHoe.java b/kfc/src/main/java/nmd/primal/forgecraft/items/tools/AbstractHoe.java index 3929d590..5919b5c6 100644 --- a/kfc/src/main/java/nmd/primal/forgecraft/items/tools/AbstractHoe.java +++ b/kfc/src/main/java/nmd/primal/forgecraft/items/tools/AbstractHoe.java @@ -20,6 +20,7 @@ import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; import nmd.primal.core.common.helper.PlayerHelper; import nmd.primal.forgecraft.ModInfo; +import nmd.primal.forgecraft.util.ToolMaterialMap; import nmd.primal.forgecraft.util.ToolNBT; import javax.annotation.Nullable; @@ -134,7 +135,7 @@ public abstract class AbstractHoe extends ItemHoe implements ToolNBT { { if (item.hasTagCompound()) { - tooltip.add(ChatFormatting.GRAY + "Upgrades added: " + (getModifiers(item)) ); + tooltip.add(ChatFormatting.GRAY + "Upgrades left: " + (ToolMaterialMap.materialModifiers.get(this.toolMaterial) - getModifiers(item))); if (getEmerald(item) == true) { tooltip.add(ChatFormatting.DARK_GREEN + "Emerald"); } @@ -204,8 +205,9 @@ public abstract class AbstractHoe extends ItemHoe implements ToolNBT { { if (!world.isRemote && (double)state.getBlockHardness(world, pos) != 0.0D) { + stack.getTagCompound().removeTag("ench"); if(stack.getMaxDamage() - stack.getItemDamage() >1 ) { - stack.getTagCompound().removeTag("ench"); + //stack.getTagCompound().removeTag("ench"); if(getDiamondLevel(stack) > 0) { if(ThreadLocalRandom.current().nextInt(0, getDiamondLevel(stack)) == 0) { stack.damageItem(1, entityLiving); diff --git a/kfc/src/main/java/nmd/primal/forgecraft/items/tools/AbstractPickaxe.java b/kfc/src/main/java/nmd/primal/forgecraft/items/tools/AbstractPickaxe.java index fd0f6d79..770a772d 100644 --- a/kfc/src/main/java/nmd/primal/forgecraft/items/tools/AbstractPickaxe.java +++ b/kfc/src/main/java/nmd/primal/forgecraft/items/tools/AbstractPickaxe.java @@ -19,6 +19,7 @@ import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; import nmd.primal.core.common.helper.PlayerHelper; import nmd.primal.forgecraft.ModInfo; +import nmd.primal.forgecraft.util.ToolMaterialMap; import nmd.primal.forgecraft.util.ToolNBT; import javax.annotation.Nullable; @@ -138,7 +139,7 @@ public abstract class AbstractPickaxe extends ItemPickaxe implements ToolNBT { //tooltip.add(ChatFormatting.GRAY + "Damage: " + item.getItemDamage() ); if(item.hasTagCompound()) { - tooltip.add(ChatFormatting.GRAY + "Upgrades Left: " + (3 - getModifiers(item)) ); + tooltip.add(ChatFormatting.GRAY + "Upgrades left: " + (ToolMaterialMap.materialModifiers.get(this.toolMaterial) - getModifiers(item))); if (getEmerald(item) == true) { tooltip.add(ChatFormatting.DARK_GREEN + "Emerald"); } @@ -185,8 +186,9 @@ public abstract class AbstractPickaxe extends ItemPickaxe implements ToolNBT { { if (!world.isRemote && (double)state.getBlockHardness(world, pos) != 0.0D) { + stack.getTagCompound().removeTag("ench"); if(stack.getMaxDamage() - stack.getItemDamage() >1 ) { - stack.getTagCompound().removeTag("ench"); + //stack.getTagCompound().removeTag("ench"); if(getDiamondLevel(stack) > 0) { if(ThreadLocalRandom.current().nextInt(0, getDiamondLevel(stack)) == 0) { stack.damageItem(1, entityLiving); diff --git a/kfc/src/main/java/nmd/primal/forgecraft/items/tools/AbstractShovel.java b/kfc/src/main/java/nmd/primal/forgecraft/items/tools/AbstractShovel.java index 80a83658..af24fa51 100644 --- a/kfc/src/main/java/nmd/primal/forgecraft/items/tools/AbstractShovel.java +++ b/kfc/src/main/java/nmd/primal/forgecraft/items/tools/AbstractShovel.java @@ -21,6 +21,7 @@ import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; import nmd.primal.core.common.helper.PlayerHelper; import nmd.primal.forgecraft.ModInfo; +import nmd.primal.forgecraft.util.ToolMaterialMap; import nmd.primal.forgecraft.util.ToolNBT; import javax.annotation.Nullable; @@ -139,7 +140,7 @@ public class AbstractShovel extends ItemSpade implements ToolNBT { if(item.hasTagCompound()) { - tooltip.add(ChatFormatting.GRAY + "Upgrades: " + getModifiers(item) ); + tooltip.add(ChatFormatting.GRAY + "Upgrades left: " + (ToolMaterialMap.materialModifiers.get(this.toolMaterial) - getModifiers(item))); if (getEmerald(item)) { tooltip.add(ChatFormatting.DARK_GREEN + "Emerald"); } @@ -184,8 +185,9 @@ public class AbstractShovel extends ItemSpade implements ToolNBT { { if (!world.isRemote && (double)state.getBlockHardness(world, pos) != 0.0D) { + stack.getTagCompound().removeTag("ench"); if(stack.getMaxDamage() - stack.getItemDamage() >1 ) { - stack.getTagCompound().removeTag("ench"); + //stack.getTagCompound().removeTag("ench"); if(getDiamondLevel(stack) > 0) { if(ThreadLocalRandom.current().nextInt(0, getDiamondLevel(stack)) == 0) { stack.damageItem(1, entityLiving); diff --git a/kfc/src/main/resources/assets/forgecraft/models/item/chisel_model.json b/kfc/src/main/resources/assets/forgecraft/models/item/chisel_model.json new file mode 100644 index 00000000..2222db70 --- /dev/null +++ b/kfc/src/main/resources/assets/forgecraft/models/item/chisel_model.json @@ -0,0 +1,230 @@ +{ + "__comment": "Designed by Kitsushadow with Cubik Studio - https://cubik.studio", + "textures": { + "particle": "blocks/e_particle", + "texture": "items/iron/0" + }, + "elements": [ + { + "__comment": "Box1", + "from": [ 6, -2, 6 ], + "to": [ 10, 25, 10.5 ], + "faces": { + "down": { "uv": [ 6, 5.5, 10, 10 ], "texture": "#texture" }, + "up": { "uv": [ 6, 6, 10, 10.5 ], "texture": "#texture" }, + "north": { "uv": [ 6, 0, 10, 16 ], "texture": "#texture" }, + "south": { "uv": [ 6, 0, 10, 16 ], "texture": "#texture" }, + "west": { "uv": [ 6, 0, 10.5, 16 ], "texture": "#texture" }, + "east": { "uv": [ 5.5, 0, 10, 16 ], "texture": "#texture" } + } + }, + { + "__comment": "Box4", + "from": [ 6, -4, 6.5 ], + "to": [ 10, -2, 10 ], + "faces": { + "down": { "uv": [ 6, 6, 10, 9.5 ], "texture": "#texture" }, + "up": { "uv": [ 6, 6.5, 10, 10 ], "texture": "#texture" }, + "north": { "uv": [ 6, 4, 10, 6 ], "texture": "#texture" }, + "south": { "uv": [ 6, 4, 10, 6 ], "texture": "#texture" }, + "west": { "uv": [ 6.5, 4, 10, 6 ], "texture": "#texture" }, + "east": { "uv": [ 6, 4, 9.5, 6 ], "texture": "#texture" } + } + }, + { + "__comment": "Box4", + "from": [ 6, -6, 7 ], + "to": [ 10, -4, 9.5 ], + "faces": { + "down": { "uv": [ 6, 6.5, 10, 9.5 ], "texture": "#texture" }, + "up": { "uv": [ 6, 6.5, 10, 9.5 ], "texture": "#texture" }, + "north": { "uv": [ 6, 11, 10, 11.5 ], "texture": "#texture" }, + "south": { "uv": [ 6, 11, 10, 11.5 ], "texture": "#texture" }, + "west": { "uv": [ 6.5, 11, 9.5, 11.5 ], "texture": "#texture" }, + "east": { "uv": [ 6.5, 11, 9.5, 11.5 ], "texture": "#texture" } + } + }, + { + "__comment": "Box4", + "from": [ 6, -8, 7.5 ], + "to": [ 10, -6, 9 ], + "faces": { + "down": { "uv": [ 6, 6.5, 10, 9.5 ], "texture": "#texture" }, + "up": { "uv": [ 6, 6.5, 10, 9.5 ], "texture": "#texture" }, + "north": { "uv": [ 6, 11, 10, 11.5 ], "texture": "#texture" }, + "south": { "uv": [ 6, 11, 10, 11.5 ], "texture": "#texture" }, + "west": { "uv": [ 6.5, 11, 9.5, 11.5 ], "texture": "#texture" }, + "east": { "uv": [ 6.5, 11, 9.5, 11.5 ], "texture": "#texture" } + } + }, + { + "__comment": "Box4", + "from": [ 6, -10, 8 ], + "to": [ 10, -8, 8.5 ], + "faces": { + "down": { "uv": [ 6, 6.5, 10, 9.5 ], "texture": "#texture" }, + "up": { "uv": [ 6, 6.5, 10, 9.5 ], "texture": "#texture" }, + "north": { "uv": [ 6, 11, 10, 11.5 ], "texture": "#texture" }, + "south": { "uv": [ 6, 11, 10, 11.5 ], "texture": "#texture" }, + "west": { "uv": [ 6.5, 11, 9.5, 11.5 ], "texture": "#texture" }, + "east": { "uv": [ 6.5, 11, 9.5, 11.5 ], "texture": "#texture" } + } + }, + { + "__comment": "Box8", + "from": [ 5.5, 25, 5.5 ], + "to": [ 10.5, 25.5, 11 ], + "faces": { + "down": { "uv": [ 5.5, 5, 10.5, 10.5 ], "texture": "#texture" }, + "up": { "uv": [ 5.5, 5.5, 10.5, 11 ], "texture": "#texture" }, + "north": { "uv": [ 5.5, 8.5, 10.5, 9 ], "texture": "#texture" }, + "south": { "uv": [ 5.5, 8.5, 10.5, 9 ], "texture": "#texture" }, + "west": { "uv": [ 5.5, 8.5, 11, 9 ], "texture": "#texture" }, + "east": { "uv": [ 5, 8.5, 10.5, 9 ], "texture": "#texture" } + } + }, + { + "__comment": "Box9", + "from": [ 6, 25.5, 6 ], + "to": [ 10, 26, 10.5 ], + "faces": { + "down": { "uv": [ 6, 5.5, 10, 10 ], "texture": "#texture" }, + "up": { "uv": [ 6, 6, 10, 10.5 ], "texture": "#texture" }, + "north": { "uv": [ 6, 8, 10, 8.5 ], "texture": "#texture" }, + "south": { "uv": [ 6, 8, 10, 8.5 ], "texture": "#texture" }, + "west": { "uv": [ 6, 8, 10.5, 8.5 ], "texture": "#texture" }, + "east": { "uv": [ 5.5, 8, 10, 8.5 ], "texture": "#texture" } + } + }, + { + "__comment": "Box16", + "from": [ 5.5, 25.5, 6.5 ], + "to": [ 6, 26, 10 ], + "faces": { + "down": { "uv": [ 5.5, 6, 6, 9.5 ], "texture": "#texture" }, + "up": { "uv": [ 5.5, 6.5, 6, 10 ], "texture": "#texture" }, + "north": { "uv": [ 10, 8, 10.5, 8.5 ], "texture": "#texture" }, + "south": { "uv": [ 5.5, 8, 6, 8.5 ], "texture": "#texture" }, + "west": { "uv": [ 6.5, 8, 10, 8.5 ], "texture": "#texture" }, + "east": { "uv": [ 6, 8, 9.5, 8.5 ], "texture": "#texture" } + } + }, + { + "__comment": "Box16", + "from": [ 10, 25.5, 6.5 ], + "to": [ 10.5, 26, 10 ], + "faces": { + "down": { "uv": [ 5.5, 6, 6, 9.5 ], "texture": "#texture" }, + "up": { "uv": [ 5.5, 6.5, 6, 10 ], "texture": "#texture" }, + "north": { "uv": [ 10, 8, 10.5, 8.5 ], "texture": "#texture" }, + "south": { "uv": [ 5.5, 8, 6, 8.5 ], "texture": "#texture" }, + "west": { "uv": [ 6.5, 8, 10, 8.5 ], "texture": "#texture" }, + "east": { "uv": [ 6, 8, 9.5, 8.5 ], "texture": "#texture" } + } + }, + { + "__comment": "Box18", + "from": [ 6.5, 25.5, 5.5 ], + "to": [ 9.5, 26, 6 ], + "faces": { + "down": { "uv": [ 6.5, 10, 9.5, 10.5 ], "texture": "#texture" }, + "up": { "uv": [ 6.5, 5.5, 9.5, 6 ], "texture": "#texture" }, + "north": { "uv": [ 6.5, 8, 9.5, 8.5 ], "texture": "#texture" }, + "south": { "uv": [ 6.5, 8, 9.5, 8.5 ], "texture": "#texture" }, + "west": { "uv": [ 5.5, 8, 6, 8.5 ], "texture": "#texture" }, + "east": { "uv": [ 10, 8, 10.5, 8.5 ], "texture": "#texture" } + } + }, + { + "__comment": "Box18", + "from": [ 6.5, 25.5, 10.5 ], + "to": [ 9.5, 26, 11 ], + "faces": { + "down": { "uv": [ 6.5, 10, 9.5, 10.5 ], "texture": "#texture" }, + "up": { "uv": [ 6.5, 5.5, 9.5, 6 ], "texture": "#texture" }, + "north": { "uv": [ 6.5, 8, 9.5, 8.5 ], "texture": "#texture" }, + "south": { "uv": [ 6.5, 8, 9.5, 8.5 ], "texture": "#texture" }, + "west": { "uv": [ 5.5, 8, 6, 8.5 ], "texture": "#texture" }, + "east": { "uv": [ 10, 8, 10.5, 8.5 ], "texture": "#texture" } + } + }, + { + "__comment": "Box16", + "from": [ 5, 25, 6 ], + "to": [ 5.5, 25.5, 10.5 ], + "faces": { + "down": { "uv": [ 5.5, 6, 6, 9.5 ], "texture": "#texture" }, + "up": { "uv": [ 5.5, 6.5, 6, 10 ], "texture": "#texture" }, + "north": { "uv": [ 10, 8, 10.5, 8.5 ], "texture": "#texture" }, + "south": { "uv": [ 5.5, 8, 6, 8.5 ], "texture": "#texture" }, + "west": { "uv": [ 6.5, 8, 10, 8.5 ], "texture": "#texture" }, + "east": { "uv": [ 6, 8, 9.5, 8.5 ], "texture": "#texture" } + } + }, + { + "__comment": "Box16", + "from": [ 10.5, 25, 6 ], + "to": [ 11, 25.5, 10.5 ], + "faces": { + "down": { "uv": [ 5.5, 6, 6, 9.5 ], "texture": "#texture" }, + "up": { "uv": [ 5.5, 6.5, 6, 10 ], "texture": "#texture" }, + "north": { "uv": [ 10, 8, 10.5, 8.5 ], "texture": "#texture" }, + "south": { "uv": [ 5.5, 8, 6, 8.5 ], "texture": "#texture" }, + "west": { "uv": [ 6.5, 8, 10, 8.5 ], "texture": "#texture" }, + "east": { "uv": [ 6, 8, 9.5, 8.5 ], "texture": "#texture" } + } + }, + { + "__comment": "Box18", + "from": [ 6, 25, 11 ], + "to": [ 10, 25.5, 11.5 ], + "faces": { + "down": { "uv": [ 6.5, 10, 9.5, 10.5 ], "texture": "#texture" }, + "up": { "uv": [ 6.5, 5.5, 9.5, 6 ], "texture": "#texture" }, + "north": { "uv": [ 6.5, 8, 9.5, 8.5 ], "texture": "#texture" }, + "south": { "uv": [ 6.5, 8, 9.5, 8.5 ], "texture": "#texture" }, + "west": { "uv": [ 5.5, 8, 6, 8.5 ], "texture": "#texture" }, + "east": { "uv": [ 10, 8, 10.5, 8.5 ], "texture": "#texture" } + } + }, + { + "__comment": "Box18", + "from": [ 6, 25, 5 ], + "to": [ 10, 25.5, 5.5 ], + "faces": { + "down": { "uv": [ 6.5, 10, 9.5, 10.5 ], "texture": "#texture" }, + "up": { "uv": [ 6.5, 5.5, 9.5, 6 ], "texture": "#texture" }, + "north": { "uv": [ 6.5, 8, 9.5, 8.5 ], "texture": "#texture" }, + "south": { "uv": [ 6.5, 8, 9.5, 8.5 ], "texture": "#texture" }, + "west": { "uv": [ 5.5, 8, 6, 8.5 ], "texture": "#texture" }, + "east": { "uv": [ 10, 8, 10.5, 8.5 ], "texture": "#texture" } + } + } + ], + "display": { + "thirdperson_righthand": { + "scale": [ 0.4, 0.4, 0.4 ] + }, + "thirdperson_lefthand": { + "scale": [ 0.4, 0.4, 0.4 ] + }, + "firstperson_righthand": { + "scale": [ 0.4, 0.4, 0.4 ] + }, + "firstperson_lefthand": { + "scale": [ 0.4, 0.4, 0.4 ] + }, + "gui": { + "rotation": [ -90, 135, 90 ], + "scale": [ 0.4, 0.4, 0.4 ] + }, + "ground": { + "rotation": [ 90, 0, 0 ], + "scale": [ 0.4, 0.4, 0.4 ] + }, + "fixed": { + "rotation": [ 90, -45, 90 ], + "scale": [ 0.4, 0.4, 0.4 ] + } + } +} \ No newline at end of file diff --git a/kfc/src/main/resources/assets/forgecraft/models/item/sledgehammer_model.json b/kfc/src/main/resources/assets/forgecraft/models/item/sledgehammer_model.json new file mode 100644 index 00000000..979107ec --- /dev/null +++ b/kfc/src/main/resources/assets/forgecraft/models/item/sledgehammer_model.json @@ -0,0 +1,88 @@ +{ + "__comment": "Designed by Kitsushadow with Cubik Studio - https://cubik.studio", + "textures": { + "particle": "blocks/e_particle", + "texture": "blocks/e_texture" + }, + "elements": [ + { + "__comment": "Box1", + "from": [ 7, 0, 6 ], + "to": [ 9.5, 20, 8.5 ], + "faces": { + "down": { "uv": [ 7, 7.5, 9.5, 10 ], "texture": "#texture" }, + "up": { "uv": [ 7, 6, 9.5, 8.5 ], "texture": "#texture" }, + "north": { "uv": [ 6.5, 0, 9, 16 ], "texture": "#texture" }, + "south": { "uv": [ 7, 0, 9.5, 16 ], "texture": "#texture" }, + "west": { "uv": [ 6, 0, 8.5, 16 ], "texture": "#texture" }, + "east": { "uv": [ 7.5, 0, 10, 16 ], "texture": "#texture" } + } + }, + { + "__comment": "Box2", + "from": [ 6.5, 19.5, 3 ], + "to": [ 10, 23, 11.5 ], + "faces": { + "down": { "uv": [ 6.5, 4.5, 10, 13 ], "texture": "#texture" }, + "up": { "uv": [ 6.5, 3, 10, 11.5 ], "texture": "#texture" }, + "north": { "uv": [ 6, 9, 9.5, 12.5 ], "texture": "#texture" }, + "south": { "uv": [ 6.5, 9, 10, 12.5 ], "texture": "#texture" }, + "west": { "uv": [ 3, 9, 11.5, 12.5 ], "texture": "#texture" }, + "east": { "uv": [ 4.5, 9, 13, 12.5 ], "texture": "#texture" } + } + }, + { + "__comment": "Box3", + "from": [ 7, 20, 2.5 ], + "to": [ 9.5, 22.5, 3 ], + "faces": { + "down": { "uv": [ 7, 13, 9.5, 13.5 ], "texture": "#texture" }, + "up": { "uv": [ 7, 2.5, 9.5, 3 ], "texture": "#texture" }, + "north": { "uv": [ 6.5, 9.5, 9, 12 ], "texture": "#texture" }, + "south": { "uv": [ 7, 9.5, 9.5, 12 ], "texture": "#texture" }, + "west": { "uv": [ 2.5, 9.5, 3, 12 ], "texture": "#texture" }, + "east": { "uv": [ 13, 9.5, 13.5, 12 ], "texture": "#texture" } + } + }, + { + "__comment": "Box3", + "from": [ 7, 20, 11.5 ], + "to": [ 9.5, 22.5, 12 ], + "faces": { + "down": { "uv": [ 7, 13, 9.5, 13.5 ], "texture": "#texture" }, + "up": { "uv": [ 7, 2.5, 9.5, 3 ], "texture": "#texture" }, + "north": { "uv": [ 6.5, 9.5, 9, 12 ], "texture": "#texture" }, + "south": { "uv": [ 7, 9.5, 9.5, 12 ], "texture": "#texture" }, + "west": { "uv": [ 2.5, 9.5, 3, 12 ], "texture": "#texture" }, + "east": { "uv": [ 13, 9.5, 13.5, 12 ], "texture": "#texture" } + } + } + ], + "display": { + "thirdperson_righthand": { + "translation": [ 0, 3.4, 1.5 ] + }, + "thirdperson_lefthand": { + "translation": [ 0, 3.4, 1.5 ] + }, + "firstperson_righthand": { + "translation": [ 0, 3.4, 0 ] + }, + "firstperson_lefthand": { + "translation": [ 0, 3.4, 0 ] + }, + "gui": { + "rotation": [ 90, -45, 90 ], + "translation": [ 2, -2.5, 0 ], + "scale": [ 0.7, 0.7, 0.7 ] + }, + "ground": { + "rotation": [ 90, 90, 0 ] + }, + "fixed": { + "rotation": [ 90, 45, -90 ], + "translation": [ -2.5, -3.25, 0 ], + "scale": [ 0.9, 0.9, 0.9 ] + } + } +} \ No newline at end of file