From f63695d5775bf99b82525cc3f6955892bc9b33f9 Mon Sep 17 00:00:00 2001 From: oilboi <47129783+oilboi@users.noreply.github.com> Date: Mon, 1 Jun 2020 23:35:52 -0400 Subject: [PATCH] Push broken sheep for now --- mods/mob/init.lua | 61 ++++++++++++++++++++++++++++++++ mods/mob/models/sheep.b3d | Bin 0 -> 52649 bytes mods/mob/textures/sheep.png | Bin 0 -> 1723 bytes mods/mob/textures/sheep_fur.png | Bin 0 -> 1306 bytes 4 files changed, 61 insertions(+) create mode 100644 mods/mob/models/sheep.b3d create mode 100644 mods/mob/textures/sheep.png create mode 100644 mods/mob/textures/sheep_fur.png diff --git a/mods/mob/init.lua b/mods/mob/init.lua index aeeb89d..b581d2b 100644 --- a/mods/mob/init.lua +++ b/mods/mob/init.lua @@ -74,6 +74,67 @@ mobs.register_mob( } ) +mobs.register_mob( + { + mobname = "sheep", + physical = true, + collide_with_objects = false, + collisionbox = {-0.37, 0, -0.37, 0.37, 0.85, 0.37}, + visual = "mesh", + visual_size = {x = 3, y = 3}, + mesh = "sheep.b3d", + textures = { + --blank out the first two to create adult pig + "nothing.png","sheep.png" + }, + + --these are used to anchor a point to the head position + + + ----- + head_bone = "head", + debug_head_pos = false, + head_directional_offset = 0.5, --used in vector.multiply(minetest.yaw_to_dir(body_yaw),head_offset) + head_height_offset = 0.8, --added to the base y position + --use this to correct the head position initially because it becomes severly offset - look at your blender model to get this perfect + head_position_correction = vector.new(0,3,-0.5), + --this is used to tell the game the orientation of the bone (swaps x to and y, then z and y) + head_coord = "horizontal", + ----- + + is_visible = true, + pointable = true, + automatic_face_movement_dir = 0, + automatic_face_movement_max_rotation_per_sec = 300, + makes_footstep_sound = false, + hp = 10, + gravity = {x = 0, y = -9.81, z = 0}, + movement_type = "walk", + max_speed = 5, + state = 0, + view_distance = 15, + + item_drop = "mob:raw_porkchop", + standing_frame = {x=0,y=0}, + moving_frame = {x=0,y=40}, + animation_multiplier = 20, + ---- + ---- + death_rotation = "x", + + hurt_sound = "pig", + die_sound = "pig_die", + + + hostile = false, + attacked_hostile = false, + attack_type = "punch", + group_attack = true, + --explosion_radius = 4, -- how far away the mob has to be to initialize the explosion + --explosion_power = 7, -- how big the explosion has to be + --explosion_time = 3, -- how long it takes for a mob to explode + } +) mobs.register_mob( { diff --git a/mods/mob/models/sheep.b3d b/mods/mob/models/sheep.b3d new file mode 100644 index 0000000000000000000000000000000000000000..5381adf9c2b3e5e965d1bdb0aee1af15e38cf7a6 GIT binary patch literal 52649 zcmeHQ378bc^>5B4E&|FOM3!siP}rSeXFyVt!?O@Gq$J8^w1H__?E#_2gNS|w)I-o4#%>d{@y7vO(H{AjzqY4DvR6$XD#G5CLQ z-9!(A-?~LHox7(P75r_)H}zNXm41Kz)XMAo>jz)z7Y1LTe@cI%l5gl2xW6jCyuQfB z&!*q7kG#IJU#H6J8}^mguj1R;*ErvAe1yUG(=YzL{teOn5Acu5`wJLf@Li05fPJA~ z@%`;vd47O@)zjx^^UsX;|MR2KaSBhldYmOGC2?;U*|XGbyk`9Ir~INsnZ{{cTy z$v+gkM9z;Y|H9N%eCYp|!B^uCzS8f{-$C=I>iX67gD>?9^pE+5e_vC{H}o6+0lw5P zvhlO&H|%51zoV|t_BG~5;;8Fq;%CvHb$oDtna0<+e`9{ZK8{1pw@ z{#7+T{`RfZFYnK1{K^01^|Rf-^bhvmYUA_HuBZFHvv!?0-0T{0wEw%LzeIq4+wDJ2 zn0)2`;OABHm*&>1Tt5`waWxp zzM`Pul{^c(gu?CTtLeYT(B|KL|$KNCNbew*>Z{h8yZ>|Zs$#{C=q5BoS7 z?1TPS@%{U+{KNnH(4T4ilzx4GKI0Gnuk=6j{!IVW{$ciy{Zn55qm!>r`}a@T2Ykc+ z=_-7o{9p5{_fPr1)^GAn{}1N7)V~rDtRMV5F?#>w+cNnl_{R8F^M4zDHvNWus`tA{Bz4CwXe@^k$_;16{q#yP%_|@VQ_{Q}m-}L`r`@=sSXML8*N6U07f1CCJ-#EXTeZe>UBW>V+7xx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9lqPTRW>NSsfnj06 vMbP0l+XkK(@`f2 literal 0 HcmV?d00001 diff --git a/mods/mob/textures/sheep_fur.png b/mods/mob/textures/sheep_fur.png new file mode 100644 index 0000000000000000000000000000000000000000..4c30c1997bbd8d25bc32c08a0c539d9fddfe99c6 GIT binary patch literal 1306 zcmeAS@N?(olHy`uVBq!ia0vp^4nVBH!3-p)I`?g3U|?nl@Ck7Ra$5@1XSdgEo!ftA z=lX{ikGy?w`Tv&}K=Dy98Un*U1m=G}DhKo=V@Z%-FoVOh8)+a;lDE4HLkFv@2av;A z;1OBOz`)H9!i8^4AAgx!tn^8b4@6K+0?&SSdX{{Tp>e#d$Z|q@>b&9I_!Pd+4qnc^S zY>n0!29DG06@sTl4_t{|>m`wWgv%jo-Mufo3^~2#i`R=Ytnw*U49R{}cVBtlk%l>2 z@3IRl)0$kYxcyri(_PI>!?R+WZ=5w-u7BzN%fj_#DbC4)n>6a?2*`5GidSBq#%l0N z`P0gll==`!oyOwshu?J>^3s|cF1%_i;jwe8U(aGyG3CHt&wU?X%#e5?6wY?-_5`Vh z3=#G_lc%;bU)J7Ma?sgbe2cUc(-9S=*<7n78!foA#UJG)hlq0}huwN5u+UYE;d#p6 zE{z&L){66f{tUiK;q9s7dP-%SY4Qs`*lAUWU;nyhgYbh3iz0k)NU!{}*=lZ!@1l|! z-aj61VBfv4u`1jk@Ec!Dke#c}(#%x;`*P`)$0M`mtUS;g{QLf6b{#X`vfrn&?gC?s N!PC{xWt~$(698gD;aLCx literal 0 HcmV?d00001