Jump to content

PeterRDevries

Forge Modder
  • Posts

    169
  • Joined

  • Last visited

Everything posted by PeterRDevries

  1. you need to put @SubscribeEvent above this line: public void onEntityDrop(LivingDropsEvent event)
  2. Looks normal too me only that you should register the food in the preinit. Do your proxy's have any code? or is there anything else that could create an error.
  3. Something in your code is null I think can I see some source?
  4. Hello, I'm stuck on a wierd problem some how this does not work? @Override public void onEntityCollidedWithBlock(World p_149670_1_, int p_149670_2_, int p_149670_3_, int p_149670_4_, Entity p_149670_5_) { p_149670_5_.attackEntityFrom(DamageSource.fallingBlock, 2); } anyone knows what i'm doing wrong?
  5. Okay thanks for your help the block works great now only thing is my tileenity's nbt data is lost when I disconnect from my world.
  6. I know haha I just didn't knew I could use iblockacces as world
  7. yeah because that fixed the second issue
  8. Yeah the other one was because i set the color for the whole class thus changing all colors. And thanks the iblockacces works!
  9. Thanks for the quick reply's @SideOnly(Side.CLIENT) public int colorMultiplier(IBlockAccess p_149720_1_, int p_149720_2_, int p_149720_3_, int p_149720_4_) { return 0; } I can't get the tile entity variable tile.color from here because this doesn't have world if i get it via another method it sets the color for all current blocks. because i do color = tile.color
  10. hi I need to get an int from my tile entity if i do it this way: TileEntityHeatConductant tile = (TileEntityHeatConductant) p_149674_1_.getTileEntity(p_149674_2_, p_149674_3_, p_149674_4_); if (tile != null) { temp = (int) tile.Temperature; } it'll end up changing the int for all the blocks. i need to get the int inside here public int colorMultiplier(IBlockAccess p_149720_1_, int p_149720_2_, int p_149720_3_, int p_149720_4_) { return the tileentity int; }
  11. @SideOnly(Side.CLIENT) public boolean hasEffect(ItemStack par1ItemStack) { return true; }
  12. Look at the golden apple src.
  13. Thanks for your help draco i solved it!
  14. What am i doing wrong here? my tileentity is not working: @Override public TileEntity createTileEntity(World world, int metadata) { System.out.println("update"); return new TileEntityHeatConductant(); } GameRegistry.registerTileEntity(TileEntityHeatConductant.class, "molecularscience.heatconductant");
  15. Have you tried running it without the first 3 lines? language.name=English language.region=US language.code=en_US
  16. Thanks for your reply. I've created a basic tileentity can how can I make it update the color every tick? can I still use these methods: @SideOnly(Side.CLIENT) public int getBlockColor() { return 0x000000; } @SideOnly(Side.CLIENT) public int getRenderColor(int p_149741_1_) { return this.getBlockColor(); } @SideOnly(Side.CLIENT) public int colorMultiplier(IBlockAccess p_149720_1_, int p_149720_2_, int p_149720_3_, int p_149720_4_) { return 0xA52A2A; }
  17. Are you setting your modid correctly? @Mod(modid = MolecularScience.MODID, version = MolecularScience.VERSION) is your en_US.lang file located correctly how does your file look? item.Emptyjar.name=Empty Sample Jar item.sample.name=sample item.Mineral.Halite.name=Mineral item.Mineral.Sylvite.name=Mineral item.Mineral.Carnallite.name=Mineral item.Mineral.Langbeinite.name=Mineral item.Mineral.PolyHalite.name=Mineral item.Mineral.Kainite.name=Mineral item.Mineral.Anhydrite.name=Mineral item.Mineral.Gypsum.name=Mineral item.Mineral.Kieserite.name=Mineral item.Mineral.Dolomite.name=Mineral item.Mineral.Calcite.name=Mineral item.Mineral.Magnesite.name=Mineral itemGroup.molecules.name=Molecules this is mine
  18. this.setHarvestLevel("pickaxe", Harvestlevel);
  19. Hello, so I've been searching for a way to update my blocks color every tick. this is my simple code that sets the color to red: @SideOnly(Side.CLIENT) public int getBlockColor() { return 0x000000; } @SideOnly(Side.CLIENT) public int getRenderColor(int p_149741_1_) { return this.getBlockColor(); } @SideOnly(Side.CLIENT) public int colorMultiplier(IBlockAccess p_149720_1_, int p_149720_2_, int p_149720_3_, int p_149720_4_) { return 0xA52A2A; } now I want like if I set a var to 100, the block updates and changes color to green or something. Would I be doing this in a tileentity class or any other methods? thanks.
  20. Don't expect us to fix everything for you within a minute
  21. Theres a forge field list on github.
  22. Where is your en_US.lang file located? It should be in the src/main/resources than assets.yourmodid.lang
  23. In eclipse holding crtl and then clicking on those fields usually opens op it's declaration so you can see what it does.
  24. fixed it had to use event.toolTip instead of event.itemstack
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.