got 1.11 working but rotation is wrong

This commit is contained in:
Mohammad-Ali Minaie
2016-12-26 21:25:55 -05:00
parent 9126a443f6
commit bd5c334ce9
89 changed files with 3754 additions and 1262 deletions

BIN
1.10.2/.DS_Store vendored Normal file

Binary file not shown.

View File

@@ -1,5 +1,5 @@
#Splash screen properties
#Sun Dec 11 13:01:44 EST 2016
#Sun Dec 18 21:07:39 EST 2016
logoTexture=textures/gui/title/mojang.png
background=0xFFFFFF
font=0x0

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -4,3 +4,9 @@
[13:01:22] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[13:01:22] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[13:01:23] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[21:07:31] [main/INFO] [GradleStart]: Extra: []
[21:07:31] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, /Users/mminaie/.gradle/caches/minecraft/assets, --assetIndex, 1.10, --accessToken{REDACTED}, --version, 1.10.2, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[21:07:31] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[21:07:31] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[21:07:31] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[21:07:31] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker

View File

@@ -1,38 +1,39 @@
[13:01:33] [Client thread/INFO]: Setting user: Player249
[13:01:38] [Client thread/INFO]: LWJGL Version: 2.9.4
[13:01:50] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Kitsu's Forgecraft
[13:02:43] [Client thread/WARN]: Invalid sounds.json
[21:07:34] [Client thread/INFO]: Setting user: Player848
[21:07:37] [Client thread/WARN]: Skipping bad option: lastServer:
[21:07:37] [Client thread/INFO]: LWJGL Version: 2.9.2
[21:07:42] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Kitsu's Forgecraft
[21:07:43] [Client thread/WARN]: Invalid sounds.json
java.lang.NullPointerException
at net.minecraft.client.audio.SoundHandler.onResourceManagerReload(SoundHandler.java:79) [SoundHandler.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:122) [SimpleReloadableResourceManager.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:484) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:386) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_102]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_102]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_102]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_102]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_111]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_111]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_102]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_102]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_102]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_102]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_111]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_111]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111]
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
at GradleStart.main(GradleStart.java:26) [start/:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_102]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_102]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_102]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_102]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_111]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_111]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111]
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147) [idea_rt.jar:?]
[13:02:43] [Sound Library Loader/INFO]: Starting up SoundSystem...
[13:02:44] [Thread-7/INFO]: Initializing LWJGL OpenAL
[13:02:44] [Thread-7/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
[13:02:45] [Thread-7/INFO]: OpenAL initialized.
[13:02:45] [Sound Library Loader/INFO]: Sound engine started
[13:02:49] [Client thread/INFO]: Created: 16x16 textures-atlas
[13:02:51] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Kitsu's Forgecraft
[13:02:55] [Client thread/WARN]: Invalid sounds.json
[21:07:43] [Sound Library Loader/INFO]: Starting up SoundSystem...
[21:07:44] [Thread-7/INFO]: Initializing LWJGL OpenAL
[21:07:44] [Thread-7/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
[21:07:44] [Thread-7/INFO]: OpenAL initialized.
[21:07:44] [Sound Library Loader/INFO]: Sound engine started
[21:07:45] [Client thread/INFO]: Created: 16x16 textures-atlas
[21:07:47] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Kitsu's Forgecraft
[21:07:48] [Client thread/WARN]: Invalid sounds.json
java.lang.NullPointerException
at net.minecraft.client.audio.SoundHandler.onResourceManagerReload(SoundHandler.java:79) [SoundHandler.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:132) [SimpleReloadableResourceManager.class:?]
@@ -42,43 +43,44 @@ java.lang.NullPointerException
at net.minecraft.client.Minecraft.startGame(Minecraft.java:561) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:386) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_102]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_102]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_102]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_102]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_111]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_111]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_102]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_102]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_102]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_102]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_111]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_111]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111]
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
at GradleStart.main(GradleStart.java:26) [start/:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_102]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_102]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_102]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_102]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_111]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_111]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111]
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147) [idea_rt.jar:?]
[13:02:55] [Client thread/INFO]: SoundSystem shutting down...
[13:02:55] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
[13:02:55] [Sound Library Loader/INFO]: Starting up SoundSystem...
[13:02:55] [Thread-9/INFO]: Initializing LWJGL OpenAL
[13:02:55] [Thread-9/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
[13:02:55] [Thread-9/INFO]: OpenAL initialized.
[13:02:55] [Sound Library Loader/INFO]: Sound engine started
[13:03:00] [Client thread/INFO]: Created: 512x512 textures-atlas
[13:03:04] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id
[13:03:11] [Server thread/INFO]: Starting integrated minecraft server version 1.10.2
[13:03:11] [Server thread/INFO]: Generating keypair
[13:03:12] [Server thread/INFO]: Preparing start region for level 0
[13:03:13] [Server thread/INFO]: Changing view distance to 12, from 10
[13:03:14] [Server thread/INFO]: Player249[local:E:f5847b71] logged in with entity id 0 at (-1197.5, 4.0, 574.5)
[13:03:14] [Server thread/INFO]: Player249 joined the game
[13:03:15] [Server thread/INFO]: Saving and pausing game...
[13:03:15] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
[13:03:15] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
[13:03:15] [Server thread/INFO]: Saving chunks for level 'New World'/The End
[13:03:15] [pool-2-thread-1/WARN]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@25bca98e[id=77058a27-9ed9-3577-ba3a-f426b243548e,name=Player249,properties={},legacy=false]
[21:07:48] [Client thread/INFO]: SoundSystem shutting down...
[21:07:48] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
[21:07:48] [Sound Library Loader/INFO]: Starting up SoundSystem...
[21:07:49] [Thread-9/INFO]: Initializing LWJGL OpenAL
[21:07:49] [Thread-9/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
[21:07:49] [Thread-9/INFO]: OpenAL initialized.
[21:07:49] [Sound Library Loader/INFO]: Sound engine started
[21:07:50] [Client thread/INFO]: Created: 512x512 textures-atlas
[21:07:51] [Client thread/WARN]: Skipping bad option: lastServer:
[21:07:51] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id
[21:07:55] [Server thread/INFO]: Starting integrated minecraft server version 1.10.2
[21:07:55] [Server thread/INFO]: Generating keypair
[21:07:56] [Server thread/INFO]: Preparing start region for level 0
[21:07:56] [Server thread/INFO]: Changing view distance to 12, from 10
[21:07:57] [Server thread/INFO]: Player848[local:E:514a1023] logged in with entity id 9 at (-1197.5, 4.0, 574.5)
[21:07:57] [Server thread/INFO]: Player848 joined the game
[21:07:58] [Server thread/INFO]: Saving and pausing game...
[21:07:58] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
[21:07:58] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
[21:07:58] [Server thread/INFO]: Saving chunks for level 'New World'/The End
[21:07:58] [pool-2-thread-1/WARN]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@aca6b91[id=671fc71d-f6cb-3d6a-91ee-4151a2cbcf9a,name=Player848,properties={},legacy=false]
com.mojang.authlib.exceptions.AuthenticationException: The client has sent too many requests within a certain amount of time
at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:65) ~[YggdrasilAuthenticationService.class:?]
at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillGameProfile(YggdrasilMinecraftSessionService.java:175) [YggdrasilMinecraftSessionService.class:?]
@@ -95,23 +97,40 @@ com.mojang.authlib.exceptions.AuthenticationException: The client has sent too m
at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillProfileProperties(YggdrasilMinecraftSessionService.java:165) [YggdrasilMinecraftSessionService.class:?]
at net.minecraft.client.Minecraft.getProfileProperties(Minecraft.java:3060) [Minecraft.class:?]
at net.minecraft.client.resources.SkinManager$3.run(SkinManager.java:131) [SkinManager$3.class:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_102]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_102]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_102]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_102]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_102]
[13:03:19] [Server thread/INFO]: Player249 has just earned the achievement [Taking Inventory]
[13:03:19] [Client thread/INFO]: [CHAT] Player249 has just earned the achievement [Taking Inventory]
[13:03:30] [Server thread/INFO]: Saving and pausing game...
[13:03:30] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
[13:03:30] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
[13:03:30] [Server thread/INFO]: Saving chunks for level 'New World'/The End
[13:03:30] [Server thread/INFO]: Stopping server
[13:03:30] [Server thread/INFO]: Saving players
[13:03:30] [Server thread/INFO]: Saving worlds
[13:03:30] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
[13:03:30] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
[13:03:30] [Server thread/INFO]: Saving chunks for level 'New World'/The End
[13:03:32] [Client thread/INFO]: Stopping!
[13:03:32] [Client thread/INFO]: SoundSystem shutting down...
[13:03:33] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_111]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_111]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_111]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_111]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_111]
[21:08:04] [Server thread/INFO]: Saving and pausing game...
[21:08:04] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
[21:08:04] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
[21:08:04] [Server thread/INFO]: Saving chunks for level 'New World'/The End
[21:08:15] [Server thread/INFO]: Player848 has just earned the achievement [Taking Inventory]
[21:08:15] [Client thread/INFO]: [CHAT] Player848 has just earned the achievement [Taking Inventory]
[21:08:54] [Server thread/INFO]: Saving and pausing game...
[21:08:54] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
[21:08:54] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
[21:08:54] [Server thread/INFO]: Saving chunks for level 'New World'/The End
[21:09:08] [Server thread/INFO]: Saving and pausing game...
[21:09:08] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
[21:09:08] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
[21:09:08] [Server thread/INFO]: Saving chunks for level 'New World'/The End
[21:09:16] [Server thread/INFO]: Saving and pausing game...
[21:09:16] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
[21:09:16] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
[21:09:16] [Server thread/INFO]: Saving chunks for level 'New World'/The End
[21:09:26] [Server thread/INFO]: Changing difficulty to PEACEFUL, from NORMAL
[21:09:44] [Server thread/INFO]: Saving and pausing game...
[21:09:44] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
[21:09:44] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
[21:09:44] [Server thread/INFO]: Saving chunks for level 'New World'/The End
[21:09:45] [Server thread/INFO]: Stopping server
[21:09:45] [Server thread/INFO]: Saving players
[21:09:45] [Server thread/INFO]: Saving worlds
[21:09:45] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
[21:09:45] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
[21:09:45] [Server thread/INFO]: Saving chunks for level 'New World'/The End
[21:09:46] [Client thread/INFO]: Stopping!
[21:09:46] [Client thread/INFO]: SoundSystem shutting down...
[21:09:47] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com

View File

@@ -82,7 +82,7 @@ key_key.hotbar.7:8
key_key.hotbar.8:9
key_key.hotbar.9:10
soundCategory_master:1.0
soundCategory_music:1.0
soundCategory_music:0.0
soundCategory_record:1.0
soundCategory_weather:1.0
soundCategory_block:1.0

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1 @@
{"stat.walkOneCm":333,"stat.playOneMinute":1519,"achievement.openInventory":4,"stat.leaveGame":1,"stat.sneakTime":86,"stat.timeSinceDeath":1519,"achievement.exploreAllBiomes":{"value":0,"progress":["Plains"]}}

View File

@@ -113,21 +113,13 @@ public class Firebox extends CustomContainerFacing implements ITileEntityProvide
}
}
if(tileStack != null && playerStack == null && player.isSneaking()){
if(state.getValue(ACTIVE)==true){
world.setBlockState(pos, state.withProperty(ACTIVE, false), 2);
ItemStack returnStack = new ItemStack(tileStack.getItem(), tileStack.stackSize - 1);
player.setHeldItem(EnumHand.MAIN_HAND, returnStack);
tile.markDirty();
world.notifyBlockUpdate(pos, state, state, 2);
} else {
player.setHeldItem(EnumHand.MAIN_HAND, tileStack);
tile.setInventorySlotContents(0, null);
tile.markDirty();
world.notifyBlockUpdate(pos, state, state, 2);
}
player.setHeldItem(EnumHand.MAIN_HAND, tile.getStackInSlot(0));
tile.setInventorySlotContents(0, null);
tile.markDirty();
world.notifyBlockUpdate(pos, state, state, 2);
if(state.getValue(ACTIVE)==true){
world.setBlockState(pos, state.withProperty(ACTIVE, false), 2);
}
}
if(!player.isSneaking()){
if(playerStack == null) {
@@ -146,57 +138,7 @@ public class Firebox extends CustomContainerFacing implements ITileEntityProvide
}
public void onBlockClicked(World world, BlockPos pos, EntityPlayer player) {
/*if(!world.isRemote){
TileFirebox tile = (TileFirebox) world.getTileEntity(pos);
IBlockState state = world.getBlockState(pos);
if (tile != null) {
ItemStack playerStack = player.getHeldItemMainhand();
Item playerItem;
ItemStack tileStack = tile.getStackInSlot(0);
if (!player.isSneaking()) {
if( tileStack !=null) {
if (playerStack == null) {
ItemStack tempStack1 = tileStack;
ItemStack tempStack2 = tileStack;
tempStack1.stackSize = 1;
tempStack2.stackSize = tileStack.stackSize - 1;
System.out.println(tileStack.stackSize + "|" + "|" + tempStack2.stackSize);
//int tileSize = tile.decrStackSize()
//ItemStack tempReset = new ItemStack(tileStack.getItem(), tileSize - 1, tileStack.getItemDamage());
//System.out.println(tileSize + "|" + tempReset.stackSize);
world.spawnEntityInWorld(new EntityItem(world, player.posX, player.posY, player.posZ, tempStack1));
tile.setInventorySlotContents(0, tempStack2);
world.notifyBlockUpdate(pos, state, state, 2);
}
}
}
//RETURN THE WHOLE STACK
if (playerStack == null && player.isSneaking()) {
if (tileStack != null) {
if(state.getValue(ACTIVE)) {
ItemStack tempStack = new ItemStack(tileStack.getItem(), tileStack.stackSize - 1, tileStack.getItemDamage());
world.spawnEntityInWorld(new EntityItem(world, player.posX, player.posY, player.posZ, tempStack));
tile.setInventorySlotContents(0, null);
world.notifyBlockUpdate(pos, state, state, 2);
} else {
world.spawnEntityInWorld(new EntityItem(world, player.posX, player.posY, player.posZ, tileStack));
tile.setInventorySlotContents(0, null);
world.notifyBlockUpdate(pos, state, state, 2);
}
}
}
//RETURN 1
}
}*/
}
@Override

View File

@@ -63,6 +63,7 @@ public class TileFirebox extends BaseTile implements IInventory, ITickable {
if(this.getStackInSlot(0) != null) {
if (worldObj.rand.nextInt((int) Math.floor(getVanillaItemBurnTime(this.getStackInSlot(0)) / 20)) == 0) {
this.decrStackSize(0, 1);
this.markDirty();
world.notifyBlockUpdate(pos, state, state, 2);
}

View File

@@ -1,3 +1,3 @@
{
"parent": "forgecraft:/block/firebox"
"parent": "forgecraft:block/firebox"
}

View File

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

View File

@@ -1 +1 @@
[{"name":"Player249","uuid":"77058a27-9ed9-3577-ba3a-f426b243548e","expiresOn":"2017-01-11 13:03:14 -0500"}]
[{"name":"Player848","uuid":"671fc71d-f6cb-3d6a-91ee-4151a2cbcf9a","expiresOn":"2017-01-18 21:07:57 -0500"},{"name":"Player249","uuid":"77058a27-9ed9-3577-ba3a-f426b243548e","expiresOn":"2017-01-11 13:03:14 -0500"}]

View File

@@ -1,3 +1,4 @@
{
"77058a27-9ed9-3577-ba3a-f426b243548e": "Player249"
"77058a27-9ed9-3577-ba3a-f426b243548e": "Player249",
"671fc71d-f6cb-3d6a-91ee-4151a2cbcf9a": "Player848"
}