Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. local BLUEPRINT = Clockwork.crafting:New();
  2.  
  3. BLUEPRINT.category = "Ammo Blueprint";
  4. BLUEPRINT.description = "A blueprint for testing crafting";
  5. BLUEPRINT.model = "models/Items/BoxMRounds.mdl";
  6. BLUEPRINT.name = "SMG Bullets Blueprint";
  7.  
  8. BLUEPRINT.itemRequirements = {
  9. ["Bullet Casings"] = 2,
  10. ["Refined Metal"] = 2,
  11. ["Gunpowder"] = 2
  12. --"beer"
  13. --{1, "beer"}
  14. --{"beer", 1}
  15. --["beer"] = 1 -- RECOMMENDED WAY
  16. };
  17.  
  18. BLUEPRINT.takeItems = {
  19. ["Bullet Casings"] = 2,
  20. ["Refined Metal"] = 2,
  21. ["Gunpowder"] = 2
  22. };
  23.  
  24. BLUEPRINT.giveItems = {
  25. ["SMG Bullets"] = 1
  26. --"beer"
  27. --{1, "beer"}
  28. --{"beer", 1}
  29. --["beer"] = 1 -- RECOMMENDED WAY
  30. };
  31.  
  32. -- Called just before crafting.
  33. function BLUEPRINT:OnCraft(player)
  34.  
  35. end;
  36.  
  37. -- Called just after crafting.
  38. function BLUEPRINT:PostCraft(player)
  39.  
  40. end;
  41.  
  42. -- Called when crafting is unsuccessful.
  43. function BLUEPRINT:FailedCraft(player)
  44.  
  45. end;
  46.  
  47. BLUEPRINT:Register();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement