1
0
Fork 0

Rename mobs mod to mcl_mobs

objects
Wuzzy 2018-05-31 18:32:26 +02:00
parent dafba9a07c
commit 34e92a361b
38 changed files with 39 additions and 44 deletions

4
API.md
View File

@ -38,13 +38,13 @@ A lot of things are possible by using one of the APIs in the mods. Note that not
* Dispenser support: `ITEMS/REDSTONE/mcl_dispensers`
## Mobs
* Mobs: `ENTITIES/mods`
* Mobs: `ENTITIES/mcl_mods`
MineClone 2 uses its own mobs framework, called “Mobs Redo: MineClone 2 Edition” or “MRM” for short.
This is a fork of Mobs Redo [`mobs`] by TenPlus1.
You can add your own mobs, spawn eggs and spawning rules with this mod.
API documnetation is included in `ENTITIES/mobs/api.txt`.
API documnetation is included in `ENTITIES/mcl_mobs/api.txt`.
This mod includes modificiations from the original Mobs Redo. Some items have been removed or moved to other mods.
The API is mostly identical, but a few features have been added. Compability is not really a goal,

View File

@ -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

View File

@ -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."),

View File

@ -0,0 +1 @@
Adds a mob API for mods to add animals or monsters, etc.

View 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")

View File

@ -0,0 +1,8 @@
if minetest.get_modpath("lucky_block") then
lucky_block:add_blocks({
{"dro", {"mcl_mobs:nametag"}, 1},
{"lig"},
})
end

View File

@ -0,0 +1 @@
name = mcl_mobs

View File

@ -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:

View File

Before

Width:  |  Height:  |  Size: 895 B

After

Width:  |  Height:  |  Size: 895 B

View File

Before

Width:  |  Height:  |  Size: 211 B

After

Width:  |  Height:  |  Size: 211 B

View File

@ -1 +0,0 @@
Adds a mob api for mods to add animals or monsters etc.

View File

@ -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")

View File

@ -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

View File

@ -1 +0,0 @@
name = mobs

View File

@ -1,9 +1,9 @@
default?
mobs
tnt?
mcl_mobs
mcl_tnt?
mcl_bows?
mcl_throwing?
fishing?
mcl_fishing?
bones?
mesecons_materials?
mobs_mc_gameconfig?

View File

@ -1 +1 @@
Adds MC like monsters and animals.
Adds Minecraft-like monsters and animals.

View File

@ -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

View File

@ -1,3 +1,4 @@
mcl_core
mcl_sounds
mcl_loot
mcl_mobs

View File

@ -52,7 +52,7 @@ local go_fishing = function(itemstack, user, pointed_thing)
{ itemstring = "mcl_books:book" },
-- TODO: Enchanted Fishing Rod
{ itemstring = "mcl_fishing:fishing_rod", wear_min = 49144, wear_max = 65535 }, -- 75%-100% damage
{ itemstring = "mobs:nametag", },
{ itemstring = "mcl_mobs:nametag", },
{ itemstring = "mcl_mobitems:saddle", },
{ itemstring = "mcl_flowers:waterlily", },
}

View File

@ -1,2 +1,2 @@
mcl_sounds
mobs
mcl_mobs

View File

@ -1,5 +1,6 @@
mcl_init
mcl_core
mcl_chests
mcl_mobs
mcl_mobspawners
mobs_mc

View File

@ -10,7 +10,7 @@ local get_loot = function()
stacks_min = 1,
stacks_max = 3,
items = {
{ itemstring = "mobs:nametag", weight = 20 },
{ itemstring = "mcl_mobs:nametag", weight = 20 },
{ itemstring = "mcl_mobitems:saddle", weight = 20 },
{ itemstring = "mcl_jukebox:record_1", weight = 15 },
{ itemstring = "mcl_jukebox:record_4", weight = 15 },

View File

@ -64,7 +64,7 @@ function tsm_railcorridors.get_treasures(pr)
stacks_min = 1,
stacks_max = 1,
items = {
{ itemstring = "mobs:nametag", weight = 30 },
{ itemstring = "mcl_mobs:nametag", weight = 30 },
{ itemstring = "mcl_core:apple_gold", weight = 20 },
{ itemstring = "mcl_books:book", weight = 10 }, -- TODO: Enchanted Book
{ itemstring = "", weight = 5},