mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-23 15:47:57 -05:00
among us real
This commit is contained in:
parent
cd1c04e50f
commit
07c6cf8fde
1 changed files with 2 additions and 3 deletions
|
@ -6,6 +6,7 @@ const relativePosition = new Vec3(0, 0, 0)
|
|||
|
||||
function inject (bot, dcclient, config) {
|
||||
const mcData = require('minecraft-data')(bot.version)
|
||||
const impulseMode = !bot.options.kaboom
|
||||
const core = {
|
||||
start: new Vec3(null, null, null),
|
||||
end: new Vec3(null, null, null),
|
||||
|
@ -30,8 +31,6 @@ function inject (bot, dcclient, config) {
|
|||
relativePosition.z = 0
|
||||
}
|
||||
|
||||
const impulseMode = !bot.options.kaboom
|
||||
|
||||
const location = {
|
||||
x: core.start.x + relativePosition.x,
|
||||
y: core.start.y + relativePosition.y,
|
||||
|
@ -67,7 +66,7 @@ function inject (bot, dcclient, config) {
|
|||
slot: 36,
|
||||
item: {
|
||||
present: true,
|
||||
itemId: mcData.itemsByName.repeating_command_block.id,
|
||||
itemId: impulseMode ? mcData.itemsByName.command_block.id : mcData.itemsByName.repeating_command_block.id,
|
||||
itemCount: 64,
|
||||
nbtData: nbt.comp({
|
||||
BlockEntityTag: nbt.comp({
|
||||
|
|
Loading…
Reference in a new issue