
PeterRDevries
Forge Modder-
Posts
169 -
Joined
-
Last visited
Everything posted by PeterRDevries
-
[1.7.2] [ERROR] Exception in server tick loop
PeterRDevries replied to UltimateDillon's topic in Modder Support
you need to put @SubscribeEvent above this line: public void onEntityDrop(LivingDropsEvent event) -
[1.7.2] [ERROR] Exception in server tick loop
PeterRDevries replied to UltimateDillon's topic in Modder Support
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. -
[1.7.2] [ERROR] Exception in server tick loop
PeterRDevries replied to UltimateDillon's topic in Modder Support
Something in your code is null I think can I see some source? -
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?
-
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.
-
I know haha I just didn't knew I could use iblockacces as world
-
yeah because that fixed the second issue
-
Yeah the other one was because i set the color for the whole class thus changing all colors. And thanks the iblockacces works!
-
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
-
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; }
-
[1.7.2] Forge Advanced Model loader help
PeterRDevries replied to Death_Dealer's topic in Modder Support
@SideOnly(Side.CLIENT) public boolean hasEffect(ItemStack par1ItemStack) { return true; } -
[1.7.2] Forge Advanced Model loader help
PeterRDevries replied to Death_Dealer's topic in Modder Support
Look at the golden apple src. -
[1.7.2] change block color with tick.
PeterRDevries replied to PeterRDevries's topic in Modder Support
Thanks for your help draco i solved it! -
[1.7.2] change block color with tick.
PeterRDevries replied to PeterRDevries's topic in Modder Support
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"); -
Have you tried running it without the first 3 lines? language.name=English language.region=US language.code=en_US
-
[1.7.2] change block color with tick.
PeterRDevries replied to PeterRDevries's topic in Modder Support
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; } -
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
-
this.setHarvestLevel("pickaxe", Harvestlevel);
-
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.
-
Don't expect us to fix everything for you within a minute
-
Theres a forge field list on github.
-
Where is your en_US.lang file located? It should be in the src/main/resources than assets.yourmodid.lang
-
In eclipse holding crtl and then clicking on those fields usually opens op it's declaration so you can see what it does.
-
[1.7.2] add information(tool tip) to vanilla items?
PeterRDevries replied to PeterRDevries's topic in Modder Support
fixed it had to use event.toolTip instead of event.itemstack -
[1.7.2] add information(tool tip) to vanilla items?
PeterRDevries replied to PeterRDevries's topic in Modder Support
Anyone?