]> git.lizzy.rs Git - Crafter.git/commitdiff
Add in prototype spider
authoroilboi <47129783+oilboi@users.noreply.github.com>
Wed, 20 May 2020 01:14:50 +0000 (21:14 -0400)
committeroilboi <47129783+oilboi@users.noreply.github.com>
Wed, 20 May 2020 01:14:50 +0000 (21:14 -0400)
README.md
mods/mob/init.lua
mods/mob/models/spider.b3d [new file with mode: 0644]
mods/mob/textures/spider.png [new file with mode: 0644]

index 753db283b780e4ebb4296fa2238fb7e479f5ae5f..3e7e867bee250291e6e46d618853e333188c50ae 100644 (file)
--- a/README.md
+++ b/README.md
@@ -116,6 +116,17 @@ enable_mod_channels = true
 - Fixed boat scaling
 - Use gerold55's nice xp orb texture
 - Updated readme.md
+- Added nitro creeper and it spawns in the nether
+- Added damage texture modifier
+- Add in custom explodey mob color modifier
+- Add in custom blink timer for explodey mobs
+- Overhauled drowning
+- Drowning now takes away a full heart
+- Overhauled mob jumping
+- Added in 22i's slime model
+- Exploding mobs now instantly dissapear when detonated
+- Added in gunpowder and tnt is now made from it
+- Added in prototype spider
 ---
 
 
index 4a5686a2fdf4d21b57d032b33147a36961f33a52..0c51b0dff299c9994f7f7205efe2f123906e638f 100644 (file)
@@ -553,3 +553,66 @@ mobs.register_mob(
         --die_in_light_level = 12,
        }
 )
+
+
+mobs.register_mob(
+       {
+        mobname = "spider",
+        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 = "spider.b3d",
+        textures = {
+                --blank out the first two to create adult pig
+               "spider.png"
+        },
+        
+        --these are used to anchor a point to the head position
+
+
+        -----
+        --head_bone = "body.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=21,y=21},
+        moving_frame = {x=0,y=20},
+        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
+       }
+)
\ No newline at end of file
diff --git a/mods/mob/models/spider.b3d b/mods/mob/models/spider.b3d
new file mode 100644 (file)
index 0000000..b5ef596
Binary files /dev/null and b/mods/mob/models/spider.b3d differ
diff --git a/mods/mob/textures/spider.png b/mods/mob/textures/spider.png
new file mode 100644 (file)
index 0000000..155544c
Binary files /dev/null and b/mods/mob/textures/spider.png differ