Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

create Nite class #9

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

create Nite class #9

wants to merge 3 commits into from

Conversation

ZOI-dayo
Copy link
Collaborator

@ZOI-dayo ZOI-dayo commented Jan 21, 2025

close #3
コマンドで召喚できるようにしています 召喚するとプレイヤーめがけて歩き、攻撃してきます
うまい方法がわからなかったので再帰的に毎tick処理しています

@ZOI-dayo ZOI-dayo requested a review from pasmophobia January 21, 2025 09:31
@ZOI-dayo ZOI-dayo mentioned this pull request Jan 21, 2025
entity.registerAttribute(Attribute.ATTACK_DAMAGE)
entity.getAttribute(Attribute.ATTACK_DAMAGE)?.baseValue = damage
}
plugin.server.scheduler.runTaskLater(plugin, Runnable { update(plugin) }, 1)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Scheduler#runTaskTimerを使えば定期的に実行できる

} else {
entity.pathfinder.stopPathfinding()
}
plugin.server.scheduler.runTaskLater(plugin, Runnable { update(plugin) }, 1)
Copy link
Collaborator

Choose a reason for hiding this comment

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

runTaskTimerに変更

@ZOI-dayo ZOI-dayo requested a review from pasmophobia January 22, 2025 05:32
Copy link
Collaborator

@pasmophobia pasmophobia left a comment

Choose a reason for hiding this comment

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

lgtm

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.

Niteの移動部分の基礎を実装
2 participants