1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-12-27 11:45:18 +01:00

Updated fishing mod from Xanthin fork

- I found recently that MossManikin's fishing mod is outdated: its last commit has been sent on August 2013. However, there are some forks of it. The mod updated is Xanthin's one. It updates API, and a little bit of global variables.
- Variables specifically modified for MFF have been changed to their last state.
- The fork works perfectly fine for 0.4.11-dev
- It can use intllib for translation
This commit is contained in:
LeMagnesium
2015-01-16 22:45:43 +01:00
parent 195e9ccee5
commit 84ead6a062
49 changed files with 214 additions and 48 deletions

14
mods/fishing/worm.lua Executable file → Normal file
View File

@@ -6,11 +6,21 @@
-- Looked at code from: my_mobs
-- Dependencies: default
-----------------------------------------------------------------------------------------------
-- Boilerplate to support localized strings if intllib mod is installed.
local S
if (minetest.get_modpath("intllib")) then
dofile(minetest.get_modpath("intllib").."/intllib.lua")
S = intllib.Getter(minetest.get_current_modname())
else
S = function ( s ) return s end
end
-----------------------------------------------------------------------------------------------
-- WORM ITEM
-----------------------------------------------------------------------------------------------
minetest.register_craftitem("fishing:bait_worm", {
description = "Worm",
description = S("Worm"),
groups = { fishing_bait=1 },
inventory_image = "fishing_worm.png",
on_use = minetest.item_eat(1),
@@ -115,4 +125,4 @@ minetest.register_entity("fishing:bait_worm_entity", {
end
look_whats_up(self)
end,
})
})