GithubHelp home page GithubHelp logo

About MythicDrops about phatloots HOT 30 CLOSED

codisimus avatar codisimus commented on June 27, 2024
About MythicDrops

from phatloots.

Comments (30)

Codisimus avatar Codisimus commented on June 27, 2024 1

I tried to get the changes out before I left for the day but I didn't expect compiling problems.

I did however fix the issues you have mentioned.

from phatloots.

Codisimus avatar Codisimus commented on June 27, 2024

I can set the last line of lore to the tier but there is no way for me to hide the text.

from phatloots.

Drehverschluss avatar Drehverschluss commented on June 27, 2024

Ok just putting the last line of the lore would be great anyways. Maby the color code can be used to show different letters... But I don't know if the lore gets read correctly after.

from phatloots.

ToppleTheNun avatar ToppleTheNun commented on June 27, 2024

The closest you can get to hiding the text is by making the color code black, but that's still visible. Unless I'm mistaken, Bukkit/Spigot still doesn't fully support manipulating NBT information. It probably doesn't persist over server restart either.

If it did persist, then we could talk about setting the tier by NBT tag and then using that information in MythicDrops.

from phatloots.

Drehverschluss avatar Drehverschluss commented on June 27, 2024

Hmm what I remember messing with NBT data is not a good idea. Could break a bit more if I remember correctly.

I'll try out later a bit when I'm home than I give you a feedback.

from phatloots.

Codisimus avatar Codisimus commented on June 27, 2024

I set the color to black for loot bags in this plugin. But after some research, it looks like you may be able to encode a string as colors by putting the color code character in front of each letter in the word. I have not tried it so I don't know if it works for letter which don't represent a color but others have claimed to use it.

As for storing it another way, back when Spigot added support to persist attributes, they also added another gem that looked like you could persist other data of your choosing. It proly hasn't made it to the API yet but I will add a link to that code change to see if it is something we would want to use.

from phatloots.

Codisimus avatar Codisimus commented on June 27, 2024

Just found the ticket in my past emails https://hub.spigotmc.org/jira/browse/SPIGOT-581.

from phatloots.

Drehverschluss avatar Drehverschluss commented on June 27, 2024

So that means you can easly now edit this without breaking that much.

But well i think there are easyer ways around this.

Anyways you maby have a build where the line get generated? So i can test a bit?

from phatloots.

Codisimus avatar Codisimus commented on June 27, 2024

You can find dev-build-48 under releases which adds the tier to the lore.

from phatloots.

Drehverschluss avatar Drehverschluss commented on June 27, 2024

will test asap.

from phatloots.

Drehverschluss avatar Drehverschluss commented on June 27, 2024

Nope thats not working :)
Well you are changing the whole lore. Instead you should check the existing lore and add it later

But yea it working you are adding the right text :P

Also what if you are using "&k" infront of the text? Isnt the text only visability different but MythicDrops should still read the line correctly right?

MFG

from phatloots.

Codisimus avatar Codisimus commented on June 27, 2024

My bad, I was thinking it was a new item so it would never have lore. I will change it to look for existing lore/ItemMeta first.

As for using k, I can do that and MythicDrops should still read it fine. I just think the scrolling text is annoying. But if that is what you want, I will add it. Or maybe make it an option in the config.

from phatloots.

Drehverschluss avatar Drehverschluss commented on June 27, 2024

Makeing a option in the Config is the best way i think :)

from phatloots.

Drehverschluss avatar Drehverschluss commented on June 27, 2024

Is it still the Dev-build-48 ? If yes than its not working :( i still get only your text in black

I realised there is a bit more buggy now.....Even the ItemName dont even say UnidentifiedItem. Instead there is just the Normal meterialName.

Also you can catch the random thing to just use the old way how it was befor. Now when i choose RANDOM it gets the line too but that unnessecary.

from phatloots.

Codisimus avatar Codisimus commented on June 27, 2024

My latest commit has a weird compile time error (https://travis-ci.org/Codisimus/PhatLoots#L233).
I will have to look into it more later today but it seems like they changed the API and I still have the old Javadocs.

from phatloots.

Drehverschluss avatar Drehverschluss commented on June 27, 2024

ahh allright than ill whait for it :)

from phatloots.

Drehverschluss avatar Drehverschluss commented on June 27, 2024

awesome. your great :)

from phatloots.

Codisimus avatar Codisimus commented on June 27, 2024

Ok, that should do it. As long as it works, I will add the config setting and call this closed. Unless @nunnery wants to try to use one of the other options I mentioned earlier.

from phatloots.

Drehverschluss avatar Drehverschluss commented on June 27, 2024

Works perfectly.

I cant see any issue. Well option to choose how the text will be showed would be cool. But anyways it working great... Thx a lot for the great support

from phatloots.

ToppleTheNun avatar ToppleTheNun commented on June 27, 2024

This works perfectly fine for me.

from phatloots.

Codisimus avatar Codisimus commented on June 27, 2024

As long as changing the config options works correctly then I will close this ticket. Let me know if either of you get a chance to properly test it before I do.

from phatloots.

Codisimus avatar Codisimus commented on June 27, 2024

@Drehverschluss were you able to try the config option? Does this meet all of your needs? If so I will close this issue.

from phatloots.

Drehverschluss avatar Drehverschluss commented on June 27, 2024

Yes of course i can test it. Do i just need to redownload from https://github.com/Codisimus/PhatLoots/releases/tag/4.2.2 ??

from phatloots.

Codisimus avatar Codisimus commented on June 27, 2024

Oh sorry, you can find the releases at https://github.com/Codisimus/PhatLoots/releases. Try the most recent dev build which will be at the top of the list.

from phatloots.

Drehverschluss avatar Drehverschluss commented on June 27, 2024

What config i need to look for?

from phatloots.

Drehverschluss avatar Drehverschluss commented on June 27, 2024
  - ==: UnidentifiedItem
    Durability: 0
    Probability: 50.0
    Tier: t0weapon <- Here?

from phatloots.

Codisimus avatar Codisimus commented on June 27, 2024

You can find the option in the config.yml file. https://github.com/Codisimus/PhatLoots/blob/master/src/config.yml#L160

from phatloots.

Drehverschluss avatar Drehverschluss commented on June 27, 2024

Oh ok this lines didnt get generated....needed to delete the config. But yea i think thats all i need ;)

from phatloots.

Drehverschluss avatar Drehverschluss commented on June 27, 2024

Works as ecpected. Even you scare about the &k are unnecessary. Because when you make it '&0&k' you cant even see it. 👍

Can be closed from my side :)

from phatloots.

Codisimus avatar Codisimus commented on June 27, 2024

Great, if you need anything else regarding this or another feature, feel free to create a new ticket.

from phatloots.

Related Issues (20)

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.