Jump to content

{SOLVED} [1.8.9] How to right-click with specific Item drop ItemBlock


IlTosaerba

Recommended Posts

22 minutes ago, diesieben07 said:

(middle click)

+in creative

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

50 minutes ago, diesieben07 said:

You can middle-click in survival, it will just not give you the item, it will select it from your inventory, if present.

Mm, true. I don't use the function in survival though, so I tend not to think about it. Creative, its super extra useful.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

13 hours ago, diesieben07 said:

First of all stop using 1.8.9.

 

This is not as easy as you might think. Do you want the block to turn into it's drops? Or do you want to get the "pick block" (middle click) result?

What version should I use? Keep in mind that I'm doing this mod for a forge server. So I need a version that has lot of cool mods and that doesen't weight too much on the CPU and GPU.

 

 

What I want to do is that:

 

When u break a block it gives u the itemBlock right? It's drop.

 

I want this appening when I right click with my item without breaking the block. So when I right click on a random block with my Item it spawn its drop without being break.

Link to comment
Share on other sites

4 hours ago, diesieben07 said:

1.12.2.

 

Call Block::getDrops (the deprecated one, for backwards compatibility) to obtain the drops.

I'm installing the 1.12.2 forge version. I first install the 1.12.2 vannila but when I try to lunch the forge version it gave me an error:

 

Seems like you are using a not supported modded game version

The game crashed whilst initializing game

Quote

The game crashed whilst initializing game
Error: java.lang.NoClassDefFoundError: net/minecraft/util/Vec3

 

No error's report

 

 

How can I fix it?

 

 

Fix it, I forgot to remove 1.8.9's mods lol

Edited by IlTosaerba
Fix it
Link to comment
Share on other sites

1 hour ago, diesieben07 said:

How exactly did you install Forge? Are you talking about installing Forge in the launcher? Or the development environment?

I fixed the problem, like I just sayed

 

However now I'm looking for goods minecraft 1.12.2 modding tutorials. Any Idea?

Link to comment
Share on other sites

If you're already using Shadowfacts and you need something more, I would recommend the following:

 

  • Jabelar's tutorials—covers a lot of stuff in depth that's not covered anywhere else, also has a list of other tutorials
  • Choonster's TestMod3—tons of great example code covering lots of things modders commonly want to do, although sometimes uses advanced Java concepts that are tough for beginners
  • TheGreyGhost's MinecraftByExample—again, lots of great example code

The best thing for you to do by far is to keep examining vanilla code and figuring out how it works. Think of something in vanilla that already does what you want, or something similar, and figure out how they do it. And keep digging deeper into Java.

Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.