mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-24 17:50:37 +01:00
add pole perfect deco and textures
add pole perfect deco cp textures pole_deco to pole_perfect_deco (simple fix, new textures must will be created) fix missing variable BooTSWear in bobber_shark.lua reindent code
This commit is contained in:
parent
2240d7fa0c
commit
74e7f5ca44
@ -12,6 +12,8 @@ else
|
||||
S = function ( s ) return s end
|
||||
end
|
||||
|
||||
local PoLeWeaR = (65535/(30-(math.random(15, 29))))
|
||||
local BooTSWear = (2000*(math.random(20, 29)))
|
||||
-- Here's what you can catch if you use a fish as bait
|
||||
local CaTCH_BiG = {
|
||||
-- MoD iTeM WeaR MeSSaGe ("You caught "..) GeTBaiTBack NRMiN CHaNCe (../120)
|
||||
|
@ -187,7 +187,7 @@ minetest.register_tool("fishing:pole_perfect", {
|
||||
local direction = minetest.dir_to_facedir(placer:get_look_dir())
|
||||
--local meta1 = minetest.get_meta(pt.under)
|
||||
local meta = minetest.get_meta(pt.above)
|
||||
minetest.set_node(pt.above, {name="fishing:pole_deco", param2=direction})
|
||||
minetest.set_node(pt.above, {name="fishing:pole_perfect_deco", param2=direction})
|
||||
--meta1:set_int("wear", wear)
|
||||
meta:set_int("wear", wear)
|
||||
if not minetest.setting_getbool("creative_mode") then
|
||||
@ -199,6 +199,7 @@ minetest.register_tool("fishing:pole_perfect", {
|
||||
})
|
||||
|
||||
if SIMPLE_DECO_FISHING_POLE == true then
|
||||
--Canne à pêche deco
|
||||
minetest.register_node("fishing:pole_deco", {
|
||||
description = S("Fishing Pole"),
|
||||
inventory_image = "fishing_pole.png",
|
||||
@ -240,7 +241,51 @@ minetest.register_node("fishing:pole_deco", {
|
||||
end,
|
||||
})
|
||||
|
||||
--Canne à pêche parfaite deco
|
||||
minetest.register_node("fishing:pole_perfect_deco", {
|
||||
description = S("Perfect Fishing Pole"),
|
||||
inventory_image = "fishing_pole_perfect.png",
|
||||
wield_image = "fishing_pole_perfect.png^[transformFXR270",
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
tiles = {
|
||||
"fishing_pole_perfect_simple.png",
|
||||
"fishing_pole_perfect_simple.png",
|
||||
"fishing_pole_perfect_simple.png",
|
||||
"fishing_pole_perfect_simple.png^[transformFX",
|
||||
},
|
||||
groups = {
|
||||
snappy=3,
|
||||
flammable=2,
|
||||
not_in_creative_inventory=1
|
||||
},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ 0 , -1/2 , 0 , 0 , 1/2 , 1 },
|
||||
}
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-1/16 , -1/2 , 0 , 1/16 , 1/2 , 1 },
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_dig = function(pos, node, digger)
|
||||
if digger:is_player() and digger:get_inventory() then
|
||||
local meta = minetest.get_meta(pos)
|
||||
local wear_out = meta:get_int("wear")
|
||||
digger:get_inventory():add_item("main", {name="fishing:pole_perfect", count=1, wear=wear_out, metadata=""})
|
||||
end
|
||||
minetest.remove_node(pos)
|
||||
end,
|
||||
})
|
||||
|
||||
|
||||
else
|
||||
--Canne à pêche deco
|
||||
minetest.register_node("fishing:pole_deco", {
|
||||
description = S("Fishing Pole"),
|
||||
inventory_image = "fishing_pole.png",
|
||||
@ -304,6 +349,69 @@ minetest.register_node("fishing:pole_deco", {
|
||||
end,
|
||||
})
|
||||
|
||||
--Canne à pêche parfaite deco
|
||||
minetest.register_node("fishing:pole_perfect_deco", {
|
||||
description = S("Fishing Pole"),
|
||||
inventory_image = "fishing_pole_perfect.png",
|
||||
wield_image = "fishing_pole_perfect.png^[transformFXR270",
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
tiles = {
|
||||
"fishing_pole_perfect_top.png",
|
||||
"fishing_pole_perfect_bottom.png",
|
||||
"fishing_pole_perfect_deco.png", -- right
|
||||
"fishing_pole_perfect_deco.png^[transformFX", -- left
|
||||
"fishing_pole_perfect_back.png",
|
||||
"fishing_pole_perfect_front.png"
|
||||
},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
-- { left , bottom , front , right , top , back }
|
||||
fixed = {
|
||||
{-1/32 , -1/16 , 14/16 , 1/32 , 6/16 , 15/16},
|
||||
{-1/32 , -3/16 , 13/16 , 1/32 , -1/16 , 14/16},
|
||||
{-1/32 , -4/16 , 12/16 , 1/32 , -3/16 , 13/16},
|
||||
{-1/32 , -5/16 , 11/16 , 1/32 , -4/16 , 12/16},
|
||||
{-1/32 , -6/16 , 9/16 , 1/32 , -5/16 , 11/16},
|
||||
{-1/32 , -5/16 , 9/16 , 1/32 , -4/16 , 10/16},
|
||||
-- stick
|
||||
{-1/32 , 6/16 , 12/16 , 1/32 , 7/16 , 15/16}, -- top
|
||||
{-1/32 , 5/16 , 11/16 , 1/32 , 7/16 , 12/16},
|
||||
{-1/32 , 5/16 , 10/16 , 1/32 , 6/16 , 11/16},
|
||||
{-1/32 , 4/16 , 9/16 , 1/32 , 6/16 , 10/16},
|
||||
{-1/32 , 3/16 , 8/16 , 1/32 , 5/16 , 9/16},
|
||||
{-1/32 , 2/16 , 7/16 , 1/32 , 4/16 , 8/16},
|
||||
{-1/32 , 1/16 , 6/16 , 1/32 , 3/16 , 7/16},
|
||||
{-1/32 , 0 , 5/16 , 1/32 , 2/16 , 6/16},
|
||||
{-1/32 , -2/16 , 4/16 , 1/32 , 1/16 , 5/16},
|
||||
{-1/32 , -3/16 , 3/16 , 1/32 , 0 , 4/16},
|
||||
{-1/32 , -5/16 , 2/16 , 1/32 , -1/16 , 3/16},
|
||||
{-1/32 , -7/16 , 1/16 , 1/32 , -3/16 , 2/16},
|
||||
{-1/32 , -1/2 , 0 , 1/32 , -5/16 , 1/16}, -- bottom
|
||||
}
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-1/16 , -1/2 , 0 , 1/16 , 1/2 , 1 },
|
||||
}
|
||||
},
|
||||
groups = {
|
||||
snappy=3,
|
||||
flammable=2,
|
||||
not_in_creative_inventory=1
|
||||
},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_dig = function(pos, node, digger)
|
||||
if digger:is_player() and digger:get_inventory() then
|
||||
local meta = minetest.get_meta(pos)
|
||||
local wear_out = meta:get_int("wear")
|
||||
digger:get_inventory():add_item("main", {name="fishing:pole_perfect", count=1, wear=wear_out, metadata=""})
|
||||
end
|
||||
minetest.remove_node(pos)
|
||||
end,
|
||||
})
|
||||
end
|
||||
-----------------------------------------------------------------------------------------------
|
||||
-- GETTING WORMS
|
||||
|
BIN
mods/fishing/textures/fishing_pole_perfect_back.png
Normal file
BIN
mods/fishing/textures/fishing_pole_perfect_back.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 235 B |
BIN
mods/fishing/textures/fishing_pole_perfect_bottom.png
Normal file
BIN
mods/fishing/textures/fishing_pole_perfect_bottom.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 215 B |
BIN
mods/fishing/textures/fishing_pole_perfect_front.png
Normal file
BIN
mods/fishing/textures/fishing_pole_perfect_front.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 214 B |
BIN
mods/fishing/textures/fishing_pole_perfect_simple.png
Normal file
BIN
mods/fishing/textures/fishing_pole_perfect_simple.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 303 B |
BIN
mods/fishing/textures/fishing_pole_perfect_top.png
Normal file
BIN
mods/fishing/textures/fishing_pole_perfect_top.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 197 B |
Loading…
Reference in New Issue
Block a user