What would be the most efficient way to iterate/loop over blocks around the player, in a given radius?
Digi So I should only do this in my onEnable? getConfig().options().copyDefaults(); By the way, you have to do saveConfig(); for it to generate...
I do this getConfig().options().copyDefaults(); saveConfig();
So I started making a plugin that contains config files. I want the server owner to be able to change the things they want. Lets say this is the...
Lets say I have a server with teams, and when the game starts the server automatically splits them into equal groups. 1) What is the best way to...
Hmm, i'll try to mess around with it.
I'm not asking for code, what would be the process to make a specific block behave like primed tnt. So I would be able to add velocities to it and...
How would I add a eating animation to un-eatable objects?
Yeah, I searched for it in bukkit and got that. Thanks for caring though =p
I'm just wondering, if it is possible to add the effect while eating food, on not eatable objects?
Yeah it worked.
Figured out my own code for that, thanks anyways =p
-.- I just found out... So, I did this: Entity entity = (Entity) grenade.getNearbyEntities(gloc.getX() + 5, gloc.getY() + 5, gloc.getZ() + 5);...
Perfect! Thanks, the code really works. I just changed up the scheduler. One last thing =p If I do grenade.getNearbyEntities(arg0, arg1, arg2);...
Ok, so I have tried tons of codes with velocity and other stuff. Here are the two problems that I ran into: 1)Setting the right velocity and...
For example, how would I define a Slimeball as an ENTITYTYPE?
This doesn't randomise anything. Everytime I shoot, it yields same results... Anyone? EDIT by Moderator: merged posts, please use the edit...
To begin with (I HAVE SEARCHED) the internet for this, and saw this code: public static double randomInRange(double min, double max){...
I know some basic java, but your CODE doesn't work. I tried everything. I'm giving up on this...
chasechocolate I'm getting mixed up, can you just show me how to make a random number generate between 0.1 and 0.2?
Separate names with a comma.