fixed some crashes in tasks

master
Nathan Salapat 2021-12-20 19:30:20 -06:00
parent 9686869684
commit 018800adf3
25 changed files with 726 additions and 22 deletions

View File

@ -227,7 +227,6 @@ local registered_decals = {}
local registered_tasks = {}
local registered_lights = {}
local registered_artwork = {}
local registered_nature = {}
minetest.register_on_mods_loaded(function()
for name, def in pairs(minetest.registered_items) do
@ -245,20 +244,15 @@ minetest.register_on_mods_loaded(function()
elseif group.node or (nogroup and minetest.registered_nodes[name]) then
registered_nodes[name] = def
end
if group.ducks then
registered_nature[name] = def
end
end
end)
creative.register_tab("all", "All", minetest.registered_items)
creative.register_tab("nodes", "Nodes", registered_nodes)
creative.register_tab('artwork', 'Artwork', registered_artwork)
creative.register_tab('decals', 'Decals', registered_decals)
creative.register_tab('lights', 'Lights', registered_lights)
creative.register_tab("nodes", "Nodes", registered_nodes)
creative.register_tab('tasks', 'Tasks', registered_tasks)
creative.register_tab('artwork', 'Artwork', registered_artwork)
--creative.register_tab('nature', 'Nature', registered_nature)
local old_homepage_name = sfinv.get_homepage_name
function sfinv.get_homepage_name(player)

View File

@ -1 +1,9 @@
decals.register_decal_colored('autumn_leaves_1', 'Autumn Leaves')
decals.register_decal_colored('glitter_1', 'Glitter')
decals.register_decal_colored('glitter_2', 'Glitter')
decals.register_decal_colored('glitter_4', 'Glitter')
decals.register_decal_colored('glitter_5', 'Glitter')
decals.register_decal_colored('glitter_6', 'Glitter')
decals.register_decal_raillike('autumn_leaves_2', 'Fallen Leaves')

View File

@ -56,6 +56,7 @@ function decals.register_decal_colored(name, desc)
inventory_image = 'decals_'..name..'.png',
wield_image = 'decals_'..name..'.png',
paramtype = 'light',
paramtype2 = 'facedir',
sunlight_propagates = true,
use_texture_alpha = 'clip',
walkable = false,
@ -72,6 +73,32 @@ function decals.register_decal_colored(name, desc)
})
end
function decals.register_decal_raillike(name, desc)
minetest.register_node('decals:'..name, {
description = desc,
drawtype = 'raillike',
paramtype = 'light',
tiles = {{name='decals_'..name..'_straight.png'}, {name='decals_'..name..'_curved.png'},
{name='decals_'..name..'_t_junct.png'}, {name='decals_'..name..'_crossing.png'}},
--tiles = {'decals_'..name..'.png' },
inventory_image = 'decals_'..name..'_straight.png',
wield_image = 'decals_'..name..'_straight.png',
sunlight_propagates = true,
use_texture_alpha = 'clip',
walkable = false,
selection_box = {
type = 'fixed',
fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
},
collision_box = {
type = 'fixed',
fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
},
groups = {breakable=1, rails=1},
})
end
dofile(minetest.get_modpath('decals')..'/alphanumeric.lua') --Letters and numbers
dofile(minetest.get_modpath('decals')..'/colored.lua') -- It'ems that are already colored, and don't get colorfacedir
dofile(minetest.get_modpath('decals')..'/shapes.lua') -- Different shapes

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 876 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 840 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 949 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 926 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -61,6 +61,28 @@ minetest.register_node('furniture:cabinet_counter', {
on_punch = furniture.punch
})
minetest.register_node('furniture:cabinet_counter_sink', {
description = 'Cabinet with Sink',
drawtype = 'mesh',
mesh = 'furniture_cabinet_sink.obj',
tiles = {'furniture_cabinet_counter.png', ''},
overlay_tiles = {'',{name='furniture_cabinet_sink.png', color='white'}},
paramtype = 'light',
paramtype2 = 'colorfacedir',
palette = 'furniture_stain_palette.png',
selection_box = {
type = 'fixed',
fixed = {-.5, -.5, -.5, .5, .5, .5},
},
collision_box = {
type = 'fixed',
fixed = {-.5, -.5, -.5, .5, .5, .5},
},
groups = {breakable=1, stash=1},
on_rightclick = furniture.right_click,
on_punch = furniture.punch
})
minetest.register_node('furniture:cabinet_counter_corner_inside', {
description = 'Cabinet with Countertop',
drawtype = 'mesh',
@ -121,6 +143,24 @@ minetest.register_node('furniture:cabinet_counter_1', {
groups = {breakable=1, stash=1},
})
minetest.register_node('furniture:cabinet_counter_sink_1', {
description = 'Cabinet with Sink',
drawtype = 'mesh',
mesh = 'furniture_cabinet_sink.obj',
tiles = {'furniture_cabinet_counter_1.png', 'furniture_cabinet_sink.png'},
paramtype = 'light',
paramtype2 = 'facedir',
selection_box = {
type = 'fixed',
fixed = {-.5, -.5, -.5, .5, .5, .5},
},
collision_box = {
type = 'fixed',
fixed = {-.5, -.5, -.5, .5, .5, .5},
},
groups = {breakable=1, stash=1},
})
minetest.register_node('furniture:cabinet_counter_corner_inside_1', {
description = 'Cabinet with Countertop',
drawtype = 'mesh',

View File

@ -0,0 +1,422 @@
# Blender v2.93.5 OBJ File: 'furniture.blend'
# www.blender.org
o Cabinet_counter.001_Cube.047
v -0.500000 -0.375000 0.500000
v -0.500000 0.375000 0.500000
v -0.500000 -0.375000 -0.375000
v -0.500000 0.375000 -0.375000
v 0.500000 -0.375000 0.500000
v 0.500000 0.375000 0.500000
v 0.500000 -0.375000 -0.375000
v 0.500000 0.375000 -0.375000
v -0.500000 0.500000 0.500000
v -0.500000 0.500000 -0.375000
v 0.500000 0.500000 -0.375000
v 0.500000 0.500000 0.500000
v -0.500000 0.375000 -0.500000
v 0.500000 0.375000 -0.500000
v -0.500000 0.500000 -0.500000
v 0.500000 0.500000 -0.500000
v 0.031250 -0.312500 -0.375000
v 0.031250 0.312500 -0.375000
v 0.437500 -0.312500 -0.375000
v 0.437500 0.312500 -0.375000
v -0.500000 -0.375000 -0.250000
v -0.500000 0.375000 -0.250000
v 0.500000 -0.375000 -0.250000
v 0.500000 0.375000 -0.250000
v -0.500000 0.500000 -0.250000
v 0.500000 0.500000 -0.250000
v -0.500000 -0.500000 0.500000
v 0.500000 -0.500000 0.500000
v -0.500000 -0.500000 -0.250000
v 0.500000 -0.500000 -0.250000
v 0.031250 0.312500 -0.437500
v 0.031250 -0.312500 -0.437500
v 0.437500 -0.312500 -0.437500
v 0.437500 0.312500 -0.437500
v -0.437500 -0.312500 -0.375000
v -0.437500 0.312500 -0.375000
v -0.031250 -0.312500 -0.375000
v -0.031250 0.312500 -0.375000
v -0.437500 0.312500 -0.437500
v -0.437500 -0.312500 -0.437500
v -0.031250 -0.312500 -0.437500
v -0.031250 0.312500 -0.437500
v -0.375000 -0.375000 -0.375000
v -0.375000 0.375000 -0.375000
v -0.375000 0.500000 -0.375000
v -0.375000 0.500000 0.500000
v -0.375000 0.375000 -0.500000
v -0.375000 0.500000 -0.500000
v -0.375000 0.500000 -0.250000
v -0.375000 -0.375000 -0.250000
v -0.375000 -0.500000 -0.250000
v -0.375000 0.375000 0.500000
v -0.375000 -0.375000 0.500000
v -0.375000 -0.500000 0.500000
v 0.375000 0.375000 -0.375000
v 0.375000 0.500000 -0.375000
v 0.375000 0.375000 -0.500000
v 0.375000 0.500000 -0.500000
v 0.375000 0.500000 -0.250000
v 0.375000 -0.375000 0.500000
v 0.375000 -0.375000 -0.375000
v 0.375000 0.500000 0.500000
v 0.375000 -0.375000 -0.250000
v 0.375000 -0.500000 -0.250000
v 0.375000 0.375000 0.500000
v 0.375000 -0.500000 0.500000
v -0.500000 -0.375000 0.375000
v 0.500000 0.375000 0.375000
v 0.500000 0.500000 0.375000
v -0.500000 0.375000 0.375000
v 0.500000 -0.375000 0.375000
v -0.500000 0.500000 0.375000
v -0.500000 -0.500000 0.375000
v 0.500000 -0.500000 0.375000
v -0.375000 0.500000 0.375000
v 0.375000 0.500000 0.375000
v -0.375000 0.375000 -0.375000
v -0.375000 0.375000 -0.250000
v 0.375000 0.375000 -0.375000
v 0.375000 0.375000 -0.250000
v -0.375000 0.375000 0.375000
v 0.375000 0.375000 0.375000
v -0.375000 0.125000 -0.250000
v 0.375000 0.125000 -0.250000
v -0.375000 0.125000 0.375000
v 0.375000 0.125000 0.375000
v -0.031250 0.500000 0.468750
v -0.031250 0.812500 0.468750
v -0.031250 0.500000 0.406250
v -0.031250 0.812500 0.406250
v 0.031250 0.500000 0.468750
v 0.031250 0.812500 0.468750
v 0.031250 0.500000 0.406250
v 0.031250 0.812500 0.406250
v -0.218750 0.500000 0.468750
v -0.218750 0.593750 0.468750
v -0.218750 0.500000 0.406250
v -0.218750 0.593750 0.406250
v -0.156250 0.500000 0.468750
v -0.156250 0.593750 0.468750
v -0.156250 0.500000 0.406250
v -0.156250 0.593750 0.406250
v 0.156250 0.500000 0.468750
v 0.156250 0.593750 0.468750
v 0.156250 0.500000 0.406250
v 0.156250 0.593750 0.406250
v 0.218750 0.500000 0.468750
v 0.218750 0.593750 0.468750
v 0.218750 0.500000 0.406250
v 0.218750 0.593750 0.406250
v -0.031250 0.875000 0.468750
v -0.031250 0.875000 0.406250
v 0.031250 0.875000 0.406250
v 0.031250 0.875000 0.468750
v -0.031250 0.812500 0.031250
v 0.031250 0.812500 0.031250
v -0.031250 0.875000 0.031250
v 0.031250 0.875000 0.031250
vt 0.625000 0.562500
vt 0.625000 0.937500
vt 0.562500 0.937500
vt 0.562500 0.562500
vt 0.562500 0.125000
vt 0.562500 0.500000
vt 0.500000 0.500000
vt 0.500000 0.125000
vt 0.937500 0.562500
vt 0.937500 0.937500
vt 1.000000 0.937500
vt 1.000000 0.562500
vt 0.062500 1.000000
vt 0.000000 1.000000
vt 0.000000 0.937500
vt 0.062500 0.937500
vt 0.062500 0.500000
vt -0.000000 0.500000
vt -0.000000 0.437500
vt 0.062500 0.437500
vt 0.625000 0.937500
vt 0.562500 0.937500
vt 0.562500 1.000000
vt 0.625000 1.000000
vt 0.937500 0.937500
vt 1.000000 0.937500
vt 1.000000 1.000000
vt 0.937500 1.000000
vt 0.062500 1.000000
vt -0.000000 1.000000
vt -0.000000 0.937500
vt 0.062500 0.937500
vt 0.562500 1.000000
vt 0.500000 1.000000
vt 0.500000 0.937500
vt 0.500000 0.937500
vt 0.500000 1.000000
vt 0.437500 0.875000
vt 0.500000 0.875000
vt 0.500000 0.937500
vt 0.437500 0.937500
vt 0.625000 1.000000
vt 0.937500 1.000000
vt 0.062500 0.875000
vt -0.000000 0.875000
vt -0.000000 0.812500
vt 0.062500 0.812500
vt 0.562500 0.562500
vt 0.625000 0.562500
vt 0.937500 0.562500
vt 0.500000 0.062500
vt 0.562500 0.062500
vt 1.000000 0.500000
vt 0.937500 0.500000
vt 0.625000 0.500000
vt 0.937500 0.500000
vt 0.500000 0.000000
vt 0.562500 0.000000
vt 0.031250 0.031250
vt 0.343750 0.031250
vt 0.343750 0.234375
vt 0.031250 0.234375
vt 0.000000 0.234375
vt 0.000000 0.031250
vt 0.375000 0.031250
vt 0.375000 0.234375
vt 0.031250 0.000000
vt 0.343750 0.000000
vt 0.343750 0.265625
vt 0.031250 0.265625
vt 0.031250 0.140625
vt 0.343750 0.140625
vt 0.343750 0.343750
vt 0.031250 0.343750
vt 0.000000 0.343750
vt 0.000000 0.140625
vt 0.375000 0.140625
vt 0.375000 0.343750
vt 0.031250 0.109375
vt 0.343750 0.109375
vt 0.343750 0.375000
vt 0.031250 0.375000
vt 0.937500 1.000000
vt 0.937500 0.937500
vt 1.000000 1.000000
vt 0.937500 0.562500
vt 0.562500 0.562500
vt 0.500000 0.562500
vt 0.500000 0.500000
vt 0.562500 0.500000
vt 0.937500 0.500000
vt 0.562500 0.937500
vt 0.500000 0.937500
vt 0.500000 1.000000
vt 0.562500 1.000000
vt 1.000000 0.062500
vt 0.937500 0.062500
vt 0.937500 0.000000
vt 1.000000 0.000000
vt 1.000000 0.125000
vt 0.937500 0.125000
vt 0.437500 1.000000
vt 0.437500 0.500000
vt 0.437500 0.437500
vt 0.437500 1.000000
vt 0.437500 0.937500
vt 1.000000 0.500000
vt 0.937500 0.500000
vt 0.500000 1.000000
vt 0.500000 0.500000
vt 0.500000 0.437500
vt 0.500000 1.000000
vt 0.437500 0.812500
vt 0.500000 0.812500
vt 1.000000 0.562500
vt 1.000000 0.500000
vt 0.625000 0.500000
vt 0.562500 1.000000
vt 0.500000 1.000000
vt 0.500000 0.937500
vt 0.562500 0.937500
vt 0.187500 1.000000
vt 0.187500 0.937500
vt 0.687500 0.437500
vt 0.687500 0.812500
vt 0.625000 0.812500
vt 0.625000 0.437500
vt 0.187500 0.312500
vt 0.500000 0.312500
vt 0.500000 0.437500
vt 0.187500 0.437500
vt 0.000000 0.812500
vt 0.000000 0.437500
vt 0.062500 0.437500
vt 0.062500 0.812500
vt 0.750000 0.437500
vt 0.750000 0.812500
vt 0.187500 0.250000
vt 0.500000 0.250000
vt 0.562500 0.250000
vt 0.562500 0.312500
vt 0.500000 0.812500
vt 0.187500 0.812500
vt 0.453125 0.156250
vt 0.296875 0.156250
vt 0.296875 0.125000
vt 0.453125 0.125000
vt 0.296875 0.093750
vt 0.453125 0.093750
vt 0.453125 0.218750
vt 0.296875 0.218750
vt 0.296875 0.187500
vt 0.453125 0.187500
vt 0.171875 0.937500
vt 0.125000 0.937500
vt 0.125000 0.906250
vt 0.171875 0.906250
vt 0.265625 0.187500
vt 0.265625 0.156250
vt 0.125000 0.875000
vt 0.171875 0.875000
vt 0.171875 1.000000
vt 0.125000 1.000000
vt 0.125000 0.968750
vt 0.171875 0.968750
vt 0.093750 1.000000
vt 0.093750 0.968750
vt 0.078125 0.906250
vt 0.031250 0.906250
vt 0.031250 0.875000
vt 0.078125 0.875000
vt 0.078125 1.000000
vt 0.031250 1.000000
vt 0.031250 0.968750
vt 0.078125 0.968750
vt 0.031250 0.937500
vt 0.078125 0.937500
vt 0.000000 0.875000
vt 0.000000 0.906250
vt 0.031250 0.125000
vt 0.031250 0.156250
vt 0.000000 0.156250
vt 0.000000 0.125000
vt 0.031250 0.187500
vt 0.218750 0.156250
vt 0.218750 0.187500
vt 0.265625 0.218750
vt 0.265625 0.125000
vt 0.218750 0.218750
vt 0.250000 0.187500
vt 0.250000 0.218750
vt 0.031250 0.218750
vt 0.031250 0.093750
vt 0.218750 0.093750
vt 0.218750 0.125000
vn -1.0000 0.0000 0.0000
vn 0.0000 0.0000 -1.0000
vn 1.0000 0.0000 0.0000
vn 0.0000 -1.0000 0.0000
vn 0.0000 1.0000 0.0000
vn 0.0000 0.0000 1.0000
g Cabinet_counter.001_Cube.047_Cabinet_counter
s off
f 21/1/1 22/2/1 4/3/1 3/4/1
f 61/5/2 55/6/2 8/7/2 7/8/2
f 71/9/3 68/10/3 6/11/3 5/12/3
f 44/13/4 4/14/4 13/15/4 47/16/4
f 75/17/5 72/18/5 9/19/5 46/20/5
f 24/21/3 8/22/3 11/23/3 26/24/3
f 70/25/1 2/26/1 9/27/1 72/28/1
f 47/29/2 13/30/2 15/31/2 48/32/2
f 4/3/1 10/33/1 15/34/1 13/35/1
f 11/23/3 8/22/3 14/36/3 16/37/3
f 56/38/5 11/39/5 16/40/5 58/41/5
f 4/3/1 22/2/1 25/42/1 10/33/1
f 68/10/3 24/21/3 26/24/3 69/43/3
f 45/44/5 10/45/5 25/46/5 49/47/5
f 7/48/3 8/22/3 24/21/3 23/49/3
f 67/50/1 70/25/1 22/2/1 21/1/1
f 61/5/4 7/8/4 23/51/4 63/52/4
f 71/9/3 5/12/3 28/53/3 74/54/3
f 67/50/1 21/1/1 29/55/1 73/56/1
f 63/52/2 23/51/2 30/57/2 64/58/2
f 32/59/2 31/60/2 34/61/2 33/62/2
f 19/63/4 17/64/4 32/59/4 33/62/4
f 18/65/5 20/66/5 34/61/5 31/60/5
f 17/67/1 18/68/1 31/60/1 32/59/1
f 20/69/3 19/70/3 33/62/3 34/61/3
f 40/71/2 39/72/2 42/73/2 41/74/2
f 37/75/4 35/76/4 40/71/4 41/74/4
f 36/77/5 38/78/5 42/73/5 39/72/5
f 35/79/1 36/80/1 39/72/1 40/71/1
f 38/81/3 37/82/3 41/74/3 42/73/3
f 62/83/6 65/84/6 6/11/6 12/85/6
f 60/86/6 5/12/6 6/11/6 65/84/6
f 53/87/6 1/88/6 27/89/6 54/90/6
f 60/86/6 53/87/6 54/90/6 66/91/6
f 1/88/6 53/87/6 52/92/6 2/93/6
f 9/94/6 2/93/6 52/92/6 46/95/6
f 21/96/2 50/97/2 51/98/2 29/99/2
f 3/100/4 43/101/4 50/97/4 21/96/4
f 10/45/5 45/44/5 48/32/5 15/31/5
f 57/102/2 47/29/2 48/32/2 58/41/2
f 76/103/5 75/17/5 46/20/5 62/104/5
f 55/105/4 44/13/4 47/16/4 57/106/4
f 3/100/2 4/107/2 44/108/2 43/101/2
f 8/109/4 55/105/4 57/106/4 14/36/4
f 69/110/5 76/103/5 62/104/5 12/111/5
f 14/112/2 57/102/2 58/41/2 16/40/2
f 11/39/5 56/38/5 59/113/5 26/114/5
f 5/12/6 60/86/6 66/91/6 28/53/6
f 53/87/6 60/86/6 65/84/6 52/92/6
f 46/95/6 52/92/6 65/84/6 62/83/6
f 50/97/2 63/52/2 64/58/2 51/98/2
f 43/101/4 61/5/4 63/52/4 50/97/4
f 45/44/5 56/38/5 58/41/5 48/32/5
f 43/101/2 44/108/2 55/6/2 61/5/2
f 26/114/5 59/113/5 76/103/5 69/110/5
f 1/115/1 67/50/1 73/56/1 27/116/1
f 23/49/3 71/9/3 74/54/3 30/117/3
f 1/115/1 2/26/1 70/25/1 67/50/1
f 6/11/3 68/10/3 69/43/3 12/85/3
f 22/2/1 70/25/1 72/28/1 25/42/1
f 49/47/5 25/46/5 72/18/5 75/17/5
f 23/49/3 24/21/3 68/10/3 71/9/3
g Cabinet_counter.001_Cube.047_KitchenSink
f 45/118/3 49/119/3 78/120/3 77/121/3
f 49/119/3 75/122/3 81/123/3 78/120/3
f 79/124/5 77/125/5 78/126/5 80/127/5
f 82/128/1 80/129/1 84/130/1 86/131/1
f 75/132/2 76/133/2 82/134/2 81/135/2
f 56/136/6 45/137/6 77/125/6 79/124/6
f 76/138/1 59/139/1 80/129/1 82/128/1
f 59/139/1 56/140/1 79/141/1 80/129/1
f 84/130/5 83/142/5 85/143/5 86/131/5
f 81/135/2 82/134/2 86/131/2 85/143/2
f 78/120/3 81/123/3 85/143/3 83/142/3
f 80/127/6 78/126/6 83/142/6 84/130/6
f 87/144/1 88/145/1 90/146/1 89/147/1
f 89/147/2 90/146/2 94/148/2 93/149/2
f 93/150/3 94/151/3 92/152/3 91/153/3
f 91/153/6 92/152/6 88/145/6 87/144/6
f 95/154/1 96/155/1 98/156/1 97/157/1
f 88/145/6 92/152/6 114/158/6 111/159/6
f 97/157/2 98/156/2 102/160/2 101/161/2
f 101/162/3 102/163/3 100/164/3 99/165/3
f 99/165/6 100/164/6 96/155/6 95/154/6
f 102/163/5 98/166/5 96/167/5 100/164/5
f 103/168/1 104/169/1 106/170/1 105/171/1
f 105/172/2 106/173/2 110/174/2 109/175/2
f 109/175/3 110/174/3 108/176/3 107/177/3
f 107/177/6 108/176/6 104/169/6 103/168/6
f 110/178/5 106/170/5 104/169/5 108/179/5
f 113/180/5 112/181/5 111/182/5 114/183/5
f 90/184/1 112/181/1 117/185/1 115/186/1
f 92/152/3 94/151/3 113/187/3 114/158/3
f 90/146/1 88/145/1 111/159/1 112/188/1
f 116/189/2 115/186/2 117/190/2 118/191/2
f 94/192/4 90/184/4 115/186/4 116/189/4
f 113/180/3 94/193/3 116/194/3 118/195/3
f 112/181/5 113/180/5 118/195/5 117/185/5

View File

@ -0,0 +1,185 @@
# Blender v2.93.5 OBJ File: 'furniture.blend'
# www.blender.org
o fire_hydrant_Cube.048
v 0.187500 -0.500000 -0.187500
v 0.187500 0.312500 -0.187500
v 0.187500 -0.500000 0.187500
v 0.187500 0.312500 0.187500
v -0.187500 -0.500000 -0.187500
v -0.187500 0.312500 -0.187500
v -0.187500 -0.500000 0.187500
v -0.187500 0.312500 0.187500
v 0.125000 0.312500 -0.125000
v 0.125000 0.437500 -0.125000
v 0.125000 0.312500 0.125000
v 0.125000 0.437500 0.125000
v -0.125000 0.312500 -0.125000
v -0.125000 0.437500 -0.125000
v -0.125000 0.312500 0.125000
v -0.125000 0.437500 0.125000
v -0.187500 0.125000 -0.125000
v -0.312500 0.125000 -0.125000
v -0.187500 0.125000 0.125000
v -0.312500 0.125000 0.125000
v -0.187500 -0.125000 -0.125000
v -0.312500 -0.125000 -0.125000
v -0.187500 -0.125000 0.125000
v -0.312500 -0.125000 0.125000
v 0.187500 -0.125000 -0.125000
v 0.312500 -0.125000 -0.125000
v 0.187500 -0.125000 0.125000
v 0.312500 -0.125000 0.125000
v 0.187500 0.125000 -0.125000
v 0.312500 0.125000 -0.125000
v 0.187500 0.125000 0.125000
v 0.312500 0.125000 0.125000
v 0.312500 -0.062500 -0.062500
v 0.375000 -0.062500 -0.062500
v 0.312500 -0.062500 0.062500
v 0.375000 -0.062500 0.062500
v 0.312500 0.062500 -0.062500
v 0.375000 0.062500 -0.062500
v 0.312500 0.062500 0.062500
v 0.375000 0.062500 0.062500
v -0.125000 0.125000 -0.312500
v -0.125000 0.125000 -0.187500
v -0.125000 -0.125000 -0.312500
v -0.125000 -0.125000 -0.187500
v 0.125000 0.125000 -0.312500
v 0.125000 0.125000 -0.187500
v 0.125000 -0.125000 -0.312500
v 0.125000 -0.125000 -0.187500
v -0.375000 0.062500 -0.062500
v -0.312500 0.062500 -0.062500
v -0.375000 0.062500 0.062500
v -0.312500 0.062500 0.062500
v -0.375000 -0.062500 -0.062500
v -0.312500 -0.062500 -0.062500
v -0.375000 -0.062500 0.062500
v -0.312500 -0.062500 0.062500
vt 0.625000 0.000000
vt 0.625000 0.406250
vt 0.437500 0.406250
vt 0.437500 0.000000
vt 0.250000 0.406250
vt 0.250000 0.000000
vt 1.000000 0.000000
vt 1.000000 0.406250
vt 0.812500 0.406250
vt 0.812500 0.000000
vt -0.000000 0.812500
vt 0.062500 0.812500
vt 0.062500 0.937500
vt -0.000000 0.937500
vt 1.000000 0.593750
vt 0.812500 0.593750
vt 0.062500 1.000000
vt 0.187500 0.937500
vt 0.187500 1.000000
vt 0.250000 0.937500
vt 0.187500 0.812500
vt 0.250000 0.812500
vt 0.187500 0.750000
vt 0.062500 0.750000
vt 0.812500 1.000000
vt 0.812500 0.937500
vt 0.937500 0.937500
vt 0.937500 1.000000
vt 1.000000 0.937500
vt 0.937500 0.812500
vt 1.000000 0.812500
vt 0.937500 0.750000
vt 0.812500 0.812500
vt 0.812500 0.750000
vt 0.750000 0.812500
vt 0.750000 0.937500
vt 0.437500 0.750000
vt 0.437500 0.812500
vt 0.312500 0.812500
vt 0.312500 0.750000
vt 0.250000 0.812500
vt 0.312500 0.937500
vt 0.250000 0.937500
vt 0.312500 1.000000
vt 0.437500 0.937500
vt 0.437500 1.000000
vt 0.500000 0.937500
vt 0.500000 0.812500
vt 0.281250 0.640625
vt 0.281250 0.671875
vt 0.218750 0.671875
vt 0.218750 0.640625
vt 0.187500 0.671875
vt 0.218750 0.734375
vt 0.187500 0.734375
vt 0.218750 0.765625
vt 0.281250 0.734375
vt 0.281250 0.765625
vt 0.312500 0.734375
vt 0.312500 0.671875
vt 0.687500 0.937500
vt 0.562500 0.937500
vt 0.562500 0.812500
vt 0.687500 0.812500
vt 0.687500 0.750000
vt 0.562500 0.750000
vt 0.750000 0.937500
vt 0.750000 0.812500
vt 0.562500 1.000000
vt 0.687500 1.000000
vt 0.500000 0.812500
vt 0.500000 0.937500
vt 0.468750 0.734375
vt 0.468750 0.671875
vt 0.531250 0.671875
vt 0.531250 0.734375
vt 0.562500 0.734375
vt 0.562500 0.671875
vt 0.468750 0.765625
vt 0.531250 0.765625
vt 0.437500 0.671875
vt 0.437500 0.734375
vt 0.531250 0.640625
vt 0.468750 0.640625
vn 1.0000 0.0000 0.0000
vn -0.0000 0.0000 1.0000
vn -1.0000 0.0000 -0.0000
vn 0.0000 0.0000 -1.0000
vn 0.0000 1.0000 0.0000
vn -0.0000 -1.0000 0.0000
s off
f 1/1/1 2/2/1 4/3/1 3/4/1
f 3/4/2 4/3/2 8/5/2 7/6/2
f 7/7/3 8/8/3 6/9/3 5/10/3
f 5/10/4 6/9/4 2/2/4 1/1/4
f 9/11/1 10/12/1 12/13/1 11/14/1
f 8/8/5 4/15/5 2/16/5 6/9/5
f 11/17/2 12/13/2 16/18/2 15/19/2
f 15/20/3 16/18/3 14/21/3 13/22/3
f 13/23/4 14/21/4 10/12/4 9/24/4
f 16/18/5 12/13/5 10/12/5 14/21/5
f 17/25/5 18/26/5 20/27/5 19/28/5
f 19/29/2 20/27/2 24/30/2 23/31/2
f 23/32/6 24/30/6 22/33/6 21/34/6
f 21/35/4 22/33/4 18/26/4 17/36/4
f 24/30/3 20/27/3 18/26/3 22/33/3
f 25/37/6 26/38/6 28/39/6 27/40/6
f 27/41/2 28/39/2 32/42/2 31/43/2
f 31/44/5 32/42/5 30/45/5 29/46/5
f 29/47/4 30/45/4 26/38/4 25/48/4
f 32/42/1 28/39/1 26/38/1 30/45/1
f 33/49/6 34/50/6 36/51/6 35/52/6
f 35/53/2 36/51/2 40/54/2 39/55/2
f 39/56/5 40/54/5 38/57/5 37/58/5
f 37/59/4 38/57/4 34/50/4 33/60/4
f 40/54/1 36/51/1 34/50/1 38/57/1
f 41/61/4 45/62/4 47/63/4 43/64/4
f 44/65/6 43/64/6 47/63/6 48/66/6
f 42/67/3 41/61/3 43/64/3 44/68/3
f 46/69/5 45/62/5 41/61/5 42/70/5
f 48/71/1 47/63/1 45/62/1 46/72/1
f 49/73/3 53/74/3 55/75/3 51/76/3
f 52/77/2 51/76/2 55/75/2 56/78/2
f 50/79/5 49/73/5 51/76/5 52/80/5
f 54/81/4 53/74/4 49/73/4 50/82/4
f 56/83/6 55/75/6 53/74/6 54/84/6

View File

@ -51,3 +51,21 @@ minetest.register_node('furniture:fence_security', {
},
groups = {breakable=1},
})
minetest.register_node('furniture:fire_hydrant', {
description = 'Fire Hydrant',
drawtype = 'mesh',
mesh = 'furniture_fire_hydrant.obj',
tiles = {'furniture_fire_hydrant.png'},
paramtype = 'light',
paramtype2 = 'facedir',
selection_box = {
type = 'fixed',
fixed = {-.3125, -.5, -.3125, .3125, .5, .3125},
},
collision_box = {
type = 'fixed',
fixed = {-.3125, -.5, -.3125, .3125, .5, .3125},
},
groups = {breakable=1},
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@ -111,13 +111,16 @@ minetest.register_chatcommand('givexp', {
description = 'Gives a player XP [player, xp]',
privs = {server=true},
func = function(name, params)
local recipient, xp = params:match('^(%S+)%s(.+)$')
if not minetest.get_player_by_name(recipient) then
minetest.chat_send_player(name, 'Sorry '..recipient..' is not online right now. Try when they are.')
else
local player = minetest.get_player_by_name(recipient)
lobby.give_xp(player, xp)
minetest.chat_send_player(recipient, 'You just were awarded '..xp..' XP.')
local recipient, xp_input = params:match('^(%S+)%s(.+)$')
local xp = tonumber(xp_input)
if recipient and xp then
if not minetest.get_player_by_name(recipient) then
minetest.chat_send_player(name, 'Sorry '..recipient..' is not online right now. Try when they are.')
else
local player = minetest.get_player_by_name(recipient)
lobby.give_xp(player, xp)
minetest.chat_send_player(recipient, 'You just were awarded '..xp..' XP.')
end
end
end
})

1
mods/ship/mod.conf Normal file
View File

@ -0,0 +1 @@
name = ship

0
mods/tasks/campfire.lua Normal file
View File

View File

@ -6,7 +6,7 @@ These three nodes could probably be registered with a single function, maybe in
minetest.register_node('tasks:example_setup', { --This is the node that can be placed.
description = 'Example node setup',
tiles = {name='task_1.png'},
groups = {breakable=1},
groups = {breakable=1, not_in_creative_inventory=1},
light_source = 2,
on_construct = function(pos)
local meta = minetest.get_meta(pos)

View File

@ -28,10 +28,14 @@ function tasks.add_xp(pos, node, puncher, swap_to)
map_id = string.sub(map_id, 0, -7)
end
local game_data = lobby.savedata.data[map_id]
lobby.xp[map_id] = lobby.xp[map_id] + earned_xp
local needed_xp = game_data['xp'] - lobby.xp[map_id]
minetest.chat_send_player(name, 'You just earned '..earned_xp..' XP for your team.\nYou need '..needed_xp..' more XP to defeat the imposter.')
tasks.check_xp(map_id, needed_xp)
if lobby.xp[map_id] then
lobby.xp[map_id] = lobby.xp[map_id] + earned_xp
local needed_xp = game_data['xp'] - lobby.xp[map_id]
minetest.chat_send_player(name, 'You just earned '..earned_xp..' XP for your team.\nYou need '..needed_xp..' more XP to defeat the imposter.')
tasks.check_xp(map_id, needed_xp)
else
lobby.give_xp(player, 1)
end
else
minetest.chat_send_player(name, 'You\'re the traitor, you can do tasks, but you won\'t earn XP. Try killing the other players.')
end

View File

@ -5,16 +5,18 @@ Every tasks should be in it's own file. Check out the example.lua for a sample t
tasks = {}
tasks.player_config = {}
--Helper functions/tools
dofile(minetest.get_modpath('tasks')..'/functions.lua')
dofile(minetest.get_modpath('tasks')..'/configurator.lua')
dofile(minetest.get_modpath('tasks')..'/items.lua')
dofile(minetest.get_modpath('tasks')..'/storage_locker.lua')
--Actual tasks
dofile(minetest.get_modpath('tasks')..'/code.lua')
dofile(minetest.get_modpath('tasks')..'/engine_0.lua')
dofile(minetest.get_modpath('tasks')..'/engine_1.lua')
dofile(minetest.get_modpath('tasks')..'/example.lua')
dofile(minetest.get_modpath('tasks')..'/items.lua')
dofile(minetest.get_modpath('tasks')..'/match.lua')
dofile(minetest.get_modpath('tasks')..'/rubbish.lua')
dofile(minetest.get_modpath('tasks')..'/smoke_detector.lua')
dofile(minetest.get_modpath('tasks')..'/storage_locker.lua')
dofile(minetest.get_modpath('tasks')..'/transformer.lua')