[Mod] Fort Spikes [1.0][fort_spikes]

Post Reply
User avatar
xeranas
Member
Posts: 162
Joined: Fri Feb 05, 2016 11:06

[Mod] Fort Spikes [1.0][fort_spikes]

by xeranas » Post

Improve your base defense with wood and iron spikes around.

This mod adds two types of spikes which can be placed for defense purpose. Iron spikes have less chance to broke and spikes from wood are cheaper to build.

Mod dependencies: default
Download: https://gitlab.com/rautars/fort_spikes/ ... master.zip
Source: https://gitlab.com/rautars/fort_spikes
Licensing:
- Code: MIT
- Textures: CC-0
Tested on: Minetest 0.4.15

Image
Spoiler
Image
Last edited by xeranas on Sun Oct 06, 2019 14:23, edited 4 times in total.

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] fort_spikes

by azekill_DIABLO » Post

i don't want to walk on them :)
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

vitalie
Member
Posts: 66
Joined: Wed Feb 24, 2016 07:38
GitHub: ciubotaru

Re: [Mod] fort_spikes

by vitalie » Post

Nice. Would it be possible to attach them to wall and ceiling, not just floor, and have them rotate accordingly (i.e. point horizontally, or downwards)?

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] fort_spikes

by azekill_DIABLO » Post

yeah nice idea, maybe with slabs API.....
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
xeranas
Member
Posts: 162
Joined: Fri Feb 05, 2016 11:06

Re: [Mod] fort_spikes

by xeranas » Post

vitalie wrote:Nice. Would it be possible to attach them to wall and ceiling, not just floor, and have them rotate accordingly (i.e. point horizontally, or downwards)?
I guess attaching spikes with different angles would be doable (I will give some time to investigate mentioned slaps api or existing mods how they implementing it). However the main problem would be with collision detection. Currently get_objects_inside_radius is used which is not actual collision check but rather if objects position is in range (at least what I learn from testing locally). So player which is around 2 block height would not trigger spike if spike is 1 block above ground because player position is at foot level. This functionality could be workaround by calculating offsets, but then it would misbehave for entities which are different size.

It would be simpler if I could just use damage_per_second on node, but it seems only working for players so I use punch instead.

sofar
Developer
Posts: 2146
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: [Mod] fort_spikes

by sofar » Post

There's some work by me to make the player get hurt even if head is inside the node, so I'd encourage you to use `damage_per_second` as that will be the final solution.

If you make your nodes `paramtype2 = "wallmounted" then they can be placed on walls, ceiling and floor. "facedir" also works.

User avatar
xeranas
Member
Posts: 162
Joined: Fri Feb 05, 2016 11:06

Re: [Mod] fort_spikes

by xeranas » Post

sofar wrote:There's some work by me to make the player get hurt even if head is inside the node, so I'd encourage you to use `damage_per_second` as that will be the final solution.
Thanks, I will keep in mind. If `damage_per_second` will also work for mobs I would gladly replace punch mechanism.

User avatar
nirasa
Member
Posts: 19
Joined: Fri Jun 10, 2016 10:11
GitHub: nirasa1957
IRC: nirasa1957
In-game: nirasa
Location: Czech republic

Re: [Mod] fort_spikes

by nirasa » Post

I created a different texture for iron spike. Can you put it on the ceiling, wall and floor. Other textures are original.

Image

Texture for game: fort_spikes_iron_spikes.png

Sorry, for my english :(
Last edited by nirasa on Wed Dec 13, 2017 07:52, edited 1 time in total.
Sorry for my english :(

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] fort_spikes

by azekill_DIABLO » Post

tey rae funny! but they looks more like blades than spixes :)
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
nirasa
Member
Posts: 19
Joined: Fri Jun 10, 2016 10:11
GitHub: nirasa1957
IRC: nirasa1957
In-game: nirasa
Location: Czech republic

Re: [Mod] fort_spikes

by nirasa » Post

azekill_DIABLO wrote:tey rae funny! but they looks more like blades than spixes :)
:) Yes. I killing hostile mobs with this spikes = mob trap. I get some interesting things.
Sorry for my english :(

User avatar
TailsTheFoxDoes MT
Member
Posts: 415
Joined: Mon Jan 18, 2016 20:50
In-game: TailsTheFox
Location: Mobius

Re: [Mod] fort_spikes

by TailsTheFoxDoes MT » Post

nirasa wrote:
azekill_DIABLO wrote:tey rae funny! but they looks more like blades than spixes :)
:) Yes. I killing hostile mobs with this spikes = mob trap. I get some interesting things.
Wait, they kill mobs? Do they? Then i'm downloadin' dis! :)
I'm the TailsTMM of minetest, in other words, i rock.
BRAAAAAZZZZAAAA!!!!!!!!!!!!!!!!!!!!!!!!!!!
BTW it means TailsTheMeseMinecart, but that isn't my name, it's just a way of saying that i basically do the same thing Dantdm does but i do it with minetest And you problably can't see the invisible ink.
My mods:
My first mod:tails_boss

Mob_pack now has voice acting! Do you want YOUR VOICE included? Look in my posts for the thread!

User avatar
xeranas
Member
Posts: 162
Joined: Fri Feb 05, 2016 11:06

Re: [Mod] fort_spikes

by xeranas » Post

Hi, nirasa
Thanks for trying mod and feedback! Currently fort spikes are designed to work only placed on ground because it's easiest way to calculate collisions. Last time I checked `damage_per_second` does not worked for mobs so I stick with punch mechanism. I plan to update once MT `damage_per_second` will be improved.

I also intentionally restricted placing it to one on another for damage balance reason. I trying keep default textures which meets Minetest default texture theme. Your textures are good, but as other mentioned it would better fit other trap type.

If default mod texture does not meet your world theme I would recommend override textures (put together with your custom texture pack). Do not forget that even iron spikes sometimes broke, so you need also broken spike texture variation.

User avatar
nirasa
Member
Posts: 19
Joined: Fri Jun 10, 2016 10:11
GitHub: nirasa1957
IRC: nirasa1957
In-game: nirasa
Location: Czech republic

Re: [Mod] fort_spikes

by nirasa » Post

Hi, xeranas,
xeranas wrote:Hi, nirasa
Thanks for trying mod and feedback!
:-)
xeranas wrote:If default mod texture does not meet your world theme I would recommend override textures (put together with your custom texture pack). Do not forget that even iron spikes sometimes broke, so you need also broken spike texture variation.
Ok, broken spike texture could look like this (???):

Image

I agree with your idea - combination of these two textures - yours and mine.
Sorry for my english :(

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] fort_spikes

by azekill_DIABLO » Post

they look great!
can you crunch them a bit on the top?
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
nirasa
Member
Posts: 19
Joined: Fri Jun 10, 2016 10:11
GitHub: nirasa1957
IRC: nirasa1957
In-game: nirasa
Location: Czech republic

Re: [Mod] fort_spikes

by nirasa » Post

azekill_DIABLO wrote:they look great!
can you crunch them a bit on the top?
My old computer broke down (8 years old) and I have made new. I continue to textures for fort_spikes :-)

??crunch?? I am not so good at english what do you mean? On all sides? Ok.
Last edited by nirasa on Mon Aug 08, 2016 13:37, edited 1 time in total.
Sorry for my english :(

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] fort_spikes

by azekill_DIABLO » Post

Broke them a bit vertically i mean to make them look sharpier.

Image

EDIT: like this!
Attachments
fort_spikes_iron_spikes.png
fort_spikes_iron_spikes.png (2.13 KiB) Viewed 2093 times
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
nirasa
Member
Posts: 19
Joined: Fri Jun 10, 2016 10:11
GitHub: nirasa1957
IRC: nirasa1957
In-game: nirasa
Location: Czech republic

Re: [Mod] fort_spikes

by nirasa » Post

azekill_DIABLO wrote:Broke them a bit vertically i mean to make them look sharpier.
Aha. OK. I make textures on 32px, but Minetest is 16px, it is problem... Yes? I can make it fix.
Sorry for my english :(

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] fort_spikes

by azekill_DIABLO » Post

no it's not a problem :D

Image

You can use them if you want, just mention that i modified them.
Attachments
fort_spikes_iron_spikes.png
fort_spikes_iron_spikes.png (712 Bytes) Viewed 2093 times
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
nirasa
Member
Posts: 19
Joined: Fri Jun 10, 2016 10:11
GitHub: nirasa1957
IRC: nirasa1957
In-game: nirasa
Location: Czech republic

Re: [Mod] fort_spikes

by nirasa » Post

My video - Mobtrap.

https://www.youtube.com/watch?v=XIlvz1G8Ysw

I was inspired in Minecraft. It's just an idea.

Mobs Redo API - https://github.com/tenplus1/mobs_redo
Farm Animals - https://github.com/tenplus1/mobs_animal
Monsters - https://github.com/tenplus1/mobs_monster
with zombie - https://github.com/maikerumine/mobs_mc
Mobf core - https://github.com/sapier/mobf_core
Carbone mobs - https://github.com/PilzAdam/mobs
Pyramids - https://github.com/BlockMen/pyramids
Spawners - https://bitbucket.org/minetest_gamers/spawners
Mobspawn - https://github.com/HeroOfTheWinds/mobspawn/
Fake fire - viewtopic.php?id=6145
Pipeworks - https://github.com/minetest-mods/pipeworks/tree/master
Fort spikes - viewtopic.php?f=9&t=14574&p=226828#p226828

Fort spikes = autor Xeranas. Mod in the video is edited. I adjusted this mod to my needs, but if the author edit this mode, you can then download it.

Drop, spawner:
Bunny: meat raw,
Cow: leather, beef raw,
Chicken: feather, chicken raw,
Kitten: string,
Pumba (Warthog): pork_raw,
Sheep: mutton (meat), wool,
Villager: apple,
Wolf: meat,
Dirt monster: dirt,
Dungeon monster: mese_crystal, mese_crystal_fragment, diamond, mese_crystal, diamondblock,
Lava flan: lava_orb,
Mese monster: mese_crystal, mese_crystal_fragment,
Mummy (from pyramids mod): papyrus,
Oerkki monster: obsidian,
Rhino: steel_ingot,
Sand monster: desert sand,
Skeleton: arrow, bow_wood, bone, skeleton head,
Spider: string, meat raw, spider head, crystal_spike,
Stone monster: stone, torch, iron_lump, coal_lump,
Tree monster: sapling, junglesapling, apple,
Trooper: trooper,
Zombie: rotten flesh, steel ingot, shovel steel, sword steel, carrot, potato, zombie head,

It doesn't spawner:
Enderman: obsidian, diamond, enderman head,
Ghast: lava_source, diamond, ghast head,
Creeper: gunpowder, flint and steel, creeper_head, jdukebox:disc 1-6,
Horse: meat,
Pig: pork raw,
Rat: rat,
Slimes: glue, grass,
Zombiepig: rotten_flesh, gold_ingot, sword_gold, sword_mese, zombiepig_head,
Sorry for my english :(

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 8 guests