#(Raefrog98) npc teleport at a random location when it gets hit by fire aspect

59 messages · Page 1 of 1 (latest)

unkempt veldtBOT
#

(Raefrog98) npc teleport at a random location when it gets hit by fire aspect

#

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>

deft lichen
#

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

silk boughBOT
silent gust
#

what's this

deft lichen
#

its an addon to Citizens, it adds a bunch of functionality to Citizens and has an entire scripting engine thrown in

silent gust
#

oh it's skript ?

deft lichen
#

similar, kind of

silent gust
#

fair

#

well i already have enough plugins imo

#

how do i make that with only citizens ?

deft lichen
#

can't

silent gust
#

wrong answer

#

welp so you were redirecting me to sentinel

noble marsh
silent gust
pastel prism
#

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

silent gust
#

if citizens can't have that hard coded why could denizens ?

pastel prism
#

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

silent gust
#

it think it does make sense x)

#

it's like endermens

#

kinda

#

no water thing tho

deft lichen
#

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

pastel prism
#

But then why not randomTpOnPlayerWithDiamondSwordAttack, flyWhenDragonNearby, strikeLightningOnPlayerMove... - small specific stuff like this are exactly what Denizen is useful for

silent gust
#

oh wait so it's not a config ?

#

bruh i'm a server admin guys not a programmer

noble marsh
#

It is scripting yeah

silent gust
#

i don't know code

noble marsh
#

Easier to learn than java

pastel prism
#

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>
silent gust
#

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

pastel prism
#

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

silent gust
#

oh well so i needa make another channel ?

pastel prism
#

You can make a post in #1026104994149171200 if you'd like to start learning it, yeah

robust ermineBOT
#
Thread Closing Reminder

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
#

mb

#

oh apparently "deleting the message" wasn't to close x)

robust ermineBOT
#

@silent gust

Thread Close Blocked

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 Close Blocked

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 Close Blocked

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>.