Added mypirinoda

master
DonBatman 2015-10-21 13:57:30 -07:00
parent d384696a04
commit f3f372de75
10 changed files with 212 additions and 0 deletions

View File

@ -18,5 +18,13 @@ mypitfall - a simple parkour
myuno - a card game
mypachini - board/dice game
mytrouble - board/dice game
mypirinola - a top that tells you what to do
There is no craft for these. Use /giveme or creative to get the placer block.
Place the block and right click it. The schematic places to the north east.(+x,+z)
For more information please view the topic on the forum. https://forum.minetest.net/viewtopic.php?f=9&t=13209

59
mypirinola/init.lua Normal file
View File

@ -0,0 +1,59 @@
local cbox = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
}
}
local piri = {
{"Side 1","1","1"},
{"Side 2","2","1"},
{"Side 3","3","1"},
{"Side 4","4","1"},
{"Side 5","5","1"},
{"Side 6","6","1"},
}
for i in ipairs(piri) do
local des = piri[i][1]
local num = piri[i][2]
local nic = piri[i][3]
minetest.register_node("mypirinola:piri_"..num, {
description = "Pirinola "..des,
drawtype = "mesh",
mesh = "mypirinola_oct.obj",
tiles = {"mypirinola_img_"..num..".png"},
paramtype = "light",
paramtype2 = "facedir",
drop = "mypirinola:piri_spin",
groups = {choppy=2, dig_immediate=3, not_in_creative_inventory=nic},
--sounds = default.node_sound_wood_defaults(),
--on_place = minetest.rotate_node,
collision_box = cbox,
selection_box = cbox,
})
end
minetest.register_node("mypirinola:piri_spin", {
description = "Pirinola",
drawtype = "mesh",
mesh = "mypirinola_oct.obj",
tiles = {
{name="mypirinola_img_ani.png", animation={type="vertical_frames",aspect_w=16, aspect_h=16, length=0.2}}
},
paramtype = "light",
paramtype2 = "facedir",
groups = {choppy=2, oddly_breakable_by_hand=2, not_in_creative_inventory=0},
--sounds = default.node_sound_wood_defaults(),
collision_box = cbox,
selection_box = cbox,
after_place_node = function(pos, placer, itemstack, pointed_thing)
local ran = math.random(1,6)
local parn = {5,7,9,11,12,14,16,18}
local par2 = parn[ math.random( #parn ) ]
minetest.after(3, function()
minetest.set_node(pos,{name="mypirinola:piri_"..ran, param2=par2})
end)
end,
})

View File

@ -0,0 +1,145 @@
# Blender v2.76 (sub 1) OBJ File: 'dodad.blend'
# www.blender.org
o Cylinder
v -0.000000 -0.448177 -0.216109
v 0.000000 0.500000 -0.500000
v 0.187156 -0.448177 -0.108055
v 0.433013 0.500000 -0.250000
v 0.187156 -0.448177 0.108055
v 0.433013 0.500000 0.250000
v -0.000000 -0.448177 0.216109
v -0.000000 0.500000 0.500000
v -0.187156 -0.448177 0.108055
v -0.433013 0.500000 0.250000
v -0.187156 -0.448177 -0.108055
v -0.433013 0.500000 -0.250000
v 0.000000 -0.260870 -0.500000
v 0.433013 -0.260870 -0.250000
v 0.433013 -0.260870 0.250000
v -0.000000 -0.260870 0.500000
v -0.433013 -0.260870 0.250000
v -0.433013 -0.260870 -0.250000
v -0.000000 -0.501317 0.000000
v -0.105690 0.500000 0.061020
v -0.000000 0.500000 0.122041
v 0.105690 0.500000 0.061020
v -0.000000 0.500000 -0.122041
v 0.105690 0.500000 -0.061020
v -0.105690 0.500000 -0.061020
v -0.000000 1.000000 -0.122041
v -0.105690 1.000000 -0.061020
v -0.105690 1.000000 0.061020
v -0.000000 1.000000 0.122041
v 0.105690 1.000000 0.061020
v 0.105690 1.000000 -0.061020
vt 0.320807 0.211545
vt 0.676194 0.211545
vt 0.676193 0.366231
vt 0.320807 0.366231
vt 0.676193 0.520916
vt 0.320806 0.520916
vt 0.676193 0.675602
vt 0.320806 0.675602
vt 0.676193 0.830288
vt 0.320806 0.830288
vt 0.676257 0.522842
vt 0.833589 0.444535
vt 0.833589 0.562922
vt 0.795187 0.582035
vt 0.320807 0.056860
vt 0.676194 0.056859
vt 0.676193 0.984973
vt 0.320806 0.984973
vt 0.713456 0.234236
vt 0.713456 0.175605
vt 0.992099 0.175605
vt 0.992100 0.234235
vt 0.150411 0.543590
vt 0.154115 0.443727
vt 0.312831 0.523594
vt 0.210658 0.570760
vt 0.311957 0.682021
vt 0.213487 0.629324
vt 0.092993 0.574984
vt -0.005476 0.522288
vt 0.095822 0.633548
vt -0.006351 0.680714
vt 0.156069 0.660718
vt 0.152365 0.760581
vt 0.713456 0.116974
vt 0.713456 0.058343
vt 0.992099 0.058343
vt 0.992099 0.116974
vt 0.713456 0.351497
vt 0.713456 0.292866
vt 0.992100 0.292866
vt 0.992100 0.351497
vt 0.940412 0.366524
vt 0.975430 0.383954
vt 0.975430 0.418812
vt 0.940412 0.436241
vt 0.905394 0.418812
vt 0.905394 0.383954
vt 0.990920 0.522841
vt 0.990920 0.679454
vt 0.871990 0.620261
vt 0.871990 0.582035
vt 0.833589 0.757760
vt 0.676257 0.679454
vt 0.795187 0.620261
vt 0.833589 0.639374
vt 0.153240 0.602154
vt 0.713456 -0.000288
vt 0.992099 -0.000288
vn 0.500000 0.000000 -0.866000
vn 1.000000 0.000000 0.000000
vn 0.500000 0.000000 0.866000
vn -0.500000 0.000000 0.866000
vn 0.000000 1.000000 0.000000
vn -0.500000 0.000000 -0.866000
vn -1.000000 0.000000 0.000000
vn -0.606000 -0.795500 0.000000
vn -0.303000 -0.795500 -0.524800
vn -0.303000 -0.795500 0.524800
vn 0.303000 -0.795500 0.524800
vn 0.606000 -0.795500 0.000000
vn 0.303000 -0.795500 -0.524800
vn -0.136600 -0.962000 0.236500
vn 0.273100 -0.962000 0.000000
vn -0.273100 -0.962000 0.000000
vn 0.136600 -0.962000 -0.236500
vn 0.136600 -0.962000 0.236500
vn -0.136600 -0.962000 -0.236500
g Cylinder_Cylinder_None
s off
f 13/1/1 2/2/1 4/3/1 14/4/1
f 14/4/2 4/3/2 6/5/2 15/6/2
f 15/6/3 6/5/3 8/7/3 16/8/3
f 16/8/4 8/7/4 10/9/4 17/10/4
f 8/11/5 6/12/5 22/13/5 21/14/5
f 18/15/6 12/16/6 2/2/6 13/1/6
f 17/10/7 10/9/7 12/17/7 18/18/7
f 21/19/3 22/20/3 30/21/3 29/22/3
f 9/23/8 17/24/8 18/25/8 11/26/8
f 11/26/9 18/25/9 13/27/9 1/28/9
f 7/29/10 16/30/10 17/24/10 9/23/10
f 5/31/11 15/32/11 16/30/11 7/29/11
f 3/33/12 14/34/12 15/32/12 5/31/12
f 1/28/13 13/27/13 14/34/13 3/33/13
f 24/35/1 23/36/1 26/37/1 31/38/1
f 25/39/7 20/40/7 28/41/7 27/42/7
f 31/43/5 26/44/5 27/45/5 28/46/5 29/47/5 30/48/5
f 4/49/5 2/50/5 23/51/5 24/52/5
f 12/53/5 10/54/5 20/55/5 25/56/5
f 6/12/5 4/49/5 24/52/5 22/13/5
f 10/54/5 8/11/5 21/14/5 20/55/5
f 2/50/5 12/53/5 25/56/5 23/51/5
f 22/20/2 24/35/2 31/38/2 30/21/2
f 7/29/14 9/23/14 19/57/14
f 3/33/15 5/31/15 19/57/15
f 9/23/16 11/26/16 19/57/16
f 1/28/17 3/33/17 19/57/17
f 5/31/18 7/29/18 19/57/18
f 11/26/19 1/28/19 19/57/19
f 20/40/4 21/19/4 29/22/4 28/41/4
f 23/36/6 25/58/6 27/59/6 26/37/6

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB