updated state doesn't seem to be working
This commit is contained in:
@@ -166,6 +166,8 @@ public class NBTCrucible extends BlockContainer implements ITileEntityProvider,
|
||||
NBTTagCompound tag = stack.getSubCompound("BlockEntityTag").copy();
|
||||
//tile.writeNBT(tag);
|
||||
tile.setHot(tag.getBoolean("hot"));
|
||||
tile.markDirty();
|
||||
tile.updateBlock();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -80,6 +80,8 @@ public class TileNBTCrucible extends BaseTile implements ITickable {
|
||||
if(this.getHeat() > 0){
|
||||
this.setHeat( this.getHeat() - 1);
|
||||
System.out.println(this.getHeat());
|
||||
//this.updateBlock();
|
||||
//this.markDirty();
|
||||
}
|
||||
if(this.getHeat() == 0){
|
||||
this.setHot(false);
|
||||
@@ -87,6 +89,8 @@ public class TileNBTCrucible extends BaseTile implements ITickable {
|
||||
this.setDrops(recipe.getDropsCooked());
|
||||
this.setStatus(false);
|
||||
System.out.println("Ready to harvest: " + this.getDrops());
|
||||
this.updateBlock();
|
||||
this.markDirty();
|
||||
}
|
||||
//CrucibleCrafting recipe = CrucibleCrafting.getRecipe(ingList.get(0), ingList.get(1), ingList.get(2), ingList.get(3), ingList.get(4));
|
||||
}
|
||||
|
||||
@@ -2,19 +2,20 @@
|
||||
"forge_marker":1,
|
||||
"variants": {
|
||||
"normal": {
|
||||
"model": "forgecraft:crucibleshut",
|
||||
"active": {
|
||||
"true": {
|
||||
"textures": {
|
||||
"particle": "forgecraft:blocks/stone_slab_hot",
|
||||
"texture": "forgecraft:blocks/stone_slab_hot"
|
||||
}
|
||||
},
|
||||
"model": "forgecraft:crucibleshut"
|
||||
},
|
||||
"false": {
|
||||
"textures": {
|
||||
"particle": "forgecraft:blocks/stone_slab",
|
||||
"texture": "forgecraft:blocks/stone_slab"
|
||||
}
|
||||
},
|
||||
"model": "forgecraft:crucibleshut"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user