Everything posted by PeterRDevries
-
[1.7.2] [ERROR] Exception in server tick loop
you need to put @SubscribeEvent above this line: public void onEntityDrop(LivingDropsEvent event)
-
[1.7.2] [ERROR] Exception in server tick loop
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
Something in your code is null I think can I see some source?
-
[1.7.2] Attack entity from
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?
-
[1.7.2] get int from tileentity
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.
-
[1.7.2] get int from tileentity
I know haha I just didn't knew I could use iblockacces as world
-
[1.7.2] get int from tileentity
yeah because that fixed the second issue
-
[1.7.2] get int from tileentity
Yeah the other one was because i set the color for the whole class thus changing all colors. And thanks the iblockacces works!
-
[1.7.2] get int from tileentity
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
-
[1.7.2] get int from tileentity
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
@SideOnly(Side.CLIENT) public boolean hasEffect(ItemStack par1ItemStack) { return true; }
-
[1.7.2] Forge Advanced Model loader help
Look at the golden apple src.
-
[1.7.2] change block color with tick.
Thanks for your help draco i solved it!
-
[1.7.2] change block color with tick.
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");
-
Can't link en_US.lang to my mod
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.
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; }
-
Can't link en_US.lang to my mod
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
-
[1.7.2] setHarvestLevel
this.setHarvestLevel("pickaxe", Harvestlevel);
-
[1.7.2] change block color with tick.
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.
-
Cant reob 1.7
Don't expect us to fix everything for you within a minute
-
Fields...
Theres a forge field list on github.
-
Can't link en_US.lang to my mod
Where is your en_US.lang file located? It should be in the src/main/resources than assets.yourmodid.lang
-
Fields...
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?
fixed it had to use event.toolTip instead of event.itemstack
-
[1.7.2] add information(tool tip) to vanilla items?
Anyone?
IPS spam blocked by CleanTalk.