Skip to content

Selector/Shop Action Replaces Items in Offhand with Wands #1492

@KingofAnomaly

Description

@KingofAnomaly

Minecraft Version: 1.21.8
Magic Version: 10.10.6

Bug: If a player has an item in their offhand that matches the base item of a wand in a selector menu, when they open a selector or shop menu the item in their offhand turns into the wand in the menu. This works for basic vanilla items and other wands.

How to Recreate:

  1. Create a spell with the shop or selector action with the option to buy a wand.
  2. Put the icon item of the wand in your offhand.
  3. Cast the new spell.
  4. Check the item in your offhand and see that is has turned into the wand without purchasing anything.

Example of my spell using the selector action:

engineer-easter-shop:
icon: paper
inherit: event-shop-x4
parameters:
options:
- item: backpack_wand
cost: 25
description: |-
Shortcut for /backpack
- item: none
- item: claim_blocks_500
cost: 125
- item: claim_blocks_1000
cost: 250
- item: claim_blocks_5000
cost: 1250
- item: none
- item: sozai_auro
cost: 20
confirm: false
- item: sozai_aurum
cost: 2000
- item: none
- item: infinite_cartography_board
cost: 150
- item: infinite_crafting_station
cost: 200
- item: infinite_smithing_tablet
cost: 225
- item: none
- item: infinite_iron_pocket_anvil
cost: 300
- item: infinite_golden_pocket_anvil
cost: 315
- item: infinite_enchanters_golden_pocket_anvil
description: §7Just a fancy pocket anvil
cost: 400
- item: infinite_diamond_pocket_anvil
cost: 330
- item: infinite_netherite_pocket_anvil
cost: 350
#---------------------------------
- item: mini_loom
cost: 200
- item: ore_compass
cost: 500
- item: mini_stonecutter
cost: 300
- item: none
- item: none
- item: none
- item: none
- item: none
requirements:
- variables:
- variable: event
max: 2
- icon: spawner
cast_spell: spawner-easter-shop
confirm: false
name: '&fSpawners'
requirements:
- variables:
- variable: event
min: 1
- item: none
#---------------------------------
- item: none
- item: redstone_clock
cost: 50
- item: circle_projector
cost: 100
- item: none
- item: black-c_line-banner
cost: 100
- item: fire_globe-banner
cost: 100

title: "&6&lTechnology & More"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions