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

New mod idea - custom loot chest #61

Open
richardhendricks opened this issue Aug 26, 2019 · 0 comments
Open

New mod idea - custom loot chest #61

richardhendricks opened this issue Aug 26, 2019 · 0 comments

Comments

@richardhendricks
Copy link
Owner

tl;dr
Instead of placing actual GT machines on the surface, place a new block that uses the machine's texture, but when broken does not always return the machine.

Details
This block would be like the Hives from forestry - you cannot look inside with holoinventory since the "contents" are only generated when it is broken. It cannot be picked up by itself.

Blocks UUID is only NBT data for the block, sets the block "type" according to the config options below. SO there could be multiple "ruined pulverizers" but each UUID could give different tiers of items.

Texture could just be the base texture. (will need to figure out how to deal with texturepacks etc)

When broken, the block goes over the loot tables and drops either the "real" block or a couple of items from the "parts" loot table.

With a generic configuration option, this system could be useful for a lot of other things. Like finding astronaut bodies on planets etc that can give various items/parts as well. Could recycle things like skulls into giving a reward too.

Must be placeable in creative mode, with a way of setting the UUID.

Maybe add an option for "explode chance if broken" and "explosion force".

Configuration options - These make the system generic so it can be used for other things.
Block's name - will need support for languages
Block's UUID? (specific to this mod)
Block's model mesh
Block's texture
Explode chance
Explosion force
Block has two-branch loot table system

Top level has weights for each branch to drop (say 5 for first, 95 for second)
One branch can drop the actual machine (5% of the time)
One branch can drop parts of the machine (95%), including input items and output items, with percentage chances for each item (setup so that when an item is selected, it is removed from the loot table for future passes) and a limited number of passes.
Sample config
Name: Ruined Pulverizer
UUID: (custom UUID from an online uuid generator)
Mesh: Simple block
Texture: Pulverizer
Explode chance: 10 ( 1 in 10 chance)
Explosion force: 5
Loot Table:
weight 5, # of rolls 1

HV pulverizer
weight 95, # of rolls 1-3
50 HV machine hull
25 HV circuit
20 HV circuit
15 HV motor
10 industrial diamond
10 (ore of some kinds)
10 (crushed ore of some kinds)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant