GitXplorerGitXplorer
V

DItems

public
1 stars
1 forks
3 issues

Commits

List of commits on branch master.
Unverified
e90aeae7d058b926b4d333f5c545dcc7f3c09aca

Fix jar

VVoChiDanh committed a year ago
Unverified
693fcb55011e42572ef19d535c5a1a95d8d23dca

Update depend plugin

VVoChiDanh committed a year ago
Unverified
c4ee8a0e323991f993ffdaad731b60e3fb05cad5

Update depend plugin

VVoChiDanh committed a year ago
Verified
1dd13f1547d697f25fa07c185d4a319893706cb4

Merge pull request #10 from D-x-Z/dependabot/maven/org.apache.maven.plugins-maven-shade-plugin-3.5.0

VVoChiDanh committed 2 years ago
Verified
111b5bf81513a1b2677f7afa2da4c8b81aa868bf

Bump maven-shade-plugin from 3.4.1 to 3.5.0

ddependabot[bot] committed 2 years ago
Verified
c66d3b7590c4f472167a65b286df26f15496120f

Merge pull request #3 from D-x-Z/dependabot/maven/org.apache.maven.plugins-maven-shade-plugin-3.4.1

VVoChiDanh committed 2 years ago

README

The README file for this repository.

DItems [1.8 - 1.20.x]

Simple plugins to make item with custom stats

Commands

/ditems setname [name] - Set name
/ditems reload - Reload file
/ditems show [stats] - Show amount of stats in hand
/ditems stats [stats] [number] - Set stats of item in hand
/ditems addlore [lore] - Add lore
/ditems removelore [line] - Remove lore
/ditems setlore [line] [name] - Set lore
/ditems help - Show help
/ditems addenchant [Enchant] [Level] - Add enchant
/ditems removeenchant [Enchant] - Remove enchant
/ditems save [Key] - Save items
/ditems unbreakable [true/false] - Set item unbreakabl
/ditems custom_model_data [number] - Set Custom Model Data
/ditems load [key] [amount] - Load items from file
/ditems setflag [flag] - Add flag
/ditems removeflag [flag] - Remove flag
/ditems ability_command [action] [command] [delay] - Add ability command
/ditems remove_ability_command [action] - Remove ability command

API

NBTItems

NBTItem nbt = new NBTItem(itemstack);

Make Custom Stats (Example)

stats.yml

STATS:
  CUSTOM_STATS: "&7Stats: &a#amount#"

Code

    @EventHandler
    public void onDamage(EntityDamageByEntityEvent e) {
        Entity target = e.getEntity();
        Entity killer = e.getDamager();
        if (killer instanceof Player) {
            e.setDamage(new NBTItem(killer.getInventory().getItemInMainHand()).getDoubleStats("CUSTOM_STATS"));
        }   
    }