[Mod] Fort Spikes [1.0][fort_spikes]

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

[Mod] Fort Spikes [1.0][fort_spikes]

by xeranas » Sat May 07, 2016 12:53

Improve your base defense with wood and iron spikes around.

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

Mod dependencies: default
Download: https://github.com/xeranas/fort_spikes/archive/1.0.zip
Source: https://github.com/xeranas/fort_spikes
Licensing:
- Code: MIT
- Textures: CC-0
Tested on: Minetest 0.4.15

Image

+ Crafting Recipes
Last edited by xeranas on Fri Apr 07, 2017 12:19, edited 2 times in total.
 

User avatar
azekill_DIABLO
Member
 
Posts: 7207
Joined: Wed Oct 29, 2014 20:05
Location: Under my desk (but I can't see my monitor now X'[ )
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: [Mod] fort_spikes

by azekill_DIABLO » Sat May 07, 2016 13:47

i don't want to walk on them :)
【Voxellar 2.0】 ; 【MILA】 ; 【Rec_a_MT】 ; 【BB,HD】 ; 【▶ Youtube】 "Pizza is many people's lifeblood. The sauce is like nectar, dough is like ambrosia." -Chem871
 

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

Re: [Mod] fort_spikes

by vitalie » Sat May 07, 2016 14:02

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: 7207
Joined: Wed Oct 29, 2014 20:05
Location: Under my desk (but I can't see my monitor now X'[ )
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: [Mod] fort_spikes

by azekill_DIABLO » Sat May 07, 2016 14:06

yeah nice idea, maybe with slabs API.....
【Voxellar 2.0】 ; 【MILA】 ; 【Rec_a_MT】 ; 【BB,HD】 ; 【▶ Youtube】 "Pizza is many people's lifeblood. The sauce is like nectar, dough is like ambrosia." -Chem871
 

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

Re: [Mod] fort_spikes

by xeranas » Sat May 07, 2016 19:16

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: 1584
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: [Mod] fort_spikes

by sofar » Sat May 07, 2016 19:56

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: 151
Joined: Fri Feb 05, 2016 11:06
GitHub: xeranas

Re: [Mod] fort_spikes

by xeranas » Sun May 08, 2016 06:41

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
Location: Czech republic
GitHub: nirasa1957
IRC: nirasa1957
In-game: nirasa

Re: [Mod] fort_spikes

by nirasa » Thu Jul 28, 2016 12:34

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: 7207
Joined: Wed Oct 29, 2014 20:05
Location: Under my desk (but I can't see my monitor now X'[ )
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: [Mod] fort_spikes

by azekill_DIABLO » Thu Jul 28, 2016 13:01

tey rae funny! but they looks more like blades than spixes :)
【Voxellar 2.0】 ; 【MILA】 ; 【Rec_a_MT】 ; 【BB,HD】 ; 【▶ Youtube】 "Pizza is many people's lifeblood. The sauce is like nectar, dough is like ambrosia." -Chem871
 

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

Re: [Mod] fort_spikes

by nirasa » Fri Jul 29, 2016 11:29

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
Location: Mobius
In-game: TailsTheFox

Re: [Mod] fort_spikes

by TailsTheFoxDoes MT » Fri Jul 29, 2016 20:41

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: 151
Joined: Fri Feb 05, 2016 11:06
GitHub: xeranas

Re: [Mod] fort_spikes

by xeranas » Sat Jul 30, 2016 18:40

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
Location: Czech republic
GitHub: nirasa1957
IRC: nirasa1957
In-game: nirasa

Re: [Mod] fort_spikes

by nirasa » Wed Aug 03, 2016 16:23

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: 7207
Joined: Wed Oct 29, 2014 20:05
Location: Under my desk (but I can't see my monitor now X'[ )
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: [Mod] fort_spikes

by azekill_DIABLO » Thu Aug 04, 2016 09:45

they look great!
can you crunch them a bit on the top?
【Voxellar 2.0】 ; 【MILA】 ; 【Rec_a_MT】 ; 【BB,HD】 ; 【▶ Youtube】 "Pizza is many people's lifeblood. The sauce is like nectar, dough is like ambrosia." -Chem871
 

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

Re: [Mod] fort_spikes

by nirasa » Mon Aug 08, 2016 10:39

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: 7207
Joined: Wed Oct 29, 2014 20:05
Location: Under my desk (but I can't see my monitor now X'[ )
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: [Mod] fort_spikes

by azekill_DIABLO » Mon Aug 08, 2016 11:10

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

Image

EDIT: like this!
Attachments
fort_spikes_iron_spikes.png
(2.13 KiB) Not downloaded yet
【Voxellar 2.0】 ; 【MILA】 ; 【Rec_a_MT】 ; 【BB,HD】 ; 【▶ Youtube】 "Pizza is many people's lifeblood. The sauce is like nectar, dough is like ambrosia." -Chem871
 

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

Re: [Mod] fort_spikes

by nirasa » Mon Aug 08, 2016 13:41

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: 7207
Joined: Wed Oct 29, 2014 20:05
Location: Under my desk (but I can't see my monitor now X'[ )
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: [Mod] fort_spikes

by azekill_DIABLO » Mon Aug 08, 2016 15:43

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
(712 Bytes) Not downloaded yet
【Voxellar 2.0】 ; 【MILA】 ; 【Rec_a_MT】 ; 【BB,HD】 ; 【▶ Youtube】 "Pizza is many people's lifeblood. The sauce is like nectar, dough is like ambrosia." -Chem871
 

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

Re: [Mod] fort_spikes

by nirasa » Mon Aug 22, 2016 12:55

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 :(
 


Return to Mod Releases



Who is online

Users browsing this forum: Bing [Bot] and 4 guests

cron