How to make a bucket for a fluid

Started by fireboyev on

Topic category: Help with modding (Java Edition)

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a bucket for a fluid

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 16:05, 15. Nov 2020
Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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 22:00, 11. Nov 2019
Joined Aug 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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
Points:

User statistics:

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

Is there a custom code i could add?

Last seen on 15:14, 24. May 2023
Joined Sep 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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 15:14, 24. May 2023
Joined Sep 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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.