• 0

    posted a message on Register items does not work.

    I just had this problem not too long ago, apparently Forge changed how to register items in the 1.12 update.


    Just change "registerItem(tinIngot);" to "ForgeRegistries.ITEMS.register(tinIngot);", change ".GameRegistry" to ".ForgeRegistries", and it should work fine.

    Posted in: Modification Development
  • 0

    posted a message on Block Item Texture in Hand Not Showing

    Hello, I'm having trouble getting an item's texture of a block working. It works fine when I place the block down, but when I hold it or throw it on the ground, it shows the default missing texture image. If anyone could help me or tell me what's wrong, I'd greatly appreciate it. :)


    package init;
    
    import com.vampyro.tutorial.blocks.BlockReed;
    
    
    import net.minecraft.block.Block;
    import net.minecraft.block.material.Material;
    import net.minecraft.client.Minecraft;
    import net.minecraft.client.renderer.block.model.ModelResourceLocation;
    import net.minecraft.item.Item;
    import net.minecraft.item.ItemBlock;
    import net.minecraftforge.fml.common.registry.ForgeRegistries;
    
    public class ModBlocks {
    	
    	public static Block reedblock;
    
    	public static void init() {
    		reedblock = new BlockReed(Material.LEAVES);
    	}
    	
    	public static void register() {
    		registerBlock(reedblock);
    	}
    	
    	private static void registerBlock(Block block) {
    		ForgeRegistries.BLOCKS.register(reedblock);
    		ItemBlock item = new ItemBlock(block);
    		item.setRegistryName(block.getRegistryName());
    		ForgeRegistries.ITEMS.register(item);
    	}
    	
    	public static void registerRenders() {
    		registerRender(reedblock);
    	}
    	
    	private static void registerRender(Block block) {
    		Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(block), 0, new ModelResourceLocation(block.getRegistryName(), "inventory"));	
    	}
    }
    



    Posted in: Modification Development
  • 0

    posted a message on Destroy the Tower
    224/250

    Okay, NOW a balance is needed. Don't lie, don't lie. I use Lil' Lightning on the S.P.U.D.
    Posted in: Forum Games
  • 0

    posted a message on Destroy the Tower
    107(+116)/250

    Noooooo! Don't leave! That's not all that true. You can still do things without charging and they still do have effects. But I guess you're right, this is starting to look a lot like TT's "The Game Of Charging". And now there are these building things that provide even more boosts? I still don't know how I feel about that. Ah well, I guess I can't stop you... BTW TT, you had 116 charges. Which I guess I take, but if you change your mind you are more than welcome to have it back.

    I suggest a auto-balance, because I'm kinda the only Defender now "not including Ka_doink, who's charging like crazy over there). The auto-balance suggestion gets all the destroyers angry and they can't focus.
    Posted in: Forum Games
  • 0

    posted a message on Destroy the Tower
    106/250

    I shrink the S.P.U.D. to the size of a basketball and slam dunk it onto a floor of spikes.
    Posted in: Forum Games
  • 0

    posted a message on Destroy the Tower
    105/250

    I dig a massive hole behind the S.P.U.D. I then SPARTA kick it into the hole. The fall impact stuns the S.P.U.D.
    Posted in: Forum Games
  • 0

    posted a message on Destroy the Tower
    104/250

    I use alchemy to fix the tower. But instead of turning it back into stone, I turn it into obsidian, making attacks on the tower actually lose effectiveness.
    Posted in: Forum Games
  • 0

    posted a message on Destroy the Tower
    103/250

    I take an extremely powerful vacuum and suck up all the smoke, making it visible again.
    Posted in: Forum Games
  • 0

    posted a message on Google Picture War


    It's good for you, I swear...
    Posted in: Forum Games
  • 0

    posted a message on Destroy the Tower
    102/250

    Geez, just saying, maybe an auto-balance is needed, just looking at the above...

    I stick a bunch of fatty, cholesterol-filled foods in front of the Destroyer's hideout. The low cholesterol effect reverses and now food-based attacks do less damage.
    Posted in: Forum Games
  • 0

    posted a message on Destroy the Tower
    101/250

    Hey, why isn't my Lil' Lightning in the weapons stats spoiler? I just made it. I use Lil' Lightning on the S.P.U.D.
    Posted in: Forum Games
  • 0

    posted a message on Destroy the Tower
    I dip the tower in healing sauce. (Misspelt healing, so smart.)
    Posted in: Forum Games
  • 0

    posted a message on Destroy the Tower
    30/30

    Lil' Lightning is complete!

    Lil' Lightning
    700 Damage
    Applies electrocution curse to taget.
    5 uses
    .
    99/250
    .
    Well, I'm just saying that he is real. You can believe what you want, whatevs.
    Posted in: Forum Games
  • 0

    posted a message on Destroy the Tower
    28/30

    97/250

    What you trying to say, Fseftr? Peter is the guy that is actually allowing me to post right now, since I'm using his computer. So of course he would be curious as to what I'm doing on his computer. Those "researches" were from him, I just added that figment of my imagination thing as a joke, which I consider is kinda confusing now... Anyways, he has this crazy goal of taking over the game. Yeah...
    Posted in: Forum Games
  • 0

    posted a message on Destroy the Tower
    26/30

    Wait, what the heck??? What just- but, what!? First of all, what EXACTLY is the ion cannon? Fsefter has no attack on his vehicle that reads "Ion Cannon", and there's no other vehicle with that either? In fact, his S.P.U.D. was the only other vehicle aside mine. So what exactly was that? Also, I attacked, so the Ion Cannon shouldn't have even hit me! You even said it yourself, you need to attack in order to undo the target, which I did. *sigh*, why you do dis? With you and your magical and mysterious cannon things. Ugh...

    Anyways, I have some ideas for contracts. Maybe make contracts on how many weapons you've made, kinda like vehicles. But I'd think you would need to make more to reach the same kind of XP reward from making vehicles, as weapons are relatively easier to make. And yeah, maybe some contracts about how many entities you destroy with weapons, maybe some medals if you destroy the tower with a weapon and if you manage to destroy 2/4/6/8/10 vehicles with the same weapon. Also maybe some contracts on how many weapons you restore, which I think, if you add it, will need to have the somewhat punny name "Reduce, Reuse & Wreck Havoc".

    Okay, time for my ACTUAL attack. I chew a bunch of chewing gum and make 2 giant wads of gum, which I then throw under the S.P.U.D. to make its mobility greatly decreased. It gets stuck in its position, and because of its decreased mobility, its attacks are less effective.
    Posted in: Forum Games
  • To post a comment, please or register a new account.