[Mod] Fruit Tools [fruit_tools]

User avatar
ChimneySwift
Member
 
Posts: 319
Joined: Fri Sep 22, 2017 06:46
Location: 127.0.0.1
GitHub: ChimneySwift
IRC: ChimneySwift
In-game: ChimneySwift

[Mod] Fruit Tools [fruit_tools]

by ChimneySwift » Mon Dec 18, 2017 06:31

Fruit Tools
Adds a variety of fruit tools and other fruit-related items to Minetest. (Hint: they may drop fruit ;)

Image

Code license: MIT
Textures license: MIT

Dependencies: farming, default, bucket, vessels
Optional Dependencies: mobs, 3d_armor, toolranks

GitHub
ZIP Download

Tools:
Fruit tools will occasionally drop the fruit they are made of when used, this fuctionality can be adjusted in init.lua (See "Settings" section of this document).

+ Tool List

+ Tool Crafting


Shields:
Fruit sheilds will occasionally drop the fruit they are made when hit (fruit placed in hitter's inventory or dropped at hit person's feet), this fuctionality can be adjusted in init.lua (See "Settings" section of this document).

+ Sheild List

+ Tool Crafting


Throwing Foods:

Throwing foods can be crafted from regular food. They look like regular food, but instead of being eaten they are thrown. If a throwing food lands on an unprotected dirt block, it may plant the thrown food if the food can be planted (Eg: if you throw a throwing tomato, it may plant a tomato plant) this fuctionality can be adjusted in init.lua (See "Settings" section of this document). Each throwing food does 2 fleshy damage.

+ Throwing Foods List


+ Throwing Foods Crafting


Settings
Admin Pick Settings:
By default the admin pick is set to the "Weed Pick", if you do not wish for your world to contain cannabis (aka weed) references, simply set the say_no_to_cannabis variable on line 8 of init.lua to true, this will replace the "Weed Pick" with the "Pickle Pick" (both tools have the same capabilities), if you do not wish for your world to contain pickle references then we can't help you, sorry.

Extra Drops:
By default when a shield is hit, or a fruit tool is used, there is a 1 in 5 chance that between 1 and 5 of the shield/tool's food is also dropped. To enable/disable this set extra_drops on line 12 of init.lua to false. To change the drop chance change extra_drop_chance on line 14 of init.lua, to change the drop maximum change extra_drop_max on line 16 of init.lua and to change the drop minimum change extra_drop_min on line 18 of init.lua.

Throwable Food Planting:
By default, when a throwable food hits an unprotected dirt node, it will place a fully grown plant of the throwable food's origin (Eg: Throwing Tomato plants a fully grown tomato plant) on top of the dirt 1 out of 5 times. To enable/disable this set plant on line 22 of init.lua to false. To make the mod first hoe the dirt, then place a new plant on top (instead of a fully grown one), set plant_whole on line 24 of init.lua to false. To change the chance of a plant being planted change plant_chance on line 26 of init.lua

Notes
  • This mod is a work in progress, tool capabilities etc. are subject to change, the code is still slightly messy, if you have any suggestions for improvements, start a GitHub issue, comment on the minetest forums (forum.minetest.net) or modify the code and create a pull request.
  • Some of the tool textures are 18×18 or 20×20 pixels (to fit everything in) if you have an idea on how to make these textures conform to a 16×16 resolution, or would like to make revisions yourself, please comment, make a GitHub issue, or a Pull Request (if you have made textures).
  • Satisfy optional dependency "mobs" for throwing foods and optional dependency "3darmor" for sheilds.
  • The dependancy "farming" refers to TenPlus1's farming_redo, not the farming mod from minetest_game.
Changelog
* No changes yet!
Last edited by ChimneySwift on Tue Dec 19, 2017 00:16, edited 2 times in total.
A spoon is basically a tiny bowl with a stick on it
 

User avatar
KatzEyez
Member
 
Posts: 29
Joined: Tue Aug 08, 2017 18:24
Location: (IG: Depends) (RL: USA)
GitHub: LadyK
IRC: LadyK
In-game: LadyK

Re: [Mod] Fruit Tools [fruit_tools]

by KatzEyez » Mon Dec 18, 2017 09:05

I love it, ChimneySwift! I think you did an amazing job on it and cannot wait to get to play with this on a server!

(Hopefully whichever server adds it, the owners will post they did here, so we will all know where to go for a tomato toss! - or whichever they choose.)

Edit: For the admin pick axes - you can refer to the cucumber pickaxe as a pickle pickaxe, if the cucumber one sets off any bells and alarms.
Hiya everyone! ^_^ LadyK is officially back! Got Discord? I'm LadyK#3914 if you want to add me.
 

User avatar
ChimneySwift
Member
 
Posts: 319
Joined: Fri Sep 22, 2017 06:46
Location: 127.0.0.1
GitHub: ChimneySwift
IRC: ChimneySwift
In-game: ChimneySwift

Re: [Mod] Fruit Tools [fruit_tools]

by ChimneySwift » Mon Dec 18, 2017 09:56

KatzEyez wrote:you can refer to the cucumber pickaxe as a pickle pickaxe


Done (hopefully I didn't break anything)
A spoon is basically a tiny bowl with a stick on it
 

Chem871
Member
 
Posts: 871
Joined: Sat Aug 19, 2017 21:49
Location: SCP-2935
GitHub: Chemguy99
In-game: Nyx Serris

Re: [Mod] Fruit Tools [fruit_tools]

by Chem871 » Mon Dec 18, 2017 14:55

Pickleaxe? Nice mod!
What is SCP-055 again? I forgot.
 


Return to WIP Mods



Who is online

Users browsing this forum: No registered users and 6 guests