A cross symbol with an eye in the center. The cross itself should be yellow and red, and the eye blue. Holding the cross should inflict a 3-second blindness effect; once the blindness ends, the text "Jesus Has Blessed You" should appear on the screen for 5 seconds, followed by the application of Resistance I and Fire Resistance effects. Placing the cross on the ground should cause surrounding blocks to glow and vibrate before transforming into podzol blocks. When placed, it should prevent creatures from entering a 10-block radius, instantly knocking them back out. The crafting recipe is as follows: a Heart of the Sea in the center, netherite blocks at the front, back, right, and left of the heart, and enchanted golden apples in the four corners. Picking up the cross should trigger an achievement titled "Blessing Begun!". As mentioned, the cross should look like this: yellow edges, a red interior, and a blue eye in the middle; the eye should have a blinking animation and look around. The achievement description should read "God loves you." Simply holding it grants infinite Resistance I and Fire Resistance I; these effects vanish when the item is dropped or placed on the ground. When placed, the cross should emit a light level of 3. It should be registered as a block rather than an entity when placed. The cross can only be mined and retrieved using a Diamond or Netherite pickaxe enchanted with Silk Touch; if broken with a Netherite or Diamond pickaxe (or any other tool) lacking Silk Touch, it drops 2 gold ingots, 3 sticks, and 1 Heart of the Sea. Let the eye animations play when the cross is placed on the ground as well.As I said, make sure the border is golden yellow, the interior is red, and there is a blue eye in the center. I don't want any errors. When the cross is placed on the ground, the area within a 5-block radius should first glow and then transform into podzol blocks; furthermore, it should rapidly force all creatures within a 20-block radius of the cross out of that area.When the cross is placed on the ground, it will be recognized as a block rather than an entity. for fabric java 1.21.11
This is a complex Fabric mod with a custom animated item/block. Let me read the learning docs first.
I’ll build a Fabric 1.21.11 mod for a holy cross with animations, block placement, and special effects.
Let me start by creating all project files, then the Java source, then resources and data.
The Python environment lacks image libraries. Let me create the actual project files — Java code, resource JSONs, and data files. Textures can be added later.
Let me start with all the project structure files:
compilelayamıyorum nednse
Projende sadece fabric.mod.json var — başka hiçbir dosya yok:
build.gradle(veyabuild.gradle.kts) yoksettings.gradleyokHiçbir Java kaynak dosyası yok
gradle/wrapper dizini yok
Bu yüzden derlenemiyor. Proje henüz kurulmamış.
Ne tür bir mod yapmak istiyorsun? (item, block, entity, config, komut, animated bir şey?) Söyle, sana eksiksiz bir 1.21.11 Fabric projesi kuralım — build.gradle, settings.gradle, fabric.mod.json, ana sınıf, hepsiyle.
{
"schemaVersion": 1,
"id": "holycross",
"version": "${version}",
"name": "Holy Cross",
"description": "A holy cross with a blinking eye - grants blessings and repels creatures.",
"authors": [{ "name": "HolyCross Dev" }],
"license": "MIT",
"icon": "assets/holycross/icon.png",
"environment": "*",
"entrypoints": {
"main": ["com.holycross.HolyCross"],
"client": ["com.holycross.client.HolyCrossClient"]
},
"mixins": ["holycross.mixins.json"],
"depends": {
"fabricloader": ">=0.19.2",
"minecraft": "~1.21.11",
"java": ">=21",
"fabric-api": "*",
"geckolib": ">=5.4.0"
}
}