#(chronos1981) unable to get created npc to pickup items
30 messages · Page 1 of 1 (latest)
(chronos1981) unable to get created npc to pickup items
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.
!haste
Help us help you by pasting your script to https://paste.denizenscript.com/New/Script and linking it back here.
i know I'm probalby doing some things wrong but I'm learning. heres the code. https://paste.denizenscript.com/View/129706 Thanks for the help.
Content of Denizen Script Paste #129706: Woodsman... pasted 2025/01/04 12:46:55 UTC-08:00, Paste length: 1769 characters across 53 lines, Content: spawn_woodsman: type: item debug: true material: stick
if i do this /npc pickupitems ingame it works.
!debug
If you need help with a script issue, one of the most powerful tools Denizen has to offer is full debug output. This is displaying in your console whenever scripts are running until you turn debug off. To share a debug log quickly and easily with helpers, simply run the command /denizen debug -r in-game to begin recording, then run through the part of the script you need help with, then run the command /denizen submit. This will give you a link to a paste of the debug log, which you can then copy/paste back to us!
Could you run a debug real quick
Content of Server Log Paste #129707: Denizen Debug Logs From A Minecraft RPG Server... pasted 2025/01/04 13:04:02 UTC-08:00, Paste length: 35301 characters across 328 lines, Content: `Java Version: 21.0.5 Up-time: 4h 12m Denizen Version: Core: 1.91.0-SNAPSHOT (Build 1392), Spigot: 1.3.1-SNAPSHOT (build 7121-DEV) Script Containers: 6, Ev...
line 28 where the adjust command runs
!help
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)
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
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
!mechanism can_pickup_items
Sets whether the entity can pick up items.
The entity must be living.
EntityTag
ElementTag(Boolean)
<EntityTag.can_pickup_items> Returns whether the entity can pick up items.
Content of Server Log Paste #129707: Denizen Debug Logs From A Minecraft RPG Server... pasted 2025/01/04 13:04:02 UTC-08:00, Paste length: 35301 characters across 328 lines, Content: `Java Version: 21.0.5 Up-time: 4h 12m Denizen Version: Core: 1.91.0-SNAPSHOT (Build 1392), Spigot: 1.3.1-SNAPSHOT (build 7121-DEV) Script Containers: 6, Ev...
CraftBukkit version 4418-Spigot-aa7842e-fa10c50 (MC: 1.21.4)
Citizens: 2.0.37-SNAPSHOT (build 3666) -- (Outdated build, behind by 13)
Denizen: 1.3.1-SNAPSHOT (build 7121-DEV) -- (Outdated build, behind by 2)
@merry vault
4 (:white_check_mark: Online)
21.0.5 :white_check_mark:
Multiverse-Core: 4.3.12 - Multi-world configuration plugins may affect NPCs in unexpected ways.
It may be because you’re on CraftBukkit, could you try with either Spigot or Paper?
It's not craftBukkit. I'm running Spigot /edit strange is it CraftBukkit or Spigot log says it's both
running buildtools again making sure it's just Spigot
@spice wagon has this issue been fixed?
Wouldn't this be due to NPCs having their own item pickup logic? Looking a bit it looks like can_pickup_items affects the normal entity, but looks like NPCs have their own tick logic to pickup items? I can at least confirm this was easy to recreate on 1.20.4 on Paper.
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.)
@spice wagon
Spigot is a fork of Bukkit/CraftBukkit, it's just still in their name format
CraftBukkit hasn't been a thing on it's own for a very long time
(And I'd heavily recommend moving to Paper, especially now that they've hard-forked)
Either way, if there's an option for this in Citizens that isn't supported by Denizen can mark this as a feature request