mineflayer icon indicating copy to clipboard operation
mineflayer copied to clipboard

Sign example and implementation fix

Open IceTank opened this issue 2 years ago • 9 comments

There are some things that did not work with the sign example and the sign implementation. The example was broken and did not work for all versions. It also had references to painting blocks (?) that do not seam to exist anymore. The updateSign function had an issue where it would stringify the sign text in versions 1.9 and above. But sign text is send as a string after 1.8 so empty lines showed up as "" on a sign. updateSign also had an issue where it would brick node-minecraft-protocol by trying to send sign text lines that where undefined.

IceTank avatar Jan 31 '22 16:01 IceTank

Someone could also remake the sign tests. But I don't have a lot of time right now.

IceTank avatar Jan 31 '22 16:01 IceTank

can you please rebase on master ?

rom1504 avatar Feb 04 '22 18:02 rom1504

So this removes painting completely from all examples I think we should have an example with paintings, maybe another one than this one

rom1504 avatar Feb 04 '22 20:02 rom1504

todo: Make example simpler

IceTank avatar Feb 13 '22 23:02 IceTank

Should I make updateSign and place sign take in an array off strings for the sign text lines? I feel like this would a lot more sense then having to put newline characters into the sign.

IceTank avatar Apr 23 '22 18:04 IceTank

For what it's worth, as an end user of the library, an array of strings seems more user-friendly and less brittle.

MrAwesome avatar May 23 '22 20:05 MrAwesome

This should be done. Waiting for someone to merge or suggest changes.

IceTank avatar Jul 18 '22 00:07 IceTank

can you rebase and push to retrigger ci ?

rom1504 avatar Aug 07 '22 15:08 rom1504

Did you delete the commits ? What happened to the bot.placeSign function?

extremeheat avatar Aug 07 '22 16:08 extremeheat

closed with label "was good"

Maybe someone will pick it up someday

rom1504 avatar Mar 04 '23 17:03 rom1504