Berry-Club / Genetics-Resequenced

MIT License
1 stars 0 forks source link

[Bug] [1.19.2] Cannot Scrape etc the Ender Dragon #26

Open TimezParadox opened 2 months ago

TimezParadox commented 2 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

aaronhowser1 commented 2 months ago

Probably the same issue as #15, which was fixed in 1.21. I'm not sure if 1.19 will continue to get patches, since a lot has changed in the base code, and I'd have to basically unlearn it all

TimezParadox commented 2 months ago

Frankly, if I knew any other way to get ahold of the Ender Dragons cells, like with commands, I would simply spawn them in at this point. I already tried using the creative mod one but still couldn't right click the dragon. And well, couldn't figure out how to summon one with a command/command/block.

aaronhowser1 commented 2 months ago

Use kubejs or something to get the nbt of an existing Organic Matter, and then just spawn in a new one with the same nbt but with the entity id replaced

aaronhowser1 commented 2 months ago

The reason this happens is because the ender dragon that exists in thr world is technically not the EnderDragon entity in code, but PartEntity or some such. I had to add a special check for that.

TimezParadox commented 2 months ago

Thanks, I"ll see if I can. Edited: Found a non-code/mod way to get it!!! XD KubeJS is really interesting, but melted my tiny pea brain, so I searched and searched, and this is what I got. :D

1.19.2.1.0.1

/setblock ~ ~ ~ minecraft:chest[facing=north,type=single,waterlogged=false]{Items:[{Count:1b,Slot:13b,id:"geneticsresequenced:organic_matter",tag:{MobId:"minecraft:ender_dragon"}}]}