Help me with fonctionality

Started by maegardette on

Topic category: Help with modding (Java Edition)

Last seen on 06:49, 12. Oct 2024
Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help me with fonctionality

i want to do 

Ko System:

View of the player who has been knocked out:
When the player falls to the ground, he will have blurred vision and on his game it will be written "you are K.O".
The player will be able to "respawn" in the same place within 10 minutes.
View of the player who knocked out:
The player who has been knocked out will then be put on the ground, lying down in
this way:

The player who has knocked out the other player will be able to interact with the body of the person on the ground by crouching down and right-clicking. Note that if the player who is standing passes over the body, it will be indicated as on the screen [Sneak+right-click] to interact.

Once the player has [Sneak+right-click] and interacts, a panel will be offered to him:

Heal the person: The person who applied this ability will then see the “interaction interface” close and a 30-second delay bar will begin or the person must not make any movement to heal the person

Search the person: The person who applied this ability will then see the “interaction interface” close and a 4-second delay will begin without moving with a delay bar that will then open the inventory of the person concerned and will be able to interact with their inventory (take an item, or drop one). You will then have to press “Esc” to exit the other person's inventory.

Finish the person: The person who applied this ability will then see the “interaction interface” close and begin a 10-second delay without moving with a delay bar that will then cause the player in question to receive on his screen:
“Your character is dead” and the player will therefore not be able to get up and will have to stay on the ground.
A staff will then come and will remain the player data.

Handcuff the person*:
Note that the ability is offered, however, it appears in the same way as the other abilities if he has a "handcuff" item. The difference is that if the player does not have the handcuffs, it appears in black and the use of the ability is impossible. The person who applied this ability will then see the interaction interface close, and a 4-second delay will begin, during which he will not be able to move, with a progress bar indicating the end of the delay.

Once this time limit is over, the player will then be handcuffed and will not be able to move, if possible, by making sure that the player has his hands behind his back.

Give a pill *:
Note that the ability is offered, however, it appears in the same way as the other abilities if he has a "Medical pill" item. The difference is that if the player does not have the pill it appears in black and the use of the ability is impossible. The person who applied this ability will then see the interaction interface close, and a 6-second delay will begin, during which he will not be able to move, with a progress bar indicating the end of the delay.

Once this delay is over, the player who is interacted with and who takes the pill will receive a message on the screen "You have just been given a pill".

Carry the person: The person who applied this ability will then see the "interaction interface" close and begin a 2-second delay without moving with a delay bar, which once finished will carry the player:

To release the body, it will then be necessary to [sneak + right click] and will be indicated as on the screen, [Sneak + right click] Release the body

Blindfold the person: Note that the ability is offered, however, it appears in the same way as the other abilities if he has a "Blindfold" item. The difference is that if the player does not have the Blindfold, it appears in black and the use of the ability is impossible. The person who applied this ability will then see the interaction interface close, and a 3-second delay will begin, during which he will not be able to move, with a progress bar indicating the end of the delay.

Once this delay has passed, the target will then see his black screen with "You are blindfolded" written