Mehr Mods hinzugefügt
This commit is contained in:
parent
92a55732cf
commit
9e345a25fb
2805 changed files with 2096013 additions and 0 deletions
21
mods/mobs_water/mobs_jellyfish/License.txt
Normal file
21
mods/mobs_water/mobs_jellyfish/License.txt
Normal file
|
@ -0,0 +1,21 @@
|
|||
Licenses
|
||||
|
||||
Code: MIT
|
||||
Model/Textures: WTFPL
|
||||
Author: blert2112
|
||||
|
||||
***************
|
||||
|
||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||
Version 2, December 2004
|
||||
|
||||
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim or modified
|
||||
copies of this license document, and changing it is allowed as long
|
||||
as the name is changed.
|
||||
|
||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. You just DO WHAT THE FUCK YOU WANT TO.
|
68
mods/mobs_water/mobs_jellyfish/init.lua
Normal file
68
mods/mobs_water/mobs_jellyfish/init.lua
Normal file
|
@ -0,0 +1,68 @@
|
|||
|
||||
-- mineclone check
|
||||
|
||||
local mod_mcl = core.get_modpath("mcl_core")
|
||||
|
||||
-- jellyfish definition
|
||||
|
||||
mobs:register_mob("mobs_jellyfish:jellyfish", {
|
||||
type = "monster",
|
||||
attack_type = "dogfight",
|
||||
passive = false,
|
||||
damage = 5,
|
||||
reach = 1.1,
|
||||
hp_min = 5,
|
||||
hp_max = 10,
|
||||
armor = 100,
|
||||
collisionbox = {-0.1, -0.25, -0.1, 0.1, 0.25, 0.1},
|
||||
visual = "mesh",
|
||||
mesh = "jellyfish.b3d",
|
||||
textures = {
|
||||
{"jellyfish.png"}
|
||||
},
|
||||
makes_footstep_sound = false,
|
||||
walk_velocity = 0.1,
|
||||
run_velocity = 0.1,
|
||||
fly = true,
|
||||
fly_in = (mod_mcl and "mcl_core:water_source" or "default:water_source"),
|
||||
stepheight = 0,
|
||||
fall_speed = 0,
|
||||
view_range = 10,
|
||||
water_damage = 0,
|
||||
lava_damage = 5,
|
||||
light_damage = 0,
|
||||
|
||||
on_rightclick = function(self, clicker)
|
||||
mobs:capture_mob(self, clicker, 80, 100, 0, true, "mobs_jellyfish:jellyfish")
|
||||
end
|
||||
})
|
||||
|
||||
-- Check for custom spawn.lua
|
||||
|
||||
local MP = core.get_modpath(core.get_current_modname()) .. "/"
|
||||
local input = io.open(MP .. "spawn.lua", "r")
|
||||
|
||||
if input then
|
||||
input:close() ; input = nil ; dofile(MP .. "spawn.lua")
|
||||
else
|
||||
mobs:spawn({
|
||||
name = "mobs_jellyfish:jellyfish",
|
||||
nodes = {(mod_mcl and "mcl_core:water_source" or "default:water_source")},
|
||||
neighbors = {"group:water"},
|
||||
min_light = 5,
|
||||
interval = 30,
|
||||
chance = 10000,
|
||||
max_height = 0
|
||||
})
|
||||
end
|
||||
|
||||
-- spawn egg
|
||||
|
||||
mobs:register_egg("mobs_jellyfish:jellyfish", "Jellyfish", "jellyfish_inv.png", 0)
|
||||
|
||||
-- compatibility
|
||||
|
||||
core.register_alias("mobs_jellyfish:jellyfish_set", "mobs_jellyfish:jellyfish")
|
||||
|
||||
|
||||
print("[MOD] Mobs Redo Jellyfish loaded")
|
4
mods/mobs_water/mobs_jellyfish/mod.conf
Normal file
4
mods/mobs_water/mobs_jellyfish/mod.conf
Normal file
|
@ -0,0 +1,4 @@
|
|||
name = mobs_jellyfish
|
||||
description = Adds jellyfish into your world.
|
||||
depends = mobs
|
||||
min_minetest_version = 5.0
|
BIN
mods/mobs_water/mobs_jellyfish/models/jellyfish.b3d
Normal file
BIN
mods/mobs_water/mobs_jellyfish/models/jellyfish.b3d
Normal file
Binary file not shown.
12
mods/mobs_water/mobs_jellyfish/spawn_example.lua
Normal file
12
mods/mobs_water/mobs_jellyfish/spawn_example.lua
Normal file
|
@ -0,0 +1,12 @@
|
|||
|
||||
-- Jellyfish spawn example
|
||||
|
||||
mobs:spawn({
|
||||
name = "mobs_jellyfish:jellyfish",
|
||||
nodes = {"default:water_source"},
|
||||
neighbors = {"group:water"},
|
||||
min_light = 5,
|
||||
interval = 30,
|
||||
chance = 10000,
|
||||
max_height = 0
|
||||
})
|
BIN
mods/mobs_water/mobs_jellyfish/textures/jellyfish.png
Normal file
BIN
mods/mobs_water/mobs_jellyfish/textures/jellyfish.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 10 KiB |
BIN
mods/mobs_water/mobs_jellyfish/textures/jellyfish_inv.png
Normal file
BIN
mods/mobs_water/mobs_jellyfish/textures/jellyfish_inv.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.7 KiB |
Loading…
Add table
Add a link
Reference in a new issue