I did that and it said a ton of stuff that I couldn't read (I think it was obfuscated). I just googled BlockGrass and I found
"public int getRenderColor(int p_149741_1_)"
do you know what the argument is?
I was wondering how to use "world.playSound". I put it in my block's updateTick (it's set to randomly update) and it didn't work.
world.playSound((double)x, (double)y, (double)z, "random.explode1", 100F, 1F, true);
this doesn't work (no sound is played and no crashes), any help is appreciated.
I've made a block that generates in the world. I want to hide it in the top layer of grass, so I textured the top with Blocks.grass.getBlockTextureFromSide(1). This works, but it's a gray texture. How could I fix this?
I've been looking around, but I can't find any good tutorials for adding dungeon loot. I have an item that is very hard to craft (its actually pointless to craft) and I wanted to add it to dungeon chests. I looked at DungeonHooks but I don't think it works with 1.7.2
any help is appreciated.
I meant the differences in packets on ssp/smp. I noticed that packets/nbt only gets read on world load, so I was wondering if a player updated the tileEntity, would the packet get sent automatically on smp.
I noticed that in ssp nbt only gets saved once, when you exit the world. Do I need to do anything special for smp?
By that I mean, when another player uses the block does it automatically update the tileEntity.
huh, I didn't know it was stored as a NBTTagString element. I thought it was stored as a NBTTagCompound. What method or methods do you use to get the NBTTagString or is it just ".getString"?
I've already made this post here:http://www.minecraftforge.net/forum/index.php?topic=25547.0 but I didn't get much help.
I can't seem to figure out a Book and Quill's NBT tags.
if you were wondering, this in my class's code (its in onBlockActivated)
if(!world.isRemote){
if(player.getHeldItem()!=null)
if(player.getHeldItem().getItem()==Items.writable_book){
System.out.println(player.getHeldItem().stackTagCompound);
if(player.getHeldItem().stackTagCompound!=null){
NBTTagCompound booknbt = player.getHeldItem().stackTagCompound;
NBTTagList Pages = (NBTTagList)booknbt.getTag("pages");
NBTTagCompound text = Pages.getCompoundTagAt(0);
System.out.println(text);
}
}
Any help is appreciated.
I want to create a research system, similar to thaumcraft's (not in the mini game aspect). I want any unresearched items to have the name "?" and when you do research it, it has it's proper name.
How could I do this?
I'm trying to make a "glowing" effect for a Block, but I want the block to actually emit different amounts of light. I am using getLightValue() with the world,x,y,z arguments. I can't figure out how to actually make the glowing effect though.
first, wouldn't the ArrayList = a new ArrayList? Wouldn't it not be null then? or is that how "new" works.
also They're nested if statements, I didn't need the brackets.