Jump to content

Recommended Posts

Posted

Excuse me? Learn some grammar, and then come back to us, because if you don't know proper English, you're gonna have trouble with syntax's.

 

Maybe you shouldn't be yelling at him for not knowing English and should instead try to answer his question. Oh, and by the way, it's syntaxes.

If you really want help, give that modder a thank you.

 

Modders LOVE thank yous.

Posted

If you don't make a crafting recipe for your block it will only be visible in the creative menu. Or what are you trying to do?

 

I put a block. if I'm creative mode (or put on a helmet for example), then I see him and I can break / change. If not, the block is not displayed and I can't see him / break / step

Posted

That's not that easy. You probably need a TileEntitySpecialRenderer.

 

But how do I get a block simultaneously exist and not exist? And if two players stand next to it and one can see it, the second should not see it.

 

It's like magic points in taumсraft

Posted

That's why you need a TESR. In there check if the player (there is only one because you are on the client when rendering) is in creative mode. If so, render the block, otherwise don't. And then just make the hitbox and everything player dependent, too.

 

Something like this http://pastebin.com/hKyAgBwP ? And further check on the server when you try to break the block?

Posted

You've got the same access with a ISimpleBlockRenderingHandler as you do with a TileEntity, by the way: neither are passed a player reference at any point during rendering.

(ISimpleBlockRenderingHandler renders normal blocks, normal blocks take up less CPU to keep in the world)

 

And given that rendering stuff is client side, that would be an appropriate use for Minecraft.getMinecraft().thePlayer

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.

Posted

Hmm.  That is true.

 

In which case:

Hope you don't need a lot of them.

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.

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.