Skip to content

refactor(command/give): more like vanilla Minecraft /give command#8266

Merged
MukjepScarlet merged 7 commits into
CCBlueX:nextgenfrom
NekoCurit:refactor/command/give
Apr 29, 2026
Merged

refactor(command/give): more like vanilla Minecraft /give command#8266
MukjepScarlet merged 7 commits into
CCBlueX:nextgenfrom
NekoCurit:refactor/command/give

Conversation

@NekoCurit
Copy link
Copy Markdown
Contributor

@NekoCurit NekoCurit commented Apr 27, 2026

  • Check player.abilities.instabuild instead of player game mode
  • Give more than 64 amount
    • Automatically stack with existing items
  • Fix i18n
  • - Fix CommandSyntaxException
    Minecraft’s command system is too complicated; I don’t really want to keep digging into it anymore.

If you encounter CommandSyntaxException, try removing all minecraft: prefixes.
Original:
.give minecraft:red_shulker_box[container=[{slot:0,item:{id:"minecraft:splash_potion",components:{"potion_contents":{"custom_effects":[{"id":"minecraft:instant_health","amplifier":125},{"id":"minecraft:instant_damage","amplifier":125}]}}}}]]
Fixed:
.give minecraft:red_shulker_box[container=[{slot:0,item:{id:"splash_potion",components:{"potion_contents":{"custom_effects":[{"id":"instant_health","amplifier":125},{"id":"instant_damage","amplifier":125}]}}}}]]

@NekoCurit NekoCurit marked this pull request as ready for review April 28, 2026 14:40
@MukjepScarlet MukjepScarlet merged commit 16e3160 into CCBlueX:nextgen Apr 29, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants