MarkusBordihn / BOs-Easy-NPC

Create easily NPC for your world or for your mod.
Other
19 stars 7 forks source link

[Bug] Cannot interact with NPC after importing #305

Closed KiwiFlavoredApollo closed 2 weeks ago

KiwiFlavoredApollo commented 1 month ago

๐Ÿ’ก Check the Bug Tracker and Crash Tracker before reporting a new issue. There you can find a lot of useful information and solutions for common problems.

Note: Please make sure to fill out the following template to the best of your ability. This will help us to identify and fix the issue faster.

Minecraft and Mod version ๐Ÿž Minecraft Fabric 1.20.1

Describe the bug ๐Ÿž After successfully exporting an NPC and importing the configuration, the NPC becomes uninteractable. While NPC wand doesn't work, NPCs could be configured using commands while looking at them.

To Reproduce โš™๏ธ

  1. Create an NPC and configure
  2. Export NPC configuration
  3. Create another NPC somewhere else and import the NPC configuration
  4. Failed to interact with the NPC neither with wand nor right click action

Expected behavior โœ”๏ธ Being able to interact with the NPC after importing

Screenshots ๐Ÿ“ธ If applicable, add screenshots to help explain your problem.

Debugging ๐Ÿ› ๏ธ

[16:34:01] [Netty Epoll Server IO #12/DEBUG]: Open menu b2a0546c-711e-4f5d-b4ce-fe5858b62432 for npc 664abebc-52e7-46a3-9519-0a75dd91c063 and player class_3222['Kalanchoe0514'/2729, l='ServerLevel[world]', x=36.53, y=63.94, z=895.61] with: {ScreenData:{AdditionalData:{WorldPresets:[{id_425648093:"easy_npc:preset/humanoid/number-one-chief.npc.nbt"},{id_1132032476:"easy_npc:preset/humanoid/78e9e0a2-80d5-4539-97c3-d5b78193ab75.npc.nbt"},{id_-1139617397:"easy_npc:preset/humanoid/pokechief.npc.nbt"}]},PageIndex:0,UUID:[I;1716174524,1390888611,-1793521035,-577650589]}}
[16:34:01] [Netty Epoll Server IO #12/INFO]: Opening menu b2a0546c-711e-4f5d-b4ce-fe5858b62432 for npc 664abebc-52e7-46a3-9519-0a75dd91c063 and player class_3222['Kalanchoe0514'/2729, l='ServerLevel[world]', x=36.53, y=63.94, z=895.61] with de.markusbordihn.easynpc.menu.configuration.ConfigurationMenuHandler$4@4fdb2855
[16:34:01] [Netty Epoll Server IO #12/DEBUG]: Opened menu b2a0546c-711e-4f5d-b4ce-fe5858b62432 (61) and de.markusbordihn.easynpc.menu.configuration.ConfigurationMenuHandler$4@4fdb2855 for class_3222['Kalanchoe0514'/2729, l='ServerLevel[world]', x=36.53, y=63.94, z=895.61]
[16:34:04] [Netty Epoll Server IO #12/DEBUG]: [ServerLevel[world]] Update preset data for existing entity Humanoid['Humanoid'/105211, l='ServerLevel[world]', x=36.50, y=63.94, z=897.50]!
[16:34:04] [Netty Epoll Server IO #12/DEBUG]: [Custom Entity Data] Set custom data de.markusbordihn.easynpc.data.server.ServerDataItem@279bc641 for <custom data: ACTION_EVENT_SET serializer:de.markusbordihn.easynpc.entity.easynpc.data.ActionEventData$1@5f710ba2> with id ACTION_EVENT_SET
[16:34:04] [Netty Epoll Server IO #12/DEBUG]: [Custom Entity Data] Set custom data de.markusbordihn.easynpc.data.server.ServerDataItem@270639d1 for <custom data: DIALOG_DATA_SET serializer:de.markusbordihn.easynpc.entity.easynpc.data.DialogData$1@65265894> with id DIALOG_DATA_SET
[16:34:04] [Netty Epoll Server IO #12/DEBUG]: Importing full preset {AABB:[31.19999998807907d,65.0d,940.1999999880791d,31.80000001192093d,66.95000004768372d,940.8000000119209d],AbsorptionAmount:0.0f,ActionData:{ActionEventSet:{},ActionPermissionLevel:4},Air:300s,AngerTime:0,ArmorDropChances:[0.085f,0.085f,0.085f,0.085f],ArmorItems:[{},{},{},{}],Attributes:[{Base:0.0d,Name:"minecraft:generic.knockback_resistance"},{Base:0.6000000238418579d,Name:"minecraft:generic.movement_speed"},{Base:0.0d,Name:"minecraft:generic.attack_knockback"},{Base:1.0d,Name:"minecraft:generic.attack_damage"},{Base:32.0d,Modifiers:[{Amount:0.0801194904402622d,Name:"Random spawn bonus",Operation:1,UUID:[I;1312447247,-656258293,-1623015541,-296256893]},{Amount:-0.0150097445215747d,Name:"Random spawn bonus",Operation:1,UUID:[I;1686183498,502025863,-1213900462,-291589970]}],Name:"minecraft:generic.follow_range"}],Brain:{memories:{}},CanPickUpLoot:0b,CustomName:'{"color":"#FF681F","text":"์ผ๋ฅ˜ ์ฃผ๋ฐฉ์žฅ"}',DeathTime:0s,DialogData:{Default:"question",DialogDataSet:[{Buttons:[{Actions:[{Cmd:"tell @p ๊ทธ๋Ÿผ ๋‚˜ ํ˜ผ์ž ๋จน์„๊ฒŒ...",Type:"COMMAND"},{Type:"CLOSE_DIALOG"}],Label:"no_button",Name:"No",Type:"DEFAULT"},{Actions:[{Cmd:"trainers makebattle @p PokeChiefIntermediate",Type:"COMMAND"},{Type:"CLOSE_DIALOG"}],Label:"yes_button",Name:"Yes",Type:"DEFAULT"}],Label:"question",Name:"Question Dialog",Texts:[{Text:"๋‚˜๋ž‘ ํฌ์ผ“๋ชฌ ๋ฐฐํ‹€ํ•ด์„œ ์ด๊ธฐ๋ฉด ๋ง›์žˆ๋Š”๊ฑธ ์ฃผ์ง€"}]}],Type:"YES_NO"},EasyNPCVersion:2,EntityAttribute:{CanBeLeashed:0b,CanCloseDoor:0b,CanFloat:0b,CanOpenDoor:0b,CanPassDoor:0b,CanUseNetherPortal:0b,Freefall:0b,IsAttackable:0b,IsPushable:0b,LightLevel:7,PushEntities:0b},FallDistance:0.0f,FallFlying:0b,Fire:-1s,HandDropChances:[0.085f,0.085f],HandItems:[{},{}],Health:20.0f,HurtByTimestamp:0,HurtTime:0s,Invulnerable:1b,LeftHanded:0b,ModelData:{DefaultPose:"STANDING",Pose:"DEFAULT",Position:{},Rotation:{},SmartAnimations:1b,Visible:{}},Motion:[0.0
d,0.0d,0.0d],Navigation:{Home:{X:31,Y:65,Z:940}},ObjectiveData:{HasObjectives:1b,ObjectiveDataSet:[{Prio:9,Type:"LOOK_AT_PLAYER"},{Prio:10,Type:"LOOK_AT_MOB"},{Prio:9,Type:"LOOK_AT_RESET"}]},Offers:{Inventory:{},Recipes:{Recipes:[]}},OnGround:1b,Owner:[I;669580464,-968800687,-1679613905,-2048610949],PersistenceRequired:0b,PortalCooldown:0,Pos:[36.5d,63.9375d,897.5d],Profession:"NONE",RenderData:{},Rotation:[-71.14661f,1.0761927f],SkinData:{Skin:"",SkinType:"DEFAULT",SkinURL:""},SoundData:{SoundDataSet:[{Name:"minecraft:entity.player.death",Type:"DEATH"},{Name:"minecraft:entity.generic.eat",Type:"EAT"},{Name:"minecraft:entity.player.hurt",Type:"HURT"},{Name:"minecraft:entity.villager.trade",Type:"TRADE"},{Name:"minecraft:entity.villager.yes",Type:"TRADE_YES"},{Name:"minecraft:entity.villager.no",Type:"TRADE_NO"}]},TradingData:{TradingDataSet:{LastReset:0L,MaxUses:0,ResetsEveryMin:0,RewardedXP:0,Type:"NONE"}},UUID:[I;1716174524,1390888611,-1793521035,-577650589],Variant:"ZURI",id:"easy_npc:humanoid","puzzleslib:spawn_type":"SPAWN_EGG"} for Humanoid['Humanoid'/105211, l='ServerLevel[world]', x=36.50, y=63.94, z=897.50]

Is the issue happening in combination with other mods? (If yes, please provide a full list) ๐Ÿงฉ

Additional context ๐Ÿ“ Add any other context about the problem here.

github-actions[bot] commented 2 weeks ago

This issue is stale because it has been open 7 days with no activity. Remove stale label or comment or this will be closed in 3 days.

github-actions[bot] commented 2 weeks ago

This issue was closed because it has been stalled for 5 days with no activity.