@VerdentCz I think the best way to do this would be as followed: - Cancel the PickupEvent. - Get the item from the event, get the ItemStack from...
@Letscrime You're now getting one location randomly and storing it in the rand variable. If you want all of them to be random use something like...
@Letscrime I can't see why your code doesn't work. What is the error you're getting?
Lazertx is right, opening the chat is handled client side and there's no way to open it using a plugin.
Missing the @Override annotation won't stop the plugin from working. It's still better to have it though.
mattibijnens You'd better make the house first and then make something to load every block and its data to a file. You can then use that file to...
Sean0402 Use Bukkit instead of CraftBukkit.
NIKO2014 Please give us the error you got in the console, and paste it inside so it's better readable for us.
There's no method which uses minimum, but you can do it yourself. If you want a minimum of 3, just add 3 to the integer and make the max 3 less....
bwfcwalshy You can create a random integer using: Random rand = new Random(); int i = rand.nextInt(max); 'max' will be the max value of the...
belven000 I'm glad you've fixed it:). Please put your thread on solved if it is.
belven000 I think this thread explains everything you want to know:...
belven000 If the block changes, the block object changes as well. Storing the location in combination with the BlockState in a HashMap looks like...
It looks like you're setting the block to AIR before getting the drops. Just move the line all the way to the bottom of the event.
Separate names with a comma.