RockinChaos / ItemJoin

Get custom items on join.
https://www.craftationgaming.com/
GNU Lesser General Public License v3.0
140 stars 36 forks source link

Placeholders "%item_node%", %item_name% and dependence item files. #365

Open momoservertw opened 3 years ago

momoservertw commented 3 years ago

Please describe your question or what you need help with, in the best detain you can. Recently, I created a new server and added many new items. One of the series is emoticon tickets, there are "21" types. I set them to the same format and only changed the item node and display name. I will create other series later, such as particle ticket, bow particle ticket...

For these reasons, my "item.yml" file may exceed two thousand lines, and it is hard to edit items. In addition, adding new series will take a lot of time.

For example,

em_1:   # em_Number <- The number of series.
    slot: Arbitrary
    id: PAPER
    enchantment: FIRE_ASPECT:1
    name: '&e&lEmotes Ticket &7(Smile)'  # Display name
    lore:
    - 'To get a emote.'
    interact-left:
      - 'message: &6You use &c✤ &e&lEmotes Ticket &7(Smile)'  # Display name
      - 'console: lp user %player% permission set emotes.type.em_1'  # itemNode
    itemflags: disposable
    triggers: disabled
    permission-node: itemjoin.item

First problem is "creating lots of similar items will cost lots of time". => adding placeholders "%item_node%", "%item_name%".

We will only need to change the number of that item and give them a display name.

Second problem is "To many series and items". => Loading independence item files in the folder "items". This will take some time to change it. I don’t know if this will be troublesome for you. QQ

Happy new year~ I'm Taiwanese, my family is celebrating the Chinese New Year new. haha

momoservertw commented 3 years ago

I selected a wrong tag XD

momoservertw commented 3 years ago

Suddenly I found that I also talked about independent files a few weeks ago, and I have been too busy recently and have poor memory.

RockinChaos commented 3 years ago

Phew this is a lot haha, it will take me some time to get through this feature request but I think I get the essentials of what you are saying is that you want it to be easier to condense down the size of your items.yml

RockinChaos commented 3 years ago

Pretty sure this is similar to #362 so I'ma reference that so they are now linked :)