mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-16 18:44:44 +00:00
Item models fully working. TESRs may be changed in future
This commit is contained in:
1 parent
0b27d9d0b5
commit
75ab210227
4 files changed
+3
-5
No files matched your search
@@ -17,6 +17,7 @@ import java.util.Random;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.BlockPos;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
@@ -25,8 +26,6 @@ import vazkii.botania.client.core.handler.ClientTickHandler;
|
||||
|
||||
public class ItemBlockPool extends ItemBlockWithMetadataAndName {
|
||||
|
||||
private final Random rand = new Random();
|
||||
|
||||
public ItemBlockPool(Block par2Block) {
|
||||
super(par2Block);
|
||||
}
|
||||
@@ -43,7 +42,6 @@ public class ItemBlockPool extends ItemBlockWithMetadataAndName {
|
||||
public int getColorFromItemStack(ItemStack stack, int renderPass) {
|
||||
if (stack.getItemDamage() == PoolVariant.FABULOUS.ordinal() && renderPass == 0) {
|
||||
float time = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
|
||||
time += rand.nextInt(100000);
|
||||
return Color.getHSBColor(time * 0.005F, 0.6F, 1F).hashCode();
|
||||
} else {
|
||||
return 16777215;
|
||||
|
||||
@@ -7,10 +7,10 @@
|
||||
"variants": {
|
||||
"variant": {
|
||||
"default": { "textures": { "all": "botania:model/poolCopy" } },
|
||||
"diluted": { "textures": { "all": "botania:model/poolCopy" } },
|
||||
"diluted": { "textures": { "all": "botania:model/dilutedPoolCopy" } },
|
||||
"creative": {
|
||||
"model": "botania:pool_filled",
|
||||
"textures": { "all": "botania:model/poolCopy", "liquid": "botania:blocks/manaWater" }
|
||||
"textures": { "all": "botania:model/infinitePoolCopy", "liquid": "botania:blocks/manaWater" }
|
||||
},
|
||||
"fabulous": {
|
||||
"model": "botania:pool_tinted",
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 2.1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.9 KiB |
Reference in new issue
Block a user