PluginBugs / Issues-ItemsAdder

Repository used to keep track of issues of my plugin ItemsAdder
https://itemsadder.devs.beer
53 stars 21 forks source link

Add a way to disable some vanilla drops from blocks and entities #1519

Open InannaTheGoat opened 2 years ago

InannaTheGoat commented 2 years ago

Terms

Discord tag (optional)

Inanna#4464

Describe the solution you'd like

Aftr migrating from a previous plugin similar to this one, I have encountered a feature that I believe is no present. I have found a couple of people on the discord and 1 answered me today explaining that it may not be possible yet.

I would like the ability to disable Vanilla drops. example: Dirt block -> drops Dirt Block I have created a custom item called "Pile of Dirt" and added it to "Dirt Block" now; Dirt Block -> drops Dirt block & Pile of dirt.

I would like an ability to stop the vanilla dirt block dropping its default dirt block and only have it drop my item. This goes for most Vanilla blocks

Is your feature request related to a problem?

nope

Describe alternatives you've considered

I have seen other plugins I believe that can do this, I may need to test them and see if they work in conjunction to this plugin I can also try using the previous plugin I migrated to this one from and just use that one to deal with the disabling of the vanilla drops.

Additional context

N/A

imparium-de commented 8 months ago

We would love to see this getting implemented. Disabling default drops from vanilla blocks seems to be an oversight, when seeing that this plugin is already capable of. I also like the shown config example from https://github.com/PluginBugs/Issues-ItemsAdder/issues/2530 .

disable_default_drop: true seems to be a very intuitive name for such an option.

LoneDev6 commented 8 months ago

disable_default_drop: true seems to be a very intuitive name for such an option.

Yes but I don't think the loot entry is the correct place to put such option, as there might be thousand of loots for the same block and would cause confusion to have the disable_default_drop property possibly put on multiple loots with different value (true/false).

I think a new section, similar to the disable recipes which is in config.yml (remove-vanilla-recipes), could be added to the general yml files to let admins disable loots for particular blocks/entities.

An example:

info:
  namespace: test
overwrite_vanilla_behaviour:
  disable_loots:
    blocks:
      stone:
        enabled: true
        type: STONE
      iron_ore:
        enabled: true
        type: IRON_ORE
    mobs:
      zombie:
        enabled: true
        type: ZOMBIE

I might also move the remove-vanilla-recipes which is under config.yml, as cited before, because right now it's difficult for packs creators to bundle this setting in their packs as it requires manual editing of the config.yml file.