Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

How to get BlockEntity from non Forge Server?


Recommended Posts

Dear Team,

 

Im writing small mod and Im missing small piece - while playing ForgeClient on remote non forge server - how to get information about Block (preferebly with usage of BlockPos?

Link to post
Share on other sites

Whether or not the server has forge is not really relevant. You call the corresponding methods in World, e.g. getBlockState or getBlockEntity. Note that the client does not necessarily have all BlockEntity information.

Link to post
Share on other sites
Posted (edited)

with latest Forge - how to get access to World? as In Minecraft I can see only ClientWorld which is not relevant here. I believe asking about very neastest blocks should be safe. And does this asking is actually involving server? Like what is block under player?

Edited by LemonekPL
Link to post
Share on other sites
39 minutes ago, LemonekPL said:

as In Minecraft I can see only ClientWorld which is not relevant here

Why not? You worded your question as if you write a client only mod - as such your mod can only interact with the client world.

Is that not the case?

Link to post
Share on other sites

Hi @dieseben07 

I think I have misunderstood concept - I taught that ClientWorld refers to local play while ServerWorld to online play. Now I understand how to get job done. I believe that now I know everything what I was missing.

Im writing small mod with web interface to send commands to Minecraft. Something like robot steering. While I managed to get control of movements I wanted to add more commands and sensors for better orientation like "is next block a lava?".

 

Link to post
Share on other sites
45 minutes ago, LemonekPL said:

I think I have misunderstood concept - I taught that ClientWorld refers to local play while ServerWorld to online play. Now I understand how to get job done. I believe that now I know everything what I was missing.

There is very little difference in architecture between single player and multiplayer. Both use a server.

Link to post
Share on other sites
59 minutes ago, LemonekPL said:

I taught that ClientWorld refers to local play while ServerWorld to online play

Local play has both a ClientWorld and a ServerWorld via the IntegratedServer.

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 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.   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.



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.