caseif / TTT

Bukkit minigame which emulates the "Trouble In Terrorist Town" gamemode from Garry's Mod.
http://dev.bukkit.org/bukkit-plugins/ttt
MIT License
3 stars 4 forks source link

Is it possible to have custom items in chests? #71

Open Tape1001 opened 2 years ago

Tape1001 commented 2 years ago

I have a question: Is it possible to have custom items in the chests. Like I have the vic's MW mod with the TTT plugin and I wonder if I can do, that in the chests are the guns and ammo from Vic's MW mod. Is that possible?

caseif commented 2 years ago

Not at the moment. I don't expect to resume work on this project any time soon but I won't necessarily rule it out, so I'll leave this issue open for the time being.

Tape1001 commented 2 years ago

ok, I can leave this here open so you can contact me when anything happens. Hope its no problem when you tell me here when something changes. Or i can close this here so you don't have to see this. Your decision.

caseif commented 2 years ago

It's definitely a valid feature request so I've got no qualms with keeping it open. I'll leave a comment here if I do ultimately end up revisiting this request if I do resume work.

Tape1001 commented 2 years ago

ok

Tape1001 commented 2 years ago

oh yeah. There are still some questions open how it will, when it done, about the feature i "requested"

  1. Will you add items to the chest via Item ID or Item Name?
  2. Will you have a GUI where you can give every slot in a chest an item (or remove an item from a chest)?
  3. Will it be possible that you can do that it will be random what items you choose earlier will be in the chest? 3.5 When you can do that with random custom items, will it be possible that you can bind some items. Like when this item will be in the chest that this item will to 100% be in the chest too?
  4. Will it be possible that some items will be rarer to find in chests than other items? And sorry for bombarding with questions so early, I wanted to get them out of the way as soon as possible.
caseif commented 2 years ago

Ha, I'm realizing I totally misinterpreted your request. I thought you were referring to the "body" chests, not chests in the map. Regardless, that's also a feature I would consider implementing.

To answer your questions:

  1. I actually think numeric block/item IDs no longer exist since The Flattening, so it would be via the semantic names. There are some technical considerations for modded items, though, and I'm not sure if Bukkit has a mechanism for handling block/item types introduced by mods.
  2. Probably not, I think loot tables would be the way to go here.
  3. Loot tables seem to allow for this so probably, yes.
  4. Loot tables do allow for this as well.