Yes, I don't know the api functions, but it should be simple as setting a variable with the wear of the tool before placing it, and when dug, setting the wear of the tool to the variable.Bas080 wrote:Dropping tool and remembering the wear of the tool after digging the nodebox, I think can be done.
On place
- get_wear(): returns tool wear (0-65535), 0 for non-tools
- set_int("wear", wear)
On dig
- add_item(listname, stack): add item somewhere in list, returns leftover ItemStack
- get_int("wear")
- add_wear(wear): increases wear by amount if the item is a tool
The api functions I think you need to get it to work.
Bas080 wrote:Dropping tool and remembering the wear of the tool after digging the nodebox, I think can be done.
On place
- get_wear(): returns tool wear (0-65535), 0 for non-tools
- set_int("wear", wear)
On dig
- add_item(listname, stack): add item somewhere in list, returns leftover ItemStack
- get_int("wear")
- add_wear(wear): increases wear by amount if the item is a tool
The api functions I think you need to get it to work.
Evergreen wrote:Yes, I don't know the api functions, but it should be simple as setting a variable with the wear of the tool before placing it, and when dug, setting the wear of the tool to the variable.Bas080 wrote:Dropping tool and remembering the wear of the tool after digging the nodebox, I think can be done.
On place
- get_wear(): returns tool wear (0-65535), 0 for non-tools
- set_int("wear", wear)
On dig
- add_item(listname, stack): add item somewhere in list, returns leftover ItemStack
- get_int("wear")
- add_wear(wear): increases wear by amount if the item is a tool
The api functions I think you need to get it to work.
Bas080 wrote:Nicely done!
Bas080 wrote:I'm implementing a deco block for the deafult tools for my OCD game after seeing the end result of your work.
Sokomine wrote:Sounds really fine :-)
Sokomine wrote:But...sharks...in water where you're occasionally swimming? A bit frightening...:-)
Sokomine wrote:Sounds really fine :-) But...sharks...in water where you're occasionally swimming? A bit frightening...:-)
LionsDen wrote:Now, this doesn't mean that I want to swim with sharks or tell others it's okay to swim with sharks, it just means that I like to play the Devil's Advocate. ;^)
hammergil wrote:How to fish? I have constructed a fishing pole, put worms next to just like the instructions say. If i right click pointing at water nothing happens, if I left click it plants my fishing pole into the water. how do you fish? am i missing something? thanks
Neuromancer wrote:I see you've expanded this Mod quite bit. I have some ideas to have it so it works with swimming fish from the Mob framework mod. Here's my post there. See if you like any of the ideas.
https://forum.minetest.net/viewtopic.php?pid=107242#p107242
Neuromancer wrote:MM, you need to check out this exciting news: Sapier has added some support for your mod. Maybe further integration is possible!
https://forum.minetest.net/viewtopic.php?pid=113172#p113172
Mossmanikin wrote:Small update (0.2.2)
Twigs (undergrowth) can be caught.
Updated support for sea modpack.
Topywo wrote:P.s. Digging seaplants:kelpgreenmiddle drops a seaplants:kelpgreen, so the 3rd sushi crafting recipe could be left out.
jenova99sephiros wrote:I want to add a Mob of small fish in this alone
nvrsbr wrote:How do you fish?
Do you need worms?
I cannot seem to cast the rod?
Users browsing this forum: Google [Bot] and 10 guests