Glitch textures

This commit is contained in:
HbmMods 2018-01-12 00:05:16 +01:00
parent 55d6480d2b
commit ef89864865
12 changed files with 95 additions and 5 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 247 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 393 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 567 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 406 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 748 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 318 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 651 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 601 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 386 B

View File

@ -2105,7 +2105,7 @@ public class ModItems {
record_vc = new ItemModRecord("vc").setUnlocalizedName("record_vc").setCreativeTab(CreativeTabs.tabMisc).setTextureName(RefStrings.MODID + ":record_vc");
polaroid = new ItemPolaroid().setUnlocalizedName("polaroid").setMaxStackSize(1).setCreativeTab(MainRegistry.tabNuke).setTextureName(RefStrings.MODID + ":polaroid_" + MainRegistry.polaroidID);
glitch = new ItemPolaroid().setUnlocalizedName("glitch").setMaxStackSize(1).setCreativeTab(MainRegistry.tabNuke).setTextureName(RefStrings.MODID + ":glitch_" + MainRegistry.polaroidID);
glitch = new ItemGlitch().setUnlocalizedName("glitch").setMaxStackSize(1).setCreativeTab(MainRegistry.tabNuke).setTextureName(RefStrings.MODID + ":glitch_" + MainRegistry.polaroidID);
letter = new ItemStarterKit().setUnlocalizedName("letter").setCreativeTab(MainRegistry.tabNuke).setTextureName(RefStrings.MODID + ":letter");
book_secret = new ItemCustomLore().setUnlocalizedName("book_secret").setCreativeTab(MainRegistry.polaroidID == 11 ? MainRegistry.tabNuke : null).setTextureName(RefStrings.MODID + ":book_secret");
burnt_bark = new ItemCustomLore().setUnlocalizedName("burnt_bark").setCreativeTab(null).setTextureName(RefStrings.MODID + ":burnt_bark");
@ -3245,7 +3245,7 @@ public class ModItems {
//GameRegistry.registerItem(remote, remote.getUnlocalizedName());
GameRegistry.registerItem(euphemium_stopper, euphemium_stopper.getUnlocalizedName());
GameRegistry.registerItem(polaroid, polaroid.getUnlocalizedName());
//GameRegistry.registerItem(glitch, glitch.getUnlocalizedName());
GameRegistry.registerItem(glitch, glitch.getUnlocalizedName());
GameRegistry.registerItem(book_secret, book_secret.getUnlocalizedName());
GameRegistry.registerItem(burnt_bark, burnt_bark.getUnlocalizedName());

View File

@ -0,0 +1,92 @@
package com.hbm.items.special;
import java.util.List;
import com.hbm.main.MainRegistry;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
public class ItemGlitch extends Item {
public ItemGlitch()
{
this.maxStackSize = 1;
this.setMaxDamage(1);
}
@Override
public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
stack.damageItem(5, player);
return stack;
}
@Override
public void addInformation(ItemStack itemstack, EntityPlayer player, List list, boolean bool)
{
list.add("It's a gamble!");
list.add("");
switch(MainRegistry.polaroidID) {
case 1:
list.add("Click-click-click!");
break;
case 2:
list.add("Creek!");
break;
case 3:
list.add("Bzzzt!");
break;
case 4:
list.add("TS staring off into space.");
break;
case 5:
list.add("BANG!!");
break;
case 6:
list.add("Woop!");
break;
case 7:
list.add("Poow!");
break;
case 8:
list.add("Pft!");
break;
case 9:
list.add("GF fgnevat bss vagb fcnpr.");
break;
case 10:
list.add("Backup memory #8 on 1.44 million bytes.");
break;
case 11:
list.add("PTANG!");
break;
case 12:
list.add("Bzzt-zrrt!");
break;
case 13:
list.add("Clang, click-brrthththrtrtrtrtrtr!");
break;
case 14:
list.add("KABLAM!");
break;
case 15:
list.add("PLENG!");
break;
case 16:
list.add("Wheeeeeeee-");
break;
case 17:
list.add("Thump.");
break;
case 18:
list.add("BANG! Choo-chooo! B A N G ! ! !");
break;
}
}
}

View File

@ -26,8 +26,6 @@ public class TileEntityMachineSPP extends TileEntity implements ISource {
@Override
public void updateEntity() {
MainRegistry.logger.debug("0");
age++;
if(age >= 20)
@ -69,7 +67,7 @@ public class TileEntityMachineSPP extends TileEntity implements ISource {
// BBB
// BAB
// BBB
System.out.println(y);
return (worldObj.getBlock(xCoord + 1, y, zCoord) != Blocks.air &&
worldObj.getBlock(xCoord + 1, y, zCoord + 1) != Blocks.air &&
worldObj.getBlock(xCoord + 1, y, zCoord - 1) != Blocks.air &&