Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- block.settings={}; -- The general table for the block. This just makes editing the variables easier and much more convenient.
- block.settings.id=500; -- Id.
- block.settings.texture_slot=0;
- block.settings.material=material.wood;
- block.settings.texture_path='/textures.png';
- block.settings.name="Tommy's Block";
- block.settings.internal_name="demo";
- block.setLightLevel("demo",0.7)
- block=block.createBlock(block.settings.id,block.settings.texture_slot,block.settings.material,block.settings.texture_path,block.settings.name,block.settings.internal_name)
- if b then -- If the block was created succesfully, add it to the misc tab. Otherwise, log a severe warning on the server console.
- block.setCreativeTab("demo", creativeTabs.misc)
- else
- log.severe("Tommy's block has failed to initiate.")
- end
Advertisement
Add Comment
Please, Sign In to add comment