more AI blocks

Started by kj137 on

Topic category: Feature requests and ideas for MCreator

Last seen on 13:18, 31. Mar 2023
Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
more AI blocks

there are actually 2 requests.

 

first, ability to make custom goals. its achivable by making a goal block "custom goal" which has these procedure slots: (these are just the methods of mc goal class)

1- can use

2- can continue using

these two are already available for all goals.

3- is interruptable ( can interrupt the goal and select another, no for goals which do a special behaviour which shouldnt be interrupted.)

4- start (called when the goal is started.)

4- stop (called when the goal is stopped.)

5- requires update every tick (if the goal needs to be updated every tick or not. not exactly sure what this means, maybe I update this post when I find out)

6- tick (called each tick. the main procedure probably)

for shared variables between these, local variables must have an option called "object specific" which makes them defined and accessed in the scope of the object which they are called on.(goal for this example, or even more! like on custom items/blocks/etc they define the variables on the object itself and remove the need for additional nbt usage. pretty much a third feature request.) to turn these into code, once an object's procedure slots are assigned the procedure's local "object specific" variables are found and defined in the class (if not there already, defined by another procedure). this would also turn every access of "x" into "this.x"

 

second, simply more AI blocks! there are like a ton of goals in mc itself and most of them are implementable pretty easily (if not all of them).

 

Last seen on 02:51, 25. Jun 2024
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yeah there aren't too many…
Sat, 04/08/2023 - 02:44

Yeah there aren't too many blocks