#(podjazd) I have a question

77 messages · Page 1 of 1 (latest)

hot horizon
#

I have a question

silk steepleBOT
#

(podjazd) I have a question

silk steepleBOT
#

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.

hot horizon
#

hello i have a question im just downloaded Denizen and have a question is it possible to Make a sword, and when you hit someone, there's a 10% chance that you'll poison the player. If the player gets poisoned, they won't be able to be poisoned again for the next 30 seconds. and is it possible to make a visual cooldown like this?

mellow sierra
#

Most of those are possible yes. Visual cooldown is a little more tricky.

#

You can use minecrafts vanilla cooldown system but it only affects it on a material basis.

hot horizon
#

if i want make a visual cooldown on diamond_sword

mellow sierra
#

When denizen fully supports item components it can do cooldowns on individual items, but right now you can only tell it the material to have a cooldown. So all existences of diamond swords would have the cooldown.

hot horizon
#

okay thanks for helping and last question is it hard to teach denizen cuz i really need this feature

#

to my server

mellow sierra
#

!guide

glacial glenBOT
mellow sierra
#

It's got a learning curve, but shouldn't be too difficult.

#

The discord exists to ask for help too.

hot horizon
#

okay

mellow sierra
#

I'd recommend rolling through the guide first before accomplishing anything major.

hot horizon
#

okay

#

and if i can ask you can you give me like a simple template how what would it look like more or less?

#

if you can

mellow sierra
#

On what looks?

hot horizon
#

this script

#

for the sword

mellow sierra
#

I won't write out your scripts, only reference what you need. We try not to write complete scripts for others when they can learn.

#

To start off ....

#

!t util.random_chance

glacial glenBOT
hot horizon
#

yeah i know

#

but

mellow sierra
#

!c cast

glacial glenBOT
# mellow sierra !c cast
Group

entity

Syntax

cast [<effect>] (remove) (duration:<value>) (amplifier:<#>) (<entity>|...) (no_ambient) (hide_particles) (no_icon) (no_clear)

Short Description

Casts a potion effect to a list of entities.

Description

Casts or removes a potion effect to or from a list of entities.

The effect type must be from https://hub.spigotmc.org/javadocs/spigot/org/bukkit/potion/PotionEffectType.html.

If you don't specify a duration, it defaults to 60 seconds.
An infinite duration will apply an infinite duration potion effect, refer to !objecttype DurationTag for more details.

The amplifier is how many levels to *add* over the normal level 1.
If you don't specify an amplifier level, it defaults to 1...

mellow sierra
#

!e entity potion effects modified

glacial glenBOT
# mellow sierra !e entity potion effects modified
Group

Entity

Event Lines

<entity> potion effects modified <entity> potion effects <change_action>

Switches

cause:<cause> to only process the event when it came from a specified cause.
effect:<effect type> to only process the event when a specified potion effect is applied.

Triggers

when an entity's potion effects change.

Has Player

when the entity that has changed is a player. - this adds switches flagged:<flag name> + permission:<node>, in addition to the <player> link.

Has NPC

when the entity that has changed is an NPC.

Context

<context.entity> returns the EntityTag.
<context.cause> returns the cause of the effect change, based on <@link url https://hub.spigotmc.o...
<context.action> returns the action of the effect changed, which can be 'added', 'changed', 'cleared', or 'removed'
<context.override> returns whether the new potion effect will override the old.
<context.new_effect_data> returns the new potion effect (in the same format as <@link tag EntityTag.effects_data>) (if any).
<context.old_effect_data> returns the old potion effect (in the same format as <@link tag EntityTag.effects_data>) (if any).
<context.effect_type> returns the name of the modified potion effect type.

Determine

"OVERRIDE:<ElementTag(Boolean)>" to set whether the new potion effect should override.

Has Known Location

True - this adds switches in:<area> + location_flagged:<flag name>.

Cancellable

True - this adds <context.cancelled> and determines cancelled + cancelled:false.

mellow sierra
#

Relevants tags, events and commands.

#

May be intimidating at first.

hot horizon
#

If I see more or less what it is supposed to look like and see this structure, I will understand it better

mellow sierra
#

It's why I recommend going through the guide.

hot horizon
mellow sierra
#

It does roll over a lot of things, including events and such.

hot horizon
#

so there is no way you could give me such a mini template so that I could understand more or less what and how

mellow sierra
#

When you've understood the guide and gone through the motions, then you'll be able to understand the meta links that I've provided.

hot horizon
#

okay ;d

mellow sierra
#

Especially when it explains all of the context of what some things mean, and when some things should be in place.

hot horizon
#

and if i have a script

#

how can i run him?

#

@mellow sierra

mellow sierra
#

This is covered in the guide.

hot horizon
#

!t title

glacial glenBOT
# hot horizon !t title
Cannot Specify Searched Tag

Multiple possible tags: <InventoryTag.title>, <ItemTag.book_title>, <ElementTag.to_titlecase>, <PlayerTag.sidebar_title>, <NPCTag.factions.title>, <PlayerTag.factions.title>.

hot horizon
#

!help

glacial glenBOT
# hot horizon !help
Bot Command Help
**Available Informational Commands:**

help shows help output
hello shows a source code link
update [project ...] shows an update link for the named project(s)
github [project ...] shows a GitHub link for the named project(s)
issues [project ...] shows an issue posting link for the named project(s)
info <name ...> shows a prewritten informational notice reply
rule [rule ...] shows the identified rule
quote [quote] shows a random quote that matches the search (if any)

**Available Utility Commands:**

logcheck <link> gathers information from a server log paste
versioncheck <version text> checks whether a project version is current
script <link> checks a linked script for basic syntax validity

**Available Meta Docs Commands:**

command [name] [usage/tags] to search commands
mechanism [name] to search mechanisms
tag [name] to search tags
objecttype [name] to search object types
event [name] to search world script events
action [name] to search NPC assignment actions
language [name] to search language docs
guide [name] to search the beginner's guide pages
search [keyword] to search all meta docs

hot horizon
#

!event

glacial glenBOT
# hot horizon !event
Need input for '!Event' command

Please specify a Event to search, like !Event SomeEventHere. Or, use !Event all to view all documented events.

hot horizon
#

!event all

glacial glenBOT
glacial glenBOT
#
Command Syntax Incorrect

!script <link>

hot horizon
#

how can i itemcooldown on nbt item?

#

is it possible

hardy helm
#

!t countdown

glacial glenBOT
#
Possible Confusion

Did you mean to search for mythicspawnertag.cooldown?

hardy helm
#

!t cooldown

glacial glenBOT
# hardy helm !t cooldown
Cannot Specify Searched Tag

Multiple possible tags: <MythicSpawnerTag.cooldown>, <ScriptTag.cooldown[(<player>)]>, <PlayerTag.item_cooldown[<material>]>, <MythicMobsMobTag.global_cooldown>, <PlayerTag.skillapi.skill_cooldown[<skill>]>, <EntityTag.attack_cooldown_percent>, <EntityTag.attack_cooldown_duration>, <PlayerTag.skillapi.skill_on_cooldown[<skill>]>, <EntityTag.attack_cooldown_max_duration>.

mellow sierra
glacial glenBOT
# mellow sierra !c cooldown
Group

core

Syntax

cooldown [<duration>] (global) (script:<script>)

Short Description

Temporarily disables an interact script for the linked player.

Description

Temporarily disables an interact script for the linked player.

Cooldown requires a type (player or global), a script, and a duration.
It also requires a valid link to a PlayerTag if using a non-global cooldown.

To cooldown non-interact scripts automatically, consider !command ratelimit.

Cooldown periods are persistent through a server restart as they are saved in the 'saves.yml'.

mellow sierra
#

Hmm

#

This isn't it.

#

Hold on.

#

!c itemcooldown

glacial glenBOT
# mellow sierra !c itemcooldown
Group

player

Syntax

itemcooldown [<material>|...] (duration:<duration>)

Short Description

Places a cooldown on a material in a player's inventory.

Description

Places a cooldown on a material in a player's inventory.

mellow sierra
#

There it is.

#

As said, it only works on materials.

hot horizon
#

i have it sorry for not answer

mellow sierra
#

Well it seems you've opened another thread, so if all of your questions are answered then...

mint ridgeBOT
#
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.)

#

@hot horizon