Just a reminder that these videos are meant as examples! You should take these examples as knowledge and inspiration to make your own plugins in your own unique way.
Just some friendly advice, It's generally good practice to keep the scope of your class fields private whenever you can to prevent memory leaks and namespace errors. You could add your public static void init() functionality into a constructor of ItemManager. So you would write public ItemManager(){ }. Also, in java the common practice is to declare your class variables as private, so you would have a private ItemStack wand; and create public getters and setters. getters and setters look like this, and IntelliJ IDEA will autocomplete them for you public void setWand(ItemStack wand) { this.wand = wand;} public ItemStack getWand() { return this.wand; } 'this' is a keyword that tells java that you are referencing the field instance of your class and not a static one. You know it's good to teach the newcomers good practices.
I love you, I just adore you, you are the only one who can tell cool how to create mods and plugins, you just can’t imagine how I want to get to know you !!!! You are simply the best !!!!
Man! I gotta say something here! When I started learning Spigot, I really missed videos that were actually educational and that explained what was actually happening, instead of just showing the code. I can only say to everyone, who is still at the beginning of their journey, this is perfection! In my opinion there is almost no better way to show and teach how it all works! A little tip/wish I'd have: Could you move to Paper? It's basically Spigot, but with even more functions. Every Spigot plugin will work with Spigot, since it's just an improved version of Spigot. And it has much better performance. Asynchronous chunk loading is just one of them. It's a shame this video has only 42 likes!!
Bro your tutorials are amazing and this has helped me out a lot, I want to make a plugin that changes what an item drop is, like wood drops diamonds or leaves drop iron, can you make a tutorial on that, thanks
Can you do a tutorial on how to get custom player heads in a plugin. (For example I want to make a backpack and I want to use a player head texture for it)?
4:29 but isn't gold color text only in bedrock edition of MC? Edit: I was looking at the wrong color code, it was minecoin gold that was only for MC bedrock
I think you said that wrong. If you want your enchants to go over the Minecraft default values, you should have "meta.addEnchant(Enchantment., , true/false); to true. Having it on false will make your item unenchanted if you put a higher value than Minecraft's default. Otherwise, great video!
Do you know of a way to keep the item from being used? For example if that was an enchanted string instead of a stick, it would place a tripwire and consume the string.
for some reason my thing doesnt work with comparing the item metas and just stops then. i already tried by only checking if it is a stick and then it worked (obviusly then every stick worked) but when i tried checking if the name was the same it didnt work again. i checked the code multiple times and im 99% sure that my code is the same. im kind of new to java and especialy to plugin development pls help. i think it might be something with that spigot probably changed.
Would be nice you could create a tutorial for using custom items in recipes. For example I have 32x cactus in the 3 slots on top row in a crafting table and 32x in each slot for the 2 rows in the 2nd row. That''ll craft 1 for example enchanted cactus. and you can't use the custom items to craft enchanted cactus again only non custom items. I keep running into problems trying to do this but no good tutorials that explains it.
when i am in the pluginmanager folder i try to do the Player player = (Player) sender; and the sender is red and wont let me do anything. if anyone can help thanks so much.
Hey there, not sure if you still check these but you mentioned at the start that the Material only works with 1.13+. Does that mean the entire tutorial cannot work for versions below that? Or you would use something else for the material?
Im a Java beginner and I have a question. Wouldnt it make more sense to make ItemManager an object? I mean everything in this video is object based why not make this class too?
its all okay but i cant start the server with the plugin and i dont know why. Somebody knows why? and then it says this "(Package name) clashes with class of same name" does anybody knows why?!
Hey man, its been a while since the video released, but its still really helpful. Do you think I can use this to create the hyperion item from hypixel skyblock?
and another Question : as soon as I want to register my Event into may Main class, following Message appears "the Method registerEvents(Listener, Plugin) in the type PluginManager is not applicable for the Arguments (itemEvent, Main)" - Would appreciate help :)
@@TechnoVisionTV 1. Yeah I noticed, I forgot to save my project, that's why it couldn't recognize on my main class. Oopsie xD and 2. Thx for your help :)
How come, when I write ItemStack item = new ItemStack(Material.STICK, 1); I get an error because I provided Material when IMaterial was expected? Is this an update? How do I use IMaterial? great tutorials, btw
Im trying to make it so I can feed chickens a certain item, how would I do this. Ps this Is forge 1.15.2 im talking about Edit: I mean exactly like seeds
Could be wrong, but I think this is part of the chicken entity, and not the food item. You'd likely have to make your own chicken entity that overrides vanilla's and change the items it can use to breed.
@TechnoVision Thank you for all of the great tutorials, you are the only one who has made tutorials that are straightforward and easy to understand. I can't wait until the next tutorial! :)
@@8ballpizza765 TechnoVision does great videos don't get me wrong, but hes not the only one. {TheSourceCode} put out 30 tutorial videos on Spigot 2 years ago
Cannot invoke "org.bukkit.command.PluginCommand.setExecutor(org.bukkit.command.CommandExecutor)" because the return value of "com.redberry.sweet.Sweet.getCommand(String)" is null i am getting ths error
For some reason, the event happens 4 times for every 1 right click with the stick. It explodes 4 times, sends 4 messages in chat, and spawns 4 entities. How do I make it only run once? edit: After some more testing, it sometimes does it only twice, but idk why.
Is it possible to make the item be wearable? (Like putting a glass block on your head for a space helmet, scuba helmet, or something like that) Great video!
@TechnoVision thanks, everything works except the event's do you think there's a solution? I've tripled checked and the stick never works. thanks edit: I am trying to make infinite rockets for elytra's
Are u sure you are registering/enabling your events class in your startup method? My best advice would be to put console print statements in various locations to see where ur code stops executing
When i right a block is says "You dare use the stick of truth?!" 2 times? when there's only one code line with player.sendMessage("You dare use the stick of truth?!");
cool video. small tip: instead of ItemManager.init, you could use its constructor, which is defined as follows: public ItemManager { } then you can instance a new ItemManager, and this function is automatically run. hope i could help
Just a reminder that these videos are meant as examples! You should take these examples as knowledge and inspiration to make your own plugins in your own unique way.
First. Comment on your comment
Thank you for your tutorials!
Wait? Spigot is like a plug-in to make gui of something like furnaces?
Sorry I am new to modding
IKONIK spigot is an api
what if i want to create explosion infront of player?
Just some friendly advice,
It's generally good practice to keep the scope of your class fields private whenever you can to prevent memory leaks and namespace errors. You could add your public static void init() functionality into a constructor of ItemManager.
So you would write public ItemManager(){ }. Also, in java the common practice is to declare your class variables as private, so you would have a private ItemStack wand; and create public getters and setters.
getters and setters look like this, and IntelliJ IDEA will autocomplete them for you
public void setWand(ItemStack wand) { this.wand = wand;}
public ItemStack getWand() { return this.wand; }
'this' is a keyword that tells java that you are referencing the field instance of your class and not a static one.
You know it's good to teach the newcomers good practices.
I love you, I just adore you, you are the only one who can tell cool how to create mods and plugins, you just can’t imagine how I want to get to know you !!!! You are simply the best !!!!
This made my entire month, thank you!! You are so sweet :)
@@TechnoVisionTV No reason, it's all because you're the best! :ь
love you, too!
uwu
@@cattack I would be mad if the other guy didn’t say “uwu”
Man! I gotta say something here! When I started learning Spigot, I really missed videos that were actually educational and that explained what was actually happening, instead of just showing the code. I can only say to everyone, who is still at the beginning of their journey, this is perfection! In my opinion there is almost no better way to show and teach how it all works!
A little tip/wish I'd have: Could you move to Paper? It's basically Spigot, but with even more functions. Every Spigot plugin will work with Spigot, since it's just an improved version of Spigot. And it has much better performance. Asynchronous chunk loading is just one of them.
It's a shame this video has only 42 likes!!
Thank you for the kind words, that means so much to me! I'm so glad you're enjoying the video
@@TechnoVisionTV yeah that makes sense. Although Paper is 100% compatible with Spigot.
I love your tutorials and am now moving on to making something like this to put on spigot
no u were second
I'm completely new to plugins, and this tutorial was amazing! Thanks so much!
Your plugin tuts are sooo easy to learn
thank you for realizing likes and views arent the only thing that matters and teaching people even if it is only 4000
Holy crap this is useful, I'd give you a hug if I could.
great vid techno!
7:33
enchantment levels higher than the maximum required setting the boolean value to true.
I like both serieses :D
An intimate discussion with Binance's CEO about future developments
This helped alot, thanks dude!
Bro your tutorials are amazing and this has helped me out a lot, I want to make a plugin that changes what an item drop is, like wood drops diamonds or leaves drop iron, can you make a tutorial on that, thanks
just a question, is it possible to have custom textures for each without requiring a texture pack?
I really like this, now I just need to figure out how to add cooldowns to this along with say, an xp cost also ?
Can you do a tutorial on how to get custom player heads in a plugin. (For example I want to make a backpack and I want to use a player head texture for it)?
4:29 but isn't gold color text only in bedrock edition of MC?
Edit: I was looking at the wrong color code, it was minecoin gold that was only for MC bedrock
Also not to mention your tutorials are easy to follow and understand so yep it was easy learning with you teaching!
I think you said that wrong. If you want your enchants to go over the Minecraft default values, you should have "meta.addEnchant(Enchantment., , true/false); to true. Having it on false will make your item unenchanted if you put a higher value than Minecraft's default.
Otherwise, great video!
Yes ur totally right! Sorry about that
Do you know of a way to keep the item from being used? For example if that was an enchanted string instead of a stick, it would place a tripwire and consume the string.
With an event that checks whenever that item is used an cancell the event
for some reason my thing doesnt work with comparing the item metas and just stops then. i already tried by only checking if it is a stick and then it worked (obviusly then every stick worked) but when i tried checking if the name was the same it didnt work again. i checked the code multiple times and im 99% sure that my code is the same. im kind of new to java and especialy to plugin development pls help. i think it might be something with that spigot probably changed.
Would be nice you could create a tutorial for using custom items in recipes. For example I have 32x cactus in the 3 slots on top row in a crafting table and 32x in each slot for the 2 rows in the 2nd row. That''ll craft 1 for example enchanted cactus. and you can't use the custom items to craft enchanted cactus again only non custom items. I keep running into problems trying to do this but no good tutorials that explains it.
omg it worked ty so much!
Yay love your videos!!!
amazingmation 97, congratulations
You are first
I did everything same but it gives me normal item not mine custom
@Stefan Rial nope i did that
how can i make an explosion like 5 blocks in front of the player
pls help
how do you make it so the custom item gives you potion effects?
you have to make a listener look up listener tutorial on mc
I'm not making a plugin, but when do you plan to get to entities in the modding tutorial?
Probably not till a bit later on. Still have to get through ore gen, advanced items, advanced block models, events, and a few other things
@@TechnoVisionTV ok those sound fun too! :)
@@TechnoVisionTV this just proves how much thought is put into your videos! As you can tell, I'm impressed! 😅
why did you get rid of the github repo for the plugins?
its now under github.com/TechnoVisionDev/Spigot-Coding-Tutorial/
when i am in the pluginmanager folder i try to do the Player player = (Player) sender; and the sender is red and wont let me do anything. if anyone can help thanks so much.
Sorry for late response. Did you import it?
Hey there, not sure if you still check these but you mentioned at the start that the Material only works with 1.13+. Does that mean the entire tutorial cannot work for versions below that? Or you would use something else for the material?
Im a Java beginner and I have a question. Wouldnt it make more sense to make ItemManager an object? I mean everything in this video is object based why not make this class too?
Thanks a lots for your tutorial! But how can i add custom texture to my items?
why does it say Could not load 'plugins\Tutorial.jar' in folder 'plugins' when i wrote the plugin.yml and everything??
Hello i want a armorstand with a custom id to represent my item that when right clicked on the ground places a liquid how should i do this?
When I type the command in chat and hit enter, nothing happens
same here but for me it says the command name in chat
Thank you very much!
Can custom items have cooldown? i cant find a way to give cooldown to my item
its all okay but i cant start the server with the plugin and i dont know why.
Somebody knows why?
and then it says this "(Package name) clashes with class of same name" does anybody knows why?!
hello you may not see this but i would like to ask if you can make a video on how to make a pickaxe a sword and armor
how would you do it if you wanted the explosion to occur at the block that is right clicked and not at the players location?
get the location of the block
Hey man, its been a while since the video released, but its still really helpful. Do you think I can use this to create the hyperion item from hypixel skyblock?
I made the custom item just fine but how could i make it craftable with a custom recipe
Hey! I have a quick question:
"How do I make my Custom Item Non-Stackable?"
I’m just going to ask. How can I add a custom texture to my item? Thanks
custom model data
19:13 how can I shoot arrows for example instead of doing an explosion?
and another Question : as soon as I want to register my Event into may Main class, following Message appears "the Method registerEvents(Listener, Plugin) in the type PluginManager is not applicable for the Arguments (itemEvent, Main)" - Would appreciate help :)
@@larsmars2764 You are using the wrong arguments. Follow the implementation of the method registerEvents.
Also shooting an arrow is spawning an entity
@@TechnoVisionTV 1. Yeah I noticed, I forgot to save my project, that's why it couldn't recognize on my main class. Oopsie xD and 2. Thx for your help :)
@@TechnoVisionTV I did it with the arrows, but idk what to type for the location... I wrote [...].spawnEntity(p.getLocation(), EntityType.ARROW);
Hi this tutorial helps me alot but, Can you make a tutorial on how to make a custom texture in these?
How come, when I write
ItemStack item = new ItemStack(Material.STICK, 1);
I get an error because I provided Material when IMaterial was expected? Is this an update? How do I use IMaterial?
great tutorials, btw
I think this is because of a new update, it says the material under the lore in the game. Is there a fix for this? I've done HIDE_ATTRIBUTES
Love this Video
Im trying to make it so I can feed chickens a certain item, how would I do this. Ps this Is forge 1.15.2 im talking about
Edit: I mean exactly like seeds
Could be wrong, but I think this is part of the chicken entity, and not the food item. You'd likely have to make your own chicken entity that overrides vanilla's and change the items it can use to breed.
TechnoVision
Thanks so much, ill look in to this. Will you by chance be doing entities in your series?
@@8ballpizza765 Yes most definitely
@TechnoVision
Thank you for all of the great tutorials, you are the only one who has made tutorials that are straightforward and easy to understand. I can't wait until the next tutorial! :)
@@8ballpizza765 TechnoVision does great videos don't get me wrong, but hes not the only one. {TheSourceCode} put out 30 tutorial videos on Spigot 2 years ago
I keep getting "Not annotated parameter overrides @NotNull parameter" after the onCommand line any advice?
Can this work on 1.12.2? and you are really good because when i following you tutorial i know how ti works and i can change stuff as my i want
i have an error saying spigot cannot be resovled to a module any help on how can i fix it?
Cannot invoke "org.bukkit.command.PluginCommand.setExecutor(org.bukkit.command.CommandExecutor)" because the return value of "com.redberry.sweet.Sweet.getCommand(String)" is null i am getting ths error
For some reason, the event happens 4 times for every 1 right click with the stick. It explodes 4 times, sends 4 messages in chat, and spawns 4 entities. How do I make it only run once?
edit: After some more testing, it sometimes does it only twice, but idk why.
github: github.com/TechnoVisionDev/Spigot-Coding-Tutorial
For when are advanced custom items ? :) Great tutorials :)
Can make aspect of the end with it?
Is it possible to make the item be wearable? (Like putting a glass block on your head for a space helmet, scuba helmet, or something like that) Great video!
I think not in Vanilla but people are experiment a lot with player skulls, invisible armor stands and custom server textures.
im getting errors everytime i try and build it and use it in my server any suggestions ?
look at the error
bruh Ive been wondering why didn't it work for me until I found out that plugin.yml I typed command: not commands:
this is pretty cool
Is there a way to may a custom consumable item?
this isnt working for me :( (im in 1.16 and the item isnt registered for me how do I fix that?)
Does this work on 1.16.5?
I love it man!!! love from Hungary!!!
can you make a tutorial on creating custom block?
Thats only possible with mods
@@RappyyTV I actually figured out a method that uses textured items in in item frames
@TechnoVision thanks, everything works except the event's do you think there's a solution? I've tripled checked and the stick never works. thanks
edit: I am trying to make infinite rockets for elytra's
Are u sure you are registering/enabling your events class in your startup method? My best advice would be to put console print statements in various locations to see where ur code stops executing
If its Doesnt work with commant make static {} instead of public static void init {}
How do you post so much
how do i detect when a player is holding that item?
how would you change that custom item's texture?
custom model data
How do i check if a player is holding an item?
hey, i know this is 1 year old video but still if anyone knows givewand dosent work for me
how do i implement this into a gui?
It gave me only a stick without the colorcode or enchants!!
You forgot to do
ItemStack::setItemMeta(meta)
Whenever i do the command it repeats the command in chat instead, is there a reason for this?
Make sure the event returns true
how do I make the symbol for the color coding?
§
how do i import the ItemManager.init ?????
Does ItemManager not exist anymore for 1.16.5
what can be replaced?
U ARE THE BEST!
Good tutorials
how to put custom plugins on a server??? pls tell me need help :
in the plugins folder?
I'm sad that this won't work due to newer version
i can't explode me with the wand...? I'm on a 1.16.5 server
Why do you have to have your mic close to your keyboard..?
This is ASMR
how to create food?
does this work in 1.19
When i right a block is says "You dare use the stick of truth?!" 2 times? when there's only one code line with player.sendMessage("You dare use the stick of truth?!");
hi please make a video on mob drop
How to set cooldown???
did you find out?
cool video.
small tip:
instead of ItemManager.init,
you could use its constructor,
which is defined as follows:
public ItemManager {
}
then you can instance a new ItemManager, and this function is automatically run.
hope i could help
But thats a static class
It doesn't call constructor because we never instantiate an object from it
We have the same skin :)
oh my god. thank you yeah, BUT SLOW DOWN PLEASE
21:13
wo w there are 69 plugins
Sup Techno, your github link is invalid. github.com/TechnoVisionDev/Spigot-Tutorial should be github.com/TechnoVisionDev/Spigot-Coding-Tutorial
You just baited me :|
I thought this was about adding new CustomItems