Teaching people code here! [Skript] [Easy] [Idea]

Discussion in 'Plugins and Coding' started by pewax, Jun 15, 2016.

?

Do you want to see this in the future?

  1. Yes :)

    12 vote(s)
    80.0%
  2. No ;(

    3 vote(s)
    20.0%
  1. pewax

    pewax Member

    Messages:
    219
    Likes Received:
    32
    Trophy Points:
    28
    Welcome everyone,

    I am thinking of making a minecraft programming tutorial in Skript using the skript plugin from bukkit.
    Here I will explain the basics of what I will have in my tutorials! :)

    What is Skript:
    Skript is a programming language used for the sole purpose of creating minecraft "plugins" with ease. It will also be what I will be using for the tutorial!

    What I will teach:
    Loops,
    If-else statements,
    Nested if-else statements (maybe),
    Variables,
    Effects,
    Expressions,
    Events,
    Types,
    Commands,
    + Much more!

    What projects will I go though:
    A simple cookie clicker,
    Making a simple command,
    =+= Suggest more =+=

    It will only go ahead if enough people wish to see these tutorials in the future!

    If you would like to comment any suggestions please do because it will help bring this tutorial to life and improve it when it is released!
     
  2. HangarGeek

    HangarGeek Member

    Messages:
    3,121
    Likes Received:
    2,540
    Trophy Points:
    333
    HangarGeek
    Obsidian
    Do you know Java coding?
    I mean, using Eclipse/IntelliJ coding yourself?

    I heard a little a bit of Skript, I want to see how it is, will be easier if I alredy know Java? :p
     
  3. idrias

    idrias Member

    Messages:
    76
    Likes Received:
    10
    Trophy Points:
    8
    I have now my private teacher. But do it!!!
     
  4. Landviz

    Landviz Member

    Messages:
    1,334
    Likes Received:
    2,309
    Trophy Points:
    198
    WHOOOOOOOOOOOOOP
    Iron
    Yes please :)
     
  5. pewax

    pewax Member

    Messages:
    219
    Likes Received:
    32
    Trophy Points:
    28
    Yes I do know quite a bit of Java myself but just for people who want to make plugins with only a few hours of learning, Skript is the better option (if your only going to make minecraft "plugins")! :p

    And yes it will be a lot easier if you already know some Java :)
     
    Last edited: Jun 16, 2016
  6. pewax

    pewax Member

    Messages:
    219
    Likes Received:
    32
    Trophy Points:
    28
    Glad you like the idea :)
     
  7. pewax

    pewax Member

    Messages:
    219
    Likes Received:
    32
    Trophy Points:
    28
    Well if you ever get stuck you know where to come for help ;)
     
  8. HangarGeek

    HangarGeek Member

    Messages:
    3,121
    Likes Received:
    2,540
    Trophy Points:
    333
    HangarGeek
    Obsidian
    I'm his private teacher, I feel pro ;)
    God, THANKS
    :)
    If you know a lot of Java, it will take some hours to learn how Bukkit/Spigot/Bungee' works
     
  9. pewax

    pewax Member

    Messages:
    219
    Likes Received:
    32
    Trophy Points:
    28
    Yes that is why I will be using Skript for the tutorials instead of the bukkit or spigot API but maybe in the future I'll do a Java tutorial :p
     
  10. BalthierTSK_daForumSeeker

    BalthierTSK_daForumSeeker Member

    Messages:
    650
    Likes Received:
    209
    Trophy Points:
    43
    :v i only know C++ :v
     
  11. Landviz

    Landviz Member

    Messages:
    1,334
    Likes Received:
    2,309
    Trophy Points:
    198
    WHOOOOOOOOOOOOOP
    Iron
    Probably more usefull than HTML & CSS
     
  12. pewax

    pewax Member

    Messages:
    219
    Likes Received:
    32
    Trophy Points:
    28
    Well its better than nothing :)
     
  13. CattyCat

    CattyCat Member

    Messages:
    2,270
    Likes Received:
    717
    Trophy Points:
    128
    Catty__Cat
    Can I see some Skript syntax please?
     
  14. pewax

    pewax Member

    Messages:
    219
    Likes Received:
    32
    Trophy Points:
    28
    You mean like this?

    Code:
    every second:
        if {variable} is equal to 5:
            send "The variable {variabe} is equal to 5" to all-entities
        else:
            send "The variable {variabe} is not equal to 5" to all-entities
     
  15. CattyCat

    CattyCat Member

    Messages:
    2,270
    Likes Received:
    717
    Trophy Points:
    128
    Catty__Cat
    Yes thank you.
     
  16. pewax

    pewax Member

    Messages:
    219
    Likes Received:
    32
    Trophy Points:
    28
    BTW the first instalment of the tutorial will be coming soon :)
     
  17. codexprivateㅤㅤㅤㅤ

    codexprivateㅤㅤㅤㅤ Member

    Messages:
    895
    Likes Received:
    815
    Trophy Points:
    93
    Skript? Isn't it script?
     
  18. HangarGeek

    HangarGeek Member

    Messages:
    3,121
    Likes Received:
    2,540
    Trophy Points:
    333
    HangarGeek
    Obsidian
  19. codexprivateㅤㅤㅤㅤ

    codexprivateㅤㅤㅤㅤ Member

    Messages:
    895
    Likes Received:
    815
    Trophy Points:
    93
    Code:
    hook.Add( "Think", "ThinkAboutIt", function()
        if input.IsKeyDown(KEY_B) then
            local closest = nil
           
            local hitpos = LocalPlayer():GetEyeTrace()
           
            for k, v in pairs( ents.FindInSphere(hitpos.HitPos,500) ) do
                if v:IsPlayer() and v != LocalPlayer() then
                    if v:Alive() then
                        closest = v
                    end
                end
            end
           
            if closest and closest:IsPlayer() and closest:Alive() then
                local head = closest:LookupBone("ValveBiped.Bip01_Head1")
                local headpos, headang = closest:GetBonePosition(head)
               
                LocalPlayer():SetEyeAngles( (headpos-LocalPlayer():GetShootPos()):Angle() )
                RunConsoleCommand("+attack")
                timer.Simple(0.25,function()
                    RunConsoleCommand("-attack")
                end)
            end
        end
    end)


    spooky
     
  20. HangarGeek

    HangarGeek Member

    Messages:
    3,121
    Likes Received:
    2,540
    Trophy Points:
    333
    HangarGeek
    Obsidian
    Is this Lua?