tommyroyall

Untitled

Nov 15th, 2012
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.80 KB | None | 0 0
  1.  
  2.  
  3. block.settings={}; -- The general table for the block. This just makes editing the variables easier and much more convenient.
  4. block.settings.id=500; -- Id.
  5. block.settings.texture_slot=0;
  6. block.settings.material=material.wood;
  7. block.settings.texture_path='/textures.png';
  8. block.settings.name="Tommy's Block";
  9. block.settings.internal_name="demo";
  10. block.setLightLevel("demo",0.7)
  11.  
  12. block=block.createBlock(block.settings.id,block.settings.texture_slot,block.settings.material,block.settings.texture_path,block.settings.name,block.settings.internal_name)
  13.  
  14. if b then -- If the block was created succesfully, add it to the misc tab. Otherwise, log a severe warning on the server console.
  15.     block.setCreativeTab("demo", creativeTabs.misc)
  16. else
  17.     log.severe("Tommy's block has failed to initiate.")
  18. end
Advertisement
Add Comment
Please, Sign In to add comment