Rename mobs mod to mcl_mobs
This commit is contained in:
parent
dafba9a07c
commit
34e92a361b
38 changed files with 39 additions and 44 deletions
|
@ -2944,7 +2944,7 @@ local on_rightclick_prefix = function(self, clicker)
|
|||
local item = clicker:get_wielded_item()
|
||||
|
||||
-- Name mob with nametag
|
||||
if not self.ignores_nametag and item:get_name() == "mobs:nametag" then
|
||||
if not self.ignores_nametag and item:get_name() == "mcl_mobs:nametag" then
|
||||
|
||||
local tag = item:get_meta():get_string("name")
|
||||
if tag ~= "" then
|
|
@ -2,7 +2,7 @@
|
|||
local S = mobs.intllib
|
||||
|
||||
-- name tag
|
||||
minetest.register_craftitem("mobs:nametag", {
|
||||
minetest.register_craftitem("mcl_mobs:nametag", {
|
||||
description = S("Name Tag"),
|
||||
_doc_items_longdesc = S("A name tag is an item to name a mob."),
|
||||
_doc_items_usagehelp = S("Before you use the name tag, you need to set a name at an anvil. Now you can use the name tag to name a mob with a rightclick. This uses up the name tag."),
|
1
mods/ENTITIES/mcl_mobs/description.txt
Normal file
1
mods/ENTITIES/mcl_mobs/description.txt
Normal file
|
@ -0,0 +1 @@
|
|||
Adds a mob API for mods to add animals or monsters, etc.
|
13
mods/ENTITIES/mcl_mobs/init.lua
Normal file
13
mods/ENTITIES/mcl_mobs/init.lua
Normal file
|
@ -0,0 +1,13 @@
|
|||
|
||||
local path = minetest.get_modpath(minetest.get_current_modname())
|
||||
|
||||
-- Mob API
|
||||
dofile(path .. "/api.lua")
|
||||
|
||||
-- Rideable Mobs
|
||||
dofile(path .. "/mount.lua")
|
||||
|
||||
-- Mob Items
|
||||
dofile(path .. "/crafts.lua")
|
||||
|
||||
minetest.log("action", "[MOD] Mobs Redo: MineClone 2 Edition loaded")
|
8
mods/ENTITIES/mcl_mobs/lucky_block.lua
Normal file
8
mods/ENTITIES/mcl_mobs/lucky_block.lua
Normal file
|
@ -0,0 +1,8 @@
|
|||
|
||||
if minetest.get_modpath("lucky_block") then
|
||||
|
||||
lucky_block:add_blocks({
|
||||
{"dro", {"mcl_mobs:nametag"}, 1},
|
||||
{"lig"},
|
||||
})
|
||||
end
|
1
mods/ENTITIES/mcl_mobs/mod.conf
Normal file
1
mods/ENTITIES/mcl_mobs/mod.conf
Normal file
|
@ -0,0 +1 @@
|
|||
name = mcl_mobs
|
|
@ -15,7 +15,7 @@ Items:
|
|||
|
||||
- Nametag (paper, black dye, string) can be used right-click on a tamed mob to give them a name.
|
||||
|
||||
Lucky Blocks: 9
|
||||
Lucky Block items: 1
|
||||
|
||||
|
||||
Changelog from original Mobs Redo mod:
|
Before Width: | Height: | Size: 895 B After Width: | Height: | Size: 895 B |
Before Width: | Height: | Size: 211 B After Width: | Height: | Size: 211 B |
|
@ -1 +0,0 @@
|
|||
Adds a mob api for mods to add animals or monsters etc.
|
|
@ -1,13 +0,0 @@
|
|||
|
||||
local path = minetest.get_modpath("mobs")
|
||||
|
||||
-- Mob API
|
||||
dofile(path .. "/api.lua")
|
||||
|
||||
-- Rideable Mobs
|
||||
dofile(path .. "/mount.lua")
|
||||
|
||||
-- Mob Items
|
||||
dofile(path .. "/crafts.lua")
|
||||
|
||||
minetest.log("action", "[MOD] Mobs Redo loaded")
|
|
@ -1,15 +0,0 @@
|
|||
|
||||
if minetest.get_modpath("lucky_block") then
|
||||
|
||||
lucky_block:add_blocks({
|
||||
{"dro", {"mobs:meat_raw"}, 5},
|
||||
{"dro", {"mobs:meat"}, 5},
|
||||
{"dro", {"mobs:nametag"}, 1},
|
||||
{"dro", {"mobs:leather"}, 5},
|
||||
{"dro", {"mobs:net"}, 1},
|
||||
{"dro", {"mobs:lasso"}, 1},
|
||||
{"dro", {"mobs:shears"}, 1},
|
||||
{"dro", {"mobs:protector"}, 1},
|
||||
{"lig"},
|
||||
})
|
||||
end
|
|
@ -1 +0,0 @@
|
|||
name = mobs
|
|
@ -1,9 +1,9 @@
|
|||
default?
|
||||
mobs
|
||||
tnt?
|
||||
mcl_mobs
|
||||
mcl_tnt?
|
||||
mcl_bows?
|
||||
mcl_throwing?
|
||||
fishing?
|
||||
mcl_fishing?
|
||||
bones?
|
||||
mesecons_materials?
|
||||
mobs_mc_gameconfig?
|
||||
|
|
|
@ -1 +1 @@
|
|||
Adds MC like monsters and animals.
|
||||
Adds Minecraft-like monsters and animals.
|
||||
|
|
|
@ -98,5 +98,5 @@ COLISIONBOX in minetest press f5 to see where you are looking at then put these
|
|||
--
|
||||
|
||||
if minetest.settings:get_bool("log_mods") then
|
||||
minetest.log("action", "[MOD] Mobs Redo 'MC' loaded")
|
||||
minetest.log("action", "[MOD] mobs_mc loaded")
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue