Universal Material Names | For Developers
12Makes 1.8.8-1.18 material names work on all supported servers.
The download link downloads the latest build of the UMaterial.java
Versions of Minecraft this supports
- Fully tested on
- 1.8.8
- 1.9.4
- 1.10.2
- 1.11.2
- 1.12.2
- 1.13.2
- 1.14.4
- 1.15.2
- 1.16.5
- 1.17.1
- 1.18
- Make sure you put api-version: 1.13 in your plugin.yml if using 1.13+!
Features
- Allows 1.8.8-1.18 material names to work on any server
- Backwards and forwards compatibility (as long as the material exists)
- Regular Potions, Splash Potions, Lingering Potions
- Tipped Arrows
- Enchantment Books
- Colored Leather Armor
Usage
- UMaterial.valueOf(<umaterial enum name>)
- UMaterial.match(<UMaterial enum name>)
- UMaterial.match(ItemStack)
- UMaterial.<enum>.getItemStack()
- UMaterial.<enum>.getMaterial()
- UMaterial.<enum>.getData()
- Deprecated
- UMaterial.match(materialName, data)
- You could also use these functions
- getEnchantmentBook
- returns an Enchanted Book with 1 or more enchants (2 methods)
- getColoredLeather(leatherMaterial, amount, red, green, blue)
- leather armor piece with a custom color
- matchEnchantedBook(ItemStack enchantedBook)
- only works with enchanted books with 1 enchant stored
- matchSpawnEgg(ItemStack egg)
- matches a spawn egg to its UMaterial
- matchPotion(ItemStack potion, PotionBase type)
- matches a potion to its UMaterial
If you want it to support Item IDs or other things, let me know!
Feel free to use it in any plugin (it's licensed btw). <3
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta