Skip to content

Releases: budak7273/Magnet

Version 4.0.0

27 Jul 23:02
747840f
Compare
Choose a tag to compare

Install by putting the zip in your save's datapacks folder. No unzip needed.

Please read the readme for features and more info.

  • Updated to support Minecraft 1.21 (Pack Format 48)
  • Replaced the custom crafting system with the new Pack Format 34 recipe output components system
    • The item now appears as "Magnet" in the Crafting Table instead of regular chainmail leggings
    • Crafter (block) is now capable of crafting the magnet
    • Removed m_total_crafted_magnets scoreboard objective
    • Fixed that trading with a villager for chainmail pants would try to convert it to a magnet
  • Added support for foxes using magnets
  • give_magnet function now gives ingredients instead of the final item

Full Changelog: v3.1...v4.0.0

Version 3.2.0

15 Jan 18:32
4d99499
Compare
Choose a tag to compare

Install by putting the zip in your save's datapacks folder. No unzip needed.

If you're updating from an old version, consider running /function magnet:uninstall before installing the new version to clean up any old scoreboards that may have been renamed in the update. This is not required, and leaving them there will not affect the functionality of the datapack.

Please read the readme for features and more info.

Updates since version 3.1:

  • A sound is played when you craft a magnet
  • New safety checker in the crafting system. If you haven't been given your crafted magnet in 5 seconds, the system will stop trying to do so and will display a message to you in chat. This helps reduce the problems caused by the villager trading bug mentioned on the mod page.
  • Slight lag improvement by switching to more precise selectors in the crafting loops
  • Scoreboard objective tracks what players have crafted magnets, and how many
    • Use /scoreboard objectives setdisplay sidebar m_total_crafted_magnets to display it on the sidebar, for example

Full Changelog: v3.1...v3.2.0

Version 3.1

24 Oct 05:28
Compare
Choose a tag to compare

Install by putting the zip in your save's datapacks folder. No unzip needed.

Please read the readme for features and more info.

Updates since version 2.0:

  • Massive lag optimizations
    • Magnet activation now happens every few ticks (configurable) instead of every single tick
  • Many inbuilt config options.
  • Many new commands (see commands section)
    • Track down magnet holding entities
    • Show configs
    • Reinstall with default configs
    • Clean up for uninstall

Version 2.0

05 Jun 06:18
Compare
Choose a tag to compare

Install by putting the zip in your save's datapacks folder. No unzip needed.

Please read the readme for features and more info.

Updates since version 1.1:

  • Much fancier magnet item with information about the magnet listed via lore.
  • Particles are created on the magnet user when a magnet teleports an item.
  • Added comments to just about every function.
  • Custom crafting recipe implemented! Hooray!
    • Recipe granted via advancement once you obtain an iron ingot
    • Based off of the system SethBling uses in his Water Mill datapack. I reverse engineered it the best I could. If you're looking to do something like this yourself, take a look at my comments.
  • Info messages on pack load and advancement gain contain a link to this site.
    • Made via bit.ly so that I can redirect them if needed without having to push a new version.
  • Improved magnet item detection
    • Now any item can be a magnet as long as it has the {isMagnet:1b} tag. Use commands to make other items into magnets!
  • Mobs using magnets are now randomly selected for teleport order, meaning they'll shuffle items between
    them.
    • A horde of magnet-wielding zombies can quickly gear themselves with the best gear nearby and pass their old gear to their buddies. Frightening.

Version 1.1

04 Jun 03:16
Compare
Choose a tag to compare

Install by putting the zip in your save's datapacks folder. No unzip needed.

Read the readme for features and more info.

Updates since version 1.0:

  • Uses SelectedItem rather than Inventory[] and SelectedItemSlot to cut down on the number of commands run per tick.
  • Zip no longer includes unused (broken) crafting recipe and test texture.

First official release

25 May 07:10
8cc71d0
Compare
Choose a tag to compare

Install by putting the zip in your save's datapacks folder. No unzip needed.

Read the readme for features.

Updates since last private test:

  • Now works in the legs slot
  • Now works on mobs wearing the magnet