📦 HuskyCrates [v2.0.0-PRE8] [API 5-7] - Give everyone keys, use Custom Particles, Keys, and more!

Try this, added some things you were missing

Sorry I don’t see any changes in your post.

lol did you even test it or did you just do a quick glance over? Because I changed a couple things. Test it if you want or wait for OP, but I know exactly what problems you were having because I had the same exact issue :stuck_out_tongue:

I just asked a simple question. Anyway thank you for your help but I think I will wait for someone more civilized to answer the question.

Sorry if I came across as rude. Just was trying to help as I have had your same issue and it was a really simple fix.

Possible to get a lang conf to edit the reward message?

You won a ItemName from a CrateName

This doesn’t really leave much room for pluralities of items, unless we prefix everything with pair of / trio of / six-pack of and so on, which would get a little clunky.

EDIT

Also - is this set up right?
The chance has to equal 100 yes?
But in a quick test, 2 of the 5 were the only chance=1 in this config.
Removed Chance, ID, and Name from the others to save some space - they’re formatted the same.
Amount relates to the number shown on the icon in the spinner yes? No other relevance?

And the spinner seems to repeat items next to each other - is this just due to a random generation of what “scrolls” next across the wheel?

ultracrate {
items=[
{
amount=1
chance=1
command=“crate mastercrate key %p”
id=“minecraft:nether_star”
name=“1 Master Crate Key”
},
{
amount=1
chance=5
},
{
amount=1
chance=2
},
{
amount=6
chance=4
},
{
amount=1
chance=5
},
{
amount=1
chance=5
},
{
amount=1
chance=5
},
{
amount=1
chance=5
},
{
amount=1
chance=5
},
{
amount=1
chance=12
},
{
amount=1
chance=6
},
{
amount=1
chance=10
},
{
amount=1
chance=6
},
{
amount=1
chance=6
},
{
amount=1
chance=6
},
{
amount=1
chance=6
},
{
amount=1
chance=6
},
{
amount=1
chance=2
},
{
amount=1
chance=3
}
]

If you could I would like to speak on discord about custom figuring the plugin to match the server I am on. If you could message me on discord it’s 𝓥𝓸𝓵𝓽#7882

Can you please fix the bug where keys are unlimited and do not dissapear from users inventory when used in creative mode.

It’s creative, that’s how creative works isn’t it :neutral_face:

2 Likes

Why would you run a creative server and then have crates when players have pretty much everything with creative? seems a bit asinine?

To reward players for voting by running commands…not giving items.
There are plenty of other ways to reward players besides giving them physical items.
Keys should not be unlimited in creative mode. It’s as simple as that. No reason for it.

yeah, for testing purposes, hence why it’s like the way it is now lol
Just because you want it one way doesn’t mean everyone else does. What are even in your crates anyways if not items? Commands to give money or things like that or?

I assumed it was a bug, because it seems unnatural. I am not trying to cause trouble by forcing my wants onto others. It would simply be better for the plugin.
There are countless reasons why you would not want unlimited keys in creative mode.

If you want to give players in creative mode money.
If you want to give players in creative mode pets.
If you want to give players in creative mode pixelmon.

At the very least, I believe there should be a perm node to prevent unlimited keys in creative mode.
I believe there would be more reasons NOT to have unlimited keys than TO have unlimited keys. For what reasons do you prefer unlimited keys when you could simply give the player permission to spawn their own keys themselves, thus replicating the forced infinite keys.

This is a solution that makes sense for both parties.

1 Like

Query #2

How do we add damage values to the id section?

This one doesn’t seem to register:

        {
            amount=10
            chance=63
            command="give %p minecraft:cooked_fish 10 1"
            id="minecraft:cooked_fish:1"
            name="10 Cooked Salmon"
        }

whilst

        {
            amount=10
            chance=63
            command="give %p minecraft:cooked_fish 10 1"
            id="minecraft:cooked_fish 1"
            name="10 Cooked Salmon"
        }

somehow awarded me Cooked Fish (#0350/10) as a purple/black box at some point after reloading, giving myself the crate, and the key, placing the crate, and opening it - being awarded a different item.
Just ran through it again and I’ve not been given another.

And a further query - how would giving a horse egg be set up?
And placing specifically a horse egg as the ID?

I’m assuming that “give %p minecraft:spawn_egg 1 0 {EntityTag:{id:“Horse”}}” would fail as well as it also relies on the damage value.

After going through my config and testing it against the server, im noticing it doesnt really look like its per chance unless you have the chances in decending order according to your config

so you would have to have your config setup like
chance=1
chance=2
chance=3

That, erm, doesn’t make much sense really. Might wanna make sure your config is valid.

I’m having similar issues to Vince I believe:
📦 HuskyCrates [v2.0.0-PRE8] [API 5-7] - Give everyone keys, use Custom Particles, Keys, and more! - #135 by AsyDRabbit

And, how do we add damage values to the id section?
And a further query - how would giving a horse egg be set up?
And placing specifically a horse egg as the ID?

Development and support is on hold until next week, I’ll get back to everyone then.

2 Likes

Hey I have a question. For the plugin I have the crate set to do the command /pokegive %p random and it works and everything but when it gives you the pokemon it says [HuskyCrates: HuskyCrates gave Elementdragon0 a Quilava!]. Is there any way to change this to the server name so for example [Server gave Elementdragon0 a Quilava!]?

Thanks for your help