Hi! I need to define a unique InventoryHolder that is an online or offline player nor null. Could it be a fake, manufactured player? For...
Hi. I want to use the scoreboard to keep track of what abilities each player will has. ScoreboardManager manager =...
Is it okay to remove everything with the same ID? Otherwise you've got to define the itemStacks custom Meta and apply it onto the defined...
Hi! I want to add some sort of property to a block that is activated when an OP places down a sign with a certain string in the first sign line....
MCPvPCraft Oh, right...! Thanks!
@EventHandler private void onPlayerPickupItem(InventoryClickEvent e){ if (e.getInventory().getHolder() instanceof Player){...
agaricus Thank you!! I gotta hit the hay now, but I will get back to this tomorrow.
Jogy34 Thank you! I solved it through simply writing: ItemStack Is = new ItemStack(e.getItem().getTypeId(), 1); ItemMeta Im =...
Hi. Whenever a player right clicks with a diamond, it's supposed to be destroyed, one at a time. This was no issue at all to fix. The...
LazyLemons Am I completely wrong here or is EntityPlayer the non-obfuscated forge version of Sq? @MinnyMin "CraftPlayer cannot be resolved to a...
TheTinySpider Minnymin3 Thanks for shedding some light on this guys. EDIT: This API seems to be aiming to simplify this. EDIT2: Seems he...
Sgt_Tailor Hi! I already know how to modify lore, that code will unfournately not solve it. I wrote a similar code. List<String> lore =...
Craftiii4 You mean like so? im.addEnchant(Enchantment.DIG_SPEED, 25, true); im.setLore(null);...
GodzOfMadness Thanks! However, both custom pickaxes return "It works"; despite one of them having both the color prefix and the string wrong. A...
GodzOfMadness Oops. Edit: Still doesn't register the custom display name, could it be due to colors?
Separate names with a comma.