[MOD] Soubinding [soulbinding]

User avatar
PolySaken
Member
 
Posts: 361
Joined: Thu Nov 09, 2017 05:18
Location: djelibabi
GitHub: PolySaken-I-Am
In-game: PolySaken

[MOD] Soubinding [soulbinding]

by PolySaken » Wed Feb 21, 2018 20:30

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 45 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.
 

User avatar
RSLRedstonier
Member
 
Posts: 451
Joined: Wed May 10, 2017 21:00
Location: some were in middle earth
GitHub: RSL-Redstonier
In-game: RSLRedstonier

Re: [MOD] Soubinding [soulbinding]

by RSLRedstonier » Wed Feb 21, 2018 21:23

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?
"A programmer is just a tool which converts caffeine into code"

try out my skytest mod always being updated!
https://forum.minetest.net/viewtopic.php?f=9&t=17568
 

User avatar
PolySaken
Member
 
Posts: 361
Joined: Thu Nov 09, 2017 05:18
Location: djelibabi
GitHub: PolySaken-I-Am
In-game: PolySaken

Re: [MOD] Soubinding [soulbinding]

by PolySaken » Wed Feb 21, 2018 23:11

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.
 

User avatar
PolySaken
Member
 
Posts: 361
Joined: Thu Nov 09, 2017 05:18
Location: djelibabi
GitHub: PolySaken-I-Am
In-game: PolySaken
 

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

User avatar
PolySaken
Member
 
Posts: 361
Joined: Thu Nov 09, 2017 05:18
Location: djelibabi
GitHub: PolySaken-I-Am
In-game: PolySaken

Re: [MOD] Soubinding [soulbinding]

by PolySaken » Wed Feb 21, 2018 23:44

veNext​ wrote:Do you think you could add a screenshot

k
 

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

Re: [MOD] Soubinding [soulbinding]

by veNext​ » Wed Feb 21, 2018 23:51

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

k

Ok
 

User avatar
PolySaken
Member
 
Posts: 361
Joined: Thu Nov 09, 2017 05:18
Location: djelibabi
GitHub: PolySaken-I-Am
In-game: PolySaken

Re: [MOD] Soubinding [soulbinding]

by PolySaken » Wed Feb 21, 2018 23:52

screenshots:

before use, the node
Image


after rightclicking to soulbind the item (diamond scramasax in this case)
Image
 

User avatar
PolySaken
Member
 
Posts: 361
Joined: Thu Nov 09, 2017 05:18
Location: djelibabi
GitHub: PolySaken-I-Am
In-game: PolySaken

Re: [MOD] Soubinding [soulbinding]

by PolySaken » Wed Feb 21, 2018 23:53

and then if you die with the item in your inventory, you'll still have it
 

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

Re: [MOD] Soubinding [soulbinding]

by veNext​ » Thu Feb 22, 2018 00:01

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
RSLRedstonier
Member
 
Posts: 451
Joined: Wed May 10, 2017 21:00
Location: some were in middle earth
GitHub: RSL-Redstonier
In-game: RSLRedstonier

Re: [MOD] Soubinding [soulbinding]

by RSLRedstonier » Thu Feb 22, 2018 00:31

does the stone work for all items? even modded items?
"A programmer is just a tool which converts caffeine into code"

try out my skytest mod always being updated!
https://forum.minetest.net/viewtopic.php?f=9&t=17568
 

User avatar
PolySaken
Member
 
Posts: 361
Joined: Thu Nov 09, 2017 05:18
Location: djelibabi
GitHub: PolySaken-I-Am
In-game: PolySaken

Re: [MOD] Soubinding [soulbinding]

by PolySaken » Thu Feb 22, 2018 01:19

RSLRedstonier wrote:does the stone work for all items? even modded items?

all items. should i explain the process?
 

User avatar
PolySaken
Member
 
Posts: 361
Joined: Thu Nov 09, 2017 05:18
Location: djelibabi
GitHub: PolySaken-I-Am
In-game: PolySaken

Re: [MOD] Soubinding [soulbinding]

by PolySaken » Thu Feb 22, 2018 03:17

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.
 

User avatar
RSLRedstonier
Member
 
Posts: 451
Joined: Wed May 10, 2017 21:00
Location: some were in middle earth
GitHub: RSL-Redstonier
In-game: RSLRedstonier

Re: [MOD] Soubinding [soulbinding]

by RSLRedstonier » Thu Feb 22, 2018 03:38

does it conflict with the bones mod from minetest_game?
"A programmer is just a tool which converts caffeine into code"

try out my skytest mod always being updated!
https://forum.minetest.net/viewtopic.php?f=9&t=17568
 

User avatar
PolySaken
Member
 
Posts: 361
Joined: Thu Nov 09, 2017 05:18
Location: djelibabi
GitHub: PolySaken-I-Am
In-game: PolySaken

Re: [MOD] Soubinding [soulbinding]

by PolySaken » Thu Feb 22, 2018 03:53

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.
 

User avatar
PolySaken
Member
 
Posts: 361
Joined: Thu Nov 09, 2017 05:18
Location: djelibabi
GitHub: PolySaken-I-Am
In-game: PolySaken

Re: [MOD] Soubinding [soulbinding]

by PolySaken » Thu Feb 22, 2018 03:54

there are now three possible slots for soulbound items.
textures no longer in placeholder state
 


Return to WIP Mods



Who is online

Users browsing this forum: No registered users and 2 guests