#(Raefrog98) npc teleport at a random location when it gets hit by fire aspect
59 messages · Page 1 of 1 (latest)
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>
id redirect you to sentinel because Citizens are immune by default but uh, this isnt something either Citizens or Sentinel can do alone
you can do that with Denizen though
!getstarted
Hey there! Welcome to Denizen!
To get started learning Denizen, we recommend you follow the beginner's guide: https://guide.denizenscript.com/
Also, feel free to browse scripts or view discussions on the forum: https://forum.denizenscript.com/
And of course... don't be afraid to ask questions here on this Discord!
what's this
its an addon to Citizens, it adds a bunch of functionality to Citizens and has an entire scripting engine thrown in
oh it's skript ?
similar, kind of
fair
well i already have enough plugins imo
how do i make that with only citizens ?
can't
wat
"can't" is a wrong answer cause i must do that
That's very specific custom functionality, Citizens / Sentinel can't have every possible thing hard-coded in - that's exactly what plugins like Denizen are for
if citizens can't have that hard coded why could denizens ?
Denizen doesn't, it's a scripting plugin with a lot of Citizens integration, which is useful for stuff like this exactly
Adding a /sentinel randomTpOnFireAspect wouldn't make much sense, but making a Denizen script to do that is pretty quick and easy - shouldn't be more than 1/2 lines
with denizen, it'd be roughly something like:
scriptname:
type: assignment
actions:
on click:
if player is holding something with fire aspect,
teleport randomly 7 blocks away
thats not literal, just pseudocode - but it's all you would need, those six lines entirely
the tags wouldnt be hard to figure out once you learned it
But then why not randomTpOnPlayerWithDiamondSwordAttack, flyWhenDragonNearby, strikeLightningOnPlayerMove... - small specific stuff like this are exactly what Denizen is useful for
learn ?
oh wait so it's not a config ?
bruh i'm a server admin guys not a programmer
It is scripting yeah
i don't know code
Easier to learn than java
A lot of people started learning Denizen with 0 knowledge, it's pretty simple and easy to get a hang of - we also provide support for it here so we're available to help whenever
An example of a denizen script could be
- hurt <player> 5
- narrate "You took 5 damage! you will now be teleported to the lobby!"
- teleport <world[lobby].spawn_location>
i don't understand
at which point do you get the player's 7 blocks radius ?
also it should teleport the npc when it gets hit by fire aspect not when it gets 5 damage
That's not that script, it's just an example of what a script may look like
To hopefully show how the syntax isn't complex, and is usually pretty easy to get the hang of even without prior knowledge
Either way, adding something this specific into Citizens/Sentinel doesn't really make sense for the reasons explained above, something like Denizen is the solution a lot of people use for creating custom functionality like this, and we can help with that over at #1026104994149171200
oh well so i needa make another channel ?
You can make a post in #1026104994149171200 if you'd like to start learning it, yeah
Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.
If not yet resolved, please reply below to tell us what you still need.
(Note that if there is no reply for a few days, this thread will eventually close itself.)
@silent gust
@silent gust
Thread was closed either automatically by timeout or by the Discord manual close button. If closing was intentional, please use </resolved:1028673926114594866> or </invalid:1028673926898909185>.
@silent gust
Thread was closed either automatically by timeout or by the Discord manual close button. If closing was intentional, please use </resolved:1028673926114594866> or </invalid:1028673926898909185>.
@silent gust
Thread was closed either automatically by timeout or by the Discord manual close button. If closing was intentional, please use </resolved:1028673926114594866> or </invalid:1028673926898909185>.