GithubHelp home page GithubHelp logo

panquesito7 / minetest-instant_sapling_growth Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 53 KB

A mod for Minetest that immediately places a sapling when placed. ๐ŸŒณ

Home Page: https://content.minetest.net/packages/Panquesito7/instant_sapling_growth/

License: GNU General Public License v3.0

Lua 100.00%
lua minetest minetest-mod minetest-mods sapling saplings tool trees building growth

minetest-instant_sapling_growth's Introduction

Instant Sapling Growth ๐ŸŒณ

luacheck

A mod/tool that instantly grows a sapling when placed.
Built for the Minetest Engine, with support for 10+ sapling mods.

Installation

  • Unzip the archive, rename the folder to instant_sapling_growth and place it in .. minetest/mods/

  • GNU/Linux: If you use a system-wide installation place it in ~/.minetest/mods/.

  • If you only want this to be used in a single world, place the folder in .. worldmods/ in your world directory.

For further information or help, see:
https://wiki.minetest.net/Installing_Mods

Supported sapling mods

We support a variety of mods and modpacks to ensure all of those work properly with this mod.
This can be very useful in case you need saplings to instantly grow for buildings.

If you'd like to see another mod being added, feel free to create an issue.

Settings

These settings can be customized by modifying minetest.conf or directly in the Minetest settings.

  • instant_sapling_growth.grow_everywhere: Whether to grow the sapling everywhere or on proper soil only (disabled by default).
  • instant_sapling_growth.light_limitations: Whether the saplings grow only in daytime or not (enabled by default).

Required Minetest version

This mod has been fully tested with Minetest 5.8.0 (the current latest version).
However, the mod should work as expected in Minetest 5.0.0+.

License

Refer to LICENSE.md for full information.

minetest-instant_sapling_growth's People

Contributors

panquesito7 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

minetest-instant_sapling_growth's Issues

Game Crashes[BUG]

Description of the bug

Whenever I plant a sapling the game crashes. Here is the log.
AsyncErr: Lua: Runtime error from mod '' in callback item_OnPlace(): ...-5.8.0-win64\bin..\mods\instant_sapling_growth\init.lua:235: attempt to call upvalue 'old_after_place_node' (a nil value)
stack traceback:
...-5.8.0-win64\bin..\mods\instant_sapling_growth\init.lua:235: in function 'after_place_node'
...-win64\bin..\games\minetest_game\mods\default/trees.lua:510: in function 'sapling_on_place'
...-win64\bin..\games\minetest_game\mods\default/nodes.lua:1011: in function <...-win64\bin..\games\minetest_game\mods\default/nodes.lua:1010>

Please add screenshots (if applicable)

No response

Add any other context about the problem here

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

[FEATURE] Detect all tree sizes properly

Detailed description

When placing a tree, the code will check if the tree fits in the given area.
However, this only applies for default:sapling, and should be updated to properly check the given tree that's being placed.

Context

This will prevent a lot of issues and bugs when placing a tree, and will also prevent unwanted destructions.

Possible implementation

Properly check the given tree size and place it if it fits in the given area.

Additional information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

[FEATURE] Add support for the Swamp mod

Detailed description

The Swamp mod adds a new biome with new trees as well.
We should configure Instant Sapling Growth to work properly with the Swamp mod.

Context

This is going to make it very useful for those building and using the Swamp mod.

Possible implementation

No response

Additional information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.