#Entity not spawned after item is thrown

1 messages · Page 1 of 1 (latest)

polar silo
#

BP/entities/thrown_rock.json:

{
  "format_version": "1.21.50",
  "minecraft:entity": {
    "description": {
      "identifier": "jdwrld:thrown_rock",
      "is_spawnable": false,
      "is_summonable": true,
      "is_experimental": false,
      "runtime_identifier": "minecraft:snowball"
    },
    "components": {
      "minecraft:collision_box": {
        "height": 0.25,
        "width": 0.25
      },
      "minecraft:projectile": {
        "on_hit": {
          "impact_damage": {
            "damage": 0.5,
            "knockback": false
          },
          "remove_on_hit": {}
        },
        "anchor": 1,
        "power": 1,
        "gravity": 0.03,
        "angle_offset": 0,
        "offset": [
          0,
          -0.1,
          0
        ],
        "particle": "jdwrld:destroy_rock"
      },
      "minecraft:physics": {},
      "minecraft:pushable": {
        "is_pushable": true,
        "is_pushable_by_piston": true
      },
      "minecraft:conditional_bandwidth_optimization": {
        "default_values": {
          "max_optimized_distance": 80,
          "max_dropped_ticks": 10,
          "use_motion_prediction_hints": true
        }
      },
      "minecraft:loot": {
        "table": "loot_tables/entities/rock.json"
      }
    }
  }
}

BP/items/rock.item.json:

{
  "format_version": "1.21.40",
  "minecraft:item": {
    "description": {
      "identifier": "jdwrld:rock",
      "menu_category": {
        "category": "items"
      }
    },
    "components": {
      "minecraft:icon": "jdwrld_rock",
      "minecraft:max_stack_size": 64,
      "minecraft:throwable": {
        "do_swing_animation": true
      },
      "minecraft:projectile": {
        "projectile_entity": "jdwrld:thrown_rock"
      }
    }
  }
}

RP/entity/thrown_rock.entity.json:

{
  "format_version": "1.20.80",
  "minecraft:client_entity": {
    "description": {
      "identifier": "jdwrld:thrwn_rock",
      "materials": {
        "default": "snowball"
      },
      "textures": {
        "default": "textures/items/rock"
      },
      "geometry": {
        "default": "geometry.item_sprite"
      },
      "render_controllers": [
        "controller.render.item_sprite"
      ],
      "animations": {
        "flying": "animation.actor.billboard"
      },
      "scripts": {
        "animate": [
          "flying"
        ]
      }
    }
  }
}
#

Ignore me. I'm dumb. It appears that I've misspelled the identifier in the throw_rock.entity.json file. dumb