That's because the standard mods are obuscated to work in a normal environment, and not in a dev-environment. To solve this, add CodeChickenCore to the mods folder, as it will runtime-deobfuscate the mods so they can work in a dev-environment.
You mean a random one of the 16 blocks? If so, add a Block[] and a Random field in your item, and when ou want to place that block, get the Block using
Block block = blockArray[random.nextInt(blockArray.length)]
.
Ik weet wel hoe groot een chunk is
Het is 16 keer 16 keer 256
I know how big a chunk is
A chunk is 16 by 16 by 256
Then why do you do
random.netInt([b]256[/b])
?
(also, this is an english forum, and lets keep it this way)
If the entity is yours, you can override the
interact(EntityPlayer)
method, in which you can get the ItemStack the player is holding (can be null), check if the item is the item you want, and get the variables from the
stackTagCompound
(can be null) of the item the player is currently holding.