How to make a bucket for a fluid

Started by fireboyev on Thu, 03/24/2016 - 00:58
Last seen on 01:29, 8. Aug 2016
Joined May 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
How to make a bucket for a fluid
Thu, 03/24/2016 - 00:58

How do you make a bucket for a fluid that you can pick up and place properly like a normal water/lava bucket

Last seen on 22:14, 21. Nov 2017
Joined Dec 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Last time I checked, not
Thu, 03/24/2016 - 01:34

Last time I checked, not really possible. You could probably do it with variables and such.

Last seen on 03:50, 12. Aug 2018
Joined Aug 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Easy.
Sat, 03/26/2016 - 04:29

Easy.

1. Create your bucket item (containing fluid) and your custom fluid, if applicable. but we'll cover the item first.

2.when you get to events click on "When right clicked on bock" 

3. Under "conditions" select "itemInPlayersHand[] == yourbucketitem"

4. Hit "add event" right beneath the condition

5. Under "conditions" select "itemInPlayersHand[] == yourbucketitem"

6. On the left scroll selection, select "add block" and select your fluid as the block to be placed. Set the coordinates to j+1 so as not to delete the block you click on.

7. Click on "add event" at the BOTTOM, repeat step 4 and 5

8. On the left scroll screen selection, select "add item to inventory" and select the empty bucket, and the drop to 1

9. Click on "add event" at the bottom

10. Repeat step 7

11. On the left scroll selection, select "Consume Item in inventory" and set it to your bucket item. 

Voila, a bucket that will place your fluid.

To pick the fluid up, just reverse the process via the fluid blocks "on right clicked" event and give it the condition of "iteminplayershand == emptybucket" -> "add item to inventory" -> bucket o' fluid (plus a "consume item from inventory" to remove the empty bucket) 

Last seen on 01:29, 8. Aug 2016
Joined May 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
There is a problem though
Sun, 04/10/2016 - 02:16

There is a problem though because you can not do events on fluids so I can't make it pick up the fluid

Last seen on 01:29, 8. Aug 2016
Joined May 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Is there a custom code i
Sun, 04/10/2016 - 23:29

Is there a custom code i could add?

Last seen on 22:33, 5. Aug 2017
Joined Sep 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
RE:Is there a custom code i
Mon, 04/11/2016 - 06:33

@#4 make a new block, add the events you want, recompile, copy the code and paste it into the fluid class

Last seen on 01:29, 8. Aug 2016
Joined May 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
RE:RE:Is there a custom code i
Wed, 04/13/2016 - 02:34

@#4.1 What code? You didn't give a code.

Last seen on 22:33, 5. Aug 2017
Joined Sep 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
RE:RE:RE:Is there a custom code i
Wed, 04/13/2016 - 11:55

@#4.1.1 ._.

Do what I said above, then click on view source and copy the code and paste to the fluid source code

Last seen on 01:29, 8. Aug 2016
Joined May 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
RE:RE:RE:RE:Is there a custom code i
Thu, 04/14/2016 - 00:02

@#4.1.1.1 and that will make it so I can make a bucket how exactly?

Last seen on 09:39, 17. Apr 2016
Joined Apr 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Pretty much You need to make
Thu, 04/14/2016 - 01:38

Pretty much You need to make the bucket item, that being the bucket witht he fluid in it.

Then 

Make a block *being the liquid* and have it so, if clicked with a bucket, it would remove the block, and place it in the new - bucket.

And if the user clicks on a block, then place it where it was clicked. The block does the physics and what it needs to do, on its own.

 

However he's not going to give you a step-by step tutorial, or the code on how to do it.