#Trouble creating custom egg.
1 messages · Page 1 of 1 (latest)
ENTITY SCRIPT
"format_version": "1.10.0",
"minecraft:client_entity": {
"description": {
"identifier": "minecraft:egg",
"materials": {
"default": "egg"
},
"textures": {
"default": "textures/items/iron_enriched_egg.png"
},
"geometry": {
"default": "geometry.item_sprite"
},
"render_controllers": [
"controller.render.item_sprite"
],
"animations": {
"flying": "animation.actor.billboard"
},
"scripts": {
"animate": [
"flying"
]
}
}
}
}```
BEHAVIOR SCRIPT.
"format_version": "1.12.0",
"minecraft:entity": {
"description": {
"identifier": "minecraft:egg",
"is_spawnable": false,
"is_summonable": true,
"is_experimental": false
},
"components": {
"minecraft:collision_box": {
"width": 0.25,
"height": 0.25
},
"minecraft:projectile": {
"on_hit": {
"impact_damage": {
"damage": 0,
"knockback": true,
"destroy_on_hit": true
},
"spawn_chance": {
"first_spawn_chance": 8,
"second_spawn_chance": 32,
"first_spawn_count": 1,
"second_spawn_count": 4,
"spawn_definition": "minecraft:cow",
"spawn_baby": true
},
"remove_on_hit": {},
"particle_on_hit": {
"particle_type": "iconcrack",
"num_particles": 6,
"on_entity_hit": true,
"on_other_hit": true
}
},
"power": 1.5,
"gravity": 0.03,
"angle_offset": 0.0
},
"minecraft:physics": {
},
"minecraft:pushable": {
"is_pushable": true,
"is_pushable_by_piston": true
},
"minecraft:conditional_bandwidth_optimization": {
"default_values": {
"max_optimized_distance": 80.0,
"max_dropped_ticks": 7,
"use_motion_prediction_hints": true
}
}
}
}
}```
You'll need to set ylthe vanilla egg item to use your texture in item_textures.json
remove the .png in your default textures
Thanks for the replies, the .png was added as I was trying things, it doesn't work wit or without it there.
Sorry, should have really clarified but I want to keep the vanilla egg as is and would like to add different variants. Am I going about it the right way?
why not change the vanilla egg texture aswell if you're gonna change the projectile texture anyways?
You'd need a separate identifier if you dont want to replace the vanilla egg
Use a namespace besides minecraft
I also only noticed after BlazeDrake pointed it out
I've tried that and then nothing shows in-game. Might be easier if I explain what the purpose is. It's basically a chicken add-on that produces ores, I have an iron chicken that lays iron nuggets but to get an iron chicken I want to use a vanilla egg crafted with iron, that produces an "iron-enriched egg" that in turn will hatch Iron chickens. As is said at the beginning I have tried changing the name spaces and then it all goes wrong. I feel like I'm missing something stupid.