[MOD] Soubinding [soulbinding]

Post Reply
User avatar
PolySaken
Member
Posts: 817
Joined: Thu Nov 09, 2017 05:18
GitHub: PolySaken-I-Am
In-game: PolySaken
Location: Wānaka, Aotearoa
Contact:

[MOD] Soubinding [soulbinding]

by PolySaken » Post

Image
this mod allows you to choose three items to retain upon death. this can be changed, but it is expensive to do so. place and right click on the binding stone with an item to bind that item to you. if you do a stack, you'll keep one, and the rest will be in your bones. NOTE: ITEMS ONLY RETURN IF YOU HAD THEM IN YOUR INVENTORY!
---------------------------------------------------------------------------------------------------------------------------------------------------------
install:
soulbinding.zip
(3.82 KiB) Downloaded 92 times
---------------------------------------------------------------------------------------------------------------------------------------------------------

Code: Select all

crafting:
stone 1
		{"default:stone", "default:diamondblock", "default:stone"},
		{"dye:blue", "default:stone", "dye:blue"},
		{"default:cobble", "default:cobble", "default:cobble"}
stone 2
		{"default:stone", "default:diamondblock", "default:stone"},
		{"soulbinding:stone", "default:stone", "soulbinding:stone"},
		{"default:cobble", "default:cobble", "default:cobble"}
stone 3
		{"default:stone", "default:diamondblock", "default:stone"},
		{"soulbinding:stone_2", "default:stone", "soulbinding:stone_2"},
		{"default:cobble", "default:cobble", "default:cobble"}
Ver notes:
V2: three items at once, textures updated.

---------------------------------------------------------------------------------------------------------------------------------------------------------
Last edited by PolySaken on Sat Mar 31, 2018 22:33, edited 4 times in total.
Guidebook Lib, for in-game docs | Poly Decor, some cool blocks | Vision Lib, an all-purpose library.

User avatar
TechNolaByte
Member
Posts: 465
Joined: Wed May 10, 2017 21:00
GitHub: TechNolaByte

Re: [MOD] Soubinding [soulbinding]

by TechNolaByte » Post

2 questions
1. does it consume the stone
2. is it multiplayer compatible
3. why only 1 item is that just the way its coded?
The great quest of alchemy neither failed nor attained gold; programmers are those great alchemists who transmute caffeine into code.

User avatar
PolySaken
Member
Posts: 817
Joined: Thu Nov 09, 2017 05:18
GitHub: PolySaken-I-Am
In-game: PolySaken
Location: Wānaka, Aotearoa
Contact:

Re: [MOD] Soubinding [soulbinding]

by PolySaken » Post

RSLRedstonier wrote:2 questions
1. does it consume the stone
2. is it multiplayer compatible
3. why only 1 item is that just the way its coded?
Yes it consumes the stone, yes its multiplayer compatible, and there would have to be multiple types of binding stone to have more that one item. I can do that if you want.
Last edited by PolySaken on Wed Feb 21, 2018 23:20, edited 1 time in total.
Guidebook Lib, for in-game docs | Poly Decor, some cool blocks | Vision Lib, an all-purpose library.

User avatar
PolySaken
Member
Posts: 817
Joined: Thu Nov 09, 2017 05:18
GitHub: PolySaken-I-Am
In-game: PolySaken
Location: Wānaka, Aotearoa
Contact:

Re: [MOD] Soubinding [soulbinding]

by PolySaken » Post

.
Guidebook Lib, for in-game docs | Poly Decor, some cool blocks | Vision Lib, an all-purpose library.

User avatar
veNext​
Member
Posts: 85
Joined: Sun Dec 03, 2017 21:23
IRC: Idk
In-game: veNext

Re: [MOD] Soubinding [soulbinding]

by veNext​ » Post

Do you think you could add a screenshot

User avatar
PolySaken
Member
Posts: 817
Joined: Thu Nov 09, 2017 05:18
GitHub: PolySaken-I-Am
In-game: PolySaken
Location: Wānaka, Aotearoa
Contact:

Re: [MOD] Soubinding [soulbinding]

by PolySaken » Post

veNext​ wrote:Do you think you could add a screenshot
k
Guidebook Lib, for in-game docs | Poly Decor, some cool blocks | Vision Lib, an all-purpose library.

User avatar
veNext​
Member
Posts: 85
Joined: Sun Dec 03, 2017 21:23
IRC: Idk
In-game: veNext

Re: [MOD] Soubinding [soulbinding]

by veNext​ » Post

PolySaken wrote:
veNext​ wrote:Do you think you could add a screenshot
k
Ok

User avatar
PolySaken
Member
Posts: 817
Joined: Thu Nov 09, 2017 05:18
GitHub: PolySaken-I-Am
In-game: PolySaken
Location: Wānaka, Aotearoa
Contact:

Re: [MOD] Soubinding [soulbinding]

by PolySaken » Post

screenshots:

before use, the node
Image


after rightclicking to soulbind the item (diamond scramasax in this case)
Image
Guidebook Lib, for in-game docs | Poly Decor, some cool blocks | Vision Lib, an all-purpose library.

User avatar
PolySaken
Member
Posts: 817
Joined: Thu Nov 09, 2017 05:18
GitHub: PolySaken-I-Am
In-game: PolySaken
Location: Wānaka, Aotearoa
Contact:

Re: [MOD] Soubinding [soulbinding]

by PolySaken » Post

and then if you die with the item in your inventory, you'll still have it
Guidebook Lib, for in-game docs | Poly Decor, some cool blocks | Vision Lib, an all-purpose library.

User avatar
veNext​
Member
Posts: 85
Joined: Sun Dec 03, 2017 21:23
IRC: Idk
In-game: veNext

Re: [MOD] Soubinding [soulbinding]

by veNext​ » Post

PolySaken wrote:and then if you die with the item in your inventory, you'll still have it
Thanks seems like a great idea for multiplayer

User avatar
TechNolaByte
Member
Posts: 465
Joined: Wed May 10, 2017 21:00
GitHub: TechNolaByte

Re: [MOD] Soubinding [soulbinding]

by TechNolaByte » Post

does the stone work for all items? even modded items?
The great quest of alchemy neither failed nor attained gold; programmers are those great alchemists who transmute caffeine into code.

User avatar
PolySaken
Member
Posts: 817
Joined: Thu Nov 09, 2017 05:18
GitHub: PolySaken-I-Am
In-game: PolySaken
Location: Wānaka, Aotearoa
Contact:

Re: [MOD] Soubinding [soulbinding]

by PolySaken » Post

RSLRedstonier wrote:does the stone work for all items? even modded items?
all items. should i explain the process?
Guidebook Lib, for in-game docs | Poly Decor, some cool blocks | Vision Lib, an all-purpose library.

User avatar
PolySaken
Member
Posts: 817
Joined: Thu Nov 09, 2017 05:18
GitHub: PolySaken-I-Am
In-game: PolySaken
Location: Wānaka, Aotearoa
Contact:

Re: [MOD] Soubinding [soulbinding]

by PolySaken » Post

how it works:
rightclicking an item on the stone sets the attribute PLAYER_BOUND to the name of the item.
when a player dies, the mod checks if they have the item in their inventory and sets the PLAYER_HAD attribute to "true", and removes it from them.
when they respawn, the item is given to them if the PLAYER_HAD attribute is true.
note: there is NO way to copy the wear over that i have found,
but i'm working on it.
Guidebook Lib, for in-game docs | Poly Decor, some cool blocks | Vision Lib, an all-purpose library.

User avatar
TechNolaByte
Member
Posts: 465
Joined: Wed May 10, 2017 21:00
GitHub: TechNolaByte

Re: [MOD] Soubinding [soulbinding]

by TechNolaByte » Post

does it conflict with the bones mod from minetest_game?
The great quest of alchemy neither failed nor attained gold; programmers are those great alchemists who transmute caffeine into code.

User avatar
PolySaken
Member
Posts: 817
Joined: Thu Nov 09, 2017 05:18
GitHub: PolySaken-I-Am
In-game: PolySaken
Location: Wānaka, Aotearoa
Contact:

Re: [MOD] Soubinding [soulbinding]

by PolySaken » Post

RSLRedstonier wrote:does it conflict with the bones mod from minetest_game?
no, it removes the items before bones are placed. that happens after all on_dieplayer functons are done.
Guidebook Lib, for in-game docs | Poly Decor, some cool blocks | Vision Lib, an all-purpose library.

User avatar
PolySaken
Member
Posts: 817
Joined: Thu Nov 09, 2017 05:18
GitHub: PolySaken-I-Am
In-game: PolySaken
Location: Wānaka, Aotearoa
Contact:

Re: [MOD] Soubinding [soulbinding]

by PolySaken » Post

there are now three possible slots for soulbound items.
textures no longer in placeholder state
Guidebook Lib, for in-game docs | Poly Decor, some cool blocks | Vision Lib, an all-purpose library.

Post Reply

Who is online

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