update with merge conflict resolved
This commit is contained in:
@@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
## Bugs
|
## Bugs
|
||||||
- [ ] Placement bug for crucible from tongs
|
- [ ] Placement bug for crucible from tongs
|
||||||
|
- [ ] Wootz shovel not rendering (NORTH)
|
||||||
|
- [ ] Damascus Rendering in tongs
|
||||||
|
- [ ] bug for recipe with damascus shovel
|
||||||
|
- [ ] redstone 1 is ok redstone 2 is not ok
|
||||||
|
|
||||||
## Current Feature
|
## Current Feature
|
||||||
- [ ] weapon upgrades
|
- [ ] weapon upgrades
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ org.gradle.jvmargs=-Xmx3G
|
|||||||
mod_group=nmd.primal.forgecraft
|
mod_group=nmd.primal.forgecraft
|
||||||
mod_name=ForgeCraft
|
mod_name=ForgeCraft
|
||||||
|
|
||||||
mod_version=1.6.32
|
mod_version=1.6.33
|
||||||
forge_version=14.23.4.2765
|
forge_version=14.23.4.2765
|
||||||
mcp_mappings=snapshot_20171003
|
mcp_mappings=snapshot_20171003
|
||||||
mc_version=1.12.2
|
mc_version=1.12.2
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ public class ModInfo {
|
|||||||
//public static final String MOD_PREFIX = MOD_ID + ":";
|
//public static final String MOD_PREFIX = MOD_ID + ":";
|
||||||
public static final String MOD_CHANNEL = MOD_ID;
|
public static final String MOD_CHANNEL = MOD_ID;
|
||||||
|
|
||||||
public static final String MOD_VERSION = "1.6.32";
|
public static final String MOD_VERSION = "1.6.33";
|
||||||
public static final String MC_VERSIONS = "[1.12.0, 1.13.0)";
|
public static final String MC_VERSIONS = "[1.12.0, 1.13.0)";
|
||||||
public static final String DEPENDENCIES = "required-after:forge@[14.21.1.2400,);" + "required-after:primal@[0.6.69,);";
|
public static final String DEPENDENCIES = "required-after:forge@[14.21.1.2400,);" + "required-after:primal@[0.6.69,);";
|
||||||
|
|
||||||
|
|||||||
@@ -57,20 +57,16 @@ public class NBTCrucible extends BlockContainer implements ITileEntityProvider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, EnumFacing face, float hitX, float hitY, float hitZ) {
|
public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hands, EnumFacing face, float hitX, float hitY, float hitZ) {
|
||||||
|
|
||||||
if (!world.isRemote) {
|
if (!world.isRemote) {
|
||||||
|
|
||||||
TileNBTCrucible tile = (TileNBTCrucible) world.getTileEntity(pos);
|
TileNBTCrucible tile = (TileNBTCrucible) world.getTileEntity(pos);
|
||||||
|
if(player.getActiveHand().equals(EnumHand.MAIN_HAND)) {
|
||||||
if(hand.equals(MAIN_HAND)) {
|
ItemStack playerStackStart = player.getHeldItemMainhand().copy();
|
||||||
|
|
||||||
ItemStack pItem = player.inventory.getCurrentItem().copy();
|
|
||||||
pItem.setCount(1);
|
|
||||||
|
|
||||||
/**PICKS UP THE CRUCIBLE**/
|
/**PICKS UP THE CRUCIBLE**/
|
||||||
if (player.isSneaking() == false) {
|
if (playerStackStart.isEmpty()) {
|
||||||
if (pItem.isEmpty()) {
|
if (!player.isSneaking()) {
|
||||||
CrucibleCrafting recipe = CrucibleCrafting.getRecipe(tile.ingList.get(0), tile.ingList.get(1), tile.ingList.get(2), tile.ingList.get(3), tile.ingList.get(4));
|
CrucibleCrafting recipe = CrucibleCrafting.getRecipe(tile.ingList.get(0), tile.ingList.get(1), tile.ingList.get(2), tile.ingList.get(3), tile.ingList.get(4));
|
||||||
if (recipe != null) {
|
if (recipe != null) {
|
||||||
tile.setDrops(recipe.getDropsRaw());
|
tile.setDrops(recipe.getDropsRaw());
|
||||||
@@ -81,13 +77,11 @@ public class NBTCrucible extends BlockContainer implements ITileEntityProvider {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**SET INGREDIENT ARRAY FOR THE CRUCIBLE NOW**/
|
/**SET INGREDIENT ARRAY FOR THE CRUCIBLE NOW**/
|
||||||
if(hand.equals(MAIN_HAND)) {
|
if (!player.isSneaking()) {
|
||||||
ItemStack pItem = player.inventory.getCurrentItem().copy();
|
ItemStack pItem = player.inventory.getCurrentItem().copy();
|
||||||
pItem.setCount(1);
|
pItem.setCount(1);
|
||||||
if (!player.isSneaking()) {
|
|
||||||
if (!pItem.isEmpty()) {
|
if (!pItem.isEmpty()) {
|
||||||
if (!tile.getStatus() || tile.getHot() == 15 || tile.getHot() == 6) {
|
if (!tile.getStatus() || tile.getHot() == 15 || tile.getHot() == 6) {
|
||||||
if (pItem.getItem() instanceof SlottedTongs) {
|
if (pItem.getItem() instanceof SlottedTongs) {
|
||||||
@@ -110,9 +104,7 @@ public class NBTCrucible extends BlockContainer implements ITileEntityProvider {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
/**CLEARS THE INVENTORY**/
|
/**CLEARS THE INVENTORY**/
|
||||||
if(hand.equals(MAIN_HAND)) {
|
|
||||||
if (player.isSneaking()) {
|
if (player.isSneaking()) {
|
||||||
ItemStack pItem = player.inventory.getCurrentItem().copy();
|
ItemStack pItem = player.inventory.getCurrentItem().copy();
|
||||||
if (pItem.isEmpty()) {
|
if (pItem.isEmpty()) {
|
||||||
@@ -134,10 +126,9 @@ public class NBTCrucible extends BlockContainer implements ITileEntityProvider {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
/**REMOVE COOKED ITEM**/
|
/**REMOVE COOKED ITEM**/
|
||||||
if (player.isSneaking() == true) {
|
if (player.isSneaking()) {
|
||||||
if (hand.equals(MAIN_HAND)) {
|
|
||||||
ItemStack pItem = player.inventory.getCurrentItem().copy();
|
ItemStack pItem = player.inventory.getCurrentItem().copy();
|
||||||
if (pItem.isEmpty()) {
|
if (pItem.isEmpty()) {
|
||||||
if (tile.getStatus() && tile.getHot() == 6) {
|
if (tile.getStatus() && tile.getHot() == 6) {
|
||||||
@@ -147,8 +138,6 @@ public class NBTCrucible extends BlockContainer implements ITileEntityProvider {
|
|||||||
tile.setStatus(false);
|
tile.setStatus(false);
|
||||||
tile.setDrops(ItemStack.EMPTY);
|
tile.setDrops(ItemStack.EMPTY);
|
||||||
tile.ingList.clear();
|
tile.ingList.clear();
|
||||||
//PlayerHelper.spawnItemOnPlayer(world, player, dropStack);
|
|
||||||
//PlayerHelper.spawnItemOnGround(world, player.getPosition(), dropStack);
|
|
||||||
EntityItem entityitem = new EntityItem(world, player.posX, player.posY, player.posZ, dropStack); // ? player.posY - 1.0D
|
EntityItem entityitem = new EntityItem(world, player.posX, player.posY, player.posZ, dropStack); // ? player.posY - 1.0D
|
||||||
world.spawnEntity(entityitem);
|
world.spawnEntity(entityitem);
|
||||||
tile.update();
|
tile.update();
|
||||||
@@ -159,7 +148,7 @@ public class NBTCrucible extends BlockContainer implements ITileEntityProvider {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private IBlockState getReplacementBlock(World world, BlockPos pos, IBlockState state)
|
private IBlockState getReplacementBlock(World world, BlockPos pos, IBlockState state)
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"modid": "forgecraft",
|
"modid": "forgecraft",
|
||||||
"name": "Kitsu's Forgecraft",
|
"name": "Kitsu's Forgecraft",
|
||||||
"description": "Forged with sweat and blood",
|
"description": "Forged with sweat and blood",
|
||||||
"version": "1.6.32",
|
"version": "1.6.33",
|
||||||
"mcversion": "1.12.2",
|
"mcversion": "1.12.2",
|
||||||
"url": "",
|
"url": "",
|
||||||
"updateUrl": "",
|
"updateUrl": "",
|
||||||
|
|||||||
Reference in New Issue
Block a user