Skip to content

Conversation

@runcows
Copy link
Contributor

@runcows runcows commented Dec 8, 2025

Closes #1187

@Bloo-dev Bloo-dev added the fix This fixes something that was wrong label Dec 8, 2025

# summon torch item if torch already exists at this block
execute if block ~ ~ ~ #gm4_crossbow_cartridges:torch run loot spawn ~ ~ ~ loot minecraft:blocks/copper_torch
execute if block ~ ~ ~ #gm4_crossbow_cartridges:torch store success score $dropped_item gm4_cb_misc run loot spawn ~ ~ ~ loot minecraft:blocks/copper_torch
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we even need this first check? The next "#gm4:replaceable" should also fail if the current block is a torch. The execute store can be moved just before calling the place function, and then the "summon torch" and "item drop" can check this score with opposite values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix This fixes something that was wrong

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Crossbow Cartridges Torch placement failure shouldn't play the place sound

3 participants