New tools for datapackers in 1.21.2 is here! And here is also new Phantomcatcher version that uses some of these new tools. And I fixed mipmap levels issue.
Technical
Items
- Now Phantomcatcher uses Glow Item Frame as base item instead of Item Frame which can be used in Glow Item Frame crafting recipe
- All old phantomcatcher items still work
- It's still not perfect. Some other datapacks may use Glow Item Frame for crafting recipes but it's better and works perfectly in vanilla.
Item Models
- Now all items use
item_model
component for visualizing item instead ofcustom_model_data
.custom_model_data
is still used but only in custom item models and now there is no conflicts with other resourcepacks.
Render
- Fixed mipmap levels
Commands
- function
phantomcatcher:info
renamed intoinfo:phantomcatcher
Updating
Mojang updated the game and added new tools for datapacks. All outadated entities will be updated but there are no tools for updating every item. So old phantomcatcher items stay outdated but you can update them by placing and breaking. But you also can keep some of these strange Item Frames if you want to.
Just one fix.
Phantomcatcher
Now it can charge without installing previous versions of the datapack.
If it doesn't you can report issue.
Fixes and some small additions
WARNING
This version hasn't functions or tools to be properly deleted from your world.
Use file as Resource- and Data- Packs.
Items
- Changed rarity for all datapack items to common
Translations and Strings
- Changed some Strings
- Добавлена поддержка крысиного перевода
Technical
- Improved optimization
- Now catchable entities get catched by nearest Phantomcatcher instead of being catched by all Phantomcatchers that can catch those entities
Fonts
Added new font: phantomcatcher:emoji
- Used to output Phantomcatcher item texture as char
- If you want output it you can use:
{"text":"1","font":"phantomcatcher:emoji"}
{"translate":"emoji.phantomcatcher.phantomcatcher","font":"phantomcatcher:emoji"}
Fixed bugs
Updating to 1.21. Now more configurable!
WARNING
This version hasn't functions or tools to be properly deleted from your world.
Use file as Resource- and Data- Packs.
Features
- Phantomcatcher catching area now starts from Y = -64
Technical
- Added
#phantomcatcher:catchable
entity_type tag- Determines which entities can be catched by phantomcatcher
- Default:
["phantom"]
- Added
catch_renamed_catchables
field to config file- Determines whether phantomcatchers can catch renamed entities that spawned in phantomcatcher's catching area
- Default:
false
- Everything that was related to phantoms now renamed. Mostly
phantom
->catchable
- Datapack starting this version updates old data if presented.
Protect your base from annoying Phantoms with Phantomcatcher.
WARNING
This version hasn't functions or tools to be properly deleted from your world.
Use file as Resource- and Data- Packs.
📦Features
Phantomcatcher
Crafting recipe
- Can have one of 4 charge levels: 0, 1, 2, 3. Phantomcatcher starts working only at the last charge level.
Charge levels
- Needs 3 game days (1 hour of real time) to get fully charged.
- Sleep will not speed up the charging process, just as it does not speed up the furnaces.
- Can be broken with one hit.
- Loses all it's charge when broken. So, be careful with it.
- Also can be broken by breaking block above or placing some blocks in one block with it.
- Phantomcatcher only prevents some area from Phantom spawning, meaning it can catch Phantom only if the Phantom spawned or was spawned in Phantomcatcher's catching area.
- Works in area 5x5 chunks. Area is aligned with a chunk grid. Phantomcatcher is always in the central chunk of it's catching area.
- Phantomcatcher produces patricles and sound for every catched Phantom.
Advancements
The City That Never Sleeps
- Be near a Phantomcatcher when it catches a Phantom
💻 Technical
Commands
/function give:phantomcatcher/phantomcatcher
gives default Phantomcatcher/function give:phantomcatcher/phantomcatcher/charge_1
gives Phantomcatcher with 1/3 charge/function give:phantomcatcher/phantomcatcher/charge_2
gives Phantomcatcher with 2/3 charge/function give:phantomcatcher/phantomcatcher/charge_3
gives Phantomcatcher with 3/3 charge/function give:phantomcatcher/phantom_spawn_egg
gives Spawn Egg of Phantom, which protected from Phantomcatcher/function phantomcatcher:info
shows information about datapack
Config
There is also config file and manual for it in the Pack. You can configure:
- Size of catching area
- Charge time