Minecraft Plugin Tutorial (in Kotlin) | Project Setup

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ต.ค. 2024

ความคิดเห็น • 245

  • @GGGamesXDlol
    @GGGamesXDlol 2 ปีที่แล้ว +202

    1:08
    "today we're making a plugin, a spigot plugin, that's why we're going to select, paper"
    -Legitimoose 2022

    • @bitwhyze
      @bitwhyze ปีที่แล้ว +1

      Paper is based on spigot

    • @GGGamesXDlol
      @GGGamesXDlol ปีที่แล้ว +5

      @@bitwhyze ik but they are not the same thing, it's like saying "mobile phones are based on fixed telephones", that's true but the are not the same thing

    • @qanti6582
      @qanti6582 8 หลายเดือนก่อน

      @@GGGamesXDlolit's exactly the same wtf is u yapping about

    • @GGGamesXDlol
      @GGGamesXDlol 8 หลายเดือนก่อน

      it takes ZERO effort to make a google search before saying something that doesn't make sense@@qanti6582

    • @J4yT3a
      @J4yT3a 8 หลายเดือนก่อน +1

      @@qanti6582 no, they are not. moose explained it in the video.

  • @LightslicerGP
    @LightslicerGP 2 ปีที่แล้ว +88

    OHMYGOD
    Legitemoose teaching us things nobody else wants to
    Thank you so much

    • @danielrdrigues
      @danielrdrigues 2 ปีที่แล้ว

      I hate myself for giving a chance to -Java- Kotlin

    • @giuseppeorlando7314
      @giuseppeorlando7314 11 หลายเดือนก่อน

      @@danielrdrigues bro kotlin is basically shit

  • @The10ie
    @The10ie 2 ปีที่แล้ว +38

    best plugin tutorial i've ever seen in my life! I would follow each tutorial he makes.

  • @SyberiaK
    @SyberiaK 4 หลายเดือนก่อน +5

    Thanks for the tutorial! I was in fact smashing my head in the wall trying to figure out how to do it, and you made it so simple and convenient to follow!
    Of course, in 2024 some things have changed like creating a new project (just choose "Minecraft" -> "Bukkit" in "Platform" -> "Paper" in "Bukkit Platform", every other setting is still there, but on a single screen) or converting the project from Java to Kotlin (right-click on your .java file, not the project root), and I'd rather use Gradle for compiling, but the steps are almost exactly the same. Great job!

    • @WafflesTk
      @WafflesTk หลายเดือนก่อน

      Hey can you point out the directory of the .java file?

    • @SyberiaK
      @SyberiaK หลายเดือนก่อน +1

      @@WafflesTk hey there, it's your main mod file (src/main/java/*your mod group*/*your mod id*)

  • @coolearth4511
    @coolearth4511 ปีที่แล้ว +36

    For those of you who are coming to this video in 2023, you will need to change the platform from "Sponge" to "Bukkit" and select Paper as the initial screen with all the options for the platform is gone now

    • @itsaducklin
      @itsaducklin ปีที่แล้ว

      was abouta comment that myself, thank you good sir

    • @alsobe3D
      @alsobe3D 6 หลายเดือนก่อน +4

      i am coming in 2024....

  • @oreiboon
    @oreiboon ปีที่แล้ว +5

    Recently, I decided "Hey, I want to make plugins for a very funny server idea" (because the skript plugin just isn't it for me) and remembered this channel, lo and behold, I found this video. Overall, really great tutorial, enjoyed how you explained each step. Keep up the good work!

  • @oreonokamithecookie7727
    @oreonokamithecookie7727 2 ปีที่แล้ว +12

    this man made me interested in coding only by himself huge fan

  • @frogger2920
    @frogger2920 2 ปีที่แล้ว +35

    Finally another video! I would like to see more videos about minecraft shaders, I think it offers a lot more!

    • @kkfan7878
      @kkfan7878 2 ปีที่แล้ว

      Yes

    • @TheJimmyCartel
      @TheJimmyCartel ปีที่แล้ว +1

      I wouldn't say that. That's just a visual change. Plugins can really change your gameplay, that's how you can play on a hypixel server without downloading any client side mods. It's all plugins.

  • @juddery
    @juddery ปีที่แล้ว +63

    As a software developer myself but someone who has never tried developing a Minecraft plugin before, I'm definitely digging that sense of humour you've got going there. 😁 Java was the first language I ever learned, but haven't touched it in over 10 years, so this should be err... fun?

    • @SnowyRedstone
      @SnowyRedstone ปีที่แล้ว +4

      welp I learned to code Java last summer, coded some fabric mods, but once I realized how easy coding a datapack is, lets just say that I haven't used intellij in a long time

  • @cipher4921
    @cipher4921 ปีที่แล้ว

    Love how your able to teach but yet make it entertaining so that it doesn't sound like a robot teaching or showing how to do the lesson.

  • @omrishamir6038
    @omrishamir6038 2 ปีที่แล้ว +3

    My guy is back! These videos really help me! Keep it going buddy!😀

  • @pointyposeidon
    @pointyposeidon 2 ปีที่แล้ว +4

    Hope to see some more videos on Minecraft modding with Kotlin! Great work

    • @zramctl
      @zramctl 2 ปีที่แล้ว

      modding?

  • @GGGamesXDlol
    @GGGamesXDlol 2 ปีที่แล้ว +1

    This only video was better than the 19283827382 other guides in TH-cam together XD

  • @alexanderpoukhlovski
    @alexanderpoukhlovski ปีที่แล้ว +1

    I never thought a tutorial could be so fun to watch! I would love to see some more of these, maybe about how to make a command work or something

  • @dev_insights101
    @dev_insights101 2 ปีที่แล้ว +5

    To everyone watching this without any knowledge of java: I would recommend to learn little bit of java. Things such as project managers and some code syntax and also how IDE wok.

  • @CodeCreature
    @CodeCreature 2 ปีที่แล้ว +2

    Started learning code in Java... I will probably never choose to use that language again! 😅Great tutorial!

  • @oriinafloresta
    @oriinafloresta 2 ปีที่แล้ว

    I love how I'm just opening the app when legitimoose is putting the plugin on the server

  • @officialzeroninja
    @officialzeroninja 2 ปีที่แล้ว +2

    This video is great. Would like to see another one where you show how to make a simple plugin like adding a command or something :)

    • @TGIFPluto
      @TGIFPluto 2 หลายเดือนก่อน

      I would love to, when I try to create commands it doesn't work, even if i searched for hours...

  • @cussy7526
    @cussy7526 2 ปีที่แล้ว +1

    Me alegra mejorar mi nivel de inglés, así descubro joyas como este canal XD

  • @kaninchenspeed
    @kaninchenspeed 2 ปีที่แล้ว +5

    changing the java version in the pom.xml file allows the use of newer java features

  • @Psyan
    @Psyan 2 ปีที่แล้ว

    you make the most fun and entertaining coding tutorials i've ever seen, keep it up :DDD

  • @Terraspark4941
    @Terraspark4941 ปีที่แล้ว

    sir i have no idea who you are and how you appeared in my recommendeds, but ive already subscribed to you, keep up the good work 👍

  • @BluePotatoBP
    @BluePotatoBP 2 ปีที่แล้ว

    I'm 90% sure the reason stuff breaks when you use a space in the actual file name is because windows/whatever program you're using doesn't recognize it as a valid directory, for example:
    To access a folder on your desktop named "Funny Project" you basically have to think about it as if you were using a terminal- **cd C:\Users\User\Desktop\Funny Project**
    And if you've ever tried that, you would get an error. ("The system cannot find the path specified.")
    That's why you might see people use quotes after **cd**, so **cd "C:\Users\User\Desktop\Funny Project"** actually works.
    This is also implemented into tab completion in terminals, if you try writing **cd(space)** and then pressed tab you can occasionally get directories surrounded in quotes.
    Hope this helped!

  • @wbrim
    @wbrim 2 ปีที่แล้ว

    Thanks to you, I was able to add new features to and existing plugin, compile it and contribute to the main repo ✨

  • @Ysancharo
    @Ysancharo 2 ปีที่แล้ว

    I just tried to watch a video before this with the same program, this is SOOO much easier

  • @maxtb8481
    @maxtb8481 2 ปีที่แล้ว +9

    could you do more videos on plugins as well as datapacks? you're very good at explaining btw

  • @Legitimoose
    @Legitimoose  2 ปีที่แล้ว +18

    At 9:05: Use the latest version from here papermc.io/using-the-api
    At 7:14: Change the api-version to your desired version (e.g. 1.19)
    Don't forget to reload Maven!

    • @MayankNotFound
      @MayankNotFound 2 ปีที่แล้ว +2

      Plz bring more episodes like building other types of plugin and more knowledge

    • @vithrn123
      @vithrn123 2 ปีที่แล้ว

      bro finally i can find a tutorial of kotlin plugins for minecraft that isn't in german

    • @privatechannel1272
      @privatechannel1272 2 ปีที่แล้ว

      Why don't just use Visual Studio?

    • @vithrn123
      @vithrn123 2 ปีที่แล้ว

      @@privatechannel1272 like he said in the video since jetbrains made kotlin the easiest way to convert java to kotlin while coding is with jetbrain's Intelij

    • @pancakehiatt
      @pancakehiatt 2 ปีที่แล้ว

      @@vithrn123 except not cause he just says to figure it out yourself in the end smh

  • @gttmone
    @gttmone ปีที่แล้ว

    Best up to date tutorial for Minecraft Plugins & Java In General Thank you ♥

  • @GGGamesXDlol
    @GGGamesXDlol 2 ปีที่แล้ว +1

    ur channel is very underrated

  • @jonathankrzeszewski9010
    @jonathankrzeszewski9010 ปีที่แล้ว +4

    to anyone struggling to find the community edition, IntelliJ sort of hid it on their webpage, you need to click show other versions on the download link provided

    • @galaexplorer3839
      @galaexplorer3839 6 หลายเดือนก่อน

      thank you

    • @Ponduck
      @Ponduck 4 หลายเดือนก่อน +1

      Or on the main download page just scroll down a little

  • @NateAustin19
    @NateAustin19 2 ปีที่แล้ว

    love the charisma coming out of you my friend! 😂

  • @MellowMustard
    @MellowMustard 2 ปีที่แล้ว

    I looked for a video like this for 2 weeks.. thank you so much

  • @fredde200
    @fredde200 2 ปีที่แล้ว

    how long i've waited for this

  • @eremianovac5342
    @eremianovac5342 ปีที่แล้ว

    This is why I am subbed to this dude

  • @MinerBruh
    @MinerBruh 2 ปีที่แล้ว +6

    Just create more plugin tutorials, when u made the datapack tutorials, i loved it so yes more plugin tutorials like on HOW to make the player fly or smth

  • @Brob3r
    @Brob3r 2 ปีที่แล้ว +5

    Can you pls make a forge/fabric mod tutorial?
    Btw I have watched your videos since you had like 8k subs so congratulations!

    • @drakefruit
      @drakefruit 2 ปีที่แล้ว +4

      you should really use fabric

    • @Brob3r
      @Brob3r 2 ปีที่แล้ว +2

      @@drakefruit right

  • @popbob4780
    @popbob4780 2 ปีที่แล้ว

    Bruh I literally just searched for coding Minecraft stuff in kotlin out of interest and I noticed you uploaded a vid on that

  • @torge2232
    @torge2232 2 ปีที่แล้ว +1

    About the "Unsolved Mysteries of Java Versioning".
    My understanding is that newer Java JVMs are backwards compatible. So for example a JVM with Java version 17 can run code written for Java version "1.8". Although a JVM with the version 1.8 can't run code written for newer Java versions, because it lacks the new features.
    This might not be a 100% correct, because I just wrote that of the top of my head.

  • @setremike1754
    @setremike1754 ปีที่แล้ว +3

    please a new tutorial that is updated in intellij idea please

  • @thedoopa3169
    @thedoopa3169 2 ปีที่แล้ว

    I like this guy. Made coding fun with his energy

  • @paw1gaming
    @paw1gaming 2 ปีที่แล้ว +1

    Legitimoose uploaded 😱

  • @yrus7802
    @yrus7802 ปีที่แล้ว

    Wow I am amazed by how this tutorial is good

  • @lolmaybe8092
    @lolmaybe8092 2 ปีที่แล้ว

    BRUUUUH!!! Why this video is underrated? It shouldn't be like that(

  • @aka1021
    @aka1021 2 ปีที่แล้ว

    Hi, KotlinEnjoyer here, I totally agree you saying Java is weird, especially setting up a hello world, you have to remember class public static void main String args, but in Kotlin, you only have to remember fun main, Kotlin is better then Java

    • @meidy3795
      @meidy3795 2 ปีที่แล้ว

      Exactly

    • @aka1021
      @aka1021 2 ปีที่แล้ว

      @@meidy3795 yes

  • @czebosak
    @czebosak 2 ปีที่แล้ว +1

    Thanks legitimoose, very cool

  • @yusus_
    @yusus_ 2 ปีที่แล้ว +1

    do i want to make a plugin: no
    am i watching: yes

  • @AcornGR
    @AcornGR 2 ปีที่แล้ว

    Bruh my subscription box hates me, I asked for this and you made it and TH-cam didn’t even send it in the subscription box I looked at your channel right now and I found out I didn’t see two videos 💀

  • @JanBebendorf
    @JanBebendorf 9 หลายเดือนก่อน

    Well instead of setting up an IDEA artifact you could've just expanded the maven goals on the right and double-click package. This will create a new maven run that will package your jar for you and is more universal than IDEA artifacts

  • @RedSnicker
    @RedSnicker 4 หลายเดือนก่อน +2

    For those of you who are coming to this video in 2024, there is no convert java to kotlin to you gotta press the infamous: CNTRL + ALT + SHIFT + K, keybind to convert. (balelr)

    • @dercoderjo
      @dercoderjo 3 หลายเดือนก่อน

      Lifesaver

  • @pogfrog2388
    @pogfrog2388 2 ปีที่แล้ว +1

    Hey mate, thanks for all the awesome videos! Wondering if u can make a loot table and advancement video for datapacks.

    • @billybillington5340
      @billybillington5340 2 ปีที่แล้ว +1

      There is a great loot table tutorial by someone named Sir Roman

  • @liebertmusic
    @liebertmusic 2 ปีที่แล้ว +1

    yeah I am out on 4:42 . In my case "msg" is red and is flagged as an error.

  • @zjh_lol6926
    @zjh_lol6926 2 ปีที่แล้ว +1

    can you make a plugin on basic gui opener but pls make more other plugin tutorials too

  • @Log1eI3ear
    @Log1eI3ear 2 ปีที่แล้ว +2

    Please may you make a tutorial on adding custom music discs and, if you watch MCC, you will know that they have custom songs for each game. That is what I really want.

    • @DuckGoesViral
      @DuckGoesViral 2 ปีที่แล้ว +4

      i’m pretty sure you can do that with resource packs

    • @Guy-wd3yi
      @Guy-wd3yi 2 ปีที่แล้ว +1

      there's already a plugin for that search something like custom music disc plugin

  • @wahidislamlinad
    @wahidislamlinad 2 ปีที่แล้ว

    sooo much underrated ngl

  • @DrollerApollo13
    @DrollerApollo13 ปีที่แล้ว +1

    I am trying to code my first minecraft plugin but all the videos I watch seem outdated. When using the minecraft developers plugin it never gives the option to use paper and go through the steps as shown in the video. Any help would be appreciated!!

    • @mrguny8715
      @mrguny8715 ปีที่แล้ว

      Hi, if you still need help in order to select paper you neeed to select bukkit then you chose betwen paper and spigot, hope this helped

  • @randomidiot34
    @randomidiot34 ปีที่แล้ว

    BRO SAVED MY LIFE

  • @pancakehiatt
    @pancakehiatt 2 ปีที่แล้ว

    part 2? no one else made a tutorial for kotlin and papermc. they're all for spigot

  • @Skys9
    @Skys9 2 ปีที่แล้ว +1

    Kotlin yes finally

  • @foxiqval69
    @foxiqval69 2 ปีที่แล้ว

    just to be clear, the java.version is only for some configuration if it was public, the jvm target tmk is also useless. i like to change it anyway cuz im a fan of doing dumb things

  • @crola7169
    @crola7169 2 ปีที่แล้ว

    pretty sure the pom.xml java version is useful when you are building via maven, to do so you would need to delegate build and run tasks to maven in intellij, however these steps are not required in this case everything works, and if everything works then there is no need to mess with it

  • @robbingjack8278
    @robbingjack8278 ปีที่แล้ว +1

    i want to smash my head seeing this and how hard and remember it is to know

  • @TheRealRevolvingMadness
    @TheRealRevolvingMadness 2 ปีที่แล้ว

    A VERY useful tip is instead of COMPLETLY restarting your server you can just do "reload confirm" in your console or in game and that basically reloads all of your plugins and datapacks. And that is a BIG time saver! Hopefully that helps :D

    • @matheo1834
      @matheo1834 2 ปีที่แล้ว +6

      You should never use /reload. It's a really bad practice. Instead, you can safely use a code hotswapper such as the IntelliJ debugger to safely apply code changes. This is both more convenient than building and reloading, and substantially safer.

  • @CraftBlack
    @CraftBlack ปีที่แล้ว +1

    Thanks! 🥰

  • @owopotato
    @owopotato 2 ปีที่แล้ว +1

    Is there any documentation on Paper/Spigot in Kotlin? Or any way to know how the java is converted without just guessing?

    • @Legitimoose
      @Legitimoose  2 ปีที่แล้ว +1

      If you copy/paste complete java code into a Kotlin file, it will automatically ask if you want to convert it!

  • @BusterBrown1217
    @BusterBrown1217 2 ปีที่แล้ว

    It would be nice to see how an experienced person goes through the documentation because it can be really confusing for people who don't know what they're doing (people like me)

    • @Legitimoose
      @Legitimoose  2 ปีที่แล้ว

      that's a good idea lol. knowing how to read documentation is obviously very important, and people rarely show how to do it. maybe some kind of "let's code" could work, or just a good ol tutorial. thanks for the suggestion! (no promises I'll make it tho ;) )

  • @hinterhaeltiger
    @hinterhaeltiger 2 ปีที่แล้ว

    you can build the artifact in the maven tab

  • @waylonmorristexas4851
    @waylonmorristexas4851 2 ปีที่แล้ว

    Yeah I have no idea what to do from here so please make another

  • @fishimply
    @fishimply 2 ปีที่แล้ว +1

    so what is the extreme fly part??? i dont know java

  • @sullymlg9785
    @sullymlg9785 2 ปีที่แล้ว

    1:20 Oh yeah - if you like redstone.. choose neither and learn fabric. (or choose paper but paper still makes redstone a bit jank)

  • @冷
    @冷 ปีที่แล้ว

    9:19 this gave me a mental breakdown

  • @wusi9422
    @wusi9422 2 ปีที่แล้ว

    i love this content and ily

  • @HxppyFan
    @HxppyFan 2 ปีที่แล้ว

    Thx for helping! But what about to explain how to detect some of events player? Just like for flying (double jump)?

  • @LMC.AudiusParty
    @LMC.AudiusParty 2 ปีที่แล้ว

    please do more ! please is possible to make something where you take an open-source project and contribute to it ? thanks for any answer!!!

  • @wal937
    @wal937 2 ปีที่แล้ว

    yessir plugin tutorial

  • @blakedoesmc
    @blakedoesmc 2 ปีที่แล้ว +1

    wouldve loved to see a plugin made i got it all setup but theres no tutorials out there for paper kotlin syntax development (that are in english anyway that i can find) i was hoping to build a /fly plugin for my sever to test this but now i'm lost with a hello world plugin that i cant even see in game

  • @luckybeeyt
    @luckybeeyt ปีที่แล้ว +1

    Will it work for 1.16.5?

  • @kedersiz8600
    @kedersiz8600 ปีที่แล้ว

    Hey thank you so much I had to past with python no I can learn kotlin this will be good for plugins because I checked there was a script plugin for JavaScript and python or many people said it was laggy and it lacks the features

  • @MrJojjo-cd2gx
    @MrJojjo-cd2gx 3 หลายเดือนก่อน

    The plugin does not work. It says that the class never uses, why?

  • @dj8201
    @dj8201 ปีที่แล้ว +1

    HELP! i cna't convert it to kotlin

  • @untoldentity
    @untoldentity 2 ปีที่แล้ว +1

    ah yes, plugin development, also known as hell

  • @Queue3612
    @Queue3612 ปีที่แล้ว

    Im wanting to get into making MC plugins, can you please make more amazing tutorials like this one?

  • @Runkang10
    @Runkang10 2 หลายเดือนก่อน

    Can you create a command example for paper-plugin.yml because they don't register commands like the old plugin.yml anymore.

  • @TuttuTheDog
    @TuttuTheDog 2 ปีที่แล้ว

    the moose is back again

  • @AlphaFennec
    @AlphaFennec ปีที่แล้ว

    Haiya peep, just wondering if you could possibly make a extension to this video talking about how to make something simple like an object that gives you speed when you right click on it. I found this video really helpful and was wondering if you could do that if it's not too much trouble and such. Thankes!

  • @saltzus
    @saltzus 2 ปีที่แล้ว +1

    Can u make tutorial how to make plugin play music

  • @SamuraiDestroy
    @SamuraiDestroy 2 ปีที่แล้ว +1

    Y E E B O IIIIIIIIIIII
    PLUGIN TUTORIAL

  • @vooodre2715
    @vooodre2715 ปีที่แล้ว

    Absolutely loved your video! But I have a question. I searched the web for paper docs on Kotlin but there weren’t any that I could find. Could you tell me where I could find one? And also, can you just convert java code that’s in the docs to Kotlin and use it?

    • @Legitimoose
      @Legitimoose  ปีที่แล้ว +1

      Paper is written in Java, so there are not Kotlin docs available. _However!_ Kotlin is meant to be interoperable with Java, so the answer to your second question is yes! You can use the Java docs, and the IDE will usually help you convert things to Kotlin. You can even copy/paste entire snippets into IDEA and it will automatically convert it to Kotlin. Hope this helps!

    • @vooodre2715
      @vooodre2715 ปีที่แล้ว

      @@Legitimoose wow thanks!

  • @Hehehehhehehehhhhehehe
    @Hehehehhehehehhhhehehe 2 ปีที่แล้ว

    Its not compiling a jar, instead its making an XML file

  • @magnuskjr-jensen2972
    @magnuskjr-jensen2972 ปีที่แล้ว

    How do i download the JDK when i did like you said it says it dosent work, or specificly "Failed to prepare JDK installation to C:\Users\_____\.jdks\temurin-20.0.1" How do i fix this?

  • @BuildTimeMC
    @BuildTimeMC ปีที่แล้ว +1

    Do I have to convert it back to Java before building it?

    • @Legitimoose
      @Legitimoose  ปีที่แล้ว

      no, kotlin compiles to the same JVM bytecode as java!

    • @BuildTimeMC
      @BuildTimeMC ปีที่แล้ว

      @Legitimoose oh so I can build the kotlin file to a .jar file and it will work?

  • @whydys839
    @whydys839 6 หลายเดือนก่อน

    I can't convert my project to kotlin, it doesn't give me an option to. Does anybody have a fix to this?
    EDIT: If you are using the most recent version of IntelliJ Idea you have to convert the java file itself instead of the entire project.

    • @Mizso21
      @Mizso21 5 หลายเดือนก่อน

      same i cant even find a solution on yt

    • @ThatKira
      @ThatKira 4 หลายเดือนก่อน

      Thanks mate Life saver!

  • @pkcrispybread1356
    @pkcrispybread1356 2 ปีที่แล้ว

    I want to know about finding entity positions and replacing blocks

  • @abstractredy
    @abstractredy 2 ปีที่แล้ว +1

    The only difference between java 1.8 and 17 that i noticed was enhanced Switch

  • @athomesuperhero
    @athomesuperhero ปีที่แล้ว

    Can you teach us how to make custom enchantments?

  • @JuZtRap
    @JuZtRap 2 ปีที่แล้ว

    wait but the flight part

  • @katekko1
    @katekko1 2 ปีที่แล้ว

    Where s the maven? You can setup the maven to install through

  • @georgekon69
    @georgekon69 4 หลายเดือนก่อน

    what happend if i put a java groupid that already exists ?

  • @NerroPlaysGames
    @NerroPlaysGames ปีที่แล้ว

    how do i make extremeplugin.class writeable.

  • @SShac0
    @SShac0 2 ปีที่แล้ว

    Im not even started it but i feel the pain like im coding in C# Json and fabric (a mod running thing like forge)and its still looks like super strange to me

  • @echo-rift
    @echo-rift 8 หลายเดือนก่อน

    im hitting my head at the hellow world info💀💀💀💀💀💀