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
  • Crafting Recipes?
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 0
yanksrock1019

Crafting Recipes?

By yanksrock1019, January 20, 2014 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

yanksrock1019    2

yanksrock1019

yanksrock1019    2

  • Creeper Killer
  • yanksrock1019
  • Members
  • 2
  • 193 posts
Posted January 20, 2014

Does anyone know the knew way of telling minecraft what block to use in the crafting recipe of a new item. You used to just put "Block.(some block)"

  • Quote

Don't tell me to learn the basics of java, I already know.

Share this post


Link to post
Share on other sites

diesieben07    7587

diesieben07

diesieben07    7587

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7587
  • 54940 posts
Posted January 20, 2014

It didn't change.

  • Quote

Share this post


Link to post
Share on other sites

yanksrock1019    2

yanksrock1019

yanksrock1019    2

  • Creeper Killer
  • yanksrock1019
  • Members
  • 2
  • 193 posts
Posted January 20, 2014

It didn't change.

 

Are you sure, because it won't allow me to do that.

  • Quote

Don't tell me to learn the basics of java, I already know.

Share this post


Link to post
Share on other sites

diesieben07    7587

diesieben07

diesieben07    7587

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7587
  • 54940 posts
Posted January 20, 2014

Do what? You still just pass a Block instance in...

  • Quote

Share this post


Link to post
Share on other sites

skullywag    0

skullywag

skullywag    0

  • Creeper Killer
  • skullywag
  • Members
  • 0
  • 102 posts
Posted January 20, 2014

throw your code in here, im sure someone will spot the problem.

  • Quote

Share this post


Link to post
Share on other sites

Kuuu    2

Kuuu

Kuuu    2

  • Stone Miner
  • Kuuu
  • Members
  • 2
  • 62 posts
Posted January 20, 2014

If you're on 1.7.2, use Blocks.block_name

  • Quote

Share this post


Link to post
Share on other sites

yanksrock1019    2

yanksrock1019

yanksrock1019    2

  • Creeper Killer
  • yanksrock1019
  • Members
  • 2
  • 193 posts
Posted January 20, 2014

This is the code for the crafting.  It doesn't give me errors, but it won't show up in game.

 

 public void craftingRecipes(){;

	GameRegistry.addRecipe(new ItemStack(PupletMod.pupletPickaxe), new Object[]{
		"PPP", " S ", " S ",
		'P', PupletMod.ingotPuplet,
		'S', Items.stick
	});


    }

  • Quote

Don't tell me to learn the basics of java, I already know.

Share this post


Link to post
Share on other sites

diesieben07    7587

diesieben07

diesieben07    7587

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7587
  • 54940 posts
Posted January 20, 2014

Where do you call that method?

  • Quote

Share this post


Link to post
Share on other sites

yanksrock1019    2

yanksrock1019

yanksrock1019    2

  • Creeper Killer
  • yanksrock1019
  • Members
  • 2
  • 193 posts
Posted January 20, 2014

Nvm, I figured it out. Thanks!

  • Quote

Don't tell me to learn the basics of java, I already know.

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
      [1.16.4] Smithing table custom recipe use durability

      By diesieben07 · Posted 32 minutes ago

      There is no way to do this. The smithing container is hardcoded to just decrease its inputs and not use the container item (see SmithingTableContainer#func_230301_a_).
    • st4s1k
      [1.16.4] Smithing table custom recipe use durability

      By st4s1k · Posted 50 minutes ago

      Hi! How do I make so that when I place in the smithing table a tool and a material, I get another material and decrease the durability of the tool without loosing the tool? I overrided the item container methods but the item is still consumed on craft: @Override public boolean hasContainerItem(ItemStack itemStack) { return true; } @Override public ItemStack getContainerItem(ItemStack itemStack) { if (itemStack.attemptDamageItem(1, random, null)) { itemStack.shrink(1); itemStack.setDamage(0); } return itemStack; } Thanks in advance!
    • diesieben07
      (1.16.2) Making a new capability (3)

      By diesieben07 · Posted 1 hour ago

      So now you just removed the @EventBusSubscriber annotation. I did not tell you to do this.
    • diesieben07
      [1.16.4] How i can open a container by clicking on my mob

      By diesieben07 · Posted 1 hour ago

      Do not use @OnlyIn.   I do not understand this question.
    • diesieben07
      Game crashes while loading world

      By diesieben07 · Posted 1 hour ago

      Please refer to the Optifine downloads page regarding compatibility with Forge.
  • Topics

    • st4s1k
      1
      [1.16.4] Smithing table custom recipe use durability

      By st4s1k
      Started 50 minutes ago

    • e2rifia
      14
      (1.16.2) Making a new capability (3)

      By e2rifia
      Started 8 hours ago

    • Klarks
      13
      [1.16.4] How i can open a container by clicking on my mob

      By Klarks
      Started 20 hours ago

    • Rollng
      1
      Game crashes while loading world

      By Rollng
      Started 1 hour ago

    • KEKEL
      1
      I have a problem with chisels and bits mod.

      By KEKEL
      Started 3 hours ago

  • Who's Online (See full list)

    • diesieben07
    • Ángel 77
    • Cheesepotato?
    • jbredwards
    • Linky132
    • MistyMarshes
    • AntiRix
    • SomeoneElse
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Crafting Recipes?
  • Theme

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