Code Monkey home page Code Monkey logo

pathengine's Introduction

PathEngine

A path engine as a datapack for minecraft.

Let your entities move in a simple and efficient way. Place signs which are considered as waypoints under the path and let the entity run from one sign to another in a straight line. They can go up and down half slabs & stairs. The entity will get the new direction from the reached sign and will change direction.
The entities can go in 4 directions:

North
  1
4 0 2          # 0 is standing still
  3
South

Check the video out to see how easy it is to set up!

HowTo.mp4

โš™ Installation

  1. Download the datapack and put it in your datapack folder
  2. Place down signs under a path to create waypoints
  3. Give your entity the score pe_direction from 1 to 4 to get it moving

๐Ÿšง Signs

These are the lines for the waypoint signs.

Pathengine              # needed on every waypoint
<direction>             # a direction from 0 to 4
f<function_id>          # a function id
<empty/doesn't matter>

Example

Waypoint_Sign

When entity reached this sign the entity will change direction to west and will run the function with the id 0 upon reaching the waypoint.

๐Ÿ“ฃ Function calling

Call your own functions upon entitys reaching waypoints:

  1. Edit the file function_call.mcfunction and add your path to your functions in there and uncomment the needed line
  2. Create a waypoint sign with the third line f<functionID>. For example f0 to call the first function in function_call.mcfunction

โ›” Ignore Message on reload

Give yourself the tag pe_noannouncement so you won't get the loaded message on the reload command.

pathengine's People

Contributors

neocky avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.