[MOD]Kits[Kits]

User avatar
ratmix
Member
 
Posts: 128
Joined: Mon May 01, 2017 19:45
In-game: ratmix

[MOD]Kits[Kits]

by ratmix » Sat Feb 09, 2019 19:49

Kits
Adds kits and kit commands to Minetest


Configuration
This mod provides two sample kits: example miner and example_blaster
Follow the sample to add more kits. There is no limit to the number of kits that can be added.

There are several type of cooldowns for a particular kit and for the kit command...

    Individual kit cooldown are specified in the kits table. For eample, the kit below has a cooldown of 8 minutes:
    example_miner = {loadout = {"default:pick_diamond", "default:shovel_diamond", "default:sword_diamond ", }, cooldown = 8},

    The kit command cooldown time specifies, in minutes, how long a player must wait to use the /kit command again. The default value is 2 minutes and can be changed by setting the value of local kit_cmd_cooldown

    By default, the kit command cooldown for a player resets to zero if they die. This can be configured by setting a new value for kit_command_reset_on_die. To disable a reset of the kit command time on player death, set this value to 1. Otherwise set to 0.


Commands
/kit <kitname> Gives player the specified kit
/kits Shows a list of available kits
/resetkits Resets kit and kit command times for all players


Privileges

Two privileges are added by this mod.
kits allows a player to use the /kit command
kitsadmin allows admin to reset the kit temporary data for all players.

Code License: MIT
Mod dependencies: none
GIT repository: https://github.com/discon-nected/minetest_kits

Download: https://github.com/discon-nected/minetest_kits/archive/master.zip
Mintest server ratmix.com:30000
Ratmix Chat
 

User avatar
bosapara
Member
 
Posts: 410
Joined: Fri Apr 07, 2017 08:49
GitHub: bosapara
In-game: Jozet

Re: [MOD]Kits[Kits]

by bosapara » Sun Feb 10, 2019 16:03

Good idea to make it for minetest

Created similar mod recently, works much the same (daily reward)
 

User avatar
ratmix
Member
 
Posts: 128
Joined: Mon May 01, 2017 19:45
In-game: ratmix

Re: [MOD]Kits[Kits]

by ratmix » Sun Feb 10, 2019 21:51

bosapara wrote:Created similar mod recently, works much the same (daily reward)

Nice mod.

The Kits mod essentially has an API (global function). So you could call ctp_kits.deliver_kit(player, name, kitname) from your mod to deliver a kit as a daily bonus. In this case it would be better if I add an API that delivers a random kit.
Mintest server ratmix.com:30000
Ratmix Chat
 


Return to Mod Releases



Who is online

Users browsing this forum: No registered users and 12 guests