Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Drinking
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 0
mftg

Drinking

By mftg, November 24, 2020 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

mftg    0

mftg

mftg    0

  • Tree Puncher
  • mftg
  • Members
  • 0
  • 4 posts
Posted November 24, 2020 (edited)

How do I set a food as drinkable?(I work on 1.15.2) worng category soryy

 

 

Edited November 24, 2020 by mftg
  • Quote

Share this post


Link to post
Share on other sites

Luis_ST    7

Luis_ST

Luis_ST    7

  • Diamond Finder
  • Luis_ST
  • Members
  • 7
  • 372 posts
Posted November 24, 2020

I think you can use the method UseAction:

 

		@Override
		public UseAction getUseAction(ItemStack itemstack) {

			return UseAction.DRINK;

		}

 

  • Quote

Share this post


Link to post
Share on other sites

mftg    0

mftg

mftg    0

  • Tree Puncher
  • mftg
  • Members
  • 0
  • 4 posts
Posted November 24, 2020

Thanks!!!!!!!!!!!!!!!!!!!!!!!!!

 

  • Quote

Share this post


Link to post
Share on other sites

mftg    0

mftg

mftg    0

  • Tree Puncher
  • mftg
  • Members
  • 0
  • 4 posts
Posted November 24, 2020

I readed the shield problem but i am new to modding (and english)

  • Quote

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • diesieben07
      java.lang.ExeptionInInitializerError: null

      By diesieben07 · Posted 5 minutes ago

      Show your code.
    • heavengel
      error minecraft this server has mod that requires forge to be installed on client

      By heavengel · Posted 11 minutes ago

      Hello   When I try to get in the server there's this message appearing : error minecraft this server has mod that requires forge to be installed on client But it happens that there is NO mod installed on the server, how is this message appearing then ?  Can someone help me please
    • diesieben07
      Can't launch Forge because of spongepowered.[...].MixinTweaker

      By diesieben07 · Posted 42 minutes ago

      1.12 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
    • NullDev
      Text Color Formatting

      By NullDev · Posted 42 minutes ago

      I've done that like this, but now it just appears all black   IFormattableTextComponent toSend = new StringTextComponent("Info: "); toSend.func_240701_a_(TextFormatting.WHITE) .func_230529_a_(new StringTextComponent(ticksRemaining/20 + " | ")) .func_240701_a_(TextFormatting.RED) .func_230529_a_(new StringTextComponent(Integer.toString(redstoneAdded))) .func_240701_a_(TextFormatting.WHITE) .func_230529_a_(new StringTextComponent(" | ")) .func_240701_a_(TextFormatting.GREEN) .func_230529_a_(new StringTextComponent(Integer.toString(emeraldAdded))) .func_240701_a_(TextFormatting.WHITE) .func_230529_a_(new StringTextComponent(" | ")) .func_240701_a_(TextFormatting.AQUA) .func_230529_a_(new StringTextComponent(Integer.toString(diamondAdded))) .func_240701_a_(TextFormatting.WHITE) .func_230529_a_(new StringTextComponent(" | ")) .func_240701_a_(TextFormatting.BLACK) .func_230529_a_(new StringTextComponent(Integer.toString(coalAdded))); player.sendStatusMessage(toSend, true);  
    • We Random
      java.lang.ExeptionInInitializerError: null

      By We Random · Posted 53 minutes ago

      I am making a mod right? Im using IntellijIdea but its not an issue with Intellij I dont think... I keep on getting an error when i try to run the client (the pastebin is down below). A little something you should know - This is 1.16.5, it was working earlier until i added blocks, and i am a complete noob.   https://pastebin.com/Ynj862CG     any help is GREATLY appreciated
  • Topics

    • We Random
      1
      java.lang.ExeptionInInitializerError: null

      By We Random
      Started 53 minutes ago

    • heavengel
      0
      error minecraft this server has mod that requires forge to be installed on client

      By heavengel
      Started 11 minutes ago

    • Leetram_519
      1
      Can't launch Forge because of spongepowered.[...].MixinTweaker

      By Leetram_519
      Started 57 minutes ago

    • NullDev
      2
      Text Color Formatting

      By NullDev
      Started 2 hours ago

    • jonaskohl
      4
      [Solved] Registering custom flowers as compostable

      By jonaskohl
      Started Yesterday at 04:47 PM

  • Who's Online (See full list)

    • heavengel
    • diesieben07
    • Miguelowwski
    • Herobrine510
    • samuelderam
    • Tavi007
    • loordgek
    • CoreOfLife
    • Bspeaker
    • PJcactus
    • Alexdakid09
    • trs_sousa
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Drinking
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community