Skip to content

Huskycrates extension is a plugin for sponge which adds extra features to huskycrates (requires huskycrates and huskyUI)

Notifications You must be signed in to change notification settings

Gamefreak2302/Huskycrates-Extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

HuskycratesExtension

What is it?

Huskycrates extension is a plugin for minecraft which extends huskycrates using huskycrates and huskyui.
The purpose of this plugin is to add certain features i would have liked to see and you might like aswell.

What does it contain?

Commands:

give

Usage: hce give <Player> <Crate> (<Amount>)
Description: give away your virtual keys to someone else
Permission: huskycratesextension.give

reload

Usage: hce reload
Description: reloads the huskycrates extension config and huskycrates crates
Permission: huskycratesextension.admin.reload
Note: will also execute /hc reload

rightclick

Usage: hce rightclick <add/remove> <Crate>
Description: add or removes crate with the ability to be claimed by right clicking the key
Permission: huskycratesextension.admin.managerightclick

convert

Usage: hce convert (<Crate ID>) (<Amount>)
Description: convert physical key to virtual key (if no crateid is given) or the other way around
Permission: huskycratesextension.convert

test

Usage: hce test <Crate ID>
Description: Opens a gui menu, on click executes slot
Permission: huskycratesextension.admin.test

testall

Usage: hce testall <Crate ID>
Description: Executes all rewards in the crate after eachother
Permission: huskycratesextension.admin.test.all

addreward

Usage: hce addreward <Crate ID> <Reward type> (<Data>)
Description: add reward to given crate of given type and data with display item of the item in your main hand
Permission: huskycratesextension.admin.addreward

memory

Usage: hce memory <Crate ID>
Description: Starts a memory game, find 2 of the same and receive a reward Permission: huskycratesextension.memory
Note: Only works if the crate has 18+ slots

forcegive

Usage: hce forcegive (<v/virtual>) <Crate ID> <Player> (<Amount>)
Description: gives a key without auto completion on player
Permission: huskycratesextension.admin.forcegive

addcommanditem

Usage: hce addcommanditem <Command item ID> <command>
Description: Creates an item which on right click executes a command
Permission: huskycratesextension.admin.addcommanditem

givecommanditem

Usage: hce givecommanditem <player> <ID> (<amount>)
Description: Gives a command item from a given ID
Permission: huskycratesextension.admin.givecommanditem

giverandomreward

Usage: hce random <Player> <CrateID>
Description: takes a random reward and executes it.
Permission: huskycratesextension.admin.random

bal

Usage: hce bal (<Player>)
Description: Show the balance of player's keys
Permissions:

  • huskycrates.bal.base (to see own balance)
  • huskycratesextension.admin.checkbalanceothers (to see other players balances (can be used when the player offline))

Others:

Open from distance

Usage: Hold key in main hand and right click with it
Requirements: Crate name in config

Preview crate from distance

Usage: Hold key in main hand and left click with it
Requirements: none

Unplaceable

Description: Makes huskycrates keys and item commands unplaceable

Customizable configs

  • Customize memory game
    • How many chances
    • Multiple prizes
    • Which crates can play memory
  • What crate can not be tested
  • Item command storage + edits

Interactable text

  • When using /hce bal , on hover over text will print text to click to convert. on click will convert clicked key.

Current plans

  • Make customizable messages
  • Add option to make command items unstackable
  • Add option to make command items virtual ( numbers, database file + external database)
  • Treasure hunt? ( will try, won't guarantee )
  • Command to add reward to all slots (for example messages)
  • Rewrite certain features (cleaner code, less loops (faster) )
  • Store crates in different file ( auto re-register crate after restart, solution database file issue )
  • Better error handling (huskycrates extension, not huskycrates)
  • Make progress storage for memory game

Notes

  • "Beginner" in writing plugins, so can't tell how good it is for server performance
  • Only 1 author: Gamefreak_2302
  • Contact me in the huskycrates discord
  • following mods required:
  • This plugin is FREE , you can use it as much as you like and share it with anyone (without asking money for it).
  • Don't claim this plugin to be yours, copyright is a nasty law
  • Feeling into donating? donate to huskycrates , it's their plugin that makes this possible.
  • The memory game does not save yet, on close = key loss and chance loss
  • Code does contain a lootbox class, which is not accessable (has bugg )
  • Command items use %p as player placeholder, doesn't use "/" in front and will be executed as if it came from console.

About

Huskycrates extension is a plugin for sponge which adds extra features to huskycrates (requires huskycrates and huskyUI)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages