Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If there's only one loot option, can we automatically generate loot? #60

Open
hedgepiggy opened this issue Sep 7, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@hedgepiggy
Copy link

Basically, if there's only one possible loot output could the loot be set to automatically generate? Maybe there is a better way to do this for placing large numbers of blocks.

something like

    public void setSelection(DynamicHolder<DataModel> model, int selection) {
        if(model.get().fabDrops().size() == 1){
            this.savedSelections.put(model,0);
        }
        if (selection == -1) this.savedSelections.removeInt(model);
        else this.savedSelections.put(model, Mth.clamp(selection, 0, model.get().fabDrops().size() - 1));
        VanillaPacketDispatcher.dispatchTEToNearbyPlayers(this);
        this.setChanged();
    }

in

public void setSelection(DynamicHolder<DataModel> model, int selection) {

thanks

@Shadows-of-Fire Shadows-of-Fire added the enhancement New feature or request label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants