SHARE
TWEET

prototype_321

a guest Mar 2nd, 2013 6 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. tool_prototype = {
  2.         minetest.register_tool{("megatools:'name'", {
  3.                 description = 'desc',
  4.                 inventory_image = {"megatools_'type'_'material'"),
  5.                 tool_capabilities = {
  6.                         full_punch_interval = 'punch',
  7.                         max_drop_level='drop',
  8.                         groupcaps={
  9.                                 fleshy={times={[1]='flesh'*5, [2]='flesh'*2, [3]='flesh'*1}, uses='use', maxlevel='mlev'},
  10.                                 snappy={times={[1]='snap'*5, [2]='snap'*2, [3]='snap'*1}, uses='use', maxlevel='mlev'},
  11.                                 choppy={times={[1]='chop'*5, [2]='chop'*2, [3]='chop'*1}, uses='use', maxlevel='mlev'},
  12.                         }      
  13.                 }
  14.         })
  15. }
  16.  
  17.  
  18.  
  19. prototype = {
  20.         name = steel_pax,
  21.         desc = Steel Pax,
  22.         image = {
  23.                 {type = pax},
  24.                 {material = steel},
  25.         },
  26.         punch = 1,
  27.         drop = 1,
  28.         flesh = .4,
  29.         snap = .8,
  30.         chop = .2,
  31.         use = 1000,
  32.         mlev = 3,
  33. }
  34.  
  35. or
  36. protype = {name, desc, type, material, punch, drop, flesh, snap, chop, use, mlev}
  37. prototype = {steel_pax, Steel Pax, pax, steel, 1, 1, .4, .8, .2, 1000, 3}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top