From 7d1464d0446c5730b2556a72bded09eb4a5b9a57 Mon Sep 17 00:00:00 2001 From: wsor <24964441+wsor4035@users.noreply.github.com> Date: Mon, 17 May 2021 21:18:58 -0400 Subject: [PATCH] bed item added, todo sleeping --- mods/fl_beds/README | 6 ++ mods/fl_beds/init.lua | 90 ++++++++++++++++++ mods/fl_beds/mod.conf | 1 + mods/fl_beds/models/farlands_bed.obj | 32 +++++++ mods/fl_beds/textures/farlands_bed_top.png | Bin 0 -> 762 bytes mods/fl_beds/textures/farlands_beds_black.png | Bin 0 -> 766 bytes mods/fl_beds/textures/farlands_beds_blue.png | Bin 0 -> 763 bytes mods/fl_beds/textures/farlands_beds_brown.png | Bin 0 -> 768 bytes mods/fl_beds/textures/farlands_beds_cyan.png | Bin 0 -> 768 bytes .../textures/farlands_beds_dark_green.png | Bin 0 -> 757 bytes .../textures/farlands_beds_dark_grey.png | Bin 0 -> 761 bytes mods/fl_beds/textures/farlands_beds_green.png | Bin 0 -> 771 bytes mods/fl_beds/textures/farlands_beds_grey.png | Bin 0 -> 768 bytes .../textures/farlands_beds_magenta.png | Bin 0 -> 777 bytes .../fl_beds/textures/farlands_beds_orange.png | Bin 0 -> 772 bytes mods/fl_beds/textures/farlands_beds_pink.png | Bin 0 -> 762 bytes mods/fl_beds/textures/farlands_beds_red.png | Bin 0 -> 774 bytes .../fl_beds/textures/farlands_beds_violet.png | Bin 0 -> 776 bytes mods/fl_beds/textures/farlands_beds_white.png | Bin 0 -> 631 bytes .../fl_beds/textures/farlands_beds_yellow.png | Bin 0 -> 774 bytes mods/fl_player/init.lua | 7 ++ 21 files changed, 136 insertions(+) create mode 100644 mods/fl_beds/README create mode 100644 mods/fl_beds/init.lua create mode 100644 mods/fl_beds/mod.conf create mode 100644 mods/fl_beds/models/farlands_bed.obj create mode 100644 mods/fl_beds/textures/farlands_bed_top.png create mode 100644 mods/fl_beds/textures/farlands_beds_black.png create mode 100644 mods/fl_beds/textures/farlands_beds_blue.png create mode 100644 mods/fl_beds/textures/farlands_beds_brown.png create mode 100644 mods/fl_beds/textures/farlands_beds_cyan.png create mode 100644 mods/fl_beds/textures/farlands_beds_dark_green.png create mode 100644 mods/fl_beds/textures/farlands_beds_dark_grey.png create mode 100644 mods/fl_beds/textures/farlands_beds_green.png create mode 100644 mods/fl_beds/textures/farlands_beds_grey.png create mode 100644 mods/fl_beds/textures/farlands_beds_magenta.png create mode 100644 mods/fl_beds/textures/farlands_beds_orange.png create mode 100644 mods/fl_beds/textures/farlands_beds_pink.png create mode 100644 mods/fl_beds/textures/farlands_beds_red.png create mode 100644 mods/fl_beds/textures/farlands_beds_violet.png create mode 100644 mods/fl_beds/textures/farlands_beds_white.png create mode 100644 mods/fl_beds/textures/farlands_beds_yellow.png diff --git a/mods/fl_beds/README b/mods/fl_beds/README new file mode 100644 index 0000000..85e893d --- /dev/null +++ b/mods/fl_beds/README @@ -0,0 +1,6 @@ +Jean-Patrick Guerrero(Kilbith)(CC0) +farlands_bed.obj + +wsor(aka wsor4035)(CC-BY-SA 3.0) +derived from texture by BlockMen under same license +farlands_bed_top.png \ No newline at end of file diff --git a/mods/fl_beds/init.lua b/mods/fl_beds/init.lua new file mode 100644 index 0000000..9bea874 --- /dev/null +++ b/mods/fl_beds/init.lua @@ -0,0 +1,90 @@ +for counter, dye in pairs(fl_dyes.dyes) do + local cwool = "farlands_wool.png\\^[multiply\\:" .. fl_dyes.dyes[counter][3] + minetest.register_node("fl_beds:bed_" .. fl_dyes.dyes[counter][1], { + description = fl_dyes.dyes[counter][2] .. " bed", + inventory_image = "farlands_beds_" .. fl_dyes.dyes[counter][1] .. ".png", + wield_image = "farlands_beds_" .. fl_dyes.dyes[counter][1] .. ".png", + paramtype = "light", + paramtype2 = "facedir", + drawtype = "mesh", + mesh = "farlands_bed.obj", + selection_box = {type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, 0.0625, 1.5}}, + collision_box = {type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, 0.0625, 1.5}}, + tiles = { + "[combine:41x41:" .. + "30,9=(farlands_apple_planks.png^[transformR90):37,9=" .. cwool .. ":" .. --foot side + "30,25=(farlands_apple_planks.png^[transformR90):37,25=(farlands_bed_top.png^[transformR90):" .. --head side + "0,0=" .. cwool .. ":16,0=" .. cwool .. ":24,0=farlands_bed_top.png:" .. --upper side + "0,4=farlands_apple_planks.png:16,4=farlands_apple_planks.png:" .. --lower side + "0,9=" .. cwool .. ":0,25=" .. cwool .. ":0,9=farlands_bed_top.png:" .. --top + "16,9=farlands_apple_planks.png:16,25=farlands_apple_planks.png" --bottom + }, + after_place_node = function(pos, placer, itemstack) + local base = minetest.get_node_or_nil(pos) + if not base or not base.param2 then minetest.remove_node(pos) return true end + local dir = minetest.facedir_to_dir(base.param2) + local head_pos = {x=pos.x+dir.x,y=pos.y,z=pos.z+dir.z} + local head = minetest.get_node_or_nil(head_pos) + local def = minetest.registered_items[head.name] or nil + if not head or not def or not def.buildable_to then + minetest.remove_node(pos) + minetest.chat_send_player(placer:get_player_name(), "No room to place the bed!") + return true + end + minetest.set_node(pos, {name = base.name, param2 = base.param2}) + return false + end, + --[[ non complete bed sleep function that needs to be completed + on_rightclick = function(pos, node, clicker, itemstack, pointed_thing) + local dir = minetest.facedir_to_dir(minetest.get_node(pos).param2) + local mpos = {x = pos.x + dir.x/2, y = pos.y+.07, z = pos.z+dir.z/2} + clicker:set_pos(mpos) + fl_player.ignore[clicker:get_player_name()] = true + clicker:set_animation(fl_player.animations["lay"], 0) + end, + --]] + groups = {oddly_breakable_by_hand = 3, bed = 1}, + }) + + --note that this does not work properly in the engine, only exists for i3, see craft_hacks + local wool = ItemStack(minetest.itemstring_with_palette("fl_wool:wool", counter - 1)) + wool:get_meta():set_string("description", fl_dyes.dyes[counter][2] .. " wool") + minetest.register_craft({ + output = "fl_beds:bed_" .. fl_dyes.dyes[counter][1], + recipe = { + {wool:to_string(), wool:to_string(), wool:to_string()}, + {"group:plank", "group:plank", "group:plank"} + }, + }) + + minetest.register_craft({ + output = "fl_beds:bed_" .. fl_dyes.dyes[counter][1], + type = "shapeless", + recipe = { + "group:bed", + "fl_dyes:" .. dye[1] .. "_dye" + }, + }) +end + +--i3 currently does not support showing this correctly +local function craft_hacks(itemstack, player, old_craft_grid, craft_inv) + if string.sub(itemstack:get_name(), 1, 7) ~= "fl_beds" then return end + local indexs = {} + --for _, stack in pairs(craft_inv:get_list("craft")) do + for _, stack in pairs(old_craft_grid) do + --if stack ~= nil then + if stack:get_name() == "fl_wool:wool" then + local meta = stack:get_meta() + table.insert(indexs, meta:get_int("palette_index")) + end + --end + end + if indexs[1] == indexs[2] and indexs[2] == indexs[3] then + return ItemStack("fl_beds:bed_" .. fl_dyes.dyes[indexs[1]+1][1]) + end + return ItemStack() +end + +minetest.register_craft_predict(craft_hacks) +minetest.register_on_craft(craft_hacks) \ No newline at end of file diff --git a/mods/fl_beds/mod.conf b/mods/fl_beds/mod.conf new file mode 100644 index 0000000..96f2807 --- /dev/null +++ b/mods/fl_beds/mod.conf @@ -0,0 +1 @@ +depends = fl_wool \ No newline at end of file diff --git a/mods/fl_beds/models/farlands_bed.obj b/mods/fl_beds/models/farlands_bed.obj new file mode 100644 index 0000000..21ecfb4 --- /dev/null +++ b/mods/fl_beds/models/farlands_bed.obj @@ -0,0 +1,32 @@ +# Blender v2.69 (sub 0) OBJ File: '' +# www.blender.org +mtllib simple_bed.mtl +o Simple_Bed +v 0.500000 -0.500000 -0.500000 +v 0.500000 0.060000 -0.500000 +v 0.500000 0.060000 1.500000 +v 0.500000 -0.500000 1.500000 +v -0.500000 -0.500000 -0.500000 +v -0.500000 -0.500000 1.500000 +v -0.500000 0.060000 1.500000 +v -0.500000 0.060000 -0.500000 +vt 0.000112 0.780442 +vt 0.000110 0.999969 +vt 0.780324 0.999889 +vt 0.780377 0.780471 +vt 0.780636 0.390284 +vt 0.999906 0.780382 +vt 0.999906 0.390284 +vt 0.780636 0.000047 +vt 0.999906 0.000094 +vt 0.390235 0.780320 +vt 0.390235 0.000071 +vt 0.000142 0.000142 +usemtl none.002 +s off +f 1/1 2/2 3/3 4/4 +f 5/1 6/4 7/3 8/2 +f 1/5 5/4 8/6 2/7 +f 4/8 3/9 7/7 6/5 +f 1/8 4/4 6/10 5/11 +f 2/11 8/12 7/1 3/10 diff --git a/mods/fl_beds/textures/farlands_bed_top.png b/mods/fl_beds/textures/farlands_bed_top.png new file mode 100644 index 0000000000000000000000000000000000000000..139fa01d606c56d84f0a4259a92ddacf057a582a GIT binary patch literal 762 zcmV>d@3CJf_=DNq9nddbMOL-V*NB z^XZK6fpEl;0}5X%U90hv;#`g26g$bpB=}U%VD1-dzgW*Zrtpw($SjogpYy1jbY`vj zIjQ|J2XILcCq@vBGAk4)5tV95X8-$!zkRb5#iPsLW(`LiIr8F-h+3AeS*eETS@{aA zsoekO=^CRWweFoUXnFL!*D$nhL$%_0pNF1TJp%s&oLhB&QF0o87rj!~Li-TdfYXb* zrtQGlCiLCgX(#SvwfJ4mj}6J5dX9t_I-g_a*TC^Jk+C;773nD@7jF^s`gE3CDMAs_?~z@U!?FCNYbO3A3L!CBWUbN79R z6M={q_!zM)3&c5=fj=E$TtF_a>zZI=Hk9+iaU8ak!W=;(Q10ssd|F_c?FmZ+8NO?6 zL;>r%&Mynuz+l_%$R*(U*l`jrKgW)Mj_v-ca&VsK1bFW;#-Q|q-a9PSIo_NL8b^pR zut|m7ZYzYzwb6rWr+k&H()D;B2@~07*qoM6N<$f+(qBH~;_u literal 0 HcmV?d00001 diff --git a/mods/fl_beds/textures/farlands_beds_black.png b/mods/fl_beds/textures/farlands_beds_black.png new file mode 100644 index 0000000000000000000000000000000000000000..0c41d33f7207877ed09778eb5efaae8250837d45 GIT binary patch literal 766 zcmVvcaijRCR-eXM&c63F@qAxZ@t7um(W?ox9Z3gz-F| z9o^d}8Vp6zlSvAJA{-8*X&N&c>bc$5&*dxE2o(we0EdsB=EAuX|IPT~he8O!zCB5b z#UfX)UngQl7<%`XZ{NQoZXMsOKK*j&dp1mceLZz`bpTkFMGyqIu1ho;WpHp%1VJgR zv#SeT(;5Eo8m*kv))dF{JRHYC*LCvwJi4wEi^UipAE&vwS!FUAT-QYi!Oj+;wyd0^ zG!-a>3TSJZ$JziSCnO3FpcX0tesgKgW` zw#}b(764IpIb(-IH6@vAtdYUF6N9 wo7AzrT}rEF@aXwSg?sq|>5Qxzl+H;00@x!KE=NI*KmY&$07*qoM6N<$f{+(lTL1t6 literal 0 HcmV?d00001 diff --git a/mods/fl_beds/textures/farlands_beds_blue.png b/mods/fl_beds/textures/farlands_beds_blue.png new file mode 100644 index 0000000000000000000000000000000000000000..f7b2bd6d0216673ccd0e461be6f8c81a7c91c2da GIT binary patch literal 763 zcmVFMb<0It;^QXXHB;>`}0XDnmZA4a!H0NNisBrVNGIJ`i$ z^W?vPgxOJZ>7O7|*ZKAQO5A6dNGZuMO?rBI_~V_W+F2DZ;g2r}z?|EKrfC?4fngZf z?RHk|tq0(6!(*(N!e+A}r6e~ei+lImxzTzP-Lhf;9J@14*V+GTyuQ2<^bU?TJ%LD& zj*CYy4U@hvy^M{IBknd;sKK8;S_apl=NF+DYym*aSq&;mbb17BfzJ5X`ZmP`gM+JRYzXm|+#1`g3YH0bJi2fcUYoAjw^%-0r5kgQ?EL7#LwMwd( zLZ}#}h4~y8Pva2Rca-0aLeOS3)2ObYnYm=0ZdE1Oqr7|B#f)bjZ!j8vffACsw_8OL z;-A5q8YVV52(UN{{@)BaKd78cJ1cUG_%8r>=0XtiQultFC@swAYEf?-;+Y^2hyV~C zevJxviB9x0vgcNEI_0U$onm8wCMwKs8rD3Z?p2`xXx}}E^3RYMH0Ak$H9dso8o+W5 zFyomAKqN@#Pi@DMmySJKqwUcEwPib$BhMfdw&)vmvntO7z>#a91h{>T$ tYCKb}WGcY3H?E`)N33|0Q^+$H;xEUD7V(Vc*w+96002ovPDHLkV1jQdO*#Mo literal 0 HcmV?d00001 diff --git a/mods/fl_beds/textures/farlands_beds_brown.png b/mods/fl_beds/textures/farlands_beds_brown.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mFin%Lt}eBHmCNgwPf4WbnRR}bCQw2$^2Qcr zlUy!GDwV>rEPzTD9LJ&k;0YC6=_edCmd=>Yy14ElkKSg)@$C%?VC0ScH%uk~larI^ zx=t(>qj_6LC7rVW+Nfx5)I^g%$>~U;LL$Wa=9GkpxL&~%*+gyWnozsiS#@G zqU?08e+Q9JE&eqc_nv&DZ(qBLgbdt*$A=#&)`m)xMCuHbfK(>W_v!4CK^b?i?ql@D zH}Z1}ba(Dl0l&`YpR<@X5_e&-QnxX(hOhCt>JM^YSERxpUp}g$Cp-T6$a@zKsp!cL rC94@cdlj$n!lFky>sD=)&bs^o^O_VCEwx*>00000NkvXXu0mjf!&X%( literal 0 HcmV?d00001 diff --git a/mods/fl_beds/textures/farlands_beds_green.png b/mods/fl_beds/textures/farlands_beds_green.png new file mode 100644 index 0000000000000000000000000000000000000000..10638f4b30e53a3823515a588f269ace3e8afcc3 GIT binary patch literal 771 zcmV+e1N{7nP)qGyGqck)EIL0^q8Dj|xRB*4FqaDwsobI*#s=0Nj7@ki0w>@%Rk& zbw_3cGN!iS?5v03pO$}moIEj%c2jZX*JyqCYhly?rU4t1@p-aKM8aGpe4%Nr1)li3G@KXvQ1PyD2I=FGM zk}9PTD#fN1^QmZGgdKMH)ngG0CJ|Dw`Su!?w^mZ<)!6%>M$Na1`S9i`6QSRPtz`NK zN=RPjJr@~>8E}~Fvl#C&0kXSb1(R%jw?LH^x+yO;(o+Bk#ca%o;+2tx92i}X8E^=X zIGCmb!1uS)SW^x^J55&JD9&!DY`XARR4vd%(dQ*B8(79O@j?I`x3*yh95Ra*9gZ{E zYZK@;33QuGgnk1cGNhAD>+pH=ahGVcKKV@J_FCoh8rbm!U4uaudOZO6$_$i%V8mo# zJoXom(XDgadHlK`Gde@v&h@Imt@Cvxj3-ZG&p6q4mA(@C#-h0oWcLPN);~OZNS$up z@y|uJp4zWYH}6m~7vRAQ*j)}KmT(!$2?n0lSQi}D+r_~A7WNe&}9V?nB6Q9eeFRAdMNUtg5C^z z>HlD9G1&UQAp9najqhczV}exJVZ{qgAcMi6D3wY)9~{Ig z7Eu+I-#ZTL?VR4VT2HzZ4vUsu1!*r zC5ezFb~mrXoc&5RnC5Nu-R1Pg3k25(rNhlN| z6bcbf&H*4QL%i6v17AZe&N`I`&%V*QuT}aQGzw;sFX03m8(aYR)@VopiFA&M+02qb z1^2G)ARACf_zyCio)_6wE3qd25m{1fE7)7@SA*0(vP-JNr=q-A%9?KM@h$st! zpa^{Gf=OXvltIx;ltE!>7c867Y*Yqk<{Xc6=8VqF--FCVG`OA?tj*ecv)AVFrGx6y zv8{?Mm`zJV+V(U?ESXiDO-sX-o9hPPO8s^fHe*yS^-+*Fhl$BJF1G}r?QT0cId0kl;lBjmeW1fE@<;dx%9l;nB6baizRF(#<1-8ZvB#Eb!8g+|ac4PDpK zbsdk#!~Cjx06KS`AdynI-EO3m6c^3o_MJAaUB7`Vkw^jX>ufhP{lDYxU@fg&;K|P8 z#7MH^{zbgHm);NW85|ly+-lmRzWz3ebky!Z8BI2QfJAR*gC;NtC?c3zctQZl!QJG-u`oMnnPFCG#MM=@f_ znF*AT1X}zeZ8Bz$GhhYikNgD4WFZ`n@MzU7Rg~{xevv+N1%R;SU@%3n<%ig`d;xm( zC}Z|G!_gqNJq^Ii(H`~{)G{CdDr!u|>~YdT z8?wgeHwWnp`RNP!35KHph_utm!)x)C$cJB+k@yrmoyq$hVP+><_YSgD=C| zn`>0#k?Q|G^5*H?s_{s*lGzNNz8=Z&_;iA> literal 0 HcmV?d00001 diff --git a/mods/fl_beds/textures/farlands_beds_orange.png b/mods/fl_beds/textures/farlands_beds_orange.png new file mode 100644 index 0000000000000000000000000000000000000000..d53909ec8b471c9badfad494382582a0322fe91f GIT binary patch literal 772 zcmV+f1N;1mP)T4*Agr-DGEHN{p}7&JqDcT^p)pidMb~w7 zUB~HkQo8vR0G-V{$z&xqn+-)#C@Ee*``vq7zi|^SlgR?$zjhK%T>WRpJ=%9}15cXk zNM@k!{6k#2i@x3-M*V)oowNJo(9bA|fgVJi1Ez{t9U?ar6GAk6<`XBsn|R zffNdX*FIsHjK|XqhtdoN4S@M9gpwILcX?%Tp_9^L{m&Z1F$2v6+Z&&#-n3gn8RI=4 z0I(<00K6HEtXPHrl}`YysM*4JJdG7Je>BBV z$fQ4L&>u7ihT{MT>l2%gti$Wc$LUsSdo;k|nkwn_=on^(zHcEGdt3l`OLU}wP&C2F zuh<_03%AbI(D8hj#B_>=t?OlhQ{&5z2rj#VkxI|MTjq81b!2BQo>-_w3fCL_`4I!%oY zTMbgAvbkf6kYzBi@ak@o+pNg4jLm9gXlMwZU!$qm&%& z6=7AaOip~pJvWCzF(h+3-EJ6xeI+FT>@FxEv9ZCduCxDyLrjeZBn5$eWQiVa3`JI$ z|2Bb~>a-YJ!WRlL?RI07Wx|mNilR_fT#S2Vg`x^Y%%d@fA4!sEu8_oqV&2xdFvV>FFTv+Lj|H|w2O~#Ua;!@i$AiFoIpr22Lkm{ z%4EgoV|HPIFCGuT<}G+Njp5tf!k%R&->&{&qc^Cd+v8LO&PbHM6!3=?Uox6xivjT7 z=_J!+V$$W}-jy37#Mh(_&~?3vvB_WTDbD1q`5MmbVNqzeFz2#RTBh@1dYJ;HWXpD} z`D?hAf=L5_o0kvc$g^P1QRsa>MN3VkaOA1z(KwSo*C@`j0^rD15fZEg!dneecyy#4UQA__Ir;j=|d4I=6(cW6S?IU|{ofqw` swL(s3Fg(7v$)mA2-k_egkvFLG56J8g*jFiK>;M1&07*qoM6N<$f;wnesQ>@~ literal 0 HcmV?d00001 diff --git a/mods/fl_beds/textures/farlands_beds_red.png b/mods/fl_beds/textures/farlands_beds_red.png new file mode 100644 index 0000000000000000000000000000000000000000..81ef541efe3a966cf7984d49e3255673d8317df0 GIT binary patch literal 774 zcmV+h1Nr=kP)=A!@r0+UHZ zK~y-)eUr;elu;PQf9IPS$C+<5QwvhMi`oSWi%N5sPxdOia0CxLddHkd+m}b$`+o zZJjTWX(|t&ok!#bgM4ehINRsMF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T<=Xfv|~5kdCHxVspuIY8v~{ z?J0sWABJHAFfjXy+4wZWRxj&kZY-ozIeM`}tjbfxvWhOs>L1YFR3ZQxPyIl*r$_|N zAN4U|4l)|)XEf5!WMCEmk#IVFbUogjG+db~Esy#*Qn^ujb2LmVM(?nnf*dyh-fRsi zz^@y89}oXENTB&bB^}SdVT7X8ZrdO|E(f1|LEI?{X4GD&EAnPCI2KC&AUigB7kJzG z1M+M`)qfw^a%PV_+fXHyWCl;)jQvfb9U~AnlQs&3P5uA?#um8}CindS0000Qz99p7ik;L^y?+(T~d?wbBH~YHlfe-!t?Uuec$i-ls8ioGXLWj znc1pBn}&=ESI>`j_1dKdK?Aq8zRfr~9H*DpF1@eM0N}!jK`AOVMh{yIM0ZjBy@qb6 z>?D1&7`rstVf5=di|-%o2vAomH2}PoB{WULG)+v?Boc`bPux1n%vM8)VNc^Y4#i@TAZP%P&1MloFgG{H*(;MWe1*p!mcy84W~+>k zphV4xJm7tz$SD&4f@a%x$MHS&jf2t01SH?0BfI#RA6Om61zc`Kt?02 zmep!N{ZE7Cas_~4Yfo=LJ7mxtkN~g0dL2LVx`ph>K`+Q!qlxgkr%-rx{sK+Z?lZtg RGnxPZ002ovPDHLkV1g{E6m$Rp literal 0 HcmV?d00001 diff --git a/mods/fl_beds/textures/farlands_beds_yellow.png b/mods/fl_beds/textures/farlands_beds_yellow.png new file mode 100644 index 0000000000000000000000000000000000000000..d5688368463e321b27a4653c5fc894ebe56bc915 GIT binary patch literal 774 zcmV+h1Nr=kP)m@ILg{05A$4EjE%?8YzhE%ck8j+ZNy@e z94;@LZjd4yDypXmb2W{jr)s z>o^<^^0rn1@UUSo@r1-?v!N&o3v%ak`%WF#uHQh5#}fej`g07pIb+7MQ=MG93XdE1 z5H(>>>3y8Klh)6l81VTJx6bXC-GgDQh3{Cs%1%j1761iHG^P^J*Jn{!XybhKcVU_! z1cZz-R7Iu#%SV({lK)FFqoD*H9WgWwCJc$H2v!!^@%b!HoXnRkt?;1*gb-A$74pEQ zrBaaziI5347cb)dlNF4H5_EpG7#^NND3a!yExf2%!$P;ly?Y*MH*SEby)!EE(Av;P0cQuJJ&&8uKxcUgAo&L4%pmYvAMWZGPsBU zF98rn(&W`^gE?7(@o~xJ8+JL~@~??UFFX*1`KlQDx*TI*6+XNIpupHoAP^^2G@ma{ zcaKF|dyKaB7{7xP$$-=&o<6z`k2@Pjj!JDq2S>JTkRG>=8H>~UZG^>cCjg!WI#R$$ z*r5Ms9RX{FCC^W@OuAIrQTyEb~#yuSLN zJX^Va#zxkj*(c9dZkI|XgQhqBG>=(vf)O)gP%vWh7Yrp7kk?B%2mk;807*qoM6N<$ Eg0>4()c^nh literal 0 HcmV?d00001 diff --git a/mods/fl_player/init.lua b/mods/fl_player/init.lua index 06a3528..530c8eb 100644 --- a/mods/fl_player/init.lua +++ b/mods/fl_player/init.lua @@ -2,6 +2,8 @@ --local modpath = minetest.get_modpath("fl_player") --local texture_list = minetest.get_dir_list(modpath .. "/textures") +fl_player = {} + local animations = { stand = {x=0, y=79}, lay = {x=162, y=166}, @@ -20,6 +22,9 @@ local animations = { climb = {x=410, y=429}, } +fl_player.animations = animations +fl_player.ignore = {} + minetest.register_on_joinplayer(function(player) player:get_meta():set_int("vanish", 0) player:set_properties({ @@ -50,6 +55,8 @@ minetest.register_globalstep(function(dtime) vector.new(0, 6.35, 0), vector.new(-math.deg(player:get_look_vertical()), 0, 0) ) + if fl_player.ignore[player:get_player_name()] then return end + if math.floor(player:get_properties().eye_height * 100) ~= 147 and not pcontrols.sneak then player:set_properties({ eye_height = 1.47,