[Mod] Cursed world (Portals) [0.1.0] [cursed_world]

Post Reply
User avatar
lag01
Member
Posts: 321
Joined: Sun Mar 16, 2014 03:41
GitHub: AndrejIT
IRC: lag01
In-game: lag
Contact:

[Mod] Cursed world (Portals) [0.1.0] [cursed_world]

by lag01 » Post

Allows players to build portals by placing 10 obsidian blocks and then adding 2 "cursed_stone".
Portal output then becomes connected to distant location (searches for caves at -4800 nodes underground by default).

License: LGPL 2.1 or later.
Dependencies: default mobs? fire?

Download: zip
Browse on: GitHub

Image
Attachments
"Cursed world" portal
"Cursed world" portal
screenshot_20170430_232849.png (137.77 KiB) Viewed 847 times
Last edited by lag01 on Wed May 03, 2017 21:44, edited 1 time 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] Cursed world (Portals) [0.1.0] [cursed_world]

by azekill_DIABLO » Post

an alternative nether?
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
lag01
Member
Posts: 321
Joined: Sun Mar 16, 2014 03:41
GitHub: AndrejIT
IRC: lag01
In-game: lag
Contact:

Re: [Mod] Cursed world (Portals) [0.1.0] [cursed_world]

by lag01 » Post

azekill_DIABLO wrote:an alternative nether?
On my server i moved old spawn with all buildings to -4800, so players need to build portal to get to old world, and build another portal to get back to surface.

In default game, portal will move you to the cave somewhere deep underground.

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] Cursed world (Portals) [0.1.0] [cursed_world]

by azekill_DIABLO » Post

oh? it's kinda original then. But you know there are many, many ,many teleporters pad portals and thing like that which would do what you want?
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
lag01
Member
Posts: 321
Joined: Sun Mar 16, 2014 03:41
GitHub: AndrejIT
IRC: lag01
In-game: lag
Contact:

Re: [Mod] Cursed world (Portals) [0.1.0] [cursed_world]

by lag01 » Post

azekill_DIABLO wrote:oh? it's kinda original then. But you know there are many, many ,many teleporters pad portals and thing like that which would do what you want?
Yes, there are many portal mods, but i doubt there is one that meets all criteria i wanted:
  • is buildable by player and don't need magic wand to activate
  • looks like ancient architecture portal
  • set target location automatically, preferably inside a cave
  • is not bundled with special map generator
  • is shattered when someone else use your portal - to encourage players build their own portals in safe locations
  • obvious criteria - mod should not crash or slow down server

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] Cursed world (Portals) [0.1.0] [cursed_world]

by azekill_DIABLO » Post

ok, it's better here!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

ack
Member
Posts: 21
Joined: Sun Jan 04, 2015 10:46

Re: [Mod] Cursed world (Portals) [0.1.0] [cursed_world]

by ack » Post

lag, looking at your code, I aways cringe when i see an important file opened with 'w' to re-write the whole contents.. hate crashes as much as the next guy. does lua have sql ability built in ? can't it store directly in the map db file via lua to create your own table for storing data ? or, can you write to a .new file, then delete / move, and you got a backup.. just in case. I usually have a .dat, .dat.1, .dat.2 as i create, and skip while loading corrupted files.

User avatar
lag01
Member
Posts: 321
Joined: Sun Mar 16, 2014 03:41
GitHub: AndrejIT
IRC: lag01
In-game: lag
Contact:

Re: [Mod] Cursed world (Portals) [0.1.0] [cursed_world]

by lag01 » Post

ack wrote:lag, looking at your code, I aways cringe when i see an important file opened with 'w' to re-write the whole contents.. hate crashes as much as the next guy. does lua have sql ability built in ? can't it store directly in the map db file via lua to create your own table for storing data ? or, can you write to a .new file, then delete / move, and you got a backup.. just in case. I usually have a .dat, .dat.1, .dat.2 as i create, and skip while loading corrupted files.
I heard somewhere, developers are working on adding storage API per player, per mod etc. Hopefully it will be implemented good enough.

In most cases "whole contents" is just few kilobytes, smaller than one disk block, so rewriting it gives no overhead. Maybe very large files, like auth.txt can make any difference.

User avatar
Andrey01
Member
Posts: 2577
Joined: Wed Oct 19, 2016 15:18
GitHub: Andrey2470T
In-game: Andrey01
Location: Russia, Moscow

Re: [Mod] Cursed world (Portals) [0.1.0] [cursed_world]

by Andrey01 » Post

I wonder nobody can exit from cursed world. Must be a portal exit from it?

User avatar
lag01
Member
Posts: 321
Joined: Sun Mar 16, 2014 03:41
GitHub: AndrejIT
IRC: lag01
In-game: lag
Contact:

Re: [Mod] Cursed world (Portals) [0.1.0] [cursed_world]

by lag01 » Post

Andrey01 wrote:I wonder nobody can exit from cursed world. Must be a portal exit from it?
Yest, you must build portal exit from cursed world.

User avatar
Andrey01
Member
Posts: 2577
Joined: Wed Oct 19, 2016 15:18
GitHub: Andrey2470T
In-game: Andrey01
Location: Russia, Moscow

Re: [Mod] Cursed world (Portals) [0.1.0] [cursed_world]

by Andrey01 » Post

lag01 wrote:
Andrey01 wrote:I wonder nobody can exit from cursed world. Must be a portal exit from it?
Yest, you must build portal exit from cursed world.
Oh... thanks for promting! Somewhy nobody told me about it.

User avatar
lag01
Member
Posts: 321
Joined: Sun Mar 16, 2014 03:41
GitHub: AndrejIT
IRC: lag01
In-game: lag
Contact:

Re: [Mod] Cursed world (Portals) [0.1.0] [cursed_world]

by lag01 » Post

Andrey01 wrote:
lag01 wrote:
Andrey01 wrote:I wonder nobody can exit from cursed world. Must be a portal exit from it?
Yest, you must build portal exit from cursed world.
Oh... thanks for promting! Somewhy nobody told me about it.
It must be more interesting, when you guess this by yourself.
They just didn't wanted to spoil you that fun.

But it depends on you what you like more, if you try and guess or ask on forum.

Post Reply

Who is online

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