Eldrazi
Eater of Worlds
Ah sorry, replace 'npc' with 'target'. My badwhen i build the mod it says that the name 'npc' could not be found in the current context
Ah sorry, replace 'npc' with 'target'. My badwhen i build the mod it says that the name 'npc' could not be found in the current context
Depends what you mean by ore coding?can someone help me with ore codeing?
Allright, but what exactly are you asking of us?am trying to make a ore to my mod
I'd advice you to take a look at the ExampleMod first.em am new to coding so I don't know I just want the code for ore
Which is why I pointed you to the ExampleBlock instead. Their structure is practically the same.I mean your right but i checked the whole example mod and there is no example ore
That's an entirely different story, why not ask that first, then?ya but to spawn the ore
Allright, that's fine... But when do you want to spawn your ore?sorry and I want the ore to spawn in the hallow
What do you mean by "define an item's texture"? Do you mean like loading a texture?I don't know how to define an item's texture, and the documentation is no help either.
I'm not sure if he's referring to my issue, but I think what he means is that there doesn't seem to be a way to do, say:What do you mean by "define an item's texture"? Do you mean like loading a texture?
From all my decompiling and stuff, the item is actually drawn using the PlayerLayer, so try the player hooks and check out, if you have ilSpy or have the source, check out the DrawPlayer() method in the Player class and use the find function and search item and you'll see the whole thing.I'm not sure if he's referring to my issue, but I think what he means is that there doesn't seem to be a way to do, say:
Spritebatch itemTexture = item.texture;
There's nothing in "item" that represents its texture (as far as I know), so you need to use a hook that has it as a parameter to modify it.
I hope I'm wrong, though, since otherwise it would be pretty rough to rotate an item in use around its origin.