summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-03-08 21:02:58 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2017-03-08 21:02:58 +0000
commitaeb71b08b9e0d452bda4ecbbc614ff857e4902d3 (patch)
tree739ea21461b71eb50e0742d1950482cc317baccd
parentbebb27f14197c5b217fc31731d5298b9e8adaf4d (diff)
fishing rods catch fish/items from ethereal.fish table
-rw-r--r--fishing.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/fishing.lua b/fishing.lua
index 32c9aa1..9640ba3 100644
--- a/fishing.lua
+++ b/fishing.lua
@@ -71,14 +71,14 @@ minetest.register_craft({
})
-- default ethereal fish
-local fish = {
+ethereal.fish = {
{"ethereal:fish_raw"},
}
-- xanadu server additional fish
if minetest.get_modpath("xanadu") then
- fish[2] = {"mobs:clownfish_raw"}
- fish[3] = {"mobs:bluefish_raw"}
+ ethereal.fish[2] = {"mobs:clownfish_raw"}
+ ethereal.fish[3] = {"mobs:bluefish_raw"}
end
-- Fishing Rod (Baited)
@@ -101,7 +101,7 @@ minetest.register_craftitem("ethereal:fishing_rod_baited", {
or node == "default:river_water_source")
and math.random(1, 100) < 5 then
- local type = fish[math.random(1, #fish)][1]
+ local type = ethereal.fish[math.random(1, #ethereal.fish)][1]
local inv = user:get_inventory()
if inv:room_for_item("main", {name = type}) then