Head Items
HeadItems lets you create new custom items in Minecraft thanks to the 1.8 update and player heads! Since heads can store custom textures in them, you can create an unlimited amount of new items that you can either craft, apply food or potion boosts upon use.
Features
- Add new items with any custom texture
- Items can be used with right click, placable on the ground or both.
- Items can restore food or apply any various number of potion effects
- Items can be crafted (with optional permissions)
- Items can to be spawned with commands
- Item recipes can be viewed in game
- Play optional sound effects upon use
Installation
To install, place HeadItems.jar in your plugin folder and restart your server. By default, HeadItems includes 4 items: Donut, Cupcake, Popcorn, and Coffee. These starting items should give you enough templates to create your own items. Please see the config file for details on adding new items.
Adding Textures
You can add textures to your items by visiting THIS website. There are a large variety of existing heads in the Main Collection. You can also add your own heads and generate textures this way. Once you have a head you would like to add as the item COPY the Texture's VALUE from the give command. This should be entered under Texture in the config.
Commands
All commands can be executed from in game or the console. Permissions are required if the player is not OP.
- /hi - Base command for HeadItems
- /hi list - List all current items
- /hi item [NAME]:[OptionalAmount [OptionalPlayer] - give yourself the item based on the item name and optional amount. You can also give items to other players
- /hi recipe [NAME]
- /hi reload - Reload the config file
Permissions
- head-items.* - Access to all headitem commands
- headitems.list - Access to /hi list command
- headitems.item - Access to /hi item command (Give self items only)
- headitems.item.others - Access to /hi item command (For others only)
- headitems.item.* - Complete access to /hi item
- headitems.recipe - view item recipes.
- headitems.reload - Access to /hi reload
- headitems.craft.ITEMNAME - Ability to craft the item (Requires CraftingRequiresPerms to be enabled in config. By default this feature is disabled)
Support
If you have any issues please post them in the discussion thread. I would like to keep this plugin FREE, so if you feel this plugin has benefited your server, please donate. Thank you!
Hi ive been having problems with all of my plugins where the commands in them cannot be run via command blocks with the Error msg being: The console cannot run this command. I've looked all of google for the answer and havent found a way to fix this, please help, thankyou.
@nashoxx
No it isnt... I've stopped using the plugin though. I would add it back if someone told me what was wrong. Do you have any ideas?
@Toby1002
Is this fixed?
the plugin stops working whenever I try to add a new item!!!
config:
Okay, the furnace problem solved, an other plugin crashed with yours, but I deleted that. But, we have an other error. We use the MobDropHead plugin, because all mobs drop their heads. That is okay. But if we break a mob head (except four basic minecraft head), or your plugin generated custom heads, the Head Item sign error in the log, and the the head is gone.
This is the error message: [19:37:07] [Server thread/ERROR]: Could not pass event BlockBreakEvent to HeadItems v1.1.0 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:305) [minecraft_server.jar:git-Spigot-8a983f9-e81edfc] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [minecraft_server.jar:git-Spigot-8a983f9-e81edfc] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [minecraft_server.jar:git-Spigot-8a983f9-e81edfc] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [minecraft_server.jar:git-Spigot-8a983f9-e81edfc] at net.minecraft.server.v1_8_R1.PlayerInteractManager.breakBlock(PlayerInteractManager.java:286) [minecraft_server.jar:git-Spigot-8a983f9-e81edfc] at net.minecraft.server.v1_8_R1.PlayerInteractManager.a(PlayerInteractManager.java:215) [minecraft_server.jar:git-Spigot-8a983f9-e81edfc] at net.minecraft.server.v1_8_R1.PlayerConnection.a(PlayerConnection.java:602) [minecraft_server.jar:git-Spigot-8a983f9-e81edfc] at net.minecraft.server.v1_8_R1.PacketPlayInBlockDig.a(SourceFile:40) [minecraft_server.jar:git-Spigot-8a983f9-e81edfc] at net.minecraft.server.v1_8_R1.PacketPlayInBlockDig.a(SourceFile:10) [minecraft_server.jar:git-Spigot-8a983f9-e81edfc] at net.minecraft.server.v1_8_R1.PacketHandleTask.run(SourceFile:13) [minecraft_server.jar:git-Spigot-8a983f9-e81edfc] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [?:1.7.0_75] at java.util.concurrent.FutureTask.run(FutureTask.java:262) [?:1.7.0_75] at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:696) [minecraft_server.jar:git-Spigot-8a983f9-e81edfc] at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316) [minecraft_server.jar:git-Spigot-8a983f9-e81edfc] at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:634) [minecraft_server.jar:git-Spigot-8a983f9-e81edfc] at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:537) [minecraft_server.jar:git-Spigot-8a983f9-e81edfc] at java.lang.Thread.run(Thread.java:745) [?:1.7.0_75] Caused by: java.lang.NullPointerException at com.dan.HeadItems.Listener.HeadItemListener.onBlockBreak(HeadItemListener.java:139) [?:?] at sun.reflect.GeneratedMethodAccessor170.invoke(Unknown Source) [?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.7.0_75] at java.lang.reflect.Method.invoke(Method.java:606) [?:1.7.0_75] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) [minecraft_server.jar:git-Spigot-8a983f9-e81edfc] ... 16 more
This is a wonderful plugin, con gratulations! I have one problem with this: if I use the plugin, the furnaces don't work :( Please-please fix this. Thank you very much! (I use Spigot 1.8 - no log error/warning)
OMG THIS PLUGIN IS AMAZING THANK YOU KEEP YOUR AMAZING WORK <3 :)
@HiddenCupcake
Yeah it looks like sound doesn't work, I'll fix that in next release.
This is actually a very inventive and unique idea :) I appreciate the simplicity in how to use the plugin as well! But, the sound-clips don't appear to be working (Although, it could just be me). I'm running it on a Spigot 1.8.3 build, if that is perhaps the cause. Otherwise, this is some great stuff! Thanks for this :)
Sound great!