Key Bind Help

Started by _WebGames_ on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Key Bind Help
Sun, 05/23/2021 - 20:32 (edited)

I'm trying to make a key bind that will spawn a custom living entity to protect the player that spawned it in. I can't find the event trigger to get the process started or the block that spawns in the entity once the code begins. All help is appreciated

Edited by _WebGames_ on Sun, 05/23/2021 - 20:32
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
in the procedure there is a…
Wed, 05/26/2021 - 19:54

in the procedure there is a search bar to lookup all blocks you need i dont understand fully what your looking for but this should help

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
from the key bind menu, go…
Fri, 06/11/2021 - 11:48

from the key bind menu, go to the procedure, on key pressed, inside it you have to options:

1. if you want to summon the entity where the player is looking, use the

[Look X position of [event/target entity] with raytrace distance [5] fluid mode [NONE] block mode [OUTLINE]]

[Look Y position of [event/target entity] with raytrace distance [5] fluid mode [NONE] block mode [OUTLINE]]

[Look z position of [event/target entity] with raytrace distance [5] fluid mode [NONE] block mode [OUTLINE]]

in the entity data and change raytrace distance to 100

 

2. if you want to summon it directly on the player, use the [x] [y] [z] blocks in Minecraft components

 

make an entity with some textures and setting stuff then make it a creature

in the AI put them in this order (you don't actually have to use this order the earlier blocks are priority)

[attack entities that attacked the owner [conditions: OO]]

[hurt entities that the owner attacked [conditions: OO]]

[follow owner with speed factor [any #] minimal distance [any #] maximal distance [any #] if tamed [conditions: OO]]

 

then go back to the keybind procedure and put this:

[Spawn at x:[your chosen x block] y:[your chosen y block] z:[your chosen z block] living entity: [EntityYour_entitie's_name]]

use an if statement if you want, example:

 

[event trigger - triggered by external call
or when (global trigger) [no additional trigger]]

if [[[current health of [event/target entity]] < [11]]] 
do {[spawn at x:[Look X position of [event/target entity] with raytrace distance [5] fluid mode [NONE] block mode [OUTLINE]] y:[Look Y position of [event/target entity] with raytrace distance [5] fluid mode [NONE] block mode [OUTLINE]] z:[Look Z position of [event/target entity] with raytrace distance [5] fluid mode [NONE] block mode [OUTLINE]] living entity: [EntityHelper]]}