Custom_Items
Custom Items
CustomItems allows you to create your own custom items
NOTE: when I say Items, I'm talking about Items, weapons, armor, and blocks. Not just items.
How To use:
- Download Plugin
- Restart server to generate files.
- Stop server.
- Should now have /plugins/customitems/data/
- in that folder create a .yml file (you can name it anything)
- Copy and paste the example config from this page and edit it to your liking.
Example Config:
# CustomItems
# =-=-=-=-=-=-=
# Example Item:
#
displayname: "&aEmerald Sword"
material: DIAMOND_SWORD
enchantments:- 'DAMAGE_ALL:5'
- 'MENDING:1'
recipe:# shape is crafting recipe (space = no item needed in slot)
shape:
- ' E '
- ' E '
- ' S '
ingredients:
- 'E:EMERALD'
- 'S:STICK'
API:
CustomItems includes a api just import class me.isaiah.customitems.CustomItem
How to use the API:
CustomItem EmSword = new CustomItem("Emerald Sword", Material.DIAMOND_SWORD); EmSword.addEnch(5, Enchantment.DAMAGE_ALL); EmSword.addEnch(1, Enchantment.MENDING); EmSword.shape(" E ", " E ", " S "); EmSword.setIngred('E', Material.EMERALD); EmSword.setIngred('S', Material.STICK); EmSword.register();
TODO:
- Create custom items via command.
- Edit created items via command.
Doesn't seem to work...
I crafted the Emerald Sword but it behaves like a Diamond Sword(I changed damage values too)
Looking at this to replace the defunct LegendaryWeapons plugin. All its lissing is the ability to assign the mob that drops it and lore!
Works great out of the box though! :P
[16:54:01 INFO]: [CustomItems] Enabling CustomItems v1.0
[16:54:01 INFO]: [CustomItems] [=-=-=-=-=-=-=-=-=-=]
[16:54:01 INFO]: [CustomItems] [~] Registering Items...
[16:54:01 ERROR]: Error occurred while enabling CustomItems v1.0 (Is it up to da te?)
java.lang.NullPointerException
at me.isaiah.customitems.PluginMain.onEnable(PluginMain.java:28) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:271) ~[s pigot.jar:git-Spigot-625bc00-d09304e]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader .java:337) [spigot.jar:git-Spigot-625bc00-d09304e]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage r.java:405) [spigot.jar:git-Spigot-625bc00-d09304e]
at org.bukkit.craftbukkit.v1_11_R1.CraftServer.enablePlugin(CraftServer. java:376) [spigot.jar:git-Spigot-625bc00-d09304e]
at org.bukkit.craftbukkit.v1_11_R1.CraftServer.enablePlugins(CraftServer .java:326) [spigot.jar:git-Spigot-625bc00-d09304e]
at net.minecraft.server.v1_11_R1.MinecraftServer.t(MinecraftServer.java: 421) [spigot.jar:git-Spigot-625bc00-d09304e]
at net.minecraft.server.v1_11_R1.MinecraftServer.l(MinecraftServer.java: 382) [spigot.jar:git-Spigot-625bc00-d09304e]
at net.minecraft.server.v1_11_R1.MinecraftServer.a(MinecraftServer.java: 337) [spigot.jar:git-Spigot-625bc00-d09304e]
at net.minecraft.server.v1_11_R1.DedicatedServer.init(DedicatedServer.ja va:272) [spigot.jar:git-Spigot-625bc00-d09304e]
at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.jav a:544) [spigot.jar:git-Spigot-625bc00-d09304e]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_121]
It gets as far as making the folder but it is empty. I am running spigot 1.11.2.
Kevin
In reply to krpepe: