54
55
56
57
58
59
60
61
62
63
64
65
66
67
...
275
276
277
278
279
280
281
282
283
284
285
286
287
288
...
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
...
392
393
394
395
396
397
398
399
400
401
402
403
404
405
|
};
interface = lib.registry.mk 'starlit:interface';
item = {
food = lib.registry.mk 'starlit:food';
seed = lib.registry.mk 'starlit:seed';
};
region = {
radiator = {
store = AreaStore();
emitters = {};
};
};
................................................................................
starlit.include 'fx/nano'
starlit.include 'element'
starlit.include 'terrain'
starlit.include 'interfaces'
starlit.include 'suit'
-- minetest.settings:set('movement_gravity', starlit.world.planet.gravity) -- ??? seriously???
-- THIS OVERRIDES THE GLOBAL SETTING *AND PERSISTS IT* WHAT IN THE SATANIC FUCK
---------------
-- callbacks --
................................................................................
return starlit.ui.userMenuDispatch(user,fields)
end
local ui = starlit.interface.db[formid]
local state = starlit.activeUI[name] or {}
if formid == '__builtin:help_cmds'
or formid == '__builtin:help_privs'
then return false end
assert(state.form == formid) -- sanity check
user:onRespond(ui, state, fields)
if fields.quit then
starlit.activeUI[name] = nil
end
return true
end)
................................................................................
})
minetest.register_item("starlit:_hand_dig", {
type = "none",
wield_image = "wieldhand.png",
wield_scale = {x=1,y=1,z=2.5},
tool_capabilities = {
groupcaps = {
plant = {maxlevel=1, times = {.50}};
-- sand, dirt, gravel
looseClump = {maxlevel=1, times = {1.5, 2.5}};
};
}
})
|
|
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
...
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
...
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
...
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
|
};
interface = lib.registry.mk 'starlit:interface';
item = {
food = lib.registry.mk 'starlit:food';
seed = lib.registry.mk 'starlit:seed';
};
-- complex algorithms that cut across namespaces or don't belong anywhere else
alg = {};
region = {
radiator = {
store = AreaStore();
emitters = {};
};
};
................................................................................
starlit.include 'fx/nano'
starlit.include 'element'
starlit.include 'terrain'
starlit.include 'interfaces'
starlit.include 'compile'
starlit.include 'suit'
-- minetest.settings:set('movement_gravity', starlit.world.planet.gravity) -- ??? seriously???
-- THIS OVERRIDES THE GLOBAL SETTING *AND PERSISTS IT* WHAT IN THE SATANIC FUCK
---------------
-- callbacks --
................................................................................
return starlit.ui.userMenuDispatch(user,fields)
end
local ui = starlit.interface.db[formid]
local state = starlit.activeUI[name] or {}
if formid == '__builtin:help_cmds'
or formid == '__builtin:help_privs'
then return false end
if not (state.form == formid) then -- sanity check
log.warn('user %s attempted to send form %s while %s was active', name, formid, state.form)
return false
end
user:onRespond(ui, state, fields)
if fields.quit then
starlit.activeUI[name] = nil
end
return true
end)
................................................................................
})
minetest.register_item("starlit:_hand_dig", {
type = "none",
wield_image = "wieldhand.png",
wield_scale = {x=1,y=1,z=2.5},
tool_capabilities = {
groupcaps = {
object = {maxlevel=1, times = {.20,.10}};
plant = {maxlevel=1, times = {.50}};
-- sand, dirt, gravel
looseClump = {maxlevel=1, times = {1.5, 2.5}};
};
}
})
|