#Crossbow pull threshold

1 messages · Page 1 of 1 (latest)

sullen joltBOT
wheat wrenBOT
#

I don't know how to make the empty crossbow model different from the charged, i managed to pull of the animation but since its a revolver, i want the hammer to be unr1r2r3ed when the crossbow is empty and r1r2r3ed when the crossbow has any projectile (arrow or air or smthng)

sullen joltBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 If nobody has answered you by <t:1743267533:t>, feel free to use the Summon Helpers button to ping our helper team.

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

charred flame
#

The issue is you're referencing the arrow model when the crossbow is not being pulled, but you're not checking if it also has an arrow loaded

#

Try taking a look at the vanilla crossbow item model definition

steady parrot
#

where can i see this?

hexed fernBOT
#
Tool: Misode
About

Misode's Datapack Generators are useful when creating files such as loot tables, predicates, advancement, worldgen files, and more!

charred flame
#

Go to the Item generator and search for crossbow as a preset

rare haven
steady parrot
charred flame
#

item aka item model definition

steady parrot
charred flame
#

Go to Misode, go to the Item generator, click presets, search for Crossbow, compare it to what you have

steady parrot
steady parrot
#

{
  "model": {
    "type": "minecraft:condition",
    "on_false": {
      "type": "minecraft:select",
      "cases": [
        {
          "model": {
            "type": "minecraft:model",
            "model": "minecraft:item/crossbow_arrow"
          },
          "when": "arrow"
        },
        {
          "model": {
            "type": "minecraft:model",
            "model": "minecraft:item/crossbow_firework"
          },
          "when": "rocket"
        }
      ],
      "fallback": {
        "type": "minecraft:model",
        "model": "minecraft:item/crossbow"
      },
      "property": "minecraft:charge_type"
    },
    "on_true": {
      "type": "minecraft:range_dispatch",
      "entries": [
        {
          "model": {
            "type": "minecraft:model",
            "model": "minecraft:item/crossbow_pulling_1"
          },
          "threshold": 0.58
        },
        {
          "model": {
            "type": "minecraft:model",
            "model": "minecraft:item/crossbow_pulling_2"
          },
          "threshold": 1
        }
      ],
      "fallback": {
        "type": "minecraft:model",
        "model": "minecraft:item/crossbow_pulling_0"
      },
      "property": "minecraft:crossbow/pull"
    },
    "property": "minecraft:using_item"
  }
}
charred flame
#

I don't know why you're showing me that, I already know what it looks like

#

Make a copy of it, put it in your resource pack as the item model definition for your revolver, and change its references to your revolver's models

steady parrot
#

but i have different revolver mdoels

charred flame
#

What do you mean?

charred flame
steady parrot
charred flame
#

We love no-context images here

steady parrot
#

this is the one for default

charred flame
#

No, that is an item model definition

steady parrot
#

and i have a similar one for the desert eagle revolver skin

charred flame
#

Not an item model

#

Great

charred flame
steady parrot
#

okay

charred flame
#

And then replace the model references with your model references from this original file

steady parrot
#

did it

steady parrot
charred flame
#

Then you are not referencing your model file correctly, or the model file has a problem

steady parrot
#

how can i know which is the second model in this file?

charred flame
#

Hm, well if it's the second part of the animation, which model could that be?

steady parrot
#

yes i tried to change the pulling_1

#

but it dosents work

charred flame
#

Elaborate

steady parrot
#

pls dont make fun im relatively new🙏sadgesadge

charred flame
#

I'm not...

steady parrot
#

whatever i change the part when you click the crossbow dosents render

#

and i checked all models and they are all fine in blockbench

charred flame
#

Do those models work at later stages in the animation?

steady parrot
#

okay i just deleted all and copied from misode and did it again👍

#

now it works

#

thx so much kanoakarob

#

btw by any chances do you know how to make a custom health bar?

charred flame
#

Open a new help thread

steady parrot
#

i know how to edit the hearts and all

steady parrot
sullen joltBOT
#
Question Closed

Your question, #1355579474812473568 (Crossbow pull threshold), was resolved!

Original Message

#1355579474812473568 message

Duration open

2d22h10m

sullen joltBOT
#
Closed for inactivity

This question has been inactive for some time, so it's going to be closed for inactivity. If you still need it, please disregard this message.

sullen joltBOT
#
Closed for inactivity

This question has been inactive for some time, so it's going to be closed for inactivity. If you still need it, please disregard this message.