public int getDamageVsEntity(Entity entity)
{
return damageVsEntity;
}
Instead of returning 'damageVsEntity' (which in turn references EnumToolMatieral) you could simply define a value yourself. Remember that the number is the number of half hearts.
public int getDamageVsEntity(Entity entity)
{
return 4;
}
I did some math to regulate the movement speed of attracted items (they no longer slow down as they get closer) which has inspired me to make a tractor beam. Expect greatness.
[code]ModLoader.RegisterBlock(Generator);[/code]
I'm assuming it's crashing when you try to make your Generator block and that is because you have not registered it as well. Please use [code][/code} tags as well as [spoiler][/spoiler}
0
0
This subforum is for already started mods that need help with code.
0
0
1
Instead of returning 'damageVsEntity' (which in turn references EnumToolMatieral) you could simply define a value yourself. Remember that the number is the number of half hearts.
0
0
0
He wants your game to crash.
1
>implying something other than a player will be holding that item
0
This should be a the top of your code not the bottom. Not sure if that will fix your problem but let's eliminate that first.
1
Why can't you just do this?
1
Is that what you want?
0
What would you need to import ModLoader for? It's in the same package.
0
I'm assuming it's crashing when you try to make your Generator block and that is because you have not registered it as well. Please use [code][/code} tags as well as [spoiler][/spoiler}
0