#(niklas_) what is the event for an entity getting "lovely" xD
43 messages · Page 1 of 1 (latest)
(niklas_) what is the event for an entity getting "lovely" xD
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.
!e entity tamed
Entity
entity tamed <entity> tamed player tames entity player tames <entity>
when an entity is tamed.
when a player tames an entity and using the 'players tames entity' event. - this adds switches flagged:<flag name> + permission:<node>, in addition to the <player> link.
<context.entity> returns a EntityTag of the tamed entity.
<context.owner> returns a EntityTag of the owner.
True - this adds switches in:<area> + location_flagged:<flag name>.
True - this adds <context.cancelled> and determines cancelled + cancelled:false.
is it this?
!e breeds
Entity
<entity> breeds
when two entities breed.
<context.breeder> returns the EntityTag responsible for breeding, if it exists.
<context.child> returns the child EntityTag.
<context.mother> returns the parent EntityTag creating the child. The child will spawn at the mother's location.
<context.father> returns the other parent EntityTag.
<context.item> returns the ItemTag used to initiate breeding, if it exists.
<context.experience> returns the amount of experience granted by breeding.
ElementTag(Number) to set the amount of experience granted by breeding.
True - this adds switches in:<area> + location_flagged:<flag name>.
True - this adds <context.cancelled> and determines cancelled + cancelled:false.
ok what I am trying to do is:
You can only bread two entitys IF one is male and one female.
This is the script:
https://paste.denizenscript.com/View/127910
this is the error:
Content of Denizen Script Paste #127910: Unnamed Denizen Script Paste... pasted 2024/11/09 05:31:29 UTC-08:00, Paste length: 1136 characters across 25 lines, Content: geschlecht_tiere: type: world
Content of Server Log Paste #127909: Denizen Debug Logs From Powered by AMP... pasted 2024/11/09 05:28:52 UTC-08:00, Paste length: 18144 characters across 168 lines, Content: Java Version: 21.0.4Up-time: 33m
line: 163
but i can spawn the entity with:
/ex spawn cow <player.location>
why cant I do it via the script?
It’s because you’re trying to spawn a specific uuid instead of an entity type in the script
!c spawn
entity
spawn [<entity>|...] (<location>) (target:<entity>) (persistent) (reason:<reason>)
Spawns a list of entities at a certain location.
Spawn an entity or list of entities at the specified location.
Accepts the 'target:<entity>' argument which will cause all spawned entities to follow and attack the targeted entity.
If the persistent argument is present, the entity will not despawn when no players are within range, causing the entity to remain until killed.
Optionally specify 'reason:<reason>' (Paper only) to specify the reason an entity is spawning for the 'entity spawns' event,
using any reason from <@link url https://hub.s...
How could I do that
Just have the script spawn a cow, then adjust its age to be a baby
how can i adjust the age
!m age
Multiple possible mechanisms: EntityTag.age, ImageTag.scale, LocationTag.age, MaterialTag.age, LocationTag.page, EntityTag.damage, EntityTag.age_lock, ItemTag.book_pages, EntityTag.time_lived, EntityTag.age_locked, TradeTag.villager_xp, EntityTag.damage_item, BiomeTag.foliage_color, DiscordMessageTag.delete, LocationTag.lectern_page, EntityTag.villager_level, DiscordMessageTag.crosspost, DiscordMessageTag.crosspost, DiscordMessageTag.is_pinned, PlayerTag.flying_fall_damage, ...
Did you mean to search for command age?
!m entitytag.age
(Property) Sets the entity's age.
Age moves 1 towards zero each tick.
A newly spawned baby is -24000, a standard adult is 0, an adult that just bred is 6000.
For the mechanism, inputs can be 'baby', 'adult', or a valid age number.
Also available: !mechanism EntityTag.age_locked and !tag EntityTag.is_baby
Properties
EntityTag
ElementTag
<EntityTag.age> (Property) Returns the entity's age. Age moves 1 towards zero each tick. A newly s...
Content of Denizen Script Paste #127968: Unnamed Denizen Script Paste... pasted 2024/11/10 02:48:56 UTC-08:00, Paste length: 1689 characters across 38 lines, Content: geschlecht_tiere: type: world
Content of Server Log Paste #127967: Denizen Debug Logs From Powered by AMP... pasted 2024/11/10 02:48:29 UTC-08:00, Paste length: 10982 characters across 100 lines, Content: Java Version: 21.0.4Up-time: 18h 46m
error? why
10:48:27 +- Queue 'GESCHLECHT_TIERE_18556619_PaydayUpload' Executing: (line 20) define kuh cow ---------+
10:48:27 +> Executing 'DEFINE': Queue='q@GESCHLECHT_TIERE_18556619_PaydayUpload' definition='kuh' value='cow'
10:48:27 +- Queue 'GESCHLECHT_TIERE_18556619_PaydayUpload' Executing: (line 21) adjust <[kuh]> age:-24000 ---------+
10:48:27 Filled tag <[kuh]> with 'cow'.
cow is not an actual spawned existing entity
It's just text
!lang save argument
The "save:<name>" argument is a special meta-argument that is available for all commands, but is only useful for some.
It is written like:
- run MyScript save:mysave
When the save argument is used, the results of the command will be saved on the queue, for later usage by the "entry" tag.
The useful entry keys available for any command are listed in the "Tags" documentation section for any command.
For example, the "run" command lists "<entry[saveName].created_queue>".
The "saveName" part should be replaced with whatever name you gave to the "save" argument,
and the "created_queue" part changes between commands.
Some commands have multiple save entry keys, some have just one, most don't have any.
Many users make the mistake of using dynamic save names like "save:<[something]>" - this is almost always wrong. Use a constant name, just like you do for definitions.
Script Command System
!c spawn
entity
spawn [<entity>|...] (<location>) (target:<entity>) (persistent) (reason:<reason>)
Spawns a list of entities at a certain location.
Spawn an entity or list of entities at the specified location.
Accepts the 'target:<entity>' argument which will cause all spawned entities to follow and attack the targeted entity.
If the persistent argument is present, the entity will not despawn when no players are within range, causing the entity to remain until killed.
Optionally specify 'reason:<reason>' (Paper only) to specify the reason an entity is spawning for the 'entity spawns' event,
using any reason from <@link url https://hub.s...
<entry[saveName].spawned_entities> returns a list of entities that were spawned. <entry[saveName].spawned_entity> returns the entity that was spawned (if you only spawned one).
Spawn it then adjust
You probably want to use property syntax
ie - spawn cow[age=-24000]
or use the way Tek described above
!guide mechanism
View the guide page 'Mechanisms And Properties' at: https://guide.denizenscript.com/guides/basics/mechanisms.html
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.)
@idle bloom