Everything posted by Alix_The_Alicorn
-
No blocks showing up?
anyone have an answer?
-
No blocks showing up?
Yeah, but then I get a shit ton of NPEs
-
No blocks showing up?
After an anonymous forge update, all of my blocks have seem to have disappeared! (just gone, don't exist in the game) http://github.com/alix-the-alicorn/Carbon-Mod
-
How would I make this rotate based on how its placed?
http://github.com/alix-the-alicorn/carbon-mod
-
onBlockDestroyed
Okay, it works!! locking topic in 3... 2... 1... and Draco i gave you a thank you
-
onBlockDestroyed
I'm testing it now
-
onBlockDestroyed
Thanks guys a lot. here is my final method if anyone wants it. @Override public boolean onBlockDestroyed(ItemStack par1ItemStack, World par2World, int blockID, int par4, int par5, int par6, EntityLivingBase par7EntityLivingBase) { final int x = 1; final int y = Reference.chiselBreakTime; int rand = new Random().nextInt(y-x) + x; if(rand == 2 && par1ItemStack.getItemDamage() == 0) { par1ItemStack.setItemDamage(1); } return false; }
-
onBlockDestroyed
I'm assuming I need to @Override it. To do what I need to do, I need an instance of entity player (EntityPlayer par8EntityPlayer) added to the boolean method. Is there another way to edit players inventory? I'm trying to set item damage to 1 if a random integer == 1.
-
onBlockDestroyed
Ok, thanks for the help. Do you know what any of the params are though?
-
onBlockDestroyed
ok. but since it is boolean what do I need to return?
-
onBlockDestroyed
I want to run code when a block is broken. I have that code ready. How would I run it?
-
onBlockDestroyed
yes I mean that method
-
How can I change things in the render things from my model in the TileEntity
Since this hasn't been locked yet, could you tell me how you did it
-
onBlockDestroyed
I want to execute some code when my item breaks a block, but in Item.class there is only a boolean called onBlockDestroyed. How would i run code on block destroyed?
-
Custom furnace(s) bug
Thanks guys, I fixed by problem by looking at the source of EE3 and I figured out what diesieben07 meant. I'm gonna lock the topic now.
-
Custom furnace(s) bug
I've looked in vanilla's TEs and couldn't find anything. Could you explain a bit more?
-
Refining my development process with Forge
youtube.com/pahimar watch dev environment 3.0
-
Custom furnace(s) bug
bump
-
Transparent block help
Yes, I did. Look in my Load class, and ModBlock's constucor
-
Transparent block help
My code is at http://github.com/alix-the-alicorn/carbon-mod/ I want my compressed ice to be transparent, and it is but this happens. I can see through the ground. Compressed ice is n instance of ModBlock. It is defined in Load.
-
Custom furnace(s) bug
bump
-
Custom furnace(s) bug
Oh, ignore my last post. I mean that my custom furnaces have two states, and each have a different unlocalized name "grill" and "grill2" for example.
-
meta sensitive input furnace
I know that I need to make one, I'm just confused on how to go about that. I am sure someone has done it, and I was hoping someone could give me an example of how to go about that.
-
Custom furnace(s) bug
I have two tiles, and I'm registering both.
-
Custom furnace(s) bug
bump, this is ALL I NEED to release the next version of my mod!
IPS spam blocked by CleanTalk.