Coder Social home page Coder Social logo

esh123cookie / foodeffects Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xenophilicy/foodeffects

0.0 1.0 0.0 263 KB

Pocketmine plugin designed for effects to be given to players when items are consumed.

License: GNU General Public License v3.0

PHP 100.00%

foodeffects's Introduction

FoodEffects

HitCount

Xenophilicy

Information

With this plugin, you are able to assign different effects to items so that when a player consumes that item, they are given the effect for a set duration at a set effect level! All of these options can be set in the items.json file. The format for the item listing can be found in both the config.yml file and down below if you ever get confused. You can also find examples inside the default items.json file. If you would like a video example of the plugin in action, click here

Item Formatting

{
    "Items":{
        "Item-ID":[
            [Effect-ID,Effect-Amplifier,Effect-Duration]
        ]
    }
}

Item Listing Example

Desired configuration:

  • When steak(364) is consumed, give blindness(15) level 1 for 10 seconds and strength(5) level 2 for 30 seconds
  • When an apple(260) is consumed, give speed(1) level 3 for 15 seconds and infinite(0) night vision(16) level 1

Configuration in JSON:

{
    "Items":{
        "364":[
            [15,1,10],
            [5,2,30]
        ],
        "260":[
            [1,3,15],
            [16,1,0]
        ]
    }
}

FoodEffects Details

  • API: 3.0.0+
  • Version: 1.0.0
  • Basic Description: Enables customizable effects for consuming items
  • Easy to edit items.json file
  • Simple code for editing and debugging

Dependencies

DevTools โ†’ https://github.com/pmmp/PocketMine-DevTools (If you are using the plugin folder method)

Credits

foodeffects's People

Contributors

poggit-bot avatar xenophilicy avatar

Watchers

 avatar

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.