Closed YouHaveTrouble closed 3 years ago
Currently working on the CustomStack thing, today I will work on the other requests
While rewriting items like that, can you make custom durability work on items with no normal durability? Basically just a number with no use of actual durability bar? Would that be possible?
While rewriting items like that, can you make custom durability work on items with no normal durability? Basically just a number with no use of actual durability bar? Would that be possible?
Not without a complete rewrite of the system. You can use "usages" for this purpose
Here are the changes of the new API: https://github.com/LoneDev6/ItemsAdder-API/commit/d54933a359730091fa0cdb2c990e93716a0d5a23
I will post also ItemsAdder jar update so you can actually use the API. For now you can code if you import the API from the repo I sent
Yes, maven api is a great option, I hope it will get updated with the api updates so I don't have to redownload the jar lol
Already did
<dependency>
<groupId>com.github.LoneDev6</groupId>
<artifactId>itemsadder-api</artifactId>
<version>2.1.25</version>
<scope>provided</scope>
</dependency>
oh, I meant the api updates in the future ;)
You have to download the itemsadder jar if you own the plugin and you want to test the API ingame. If you just want to add compatibility to your plugins you don't really have to install itemsadder jar in your server, you only have to import the maven api and code 😄
I'm opening this to list all methods that I'd see as useful to have in java API <3
CustomItem
object that would hold all custom item methods.CustomBlock
would be same treatment asCustomItem
, so:CustomCrop
would extendCustomBlock
CustomMob
woud extendMob
orEntity
, or whatever, I don't really know how exaclty those work yet.And icing on the cake, the ItemsAdder class itself! I'm assuming the current classes are staying as deprecated, so I'll only cover additional stuff.
That's all I can think of for now, will update this if I think of something more/better