We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minecraft has support for named items.
http://minecraft.gamepedia.com/Anvil#Renaming
This can be used to make ToolBelt only listen to specific items instead of all ____ (bone, golden shovel, etc)
Also the items can have descriptions, handy for giving usage instructions.
Originally suggested by Jadedwolf
The text was updated successfully, but these errors were encountered:
Also worth investigating, this might mean that the paint tool can now listen to a specific paint name instead of an action bar slot.
Sorry, something went wrong.
Here is an example I use to use the lore data of an item for a specific event. So only if the item has that lore will the event fire.
@EventHandler public void onShoot(EntityShootBowEvent e) { ArrayList loreData = new ArrayList(); loreData.add("Feel the Wither Within as you pull!"); Player player = (Player) e.getEntity(); if (e.getEntity() == null) { return; } if ((e.getBow().getItemMeta().hasLore()) && (e.getBow().getItemMeta().getLore().equals(loreData))) { Player p = (Player) e.getEntity(); e.setCancelled(true); ((WitherSkull) p.launchProjectile(WitherSkull.class)).setVelocity(e.getProjectile().getVelocity()); p.removePotionEffect(PotionEffectType.WITHER); p.getWorld().playEffect(p.getLocation(), Effect.MOBSPAWNER_FLAMES, 5); } }
No branches or pull requests
Minecraft has support for named items.
http://minecraft.gamepedia.com/Anvil#Renaming
This can be used to make ToolBelt only listen to specific items instead of all ____ (bone, golden shovel, etc)
Also the items can have descriptions, handy for giving usage instructions.
Originally suggested by Jadedwolf
The text was updated successfully, but these errors were encountered: