Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

So, i need edit player propetries, like speed, max health and etc, without using armour, blocks and items. For example using cmd.

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.

  • Author
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

  • Author
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

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

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.