diff --git a/darts.lua b/darts.lua index d40bc0f..46230c5 100644 --- a/darts.lua +++ b/darts.lua @@ -201,12 +201,12 @@ mobs:register_arrow("nssm:phoenix_arrow", { self.timer = os.time() end - if os.time() - self.timer > 5 or minetest.is_protected(pos, "") or ((n~="air") and (n~="fire:basic_flame")) then + if os.time() - self.timer > 5 or minetest.is_protected(pos, "") or ((n~="air") and (n~="nssm:phoenix_fire")) then self.object:remove() end if math.random(1,2)==2 then - minetest.env:set_node(pos, {name="fire:basic_flame"}) + minetest.env:set_node(pos, {name="nssm:phoenix_fire"}) end if math.random(1,6)==1 then @@ -216,7 +216,7 @@ mobs:register_arrow("nssm:phoenix_arrow", { local p = {x=pos.x+dx, y=pos.y+dy, z=pos.z+dz} local n = minetest.env:get_node(p).name if n=="air" then - minetest.env:set_node(p, {name="fire:basic_flame"}) + minetest.env:set_node(p, {name="nssm:phoenix_fire"}) end end diff --git a/nssm_armor.lua b/nssm_armor.lua index 89d50f6..f19fbbd 100644 --- a/nssm_armor.lua +++ b/nssm_armor.lua @@ -1,16 +1,16 @@ if minetest.get_modpath("3d_armor") then --Armors local stats = { - wolf = {name="Werewolf", armor=1, heal=0, use=10}, - whitewolf = {name="White Werewolf", armor=1, heal=0, use=10}, - bloco = {name="Bloco", armor=1, heal=0, use=10}, - croco = {name="Crocodile", armor=1, heal=0, use=10}, - ant = {name="Ant", armor=1, heal=0}, - ice = {name="Ice Teeth", armor=1, heal=0, use=10}, - felucco = {name="Felucco", armor=1, heal=0, use=10}, - manticore = {name="Manticore", armor=1, heal=0, use=10}, - duck = {name="Duck", armor=1, heal=0, use=10}, - black_duck = {name="Black Duck", armor=1, heal=0, use=10}, + wolf = {name="Werewolf", armor=1.7, heal=0, use=1100}, + whitewolf = {name="White Werewolf", armor=1.7, heal=0, use=1100}, + bloco = {name="Bloco", armor=2.5, heal=0, use=800}, + croco = {name="Crocodile", armor=1.6, heal=0, use=600}, + ant = {name="Ant", armor=2, heal=0, use=500}, + ice = {name="Ice Teeth", armor=2.2, heal=0, use=600}, + felucco = {name="Felucco", armor=1.7, heal=0, use=1000}, + manticore = {name="Manticore", armor=2.2, heal=0, use=900}, + duck = {name="Duck", armor=1, heal=0, use=2000}, + black_duck = {name="Black Duck", armor=1, heal=0, use=1800}, } local materials = { wolf="nssm:wolf_fur", @@ -29,25 +29,25 @@ if minetest.get_modpath("3d_armor") then minetest.register_tool("nssm:helmet_"..k, { description = v.name.." Helmet", inventory_image ="inv_helmet_"..k..".png", - groups = {armor_head=math.floor(5*v.armor), armor_heal=v.heal, armor_use=v.use}, + groups = {armor_head=math.floor(4*v.armor), armor_heal=v.heal, armor_use=v.use}, wear = 0, }) minetest.register_tool("nssm:chestplate_"..k, { description = v.name.." Chestplate", inventory_image ="inv_chestplate_"..k..".png", - groups = {armor_torso=math.floor(8*v.armor), armor_heal=v.heal, armor_use=v.use}, + groups = {armor_torso=math.floor(6*v.armor), armor_heal=v.heal, armor_use=v.use}, wear = 0, }) minetest.register_tool("nssm:leggings_"..k, { description = v.name.." Leggings", inventory_image = "inv_leggings_"..k..".png", - groups = {armor_legs=math.floor(7*v.armor), armor_heal=v.heal, armor_use=v.use}, + groups = {armor_legs=math.floor(5*v.armor), armor_heal=v.heal, armor_use=v.use}, wear = 0, }) minetest.register_tool("nssm:boots_"..k, { description = v.name.." Boots", inventory_image ="inv_boots_"..k..".png", - groups = {armor_feet=math.floor(4*v.armor), armor_heal=v.heal, armor_use=v.use}, + groups = {armor_feet=math.floor(3*v.armor), armor_heal=v.heal, armor_use=v.use}, wear = 0, }) end @@ -88,8 +88,8 @@ if minetest.get_modpath("3d_armor") then --shields if minetest.get_modpath("shields") then local stats = { - crab = {name="Crab", armor=1, heal=0, use=10}, - ice ={name="Ice Teeth", armor=1, heal=0, use=10} + crab = {name="Crab", armor=4, heal=0, use=500}, + ice ={name="Ice Teeth", armor=3, heal=0, use=600} } local materials = { crab="nssm:crab_carapace_fragment", @@ -121,16 +121,12 @@ if minetest.get_modpath("3d_armor") then local stats = { - pumpking = {name="Pumpking Head", armor=1, heal=0, use=10}, - masticone ={name="Masticone Head", armor=1, heal=0, use=10}, - crown ={name="Dukking Crown", armor=1, heal=0, use=10}, - masticone_crowned ={name="Masticone Crowned Head", armor=1, heal=0, use=10}, - snake ={name="", armor=1, heal=0, use=10}, + pumpking = {name="Pumpking Head", armor=3, heal=0, use=100}, + masticone ={name="Masticone Head", armor=4, heal=0, use=100}, + crown ={name="Dukking Crown", armor=2, heal=0, use=50}, + masticone_crowned ={name="Masticone Crowned Head", armor=6, heal=0, use=20}, } - --[[local materials = { - crab="nssm:crab_carapace_fragment", - ice="nssm:little_ice_tooth", - }]] + for k, v in pairs(stats) do minetest.register_tool("nssm:helmet_"..k, { description = v.name.." ", @@ -142,7 +138,7 @@ local stats = { minetest.register_tool("nssm:chestplate_snake", { description = "Snake Scute Chestplate", inventory_image ="inv_chestplate_snake.png", - groups = {armor_torso=math.floor(8*v.armor), armor_heal=v.heal, armor_use=v.use}, + groups = {armor_torso=40, armor_heal=0, armor_use=100}, wear = 0, }) end diff --git a/nssm_materials.lua b/nssm_materials.lua index f3afec1..39aa9d7 100644 --- a/nssm_materials.lua +++ b/nssm_materials.lua @@ -349,8 +349,33 @@ minetest.register_abm({ end }) +minetest.register_node("nssm:phoenix_fire", { + description = "Phoenix Fire", + drawtype = "firelike", + tiles = {{ + name = "phoenix_fire_animated.png", + animation = {type = "vertical_frames", + aspect_w = 16, aspect_h = 16, length = 1}, + }}, + inventory_image = "phoenix_fire.png", + light_source = 15, + groups = {igniter = 1, snappy=1}, + drop = '', + walkable = false, + buildable_to = false, + damage_per_second = 4, + }) - +minetest.register_abm({ + nodenames = {"nssm:phoenix_fire"}, + neighbors = {"air"}, + interval = 3, + chance = 2, + action = function(pos, node) + minetest.set_node({x = pos.x, y = pos.y , z = pos.z}, {name = "air"}) + end +}) + --tools minetest.register_tool('nssm:sun_sword', { diff --git a/textures/nssm_boots_ant.png b/textures/nssm_boots_ant.png index df9033e..4f37b52 100644 Binary files a/textures/nssm_boots_ant.png and b/textures/nssm_boots_ant.png differ diff --git a/textures/nssm_boots_black_duck.png b/textures/nssm_boots_black_duck.png index c70e193..c6a7c0a 100644 Binary files a/textures/nssm_boots_black_duck.png and b/textures/nssm_boots_black_duck.png differ diff --git a/textures/nssm_boots_bloco.png b/textures/nssm_boots_bloco.png index 4213348..19a5cb6 100644 Binary files a/textures/nssm_boots_bloco.png and b/textures/nssm_boots_bloco.png differ diff --git a/textures/nssm_boots_croco.png b/textures/nssm_boots_croco.png index 6e76e6b..37fe6ef 100644 Binary files a/textures/nssm_boots_croco.png and b/textures/nssm_boots_croco.png differ diff --git a/textures/nssm_boots_duck.png b/textures/nssm_boots_duck.png index 3821bac..ef60695 100644 Binary files a/textures/nssm_boots_duck.png and b/textures/nssm_boots_duck.png differ diff --git a/textures/nssm_boots_felucco.png b/textures/nssm_boots_felucco.png index 4ead053..2514ad0 100644 Binary files a/textures/nssm_boots_felucco.png and b/textures/nssm_boots_felucco.png differ diff --git a/textures/nssm_boots_ice.png b/textures/nssm_boots_ice.png index b25ed95..2ff64b7 100644 Binary files a/textures/nssm_boots_ice.png and b/textures/nssm_boots_ice.png differ diff --git a/textures/nssm_boots_manticore.png b/textures/nssm_boots_manticore.png index a0d1fe4..54b5706 100644 Binary files a/textures/nssm_boots_manticore.png and b/textures/nssm_boots_manticore.png differ diff --git a/textures/nssm_boots_whitewolf.png b/textures/nssm_boots_whitewolf.png index 5b223a9..8d502c8 100644 Binary files a/textures/nssm_boots_whitewolf.png and b/textures/nssm_boots_whitewolf.png differ diff --git a/textures/nssm_boots_wolf.png b/textures/nssm_boots_wolf.png index fd583be..aa18625 100644 Binary files a/textures/nssm_boots_wolf.png and b/textures/nssm_boots_wolf.png differ diff --git a/textures/nssm_leggings_ant.png b/textures/nssm_leggings_ant.png index 4f37b52..df9033e 100644 Binary files a/textures/nssm_leggings_ant.png and b/textures/nssm_leggings_ant.png differ diff --git a/textures/nssm_leggings_black_duck.png b/textures/nssm_leggings_black_duck.png index c6a7c0a..c70e193 100644 Binary files a/textures/nssm_leggings_black_duck.png and b/textures/nssm_leggings_black_duck.png differ diff --git a/textures/nssm_leggings_bloco.png b/textures/nssm_leggings_bloco.png index 19a5cb6..4213348 100644 Binary files a/textures/nssm_leggings_bloco.png and b/textures/nssm_leggings_bloco.png differ diff --git a/textures/nssm_leggings_croco.png b/textures/nssm_leggings_croco.png index 37fe6ef..6e76e6b 100644 Binary files a/textures/nssm_leggings_croco.png and b/textures/nssm_leggings_croco.png differ diff --git a/textures/nssm_leggings_duck.png b/textures/nssm_leggings_duck.png index ef60695..3821bac 100644 Binary files a/textures/nssm_leggings_duck.png and b/textures/nssm_leggings_duck.png differ diff --git a/textures/nssm_leggings_felucco.png b/textures/nssm_leggings_felucco.png index 2514ad0..4ead053 100644 Binary files a/textures/nssm_leggings_felucco.png and b/textures/nssm_leggings_felucco.png differ diff --git a/textures/nssm_leggings_ice.png b/textures/nssm_leggings_ice.png index 2ff64b7..b25ed95 100644 Binary files a/textures/nssm_leggings_ice.png and b/textures/nssm_leggings_ice.png differ diff --git a/textures/nssm_leggings_manticore.png b/textures/nssm_leggings_manticore.png index 54b5706..a0d1fe4 100644 Binary files a/textures/nssm_leggings_manticore.png and b/textures/nssm_leggings_manticore.png differ diff --git a/textures/nssm_leggings_whitewolf.png b/textures/nssm_leggings_whitewolf.png index 8d502c8..5b223a9 100644 Binary files a/textures/nssm_leggings_whitewolf.png and b/textures/nssm_leggings_whitewolf.png differ diff --git a/textures/nssm_leggings_wolf.png b/textures/nssm_leggings_wolf.png index aa18625..fd583be 100644 Binary files a/textures/nssm_leggings_wolf.png and b/textures/nssm_leggings_wolf.png differ diff --git a/textures/phoenix_fire.png b/textures/phoenix_fire.png new file mode 100644 index 0000000..944e96c Binary files /dev/null and b/textures/phoenix_fire.png differ diff --git a/textures/phoenix_fire_animated.png b/textures/phoenix_fire_animated.png new file mode 100644 index 0000000..6b13589 Binary files /dev/null and b/textures/phoenix_fire_animated.png differ