1. This forum is ARCHIVED! Visit the new Cloud Sixteen forums, codename Eden, at https://eden.cloudsixteen.com. These forums will remain archived for a few months before being closed down, so try to encourage plugin developers to begin moving their content across to the new forums.
Dismiss Notice
Hi Guest, you need a Steam account to register and post on these forums. Login with Steam at the top of the forums to get started!
Dismiss Notice
Hi Guest, do you want to buy HL2RP or another Clockwork schema? Visit the Cloud Sixteen Store to get started!

Tommy's Free Crafting Plugin

Discussion in 'Plugins' started by Tommy, Aug 24, 2014.

  1. Tommy

    Tommy used to be relevant Moderator Clockwork Customer

    because the only plugin i've created that i've posted on here was a shitty old one that changed the name of MPF on the scoreboard
    Authors and Contributors: SevenLions(http://forums.cloudsixteen.com/index.php?action=profile;u=1858), Tommy




    but tommy how do i use ur plugin?

    First, open it up. You will see five folders.
    [​IMG]

    If you don't know what you're doing, don't touch any folders except for "mixtures" and "items."

    I've already created some mixtures for your server, feel free to delete them or keep them. It requires the items that I have already created. I actually recreated the items just for you guys, I didn't initially have the folder.

    tommy how do i make new things!!!!!!!!!!!!!!
    Simple.

    The easiest way is to open an already created mixture, and edit the key features. For example:

    Code:
    local PLUGIN = PLUGIN;
    
    local MIXTURE = {};
    
    MIXTURE.ID = 'mixture_ziptie';
    MIXTURE.Name = 'Zip Tie';
    MIXTURE.Requires = {["Plastic Piece"] = 3};
    MIXTURE.Produces = 'Zip Tie';
    MIXTURE.Produces_Text = 'A man made plastic zip-tie.';
    MIXTURE.RequiredEntity = "Forge"
    
    
    function MIXTURE.CanMix ( Player )
        return true;
    end
    
    PLUGIN:RegisterMixture(MIXTURE);
    Let's say you wanted to make a huge, purple dildo. To make it, you need one baby.

    Change the key lines.

    Code:
    local PLUGIN = PLUGIN;
    
    local MIXTURE = {};
    
    MIXTURE.ID = 'mixture_purpledildo';
    MIXTURE.Name = 'Purple Dildo';
    MIXTURE.Requires = {["Baby"] = 1};
    MIXTURE.Produces = 'Purple Dildo';
    MIXTURE.Produces_Text = 'A huge, purple dildo.';
    
    
    function MIXTURE.CanMix ( Player )
        return true;
    end
    
    PLUGIN:RegisterMixture(MIXTURE);

    Now, of course with this, you now need to make a "Baby" item. The line in the mixture:

    Code:
    MIXTURE.Requires = {["Baby"] = 1};
    Where it states, "Baby", that needs to be the same as what's in the quotes for this line in the item:
    Code:
    ITEM.name = "Baby";
    Now, let's make our baby item.

    Take a simple item:

    Code:
    local ITEM = Clockwork.item:New();
    ITEM.name = "Cloth Piece";
    ITEM.cost = 6;
    ITEM.model = "models/props_junk/garbage_newspaper001a.mdl";
    ITEM.weight = 0.1;
    ITEM.business = false;
    ITEM.description = "A light piece of cloth.";
    
    -- Called when a player drops the item.
    function ITEM:OnDrop(player, position) end;
    
    ITEM:Register();
    Now change the key features.

    Code:
    local ITEM = Clockwork.item:New();
    ITEM.name = "Baby";
    ITEM.cost = 6;
    ITEM.model = "models/props_c17/doll01.mdl";
    ITEM.weight = 9;
    ITEM.business = false;
    ITEM.description = "A fatass baby. Why is this in your backpack?";
    
    -- Called when a player drops the item.
    function ITEM:OnDrop(player, position) end;
    
    ITEM:Register();
    Now, your large purple dildo can be created.
    tommy how do i use ur crafting menu!!!!!!!!!!!!!!
    For items to appear in the crafting menu, you first need the required items.

    For example, your large purple dildo will not appear in the crafting menu until you have a baby.
    tommy wtf is a forge or crafting table lol
    A forge and a crafting table are entities that can be spawned in a map via /craftingtableadd and /forgeadd. Some items require a crafting table or a forge to create the item. This can be classified by this line in the mixture:

    Code:
    MIXTURE.RequiredEntity = "Forge"
    Code:
    MIXTURE.RequiredEntity = "Crafting Table"
    tommy i have more questions!!!!!!!!

    I don't know what else to state, so just post any questions as a reply to this thread.

    tommy y is ur crafting plugin free when RJ's is like $55

    Because I don't need money from Cloud Sixteen, I already roll in hunnids.

    [​IMG]

    One possible error. With the mixtures, in the line that states what it creates, you might require a new item for that mixture. AKA, you would need a mixture lua file and an item lua file for it to work. I don't remember, I haven't worked with this in a long time. If someone could test that for me, that'd be greaaaaaaaat.
     
    Last edited by a moderator: Feb 16, 2015
  2. RJ

    RJ no pay Legend Clockwork Customer

    Cool. :D
     
  3. TheHipster

    TheHipster rhenz is a fairly decent fellow

    11/10.
    Give Honorable and great plugin badge.
     
  4. Owl

    Owl smoke weed

    • download
    • open files
    • change all variables
    • reupload as my own

    but srs.

    Nice work. I was in the middle of doing mine! D:
     
  5. i had no idea you could code

    But nice work.
     
  6. Lev

    Lev certified honorable guy

    Looks like everyone wants to create a free Crafting plugin.

    Nice job, Tommy!

    Time to uninstall RJ's and replace his with yours. <3
     
  7. wait.

    [​IMG]

    Who is Crapy and why isn't he credited for the entities?
     
  8. Tommy

    Tommy used to be relevant Moderator Clockwork Customer

    Crapy is an old friend, he helped me with the forges and crafting tables since I was getting shitfaced trying to do it myself. Honestly I mostly forgot about him, we broke off awhile back - forgot he helped me with this. Adding him to the credits, one sec.

    edit: added
     
  9. I'll be sure to suggest this to the server I play... This is pretty cool, Tommy.
     
  10. TheHipster

    TheHipster rhenz is a fairly decent fellow

    Its made by Tommy.
    That's the difference and what makes it better.

    Sorry [member=5482]duck[/member]
     
  11. NightAngel

    NightAngel Fuck off Lev

    wut's with all the crafting plugins i dont even
     
  12. It's a free market and they all want a slice of the cake.

    i really don't know, we have enough already

    Someone make something original, pls?
     
  13. Lev

    Lev certified honorable guy

    Time to go make a disease plugin. ;)
     
  14. Feel free to make some, I have no ideas.
     
  15. duck

    duck Phant0m Legend

    don't you hate my plugin?

     
  16. RJ

    RJ no pay Legend Clockwork Customer

    Master Race Overpriced DRM RJ Crafting Plugin is the only right choice.
     
  17. Tommy

    Tommy used to be relevant Moderator Clockwork Customer

    this isn't RJ's thread and wtf RJ's plugins are fucking great i've honestly yet to see a server that doesn't have at least one RJ plugin
     
  18. RJ

    RJ no pay Legend Clockwork Customer

    1. Add RayJay plugin to Clockwork.
    2. Add bought plugin to Schema.
    3. Copy/paste line of code to RayJay, enter name of plugin and key.
    4. ???
    5. Profit.

    That's literally all you have to do, every error is either plastered in the console as to why it isn't working or explained in a readme.txt that comes with every plugin.

    Sorry for off-topic Tommy <3
     
  19. RJ

    RJ no pay Legend Clockwork Customer

    [​IMG]

    wut
     
  20. Sheeplie

    Sheeplie Hi.

    Why does everyone mention RJ when talking about a crafting plugin.. ;-;


    Anyways, nice work!
     

Previous Readers (Total: 0)