Giter VIP home page Giter VIP logo

chexodius's Introduction

CHExodius

Adds a bunch of random handy functions & events to CommandHelper. Some of them require NMS code so this Extensions will probrbly break quite often. If that happens check here for an updated version or contact me via mail ([email protected]) to ask for an update or request a new feature.

Latest release: download v3.3.2

Functions:

  • set_tab_msg(Player, Header, Footer) - Set a TAB list header & footer message
  • send_action_msg(Player, String) - Sends a message in the action bar
  • send_title(Player, Title, Subtitle, FadeIn, Stay, FadeOut) - Send a title message to a player
  • send_chest_packet(Player, Location, State) - Sends a fake chest open packet. State determines if the chest opens (true) or closes (false)
  • set_hotbar_slot(Player, Slot) - Set the players hotbar slot. Slot is a number from 0 to 8
  • send_block_cracks(Player, Location, CrackSize, id) - Makes a fake block crack effect at the location. crackSize changes the size of the cracks. Supplying the function with an ID allows you to 'remove' the crack later by making a level 0 crack with the same ID
  • user_input(Player, Callback, [Item]) - Open an Anvil GUI input for player, calling the callback closure when the player submits the input. The text the player typed in gets returned to the closure. Item can be an item array, already only the keys 'type', 'data' and 'display' are used.
  • json_msg(Player, Msg) - Send a raw JSON message to the player (Much like /tellraw)
  • set_pspectating(Player, EntityID | null) - Makes the player spectate the given entity. If entity is null the player will revert to his own vision.
  • set_entity_target(Entity, TargetEntity) - make an entity target another mob. This function is very likeley to do nothing at all.
  • get_tps() [SPIGOT ONLY] - Gets an array containing the TPS of the last 1, 5 and 15 minutes.
  • launch_instant_firework(locationArray, [color], [type], [flicker], [trail]) - Launch an instantly detonating firework. Color accepts an array containing 3 ints, using RGB
  • set_entity_advanced_spec(Entity UUID, Spec array) - Set entity options that Command Helper does not support directly. Current specs are Ignited (For creepers) and NoAI

Events:

###projectile_hit_block Event data:

  • id - The entity ID of the projectile
  • type - returns the entity type of the entity that hit a block
  • location - returns the location of the block the arrow hit

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.