Please sign in to access this page
A Minecraft mod which uses AI to generate items (like a sword with lightning).
Screenshots available in Modrinth. Video: https://hc-cdn.hel1.your-objectstorage.com/s/v3/ba4e9c9e76bb37869c7f0a61814bea9b36f4fc60_2025-09-22_13-14-31.mp4
NOTE: For now, only items (not blocks or entities) that can be either given with a /give or only run commands on use/right-click can be gotten
No followers yet
Once you ship this you can't edit the description of the project, but you'll be able to add more devlogs and re-ship it as you add new features!
Ok, not all features I initially said are available :(
For now, every custom command component except use_cmd
does not work. This means that the item can be as complicated as an item given with a custom /give
command (including data components/NBT), but with the exception that commands can run on use.
And also, it has to be an item, not a block or entity.
Examples:
- Amethyst shard that gives diamonds on use: yes
- Blaze rod that gives speed on use: yes
- sword that deals 20 damage: yes
- armor that increases your health by 50%: yes, but you may have to explicitly say to do this using only use_cmd
and attribute modifiers
- sword with lightning: sorry no
- sword that deals 7 damage and gives speed on rightclick : yes
- sword that deals poison to enemy : no
YOOO FINALLY VERIFIED IN MODRINTH!
Go download the mod from https://modrinth.com/mod/idea_anvil and use the /idea
command to get items! hooray!
YOOO IT WORKS LETS GOOOOOOOOO
It finally works. Use /idea <prompt>
or /ai <prompt>
to get items. After submitting to Hackcraft, I will add a feature where you can export your items to a new datapack/mod. I know this may ruin modrinth with AI-generated mods, but inevitably, someone else will do it if I don't.
The ai works, it gives me the correct item, but some weird error is happening on the use_cmd thingy
This diamond giving shard was given by AI.
I typed the command /idea a shard which gives diamonds
The AI did a perfect job (according to /data
) but now something is happening in my mod? gotta debug again :(
YOOOOOO FINALLY THE CUSTOM ITEM SYSTEM WORKS! LETS GOOOOO!
This diamond giving shard (gives diamonds on right click) can be gotten with the command:
/give @s the_idea_anvil:custom_item[minecraft:item_model= "the_idea_anvil:amethyst_shard_lime", the_idea_anvil:use_cmd="give @s diamond", minecraft:item_name="Diamond giving shard"]
Note that while the screenshot loooks like the player needs permission, the command is actually exec'd with op level 2 (enough for give
but not enough for op
)
This can make almost any datapack item. The only exception is when you need to add new commands to run every tick. This is almost mitigated because you can still specify the_idea_anvil:inventory_tick_cmd
which runs every tick in the inventory, but when its outside the inventory (dropped) it wont run. So, there are almost no exceptions. Also, you can run multiple commands with #/
as seperator (but not ##/
), example: give @s diamond #/say I got a diamond!
Cmd component list:
the_idea_anvil:
...
- use_cmd
: #s
gets replaced with self UUID
- post_hit_cmd
: when hitting an entity, #s
is attacker UUID #t
is target UUID, for example execute at #t run summon lightning_bolt
- post_mine_cmd
: #s
is miner UUID, #x
,#y
,#z
are coords of the mined block, #p
is #x #y #z
space-concatenated
-inventory_tick_cmd
: #s is self UUID
- use_on_block_cmd
: #s
is self UUID, #x
#y
#z
are coords, #p
= #x #y #z
space seperated
Added the temporary texture system for now.
re-added the texture system, for example here is what would happen if you asked for a grass colored (amethyst) shard. some item textures are recolored to 32 different colors (including the 16 wool colors, materials like diamond, etc) then added to a fixed texture list. the AI can use anything from this colored list or default textures. this has 1732 textures for the colored ones plus however many default textures. i will improve this to let the AI generate something but the problem is free image generator APIs have low ratelimits (ai.hackclub.com has infinite requests for LLMs free but not image)
i accidentally deleted my entire project.
thanks to github a lot of the changes (not most) were backed up. but i almost made everything and a lot of things got deleted. well i am not giving up since this 8h was mostly spent on experimenting with the MC apis and stuff until i found a working solution so it will take way less than this time (1-3h). well i have more hours of things to log to SOM
Done thinking about the idea and made a logo.
Also made the structure of the mod.
How it will work: 1) You use a block called the Idea Anvil and ask it to make something
2) It gives you an idea item.
3) You can bring it to the crafting table and use it to craft your item. Your item's recipe will be decided by the AI as well (If you are in creative, you can get custom items from the creative menu if you have the idea in your inventory)