Jump to content

Recommended Posts

Posted

First off this is the off topic subform for support with making mods check out Mod Developer Central > Modder Support.

Also if you just plan on doing basic effects such as speed and health you can use the existing ones as an example of how to make your own modified version. If you are trying to do something more complex give an example and I will try to help you figure out how to do it.

Posted
48 minutes ago, MDW01 said:

First off this is the off topic subform for support with making mods check out Mod Developer Central > Modder Support.

Also if you just plan on doing basic effects such as speed and health you can use the existing ones as an example of how to make your own modified version. If you are trying to do something more complex give an example and I will try to help you figure out how to do it. 

for example, how can i get on mouse left click method and so on

Posted
Just now, MDW01 said:

Are you clicking a block if not what are you?

no=) I am clicking an air. My idea is create mod that adding power to player and when player will click blocks which located on some distance to the player will destroyed

Posted

The basics are:

Create an IExtendedReach interface that will allow you to identify when you can use extended reach, and provide a method to get the value of the reach.

Make your custom command/effect implement the IExtendedReach interface.

Create and register a custom IMessage packet for telling the server about a successful attack.

Handle the MouseEvent where you:

Check whether the mouse left button was clicked.

Check whether an IExtendedReach item is equipped.

Calculate a MovingObjectPosition with the reach of the item.

If the MovingObjectPosition returns an entity, send a custom packet to the server to call the attack method on that entity.

 

Heres a similar tuturial http://jabelarminecraft.blogspot.com/p/minecraft-modding-extending-reach-of.html

Posted
9 minutes ago, MDW01 said:

The basics are:

Create an IExtendedReach interface that will allow you to identify when you can use extended reach, and provide a method to get the value of the reach.

Make your custom command/effect implement the IExtendedReach interface.

Create and register a custom IMessage packet for telling the server about a successful attack.

Handle the MouseEvent where you:

Check whether the mouse left button was clicked.

Check whether an IExtendedReach item is equipped.

Calculate a MovingObjectPosition with the reach of the item.

If the MovingObjectPosition returns an entity, send a custom packet to the server to call the attack method on that entity.

 

Heres a similar tuturial http://jabelarminecraft.blogspot.com/p/minecraft-modding-extending-reach-of.html

thanks, if i use armour, is there other way?

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.