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

Add droppers #509

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add droppers #509

wants to merge 2 commits into from

Conversation

Wuzzy2
Copy link
Contributor

@Wuzzy2 Wuzzy2 commented Mar 30, 2020

This adds a dropper.

The dropper is an effector that has an inventory with 9 slots. When powered, it will drop a random item in its inventory, provided the node in front of it is not solid (=walkable).

The dropper can face upwards, downwards or sideways.

I think it works fine (it's based on the droppers in MCL2), but you might dislike the textures (maybe someone more skilled than me can draw better ones).

@@ -0,0 +1,2 @@
mesecons
screwdriver?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add these to mod.conf.

@numberZero
Copy link
Contributor

Works, but:

  1. Is such complicated texturing necessary?
  2. Is this any different from pipeworks dispenser?

@Wuzzy2
Copy link
Contributor Author

Wuzzy2 commented Jun 27, 2020

  1. I don't know what you mean. If 6 textures are too complicated to you, then I can't help you. :(
  2. I don't know. I don't use pipeworks.

@numberZero
Copy link
Contributor

If 6 textures are too complicated to you, then I can't help you. :(

I mean this:

3 node definitions are needed because of the way the textures are defined.

Also that prevents rotating droppers vertically. That may be a problem, it’s not always easy to place a node in the correct orientation.

@numberZero
Copy link
Contributor

I don't use pipeworks.

So it may be the time to try. The dispenser does the same thing albeit a bit differently:

  • Its inventory is 1×1 (so no random drops).
  • It also acts on punch.
  • It uses the on_drop callback (if any).

The difference is minor IMO, so is it reasonable to include that similar machine in Mesecons (provided that currently Mesecons never operate on items)?

@Wuzzy2
Copy link
Contributor Author

Wuzzy2 commented Jun 28, 2020

Oh well. This block I made is basically just a clone from the dropper in Minecraft. :P

@johalun
Copy link
Contributor

johalun commented Oct 8, 2020

+1 for this! It's nice to have as randomizer.

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

Successfully merging this pull request may close these issues.

4 participants