301
302
303
304
305
306
307
308
309
310
311
312
313
314
...
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
|
for i=1,10 do
minetest.register_node('sorcery:air_flash_' .. i, {
drawtype = 'airlike';
pointable = false; walkable = false;
buildable_to = true;
sunlight_propagates = true;
light_source = i + 4;
on_construct = function(pos)
minetest.get_node_timer(pos):start(0.05)
end;
on_timer = function(pos)
if i <= 2 then minetest.remove_node(pos) else
minetest.set_node(pos, {name='sorcery:air_flash_1'})
return true
................................................................................
else
sorcery.enchant.set(tool,ench,true)
end
puncher:set_wielded_item(tool)
-- perform leyline checks and call notify if necessary
if minetest.get_item_group(node.name, 'sorcery_ley_device') ~= 0 then
for _,p in pairs(sorcery.ley.txofs) do
local sum = vector.add(pos,p)
if minetest.get_item_group(minetest.get_node(sum).name, 'sorcery_ley_device') ~= 0 then
sorcery.ley.notify(sum)
end
end
end
end)
minetest.register_chatcommand('enchants', {
description = 'Log information about the currently held object\'s enchantment';
privs = { server = true };
func = function(caller,params)
|
|
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
...
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
|
for i=1,10 do
minetest.register_node('sorcery:air_flash_' .. i, {
drawtype = 'airlike';
pointable = false; walkable = false;
buildable_to = true;
sunlight_propagates = true;
light_source = i + 4;
groups = {
air = 1, sorcery_air = 1;
not_in_creative_inventory = 1;
};
on_construct = function(pos)
minetest.get_node_timer(pos):start(0.05)
end;
on_timer = function(pos)
if i <= 2 then minetest.remove_node(pos) else
minetest.set_node(pos, {name='sorcery:air_flash_1'})
return true
................................................................................
else
sorcery.enchant.set(tool,ench,true)
end
puncher:set_wielded_item(tool)
-- perform leyline checks and call notify if necessary
if minetest.get_item_group(node.name, 'sorcery_ley_device') ~= 0 then
sorcery.lib.node.notifyneighbors(pos)
end
end)
minetest.register_chatcommand('enchants', {
description = 'Log information about the currently held object\'s enchantment';
privs = { server = true };
func = function(caller,params)
|