Dropt

Dropt

3M Downloads

[Question] Can a block can drop multiple items at once?

MasterEnderman opened this issue ยท 3 comments

commented

I want to overwright the block drop of sand to drop 4 sand piles.

I've already tried:

Dropt.list("chapter0")
    .priority(0)
    .add(Dropt.rule()
        .matchDrops([<minecraft:sand>])
        .addDrop(Dropt.drop()
            .items([<contenttweaker:pile_sand>])
            .items([<contenttweaker:pile_sand>])
            .items([<contenttweaker:pile_sand>])
            .items([<contenttweaker:pile_sand>])
        )
    )

and

Dropt.list("chapter0")
    .priority(0)
    .add(Dropt.rule()
        .matchDrops([<minecraft:sand>])
        .addDrop(Dropt.drop()
            .items([<contenttweaker:pile_sand>*4])
        )
    )

but neither of them work. What am I doing wrong?

also how is the discord server going? I'm still waiting for it :)

commented

It's a thing: https://discord.gg/HY69E8X

I mentioned it here: #46 (comment)

We can continue the conversation there if you'd prefer.

Please explain how the second snippet fails?

commented
Dropt.list("chapter0")
    .priority(0)
    .add(Dropt.rule()
        .matchDrops([<minecraft:sand>])
        .addDrop(Dropt.drop()
            .items([<contenttweaker:pile_sand>],Dropt.range(4))
        )
    );

Did the job. Thank you for your help.

commented

You're welcome! :)