#(ctr) catch a fish manually

115 messages · Page 1 of 1 (latest)

junior badge
lunar anchorBOT
#

(ctr) catch a fish manually

lunar anchorBOT
#

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>

junior badge
#

inb4 i know the determination in last line only works after something got caught already, but i have no idea how to even get to that point

lapis imp
#

you are probably going to need to fake it for the entire thing

#

ie, manually pull down the hook briefly, if player reels in at that point, shoot out the reward at the player

junior badge
lapis imp
#

im pretty sure its just moving the hook down

#

i dont think there is any specific anmiation for it

junior badge
#

huh... you mean like changing the hook entity position?

charred pastureBOT
lapis imp
#

or applying a velocity

junior badge
#

i mean the hook never really lands in a classic way since it can't float on lava, not sure if that helps... but i guess arm_swing animation will do it for now

lapis imp
#

i mean ya.. you will need to do a lot of manual faking to recreate mechanisms which the game didnt intend for

#

most of the time there isnt just an easy 1 step solution to doing things like this

junior badge
#

hmm... besides of shooting some random loot to the player i think it's not that much i can think of right now...
floating is not possible to fake i think and besides the animation... it's fine i guess

lapis imp
#

sure it is possible, if it doesnt quite reach the level of the lava, teleport it or adjust its velocity to make it sit on top

junior badge
#

i think i would just start shooting it from the block where it entered the lava instead of the hook directly

peak bramble
#

You could attach the hook on an netherite item

#

And make the item invisible via resource pack

peak bramble
junior badge
#

uhm...

#

i will try around with that after i'm able to fish a netherite sword without any extras :D

peak bramble
junior badge
#

oh you mean for the hook to float

#

holy crap that's neat

peak bramble
#

And netherite items dooo swim on lava

junior badge
#

i was thinking about loot burning before it arrives at the player lol

peak bramble
junior badge
#

i mean that would't be a huge problem if the loot is coming from above the lava instead of somewhere inside

#

i hope lol

#

is it possible to alter the item sinking speed / behavior?

#

Also.. the hook seems to deattach right after attaching

peak bramble
#

You might need after

#

Or wait 1t between dropping the item and attaching the hook

junior badge
#

hm... doesn't seem to fix it... weird

#

i think the burning of the hook resets the attached state or something

#

canceling entity combusts on the hook doesn't help

#

sad

#

at least the hook stays the same entity after touching the lava... so that can't be a problem

peak bramble
#

let me check

junior badge
#

want an updated script?

#

nvm.. i didn't change anything besides the wait 1t after - drop

peak bramble
#

works fine for me

junior badge
#

huh?

peak bramble
#
        on player fishes:
        - wait 1s
        - drop netherite_shovel <context.hook.location> save:uwu
        - wait 1s
        - attach <context.hook> to:<entry[uwu].dropped_entity> offset:0,0,0
junior badge
#

gonna try with save: aswell

#

nop lol

#
      ## throw hook into lava
      - if <player.world.contains[nether]> && <player.is_online> && <context.hook.is_spawned>:
        - waituntil rate:1t max:5s <context.hook.location.material.contains[lava]>
        - define SplashLocation <context.hook.location>
        - drop HookPlaceHolder <[SplashLocation]> save:Hook
        - wait 1t
        - attach <context.hook> to:<entry[Hook].dropped_entity> offset:0,0,0```
#

not working

#

again that short attach and instant deattach, also with other wait times like 1s etc

peak bramble
loud condorBOT
# peak bramble !checklog https://paste.denizenscript.com/View/105881
Server Version

Paper version git-Paper-375 (MC: 1.19.3)-- (Outdated build, behind by 11... Current build is 386)

Plugin Version(s)

Citizens: 2.0.30-SNAPSHOT (build 2846) -- (:warning:Outdated build, behind by 52)
Denizen: 1.2.6-SNAPSHOT (build 6609-DEV) -- (:warning:Outdated build, behind by 49)
Depenizen: 2.0.0 (build 816) -- (Outdated build, behind by 8)
dDiscordBot: 0.7 (build 257) -- (:warning:Outdated build, behind by 12)

Checked For

@peak bramble

Java Version

18.0.2.1 :warning: - Only Java versions 17, 16, and 8 are fully supported

Other Noteworthy Plugin(s)

MythicMobs: 5.2.1-fd1d0777, ProtocolLib: 5.0.0-SNAPSHOT-b612

Possibly Relevant Plugin(s)

ModelEngine: R3.1.2 - ModelEngine has Citizens support, but that support is known to be buggy. Issues related to NPCs that use ModelEngine should be reported to ModelEngine support, not Citizens.
FastAsyncWorldEdit: 2.5.1-SNAPSHOT-333;a7c402d - This plugin has been known to break the plugin load order on many servers, due to usage of the 'loadbefore' directive in its 'plugin.yml'.

peak bramble
#

SCgrin Update

junior badge
#

why did you do that to me

peak bramble
#

Ooo

#

!m entity.fish_hook_hooked_entity

loud condorBOT
peak bramble
#

@junior badge you can use dat

junior badge
#

oh my what is that chat spam on reload with the new version 😵

plucky beacon
#

your config is either regenerated or you left a debug override on lol

#

by default it gives a lot of output

junior badge
#

- adjust <context.hook> fish_hook_hooked_entity:<entry[Hook].dropped_entity> works

#

yay

cerulean ploverBOT
#

+> YAY!!!

junior badge
#

i never changed anything in denizens config in my life.. uhh

plucky beacon
#

this is debug output, it's from your scripts

junior badge
#

rly? wtf

#

will check that

plucky beacon
#

Adjust mechanism 'skull_skin' on object of type 'ItemTag'...
this as an example is from leaving an item, most likely an item with the material player_head, with debug: true or does not have debug: false

junior badge
#

or does not have debug: false that will be it 99%

#

thanks

junior badge
#

hmm.. any idea how i could stop the entity from sinking? :D

#

or at least sinking for like 15 blocks before it comes back up

junior badge
#

Hmm.. I'm replacing a 3x3 cuboid below the hook with barriers now (if the blocks are lava) to catch the sinking entity and replace them back to lava after 2 seconds

#

works

#

and doesn't look weird for the player

#

success :D

peak bramble
junior badge
#

That would make the hook snap down to the entity, which doesn’t prevent it from going down and looks weird

peak bramble
#

hook snap down to the entity
how so?

junior badge
#

i mean... when i wait after the hook hits lava first.. the hook starts sinking and attaches to the sword later, just from further far away

#

or am i missing something here?

peak bramble
#

wait until hook hits lava -> wait 2s, it will sink down -> spawn item at hooks position -> attach hook on item -> it will come back up

junior badge
#

finally have time to go back to this... Trying around for some time now but can't find a good method. What would be the best way to drop an item -> make it invunerable so it doesn't burn (if even possible) and shoot it to the player?

#

for now i'm getting the location of the placeholder entity as a location to shoot from.. but i'm not sure how to proceed from here

wooden arch
#

!c drop

loud condorBOT
# wooden arch !c drop
Group

world

Syntax

drop [<entity_type>/xp/<item>|...] (<location>) (quantity:<#>) (speed:<#.#>) (delay:<duration>)

Short Description

Drops an item, entity, or experience orb on a location.

Description

To drop an item, just specify a valid item object. To drop an entity, specify a generic entity object.
Drop can also reward players with experience orbs by using the 'xp' argument.

For all three usages, you can optionally specify an integer with 'quantity:' prefix to drop multiple items/entities/xp.

For items, you can add 'speed:' to modify the launch velocity.
You can also add 'delay:' to set the pickup delay of the item.

wooden arch
#

flag it with something that marks that it's supposed to be invincible

junior badge
#

ohh on entity burns or something?

#

combusts

wooden arch
#

that or damaged by fire

#

i don't recall off the top of my head which is relevant

#

either way just cancel it for the flagged entities

junior badge
#

could i implement the flag into the drop? or just after dropped_item spawns or something?

wooden arch
#

!c drop t

loud condorBOT
# wooden arch !c drop t
Group

world

Syntax

drop [<entity_type>/xp/<item>|...] (<location>) (quantity:<#>) (speed:<#.#>) (delay:<duration>)

Short Description

Drops an item, entity, or experience orb on a location.

Description

To drop an item, just specify a valid item object. To drop an entity, specify a generic entity object.
Drop can also reward players with experience orbs by using the 'xp' argument.

For all three usages, you can optionally specify an integer with 'quantity:' prefix to drop multiple items/entities/xp.

For items, you can add 'speed:' to modify the launch velocity.
You can also add 'delay:' to set the pickup delay of the item.

Related Tags

<entry[saveName].dropped_entities> returns a list of entities that were dropped.
<entry[saveName].dropped_entity> returns a single entity that was dropped (if only one).
<EntityTag.item> If the entity is a dropped item, returns the item represented by the entity. If t...
<EntityTag.experience> Returns the experience value of this experience orb entity.

wooden arch
#

^ ye flag it after spawn

junior badge
#

alright will try around with that, thanks!

#

alright that worked out perfectly... not to shooting it to the player

#

can i just adjust the velocity or something?

#

i mean.. i know i can adjust the velocity.. but is it possible to get the velocity needed to get to the player?

junior badge
#

uhh.. shoot with arc does it perfectly i guess