Comments (30)
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.
I can set the last line of lore to the tier but there is no way for me to hide the text.
from phatloots.
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.
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.
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.
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.
Just found the ticket in my past emails https://hub.spigotmc.org/jira/browse/SPIGOT-581.
from phatloots.
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.
You can find dev-build-48 under releases which adds the tier to the lore.
from phatloots.
will test asap.
from phatloots.
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.
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.
Makeing a option in the Config is the best way i think :)
from phatloots.
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.
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.
ahh allright than ill whait for it :)
from phatloots.
awesome. your great :)
from phatloots.
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.
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.
This works perfectly fine for me.
from phatloots.
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.
@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.
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.
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.
What config i need to look for?
from phatloots.
- ==: UnidentifiedItem
Durability: 0
Probability: 50.0
Tier: t0weapon <- Here?
from phatloots.
You can find the option in the config.yml file. https://github.com/Codisimus/PhatLoots/blob/master/src/config.yml#L160
from phatloots.
Oh ok this lines didnt get generated....needed to delete the config. But yea i think thats all i need ;)
from phatloots.
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.
Great, if you need anything else regarding this or another feature, feel free to create a new ticket.
from phatloots.
Related Issues (20)
- Setup HOT 1
- Mob Drops
- PhatLoots for Spigot 1.13.2 HOT 1
- Using barrier's as allowed blocks causes double prompts.
- Continuing PhatLoots Officially HOT 22
- is it possible to link every chest CURRENTLY in a world but not future ones? HOT 1
- I can't link chests HOT 1
- Not working with thermos
- Phatloots doesnt work HOT 2
- Phatloot loot tables remove the experience from mobs HOT 1
- Chests Animations
- Link to modded block
- EVERYTHING HAS AN ERROR HOT 2
- PhatLoots seems to not work on my test server.
- Command #
- is this abandoned/ will this be revived? HOT 17
- cant loot at a certain height
- Phatloot Help
- phatloot error HOT 1
- Could not build PhatLoots HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phatloots.