Coder Social home page Coder Social logo

misode / packtest Goto Github PK

View Code? Open in Web Editor NEW
18.0 2.0 1.0 264 KB

Fabric mod for testing data packs, with data packs

Home Page: https://modrinth.com/mod/packtest

License: MIT License

Java 100.00%
data-pack data-packs datapack datapacks fabricmc gametest gametest-minecraft minecraft unit-testing

packtest's Issues

Running test from the command line does not respect the worldborder

Description

When working with scaled position the worldborder has to be changed to avoid scoreboard overflow. Since tests are run at a random location they can fail due to high coordinates.

Possible Solution

Never run tests outside of the worldborder which let the user be responsible for the max size of the world.

Add more ways to assert data

Description

Testing numbers with the data command is always a bit tedious. I was thinking that this could be simplified using the same interface as for scores.

Proposition

The assert data command could be expanded to also support matches with float ranges and operators like for the score version. This would of course only work with numbers.

Example:

assert data storage foo bar matches 1.5..1.6
assert data storage foo bar < storage bar baz

Edit: i spotted a small mistake in the readme. (checks NBT data using the same syntax as execute if score) should atm be (checks NBT data using the same syntax as execute if data)

Dummies Gain the 'Bring Home the Beacon' Advancement

Description

Dummies can obtain the 'Bring Home the Beacon' Advancement when standing in their test structure for a couple of seconds.

How to Reproduce

  1. Write any test including a dummy, but make sure the test fails so the dummy sticks around after.
  2. Run the test, ensuring the test status beacons are placed by the mod.
  3. Wait for a little bit (vanilla doesn't grant the advancement instantly).
  4. See that the Advancement 'Bring Home the Beacon' is announced in chat.

Possible Solution

This problem doesn't cause any real issues, but it does spam the chat with those Advancement announcements. Is there a way to hide the announcements for dummies?

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.