Data Packs Tool

Multifunction Magnet

  • 2.5k views 0 today
  • save_alt 120 downloads
Compatibility
Minecraft 1.17
to version
Minecraft 1.19
Changes include
  • Functions
  • Predicates
  • 3
  • 4
  • 3
Required Resource Pack
iMoonDay
Lvl 11Journeyman Modder
0
Note:
注:

1. This data package is also a material package and must be put into the resourcepacks package folder for use.
1. 本数据包也是材质包,必须同时放入材质包文件夹配合使用。

2. The namespace is ima
2. 命名空间为:ima

3. CustomModelData is 13240001~13240004
3. CustomModelData数值为:13240001~13240004

How to use
使用方法

Hold the magnet (magnetized items) in the main hand/off hand/wear it on the body/put it in the item frame(Item frame is placed on the lit redstone lamp to activate attraction)/(partial) right-click throw/throw it on the ground to attract/teleport drops/experiences within a range of 30/25/20/15
将磁铁(磁化物品)拿在主手/副手/穿在身上/放在物品展示框里(物品展示框放在点亮的红石灯上激活吸引)/(部分)右键抛出/丢在地上可吸引/传送距离30/25/20/15格以内的掉落物/经验

(Dual holding will cause magnet failure, hand-held priority is always the highest, with multiple magnetized items on the body merge and display the maximum range)
(双持将导致磁铁失效,手持优先级永远最高,身上有多件磁化物品则合并并显示最大范围)

Basic magnet synthesis method
基础磁铁合成方法

1. Rename the compass "磁铁" or "Magnet" or "magnet"
1. 将指南针改名为"磁铁"或"Magnet"或"magnet"

2. Drop the magnet over the anvil with the Mending and Loyalty 3 Enchantment books respectively
2. 将磁铁分别与经验修补和忠诚3附魔书扔到铁砧上方

(Optional, but has at least one, and cannot add another enchantment after compositing)
(可选,但至少有一个,并且合成后无法重新加上另一个附魔)

3. Drop the magnet and diamond over the enchanted table
3. 将磁铁与钻石扔到附魔台上方

Activate Teleport Mode method (default only Attract Mode)
激活传送模式方法(默认仅有吸引模式)

Drop the magnet (magnetized items) and the ender pearl over the anvil
将磁铁(磁化物品)与末影珍珠扔到铁砧上方

Activate Filter Mode method (Filter player drops)
激活过滤模式方法(过滤玩家丢弃物)

Throw the magnet (magnetized items) and hopper over the redstone block
将磁铁(磁化物品)与漏斗扔到红石块上方

Activate the prompt method
激活提示栏方法

Throw the magnet (magnetized items) and the redstone lamp over the redstone block
将磁铁(磁化物品)与红石灯扔到红石块上方

Extended-range method
增加范围方法

Throw the magnet (magnetized items) and the ender eye over the smithing table
将磁铁(磁化物品)与末影之眼扔到锻造台上方

Active right-click method
激活右键方法

Throw the magnet (magnetized items) and the amethyst shard over the redstone block
将磁铁(磁化物品)与紫水晶碎片扔到红石块上方

One-click upgrade method
一键升级方法

Throw the compass and the nether star/netherite ingot over the smithing table
将指南针与下界之星/下界合金锭扔到锻造台上方

Attribute transfer/copy method (Attach magnets to items)
属性移植/复制方法(将磁铁合并到物品上)

Drop magnets (magnetized items) and portable/replicable items over the anvil
将磁铁(磁化物品)与可移植/复制物品扔到铁砧上方

Attribute forced-migration method (Force magnets onto unsupported items)
属性强移植方法(将磁铁强行合并到不支持的物品上)

Throw magnets (magnetized items) and non-portable items over the magnet
将磁铁(磁化物品)与非可移植扔到磁石上方

Eliminates the migration attribute method
消除移植属性方法

Drop a magnetized items over an anvil with a compass named magnet
将磁化物品与命名为"磁铁"的指南针扔到铁砧上方

(Note: Compass cannot be enchanted)
(注:指南针不能带有附魔)

Eliminate forced-migration attribute method
消除强移植属性方法

Throw the forced-magnetized items and the compass named magnet over the grindstone connected to the lodestone
将强磁化物品与命名为"磁铁"的指南针扔到连接着磁石的砂轮上方

(Note: Compass cannot be enchanted)
(注:指南针不能带有附魔)

Dissolving magnet method
分解磁铁方法

1. Drop the magnet into the water
1. 将磁铁扔入水中

2. Ignite one TNT within 5 grids of the magnet
2. 在磁铁5格范围内引燃一个TNT

(TNT is also recommended in the water)
(建议TNT也在水里)

3. Magnets break down into raw materials after TNT explosion
3. TNT爆炸后磁铁分解成原材料

Portable items
可移植物品

Iron/Gold/Diamond/Netherite tool/weapon/equipment
铁/金/钻石/下届合金工具/武器/装备

Chainmail equipment
锁链套装

Recovery copass
追溯指针

Trident
三叉戟

Flint and steel
打火石

Fishing rod
钓鱼竿

Elytra
鞘翅

Shears
剪刀

Shield
盾牌

Clock
时钟

Bow


Crossbow


Reproducible consumables
可复制消耗品

Snowball
雪球

Egg
鸡蛋

Related instruction
相关指令

View Settings /trigger imaSetting
查看设置 /trigger imaSetting

Switch the Filter Mode /trigger imaDetect
切换过滤模式 /trigger imaDetect

Toggle the prompt bar display /trigger imaTips
切换提示栏显示 /trigger imaTips

Toggle handheld only display Prompt bar mode /trigger imaHandingTips
切换仅手持显示提示栏模式 /trigger imaHandingTips

Switch the Attract/Teleport Mode /trigger imaMode
切换吸引/传送模式 /trigger imaMode

Toggle Sneak Mode /trigger imaSneak
切换潜行模式 /trigger imaSneak

unload datapack /function ima:unload
卸载数据包 /function ima:unload

Known BUG feature
已知BUG特性

1. When the backpack is full but there is a backpack can hold the position of items on the ground will not attract
1. 背包已满时但有背包内有可容纳掉落物的位置却不会吸引

2. Magnetized drops have a chance of causing nearby drops to jump repeatedly when attracted
2. 磁化掉落物吸引时有几率导致附近的掉落物反复跳跃

3. Too many drops cause frame rate to be too low
3. 掉落物过多时导致游戏帧率过低

4 Update Logs

3.1 Update : by iMoonDay 01/29/2023 12:02:25 pmJanuary 29, 2023 @ 5:02 pm UTC

Optimize an issue with too many drops causing the game frame rate to be too low, but still not fixed
优化掉落物过多时导致游戏帧率过低的问题,但仍未解决

Optimize the entity attribute judgment command
优化实体属性判断指令
LOAD MORE LOGS

More like this

  Have something to say?

AstralWuzHere
01/29/2023 12:11 pm
Level 42 : Master Sus Artist
Is this compatible with other datapacks?
1
iMoonDay
01/29/2023 1:09 pm
Level 11 : Journeyman Modder
I think they're basically compatible, but I haven't tested them yet.If you are using with other datapacks and have problems, you can tell me and I will fix it immediately.
1
iMoonDay
01/25/2023 11:04 am
Level 11 : Journeyman Modder
history
Welcome to my first datapack. Please let me know if there are translation errors or bugs.XD
1

Welcome