Jump to content

armor effect


MrArnoEnCo

Recommended Posts

I' making an armor mod

 

but i like to put some effects on my armor.

 

for that i need you'r help

 

 

 

helmet - allows breathing underwater

plate- heals you while in water *subject to change*

Leggings - allows you to "float" in water when your not moving.

boots - Allows you to move faster when your in water but move slower on land.

 

 

how i need to to that plzz help me

 

Link to comment
Share on other sites

I' making an armor mod

 

but i like to put some effects on my armor.

 

for that i need you'r help

 

 

 

helmet - allows breathing underwater

plate- heals you while in water *subject to change*

Leggings - allows you to "float" in water when your not moving.

boots - Allows you to move faster when your in water but move slower on land.

 

 

how i need to to that plzz help me

 

You can't make something like "Speed Boots" because motionX, motionY, motionZ wont work in TickHandler...

Link to comment
Share on other sites

I' making an armor mod

 

but i like to put some effects on my armor.

 

for that i need you'r help

 

 

 

helmet - allows breathing underwater

plate- heals you while in water *subject to change*

Leggings - allows you to "float" in water when your not moving.

boots - Allows you to move faster when your in water but move slower on land.

 

 

how i need to to that plzz help me

 

You can't make something like "Speed Boots" because motionX, motionY, motionZ wont work in TickHandler...

 

ok thx, but how i can do the rest ?

Link to comment
Share on other sites

i found out how to do the player.motionY in the tick handler (SeKtOR check your thread on it, i've posted it there) you just have to make sure you register the tick handler correctly in both proxys, else the client and server desynchronise so the player does not update, until it sends and receives the player data from the server (like on taking damage)

 

basicly you need a setup like this:

 

in common proxy:

public void registerTickHandler()
{
	TickRegistry.registerTickHandler(new MyTickHandler(), Side.SERVER);
}

 

in client proxy:

public void registerTickHandler()
{
	TickRegistry.registerTickHandler(new MyTickHandler(), Side.CLIENT);
}

 

in the TickHandler:

public class MyTickHandler implements ITickHandler
{

@Override
public void tickStart(EnumSet<TickType> type, Object... tickData)
{
	playerTick((EntityPlayer)tickData[0]);
}

@Override
public void tickEnd(EnumSet<TickType> type, Object... tickData)
{

}

@Override
public EnumSet<TickType> ticks()
{
	return EnumSet.of(TickType.PLAYER);
}

@Override
public String getLabel()
{
	return "MY_PLAYER_TICK";
}

public static void playerTick(EntityPlayer player)
{
	//stuff to do to player
}
}

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.



×
×
  • Create New...

Important Information

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