You can't have light produce from held items/blocks. You could download the DynamicLights mod and add your item/block to a txt file so it registers to glow :/
thought of that but i would rather do it myself so i don't require another mod.
but if all goes bad, this is what i will have to do.
Didnt you post this yesterday? Check in ItemSoup.
And then you need to link it to an Entity...
ItemSoup has nothing about light.
i already doen the part where right click will open/close it now.
now i want to to produce light, and that is definitely not in ItemSoup
ok i am currently makign a mod for a zippo lighter.
im not expereienced, but this is about all i need and i am complete.
i want to have it so once i have opened my zippo lighter, it produces light like what a torch would produce when its placed on the ground. I am not sure how i can do this so please, all help possible.
Another idea might be to have two separate items, an open lighter and a closed lighter, and change an open to a closed (and vice versa) on a right-click.
This is what I want.
By seperate the items do you mean 2 image files? I have created both images files of the lighter (LighterClosed/LighterOpen). How do I get it to change texture on right click though?
Hi I am having trouble. I am trying to make a Zippo lighter mod and I want it to be so that when I am holding the lighter and right click it opens/closes.
I found 'onItemUse' method but I am not sure how I would go about doing this.
I have created 2 .png files of the lighter open and closed, how would I make it so right click = open otherwise if its open then it is closed when right clicked.
ok so i am new to modding and really wanna try make a mob.
I followed a tutorial and I have created my mob in techne, and I then started the code for my mod_xxx.
here is the code, I have called the mob 'figger' (idk what that is lol.)
public mod_Figger()
{
ModLoader.RegisterEntityID(EntityFigger.class, "Figger", ModLoader.getUniqueEntityId());
ModLoader.AddSpawn(EntityFigger.class, 10, EnumCreatureType.creature, new BiomeGenBase[] {
BiomeGenBase.forest,
BiomeGenBase.desert,
BiomeGenBase.plains,
BiomeGenBase.taiga,
BiomeGenBase.swampland
});
}
public String Version()
{
return "Figger v1";
}
public void AddRenderer(Map map)
{
map.put(EntityFigger.class, new RenderFigger(new ModelFigger(), 0.5F));
}
I'm getting an error with the ModLoader.AddSpawn saying that it is not applicable for the arguments?
I don't know what this means.
AddSpawn now has no errors, what I done was add 3 more intergers where I only had 1.
What do these mean?
I also have an error in the public void AddRenderer(Map map) method. Where I have new RenderFigger(new ModelFigger(), 0.5F)); it gives me the error 'the constructor is undefined'.
What is that? please help :biggrin.gif:
Got it working but I am still unsure of what the 3 intergers I added in the ModLoader.AddSpawn line. all they intergers are 10
0
look in ItemSoup. it is literally right there in the onFoodEaten method.
something about return new ItemStack(item, 1)
0
i looked at the source a bit but i didnt know what to take D:
0
where am i putting this? so far its no luck
thought of that but i would rather do it myself so i don't require another mod.
but if all goes bad, this is what i will have to do.
0
ItemSoup has nothing about light.
i already doen the part where right click will open/close it now.
now i want to to produce light, and that is definitely not in ItemSoup
0
im not expereienced, but this is about all i need and i am complete.
i want to have it so once i have opened my zippo lighter, it produces light like what a torch would produce when its placed on the ground. I am not sure how i can do this so please, all help possible.
0
thanks stewie, that worked :biggrin.gif:.
now to add a light source.
0
ModLoader.
0
oh yea, derp.
but how would it change item? This is what im stuck on.
0
This is what I want.
By seperate the items do you mean 2 image files? I have created both images files of the lighter (LighterClosed/LighterOpen). How do I get it to change texture on right click though?
0
yea i found onItemRIghtClick, but how do I get it to change texture?
I looked at ItemBow but that an EnumAction.
0
0
I found 'onItemUse' method but I am not sure how I would go about doing this.
I have created 2 .png files of the lighter open and closed, how would I make it so right click = open otherwise if its open then it is closed when right clicked.
0
ohhh ok makes sense. had alot of them everywhere.
do you know what the 0.5F is in the AddRenderer section?
0
I followed a tutorial and I have created my mob in techne, and I then started the code for my mod_xxx.
here is the code, I have called the mob 'figger' (idk what that is lol.)
I'm getting an error with the ModLoader.AddSpawn saying that it is not applicable for the arguments?I don't know what this means.
AddSpawn now has no errors, what I done was add 3 more intergers where I only had 1.
What do these mean?
I also have an error in the public void AddRenderer(Map map) method. Where I have new RenderFigger(new ModelFigger(), 0.5F)); it gives me the error 'the constructor is undefined'.
What is that? please help :biggrin.gif:
Got it working but I am still unsure of what the 3 intergers I added in the ModLoader.AddSpawn line. all they intergers are 10
0
So I did.
Both downloads to the empty world and mob trap are in the video description.
Tell em what you think? :smile.gif: