Minecraft Plugin Tutorial (in Kotlin) | Project Setup

Sdílet
Vložit
  • čas přidán 11. 09. 2024

Komentáře • 245

  • @GGGamesXDlol
    @GGGamesXDlol Před 2 lety +199

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

    • @bitwhyze
      @bitwhyze Před rokem +1

      Paper is based on spigot

    • @GGGamesXDlol
      @GGGamesXDlol Před rokem +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 Před 7 měsíci

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

    • @GGGamesXDlol
      @GGGamesXDlol Před 7 měsíci

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

    • @J4yT3a
      @J4yT3a Před 7 měsíci +1

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

  • @SyberiaK
    @SyberiaK Před 2 měsíci +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 Před 6 dny

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

    • @SyberiaK
      @SyberiaK Před 6 dny +1

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

  • @coolearth4511
    @coolearth4511 Před rokem +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 Před rokem

      was abouta comment that myself, thank you good sir

    • @alsobe3D
      @alsobe3D Před 5 měsíci +4

      i am coming in 2024....

  • @The10ie
    @The10ie Před 2 lety +36

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

  • @LightslicerGP
    @LightslicerGP Před 2 lety +87

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

  • @frogger2920
    @frogger2920 Před 2 lety +35

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

    • @kkfan7878
      @kkfan7878 Před 2 lety

      Yes

    • @TheJimmyCartel
      @TheJimmyCartel Před rokem +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.

  • @oreiboon
    @oreiboon Před rokem +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 Před 2 lety +12

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

  • @juddery
    @juddery Před rokem +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 Před rokem +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

  • @omrishamir6038
    @omrishamir6038 Před 2 lety +3

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

  • @pointyposeidon
    @pointyposeidon Před 2 lety +4

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

  • @dev_insights101
    @dev_insights101 Před 2 lety +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.

  • @Legitimoose
    @Legitimoose  Před 2 lety +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 Před 2 lety +2

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

    • @vithrn123
      @vithrn123 Před 2 lety

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

    • @privatechannel1272
      @privatechannel1272 Před 2 lety

      Why don't just use Visual Studio?

    • @vithrn123
      @vithrn123 Před 2 lety

      @@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 Před 2 lety

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

  • @cipher4921
    @cipher4921 Před rokem

    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.

  • @CodeCreature
    @CodeCreature Před 2 lety +2

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

  • @alexanderpoukhlovski
    @alexanderpoukhlovski Před rokem +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

  • @GGGamesXDlol
    @GGGamesXDlol Před 2 lety +1

    This only video was better than the 19283827382 other guides in CZcams together XD

  • @maxtb8481
    @maxtb8481 Před 2 lety +9

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

  • @kaninchenspeed
    @kaninchenspeed Před 2 lety +5

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

  • @officialzeroninja
    @officialzeroninja Před rokem +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 Před měsícem

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

  • @setremike1754
    @setremike1754 Před 11 měsíci +3

    please a new tutorial that is updated in intellij idea please

  • @jonathankrzeszewski9010
    @jonathankrzeszewski9010 Před rokem +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 Před 5 měsíci

      thank you

    • @Ponduck
      @Ponduck Před 3 měsíci +1

      Or on the main download page just scroll down a little

  • @Psyan
    @Psyan Před 2 lety

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

  • @cussy7526
    @cussy7526 Před 2 lety +1

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

  • @BluePotatoBP
    @BluePotatoBP Před 2 lety

    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!

  • @Brob3r
    @Brob3r Před 2 lety +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 Před 2 lety +4

      you should really use fabric

    • @Brob3r
      @Brob3r Před 2 lety +2

      @@drakefruit right

  • @Terraspark4941
    @Terraspark4941 Před rokem

    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 👍

  • @GGGamesXDlol
    @GGGamesXDlol Před 2 lety +1

    ur channel is very underrated

  • @paw1gaming
    @paw1gaming Před 2 lety +1

    Legitimoose uploaded 😱

  • @MinerBruh
    @MinerBruh Před 2 lety +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

  • @oriinafloresta
    @oriinafloresta Před 2 lety

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

  • @gttmone
    @gttmone Před rokem

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

  • @wbrim
    @wbrim Před 2 lety

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

  • @MellowMustard
    @MellowMustard Před rokem

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

  • @torge2232
    @torge2232 Před 2 lety +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.

  • @fredde200
    @fredde200 Před 2 lety

    how long i've waited for this

  • @eremianovac5342
    @eremianovac5342 Před rokem

    This is why I am subbed to this dude

  • @NateAustin19
    @NateAustin19 Před 2 lety

    love the charisma coming out of you my friend! 😂

  • @Skys9
    @Skys9 Před 2 lety +1

    Kotlin yes finally

  • @Ysancharo
    @Ysancharo Před rokem

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

  • @czebosak
    @czebosak Před 2 lety +1

    Thanks legitimoose, very cool

  • @thedoopa3169
    @thedoopa3169 Před 2 lety

    I like this guy. Made coding fun with his energy

  • @zjh_lol6926
    @zjh_lol6926 Před 2 lety +1

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

  • @popbob4780
    @popbob4780 Před 2 lety

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

  • @yrus7802
    @yrus7802 Před rokem

    Wow I am amazed by how this tutorial is good

  • @DrollerApollo13
    @DrollerApollo13 Před rokem +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 Před rokem

      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

  • @lolmaybe8092
    @lolmaybe8092 Před 2 lety

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

  • @yusus_
    @yusus_ Před 2 lety +1

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

  • @aka1021
    @aka1021 Před 2 lety

    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

  • @AcornGR
    @AcornGR Před 2 lety

    Bruh my subscription box hates me, I asked for this and you made it and CZcams 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 💀

  • @pogfrog2388
    @pogfrog2388 Před 2 lety +1

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

    • @billybillington5340
      @billybillington5340 Před 2 lety +1

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

  • @dj8201
    @dj8201 Před rokem +1

    HELP! i cna't convert it to kotlin

  • @JanBebendorf
    @JanBebendorf Před 8 měsíci

    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

  • @untoldentity
    @untoldentity Před 2 lety +1

    ah yes, plugin development, also known as hell

  • @Log1eI3ear
    @Log1eI3ear Před 2 lety +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 Před 2 lety +4

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

    • @Guy-wd3yi
      @Guy-wd3yi Před 2 lety +1

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

  • @liebertmusic
    @liebertmusic Před 2 lety +1

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

  • @randomidiot34
    @randomidiot34 Před rokem

    BRO SAVED MY LIFE

  • @wahidislamlinad
    @wahidislamlinad Před 2 lety

    sooo much underrated ngl

  • @robbingjack8278
    @robbingjack8278 Před rokem +1

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

  • @SamuraiDestroy
    @SamuraiDestroy Před 2 lety +1

    Y E E B O IIIIIIIIIIII
    PLUGIN TUTORIAL

  • @wusi9422
    @wusi9422 Před 2 lety

    i love this content and ily

  • @CraftBlack
    @CraftBlack Před rokem +1

    Thanks! 🥰

  • @RedSnicker
    @RedSnicker Před 2 měsíci +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)

  • @MrJojjo-cd2gx
    @MrJojjo-cd2gx Před 2 měsíci

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

  • @owopotato
    @owopotato Před 2 lety +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  Před 2 lety +1

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

  • @luckybeeyt
    @luckybeeyt Před rokem +1

    Will it work for 1.16.5?

  • @Runkang10
    @Runkang10 Před 23 dny

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

  • @TuttuTheDog
    @TuttuTheDog Před 2 lety

    the moose is back again

  • @crola7169
    @crola7169 Před 2 lety

    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

  • @fishimply
    @fishimply Před rokem +1

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

  • @blakedoesmc
    @blakedoesmc Před 2 lety +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

  • @foxiqval69
    @foxiqval69 Před rokem

    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

  • @pancakehiatt
    @pancakehiatt Před 2 lety

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

  • @wal937
    @wal937 Před 2 lety

    yessir plugin tutorial

  • @冷
    @冷 Před rokem

    9:19 this gave me a mental breakdown

  • @AlphaFennec
    @AlphaFennec Před rokem

    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!

  • @georgekon69
    @georgekon69 Před 3 měsíci

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

  • @LMC.AudiusParty
    @LMC.AudiusParty Před 2 lety

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

  • @HxppyFan
    @HxppyFan Před rokem

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

  • @katekko1
    @katekko1 Před rokem

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

  • @sullymlg9785
    @sullymlg9785 Před 2 lety

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

  • @waylonmorristexas4851
    @waylonmorristexas4851 Před 2 lety

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

  • @BusterBrown1217
    @BusterBrown1217 Před 2 lety

    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  Před 2 lety

      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 ;) )

  • @bishan_8617
    @bishan_8617 Před 2 lety +1

    tru half of plugin development is creating the project, realising you fucked up, then recreating it again cause you dont want to fix your existing build.gradle or pom.xml

  • @user-qr1cs2zr7e
    @user-qr1cs2zr7e Před 4 měsíci

    Does anyone know why the actual name of the project is in camelCase?

  • @magnuskjr-jensen2972
    @magnuskjr-jensen2972 Před rokem

    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?

  • @echo-rift
    @echo-rift Před 7 měsíci

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

  • @FlopByrger347
    @FlopByrger347 Před 8 měsíci

    it says that it couldn't loadthe plugin lol, maybe it's because i've put only a gigabite of rom

  • @b_mbyz
    @b_mbyz Před 2 lety

    thanks man!!

  • @saltzus
    @saltzus Před 2 lety +1

    Can u make tutorial how to make plugin play music

  • @Hehehehhehehehhhhehehe

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

  • @QueueWithACapitalQ
    @QueueWithACapitalQ Před rokem

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

  • @LoreTour
    @LoreTour Před rokem

    how do i make extremeplugin.class writeable.

  • @ViniciusNegrao_
    @ViniciusNegrao_ Před 2 lety

    I started off with Java because I used to work with it. And then after a few days I quickly switched to Kotlin, Java REALLY has no syntax sugar, even c# is better :|

  • @abstractredy
    @abstractredy Před 2 lety +1

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

  • @wojtess8613
    @wojtess8613 Před rokem

    You dont know what maven settings are doing and creating video about it?

  • @SShac0
    @SShac0 Před rokem

    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

  • @JuZtRap
    @JuZtRap Před 2 lety

    wait but the flight part

  • @pizza1685
    @pizza1685 Před rokem

    welp, for me it doesn't even work, it's completly different for me

  • @kedersiz8600
    @kedersiz8600 Před rokem

    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