Mehr Mods hinzugefügt
This commit is contained in:
parent
92a55732cf
commit
9e345a25fb
2805 changed files with 2096013 additions and 0 deletions
6
mods/mobs_sky/mobs_butterfly/License.txt
Normal file
6
mods/mobs_sky/mobs_butterfly/License.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
Licenses
|
||||
|
||||
Code: MIT
|
||||
Model/Textures: CC-BY-SA 3.0, Author AspireMint
|
||||
|
||||
texture modification by: blert2112
|
103
mods/mobs_sky/mobs_butterfly/init.lua
Normal file
103
mods/mobs_sky/mobs_butterfly/init.lua
Normal file
|
@ -0,0 +1,103 @@
|
|||
|
||||
-- mod check and settings
|
||||
|
||||
local butterfly_mod = core.get_modpath("butterflies")
|
||||
|
||||
local l_skins = {
|
||||
{"bf1.png^bf2.png^bf3.png^bf4.png^bf5.png"},
|
||||
{ "(bf1.png^[colorize:orange)"
|
||||
.."^(bf2.png^[colorize:violet)^(bf3.png^[colorize:yellow)"
|
||||
.."^(bf4.png^[colorize:cyan)^(bf5.png^[colorize:black)"
|
||||
},
|
||||
{ "(bf1.png^[colorize:magenta)"
|
||||
.."^(bf2.png^[colorize:green)"
|
||||
.."^(bf3.png^[colorize:red)"
|
||||
.."^(bf4.png^[colorize:blue)"
|
||||
.."^(bf5.png^[colorize:white)"
|
||||
},
|
||||
{ "(bf1.png^[colorize:yellow)"
|
||||
.."^(bf2.png^[colorize:cyan)"
|
||||
.."^(bf3.png^[colorize:green)"
|
||||
.."^(bf4.png^[colorize:violet)"
|
||||
.."^(bf5.png^[colorize:darkgray)"
|
||||
},
|
||||
{ "(bf1.png^[colorize:pink)"
|
||||
.."^(bf2.png^[colorize:white)"
|
||||
.."^(bf3.png^[colorize:blue)"
|
||||
.."^(bf4.png^[colorize:orange)"
|
||||
.."^(bf5.png^[colorize:gray)"
|
||||
},
|
||||
{ "(bf1.png^[colorize:darkgreen)"
|
||||
.."^(bf2.png^[colorize:brown)"
|
||||
.."^(bf3.png^[colorize:black)"
|
||||
.."^(bf4.png^[colorize:darkgray)"
|
||||
.."^(bf5.png^[colorize:red)"
|
||||
}
|
||||
}
|
||||
|
||||
local l_spawnnear = {"group:flower"}
|
||||
local l_spawnchance = 20000
|
||||
|
||||
-- Butterfly definition
|
||||
|
||||
mobs:register_mob("mobs_butterfly:butterfly", {
|
||||
type = "animal",
|
||||
passive = true,
|
||||
hp_min = 1,
|
||||
hp_max = 2,
|
||||
armor = 100,
|
||||
collisionbox = {-1, -0.3, -1, 1, 0.3, 1},
|
||||
visual = "mesh",
|
||||
mesh = "mobf_butterfly.x",
|
||||
textures = l_skins,
|
||||
walk_velocity = 2,
|
||||
fall_speed = 0,
|
||||
stepheight = 3,
|
||||
fly = true,
|
||||
water_damage = 1,
|
||||
lava_damage = 1,
|
||||
light_damage = 0,
|
||||
fall_damage = 0,
|
||||
view_range = 10,
|
||||
animation = {
|
||||
speed_normal = 15, speed_run = 30,
|
||||
stand_start = 0, stand_end = 90,
|
||||
walk_start = 0, walk_end = 90,
|
||||
fly_start = 0, fly_end = 90
|
||||
},
|
||||
--[[
|
||||
after_activate = function(self, staticdata, def, dtime)
|
||||
|
||||
if butterfly_mod then
|
||||
|
||||
local pos = self.object:get_pos()
|
||||
local butter = {"white", "red", "violet"}
|
||||
local replace = "butterflies:butterfly_" .. butter[math.random(#butter)]
|
||||
|
||||
core.set_node(pos, {name = replace})
|
||||
|
||||
self.object:remove()
|
||||
end
|
||||
end,
|
||||
]]
|
||||
on_rightclick = function(self, clicker)
|
||||
|
||||
-- if not butterfly_mod then
|
||||
mobs:capture_mob(self, clicker, 10, 80, 0, true, "mobs_butterfly:butterfly")
|
||||
-- end
|
||||
end
|
||||
})
|
||||
|
||||
--if not butterfly_mod then
|
||||
|
||||
-- spawn in world
|
||||
|
||||
mobs:spawn_specific("mobs_butterfly:butterfly", {"air"},
|
||||
l_spawnnear, 5, 20, 30, l_spawnchance, 1, 0, 31000)
|
||||
|
||||
-- spawn egg
|
||||
|
||||
mobs:register_egg("mobs_butterfly:butterfly", "Butterfly", "default_cloud.png", 1)
|
||||
--end
|
||||
|
||||
print("[MOD] Mobs Redo Butterfly loaded")
|
4
mods/mobs_sky/mobs_butterfly/mod.conf
Normal file
4
mods/mobs_sky/mobs_butterfly/mod.conf
Normal file
|
@ -0,0 +1,4 @@
|
|||
name = mobs_butterfly
|
||||
description = Adds butterflies into your world.
|
||||
depends = mobs
|
||||
min_minetest_version = 5.0
|
5902
mods/mobs_sky/mobs_butterfly/models/mobf_butterfly.x
Normal file
5902
mods/mobs_sky/mobs_butterfly/models/mobf_butterfly.x
Normal file
File diff suppressed because it is too large
Load diff
BIN
mods/mobs_sky/mobs_butterfly/textures/bf1.png
Normal file
BIN
mods/mobs_sky/mobs_butterfly/textures/bf1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
BIN
mods/mobs_sky/mobs_butterfly/textures/bf2.png
Normal file
BIN
mods/mobs_sky/mobs_butterfly/textures/bf2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
BIN
mods/mobs_sky/mobs_butterfly/textures/bf3.png
Normal file
BIN
mods/mobs_sky/mobs_butterfly/textures/bf3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
BIN
mods/mobs_sky/mobs_butterfly/textures/bf4.png
Normal file
BIN
mods/mobs_sky/mobs_butterfly/textures/bf4.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
BIN
mods/mobs_sky/mobs_butterfly/textures/bf5.png
Normal file
BIN
mods/mobs_sky/mobs_butterfly/textures/bf5.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
Loading…
Add table
Add a link
Reference in a new issue