Jump to content

[1.7.2]Changing lever state server side


maxanier

Recommended Posts

Hello

 

Does anyone know how to switch a lever´s state on server side?

There is the method

public boolean onBlockActivated(World p_149727_1_, int p_149727_2_, int p_149727_3_, int p_149727_4_, EntityPlayer p_149727_5_, int p_149727_6_, float p_149727_7_, float p_149727_8_, float p_149727_9_)

which probably does exactly this, but this seems to be designed for player interaction only. What do these parameter do or is there a other way to change the state?

 

Thanks in advance

 

maxanier

 

P.S.

I want to implement some sort of command that changes a redstone signal somewhere and I thought the best would be to change a lever state. (It should be server only, so no new blocks)

Minecraft Second Screen Mod: Use your mobile as a second screen for Minecraft and see your inventory, redstone stati, the chat and much more on it.

link

Vampirism: Become a vampire in Minecraft

link

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.