[Mod] Armor and Weapons [armor]

Post Reply
Nubelite
Member
Posts: 161
Joined: Mon Jul 16, 2012 23:10

[Mod] Armor and Weapons [armor]

by Nubelite » Post

Modified versions of
cornernote's Armor Mod

License: WTFPL (on my modifications. The rest is all on the others license)

Download: Click Here

No picture is needed.

Details:
This is all balanced, including the default weapons. Items are the following in order of greatest to least titanium > damond > mithril > steel > bronze > wood. The higher armor offers more protection, the high weapons offer higher dmg. weapon and armor of the same ore do the same dmg for every armor. They also do the same one armor higher and lower. Titanium sword hitting diamond armor is like a diamond sword hitting mithril armor. but titanium sword hitting mithril does more dmg then to the diamond.

Armor details:
each piece of armor offers some protection where as the original did not, for weapon dmg. a full suite is required for its full protection, you can mix and match.

recipes are the same as in the two mods.


depends:
inventory_plus
InfinityProject's Diamonds
Aqua's Titanium
Calinou's MoreOres


Edit notes:
11/13
Changed stone so it does the same dmg as bronze, but can only last for 30 uses, where as bronze 100.
Added on MoreOres, which i forgot to add into the zip file.
Last edited by Nubelite on Thu Nov 22, 2012 21:20, edited 1 time in total.

User avatar
Aqua
Member
Posts: 641
Joined: Wed Aug 22, 2012 09:11
Location: Sydney~Singapore
Contact:

by Aqua » Post

I haven't tried this yet but this sounds wicked. Question: since it includes diamonds, titanium
and armor shouldn't it depend on those mods?
Last edited by Aqua on Tue Nov 13, 2012 05:18, edited 1 time in total.
Hi there ^.~

Nubelite
Member
Posts: 161
Joined: Mon Jul 16, 2012 23:10

by Nubelite » Post

The folder includes those mods so no :)
I modified the weapons in those mods along with a few other minor things. mostly just uses so all tools and items have the same use for the ore. Diamond has 700, diamond steel has 1000. the weapons do the same dmg just has more use. stone sword does same dmg as steel but far less uses.

User avatar
terminalerror
Member
Posts: 33
Joined: Tue Oct 30, 2012 22:46
Location: The Sar-Chasm

by terminalerror » Post

Why does stone do the same damage as steel?
ERROR[main]: ModError: Failed to load and run a sarcastic remark.

User avatar
InfinityProject
Member
Posts: 1009
Joined: Sat Mar 17, 2012 00:52
Location: World of Infinity, US

by InfinityProject » Post

I like it. Question: how does the game know when armour is in one of the slots of the formspec?

Nubelite
Member
Posts: 161
Joined: Mon Jul 16, 2012 23:10

by Nubelite » Post

terminalerror wrote:Why does stone do the same damage as steel?
Sorry, was editing 4 mods along with default and got a little mixed up lol. It is all good now, it does what bronze does but does not last as long.


InfinityProject wrote:I like it. Question: how does the game know when armour is in one of the slots of the formspec?
In the Armor folder api.lua it uses "armor.get_armor_level(player_inv:get_stack("armor_helmet", 1),"armor_helmet")" to get the players slot from the armor menu.

User avatar
InfinityProject
Member
Posts: 1009
Joined: Sat Mar 17, 2012 00:52
Location: World of Infinity, US

by InfinityProject » Post

Hmmmmm... I wonder if there's a way to add armor to the player's texture. *Goes to code*

User avatar
InfinityProject
Member
Posts: 1009
Joined: Sat Mar 17, 2012 00:52
Location: World of Infinity, US

by InfinityProject » Post

Just a quick thing I made. If it works right it will just work for the helmet right now. Just a test to see if it can be done. Has not been tested though.

Code: Select all

minetest.register_on_joinplayer(function(player)
    if armor.get_armor_level(player_inv:get_stack("armor_helmet", 1),"armor_helmet") then
        player:set_properties({
            textures = {"player.png^'armor_diamond_helmet.png"},
        })
    end
end)

User avatar
qwrwed
Member
Posts: 326
Joined: Sun Jul 22, 2012 20:56
In-game: qwrwed or Nitro

by qwrwed » Post

Aren't there gold and silver weapons and armour?

Nubelite
Member
Posts: 161
Joined: Mon Jul 16, 2012 23:10

by Nubelite » Post

qwrwed wrote:Aren't there gold and silver weapons and armour?
I decided to not have them because gold and silver is more for jewelry then dmg and protection. Maybe gold encrusted armor might be better, if the player changed pictures.

Iqualfragile
Member
Posts: 160
Joined: Tue Sep 18, 2012 22:11

by Iqualfragile » Post

please try to get your changes merged back into the main projects
or try to transform your mod into an addition to the other mods (i think that might be impossible)
Last edited by Iqualfragile on Sun Nov 18, 2012 21:22, edited 1 time in total.
Gr8 b8, m8. I rel8, str8 appreci8, and congratul8. I r8 this b8 an 8/8. Plz no h8, I'm str8 ir8. Cr8 more, can't w8. We should convers8, I won't ber8, my number is 8888888, ask for N8. No calls l8 or out of st8. If on a d8, ask K8 to loc8. Even with a full pl8, I always have time to communic8 so don't hesit8.

Nubelite
Member
Posts: 161
Joined: Mon Jul 16, 2012 23:10

by Nubelite » Post

That can be done for all the mods except the armor. I had to edit the code itself in the armor mod. I will make it a fork of the armor mod.

Nubelite
Member
Posts: 161
Joined: Mon Jul 16, 2012 23:10

by Nubelite » Post

It is now a stand alone mod. It just replaces the Armor Mod.

User avatar
Chinchow
Member
Posts: 684
Joined: Tue Sep 18, 2012 21:37

by Chinchow » Post

Is it possible to add an image to this so 3d players can wear it?
Sometimes, it's harder to think up a mod than it is to create it.
Mods: Orichalcum Stonebricks Extra Chests

Nubelite
Member
Posts: 161
Joined: Mon Jul 16, 2012 23:10

by Nubelite » Post

I am not even sure how to even proceed with that. If you can overlay one image with another and change it by checking the armor slots i guess it would work then.

Post Reply

Who is online

Users browsing this forum: No registered users and 24 guests