Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Command api v2 #5036

Open
wants to merge 30 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
59d489e
rebuild dispatcher to support dynamic registries
RacoonDog Dec 7, 2024
4e8626c
use redirect nodes for aliases
RacoonDog Dec 7, 2024
a32bc82
utils for encoding/decoding components
RacoonDog Dec 7, 2024
7ce2c4b
simplify creative inventory packet usage
RacoonDog Dec 7, 2024
a6f8bb4
add item slot argument type
RacoonDog Dec 7, 2024
a646490
import some useful argument types from clientarguments
RacoonDog Dec 7, 2024
f3d9a17
fix terrible SettingArgumentType hack
RacoonDog Dec 7, 2024
b65ceab
split and rewrite .nbt command
RacoonDog Dec 7, 2024
50914f9
add .config
RacoonDog Dec 7, 2024
c473c58
add .multitool
RacoonDog Dec 7, 2024
969dbea
add .transmogrify
RacoonDog Dec 7, 2024
b91caf8
make `NotebotSongArgumentType` check if file exists
RacoonDog Dec 7, 2024
6c267a9
sort command registration alphabetically
RacoonDog Dec 7, 2024
92b25bb
various minor optimizations
RacoonDog Dec 7, 2024
cb44128
fix waypoint crash
RacoonDog Dec 7, 2024
702900f
use proper type for argument types rather than `String`
RacoonDog Dec 7, 2024
4bd6559
.enderchest check if memory
RacoonDog Dec 7, 2024
b896c84
.fov prevent crash
RacoonDog Dec 7, 2024
51e172b
rewrite .give to use new utils
RacoonDog Dec 7, 2024
b633be2
create & modify macros in .macro
RacoonDog Dec 7, 2024
04b7d0f
throw syntax error instead of chat error
RacoonDog Dec 7, 2024
bb334de
code deduplication
RacoonDog Dec 7, 2024
f3e4ca3
consistency
RacoonDog Dec 7, 2024
f15146b
Merge branch 'master' into command-api-v2
RacoonDog Dec 7, 2024
b63dadd
creative packets check feature flags + send listener updates
RacoonDog Dec 8, 2024
eb0368b
update .multitool and .transmogrify
RacoonDog Feb 1, 2025
14d662c
Merge branch 'master' into command-api-v2
RacoonDog Feb 1, 2025
c676b7c
fix cobwebs in multitool
RacoonDog Feb 1, 2025
bc7ffe4
fix stuff to work in 1.21.4
RacoonDog Feb 1, 2025
e4712f8
better feedback for .components
RacoonDog Feb 3, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'master' into command-api-v2
  • Loading branch information
RacoonDog authored Dec 7, 2024
commit f15146bb0ba754123019bb151f1f0f07a5c1caba
Original file line number Diff line number Diff line change
@@ -55,12 +55,4 @@ private <S> int executeGive(CommandContext<S> context, int count, int slot) thro

return SINGLE_SUCCESS;
}

private void giveItem(ItemStack item) throws CommandSyntaxException {
FindItemResult fir = InvUtils.find(ItemStack::isEmpty, 0, 8);
if (!fir.found()) throw NO_SPACE.create();

mc.getNetworkHandler().sendPacket(new CreativeInventoryActionC2SPacket(36 + fir.slot(), item));
mc.player.playerScreenHandler.getSlot(36 + fir.slot()).setStack(item);
}
}
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.