
shmcrae
Members-
Posts
97 -
Joined
-
Last visited
Everything posted by shmcrae
-
[1.7.10] Changing texture based on item in Gui slot
shmcrae replied to shmcrae's topic in Modder Support
Alright, I tried this and the getIconIndex and nothing. readFromNBT: ElementStaff: -
[1.7.10] Changing texture based on item in Gui slot
shmcrae replied to shmcrae's topic in Modder Support
I guess I'm getting totally confused. So I still need the getIconIndex method in my item class along with this in the readFromNBT. I'm not to sure what do put in the getIconIndex method, I know I return an icon but what do I compare what to to return an icon. -
[1.7.10] Changing texture based on item in Gui slot
shmcrae replied to shmcrae's topic in Modder Support
Ok I tried this and still nothing. -
[1.7.10] Changing texture based on item in Gui slot
shmcrae replied to shmcrae's topic in Modder Support
I tried this but it didn't work, not sure if I'm on the right path. -
[1.7.10] Changing texture based on item in Gui slot
shmcrae replied to shmcrae's topic in Modder Support
Alright, I'm still unsure how to check my item in the slot. readFromNBT and do I check it in here or do i check it in my item class with getIconIndex? -
[1.7.10] Changing texture based on item in Gui slot
shmcrae replied to shmcrae's topic in Modder Support
Anyone? -
[1.7.10] Changing texture based on item in Gui slot
shmcrae replied to shmcrae's topic in Modder Support
Alright, how would I check the NBT data and do i check it in the getIconIndex method? StaffInventory -
[1.7.10] Changing texture based on item in Gui slot
shmcrae replied to shmcrae's topic in Modder Support
This is what i got so far, not sure if this is right. -
[1.7.10] Changing texture based on item in Gui slot
shmcrae replied to shmcrae's topic in Modder Support
So I put it in my item class so it would look like this that's what's in the Item class. So i would put an if statement in there but how do i check my custom slot and what item is there -
[1.7.10] Changing texture based on item in Gui slot
shmcrae replied to shmcrae's topic in Modder Support
Where do i put this method and also how do i check for an item in my custom gui slot. -
[1.7.10] Changing texture based on item in Gui slot
shmcrae replied to shmcrae's topic in Modder Support
Anyone? please. -
I'm wondering how to change the texture of the item (Staff) based on the item that is in the staff. I'm not sure how I can check if a certain item is in a slot. StaffInventory: StaffContainer:
-
[Solved][1.7.10] Making an item with Gui and a slot
shmcrae replied to shmcrae's topic in Modder Support
Thanks, do you know how I make it so you can shift click items in? -
[Solved][1.7.10] Making an item with Gui and a slot
shmcrae replied to shmcrae's topic in Modder Support
I think the Gui is fine, it's just the slot positions are messed up and I followed a tutorial so I'm not sure how to fix it. I know it's probably in here but I'm not sure what numbers to use to fix it StaffContainer: -
[Solved][1.7.10] Making an item with Gui and a slot
shmcrae replied to shmcrae's topic in Modder Support
How do i fix this StaffGui: -
[Solved][1.7.10] Making an item with Gui and a slot
shmcrae replied to shmcrae's topic in Modder Support
Thanks I'll check it out and tell you if it works. -
I'm trying to make when you have my item and you press a key it opens the Gui, but it doesn't work. I also don't know how to make an item have a slot and can't find tutorials on it. Main: KeyHandler: PacketPipeline: AbstractPacket: OpenGuiPacket: GuiHandler: StaffGui: StaffContainer: ElementStaff: RefStrings: ClientProxy:
-
How would i render it from positioning instead of from the entity
-
Where is the range?
-
Anyone?
-
Thank you it's rendering now but its rendering in short bursts not a constant beam Edit: ps i took the doRenderFlames part from the renderArrow in the RenderArrow class Render Class: http://pastebin.com/sa0BqA5q
-
It crashed heres the report http://pastebin.com/1BjQ8W9W
-
I already did that, if you look above i listed all of my classes. Flame Staff: http://pastebin.com/JjNSnmwr EntityFlames: http://pastebin.com/y0z8LHUa (I extended the entity by EntityArrow, don't know if thats wrong) RenderFlames: http://pastebin.com/rqtENPX7 MainClass: http://pastebin.com/54QiyPEe ClientProxy: http://pastebin.com/qY8FzLPx I already made the Render class and i already have the registry in the client proxy. But it still wont render the beam.
-
ok so what would be the problem with the beam rendering?
-
is it because of this if (!par2World.isRemote) { par2World.spawnEntityInWorld(new EntityFlames(par2World, 0.0, 0.0, 0.0)); } should i get rid of the if statement