Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 07:14

    dependabot[bot] on npm_and_yarn

    (compare)

  • 07:14
    dependabot[bot] closed #530
  • 07:14
    dependabot[bot] commented #530
  • 07:14
    dependabot[bot] labeled #531
  • 07:14
    dependabot[bot] opened #531
  • 07:14

    dependabot[bot] on npm_and_yarn

    Bump jest from 26.6.3 to 27.3.0… (compare)

  • Oct 15 06:07
    BasToTheMax commented #432
  • Oct 14 18:15
    BasToTheMax commented #432
  • Oct 11 07:18
    dependabot[bot] closed #529
  • Oct 11 07:18
    dependabot[bot] commented #529
  • Oct 11 07:18

    dependabot[bot] on npm_and_yarn

    (compare)

  • Oct 11 07:18
    dependabot[bot] labeled #530
  • Oct 11 07:17
    dependabot[bot] opened #530
  • Oct 11 07:17

    dependabot[bot] on npm_and_yarn

    Bump jest from 26.6.3 to 27.2.5… (compare)

  • Sep 30 07:16

    dependabot[bot] on npm_and_yarn

    (compare)

  • Sep 30 07:16
    dependabot[bot] closed #528
  • Sep 30 07:16
    dependabot[bot] commented #528
  • Sep 30 07:16
    dependabot[bot] labeled #529
  • Sep 30 07:16
    dependabot[bot] opened #529
  • Sep 30 07:16

    dependabot[bot] on npm_and_yarn

    Bump jest from 26.6.3 to 27.2.4… (compare)

rom1504bot
@rom1504bot
<Grooble_> Not sure the implementation is working well by the way
rom1504bot
@rom1504bot
<nickelpro> What's broken? If you have a reproducible example please open an issue
<nickelpro> Post-flattening there's no difference between "updating" a block and "changing" a block. Both swapping out the state ID of a given block coordinate
rom1504bot
@rom1504bot
<rom1504> @Ic3Tank did you try yet the existing plugin handling schematic for flying-squid?
rom1504bot
@rom1504bot
<Ic3Tank> No I did not. But it looks like the plugin uses schematic-to-world and that just loads a new world with the schematic in it. What I wanted to do was paste a schematic into a existing world. But its not really important anyway as I was just testing some stuff.
rom1504bot
@rom1504bot
<rom1504> No it doesn't create a new world, it adds a schematic in an existing world
<rom1504> https://github.com/rom1504/flying-squid-schematic/blob/master/plugin.js#L34 and then that's the plugin way to send stuff to players
rom1504bot
@rom1504bot
<rom1504> No it doesn't create new chunks
rom1504bot
@rom1504bot

<paradise> ehm I'm getting ```js
node_modules/flying-squid/src/lib/plugins/chat.js:3
if(whitelist.type === 'player') whitelist = [whitelist]

TypeError: Cannot read property 'type' of undefined
at MCServer.serv.broadcast (node_modules/flying-squid/src/lib/plugins/chat.js:3:19)~~and my code is~~js
module.exports.server = function(serv) {
serv.broadcast("etc");
}```

rom1504bot
@rom1504bot
<paradise> had to wrap it within a listening event
rom1504bot
@rom1504bot

<paradise> does flying-squid have no inventory support? eg bukkit has ```java
player.getInventory().setItem(itemPosID, itemStack);

// or, for armor

player.getInventory().setHelmet(itemStack);```

rom1504bot
@rom1504bot
<U9G> because nobody worked on it
rom1504bot
@rom1504bot
<paradise> hmm, is there any way to build a raw packet to send to the player? because minecraft-data doesn't seem to have the packet for it either, and player._client.write is expecting a chunk argument
<paradise> perhaps it's packet_set_slot nvm
rom1504bot
@rom1504bot
<Ic3Tank> All packets that exist can be parsed with _client.write. Just look up what parameter that packet needs at put it as json in the second argument for write js _client.write('position', {x: 1000, y:0, z: 1000})for example
<paradise> yeah I realised I couldn't find the packet with the name I expected so I assumed I needed to create one myself
<paradise> ty though!
<Ic3Tank> Here is the packet name documentation https://minecraft-data.prismarine.js.org/?d=protocol
rom1504bot
@rom1504bot
rom1504bot
@rom1504bot
<AlterNet> any help?
rom1504bot
@rom1504bot
<Darren Lau Wei Jie> even on 1.16.5
rom1504bot
@rom1504bot
<Darren Lau Wei Jie> u need to use 1.16.1
rom1504bot
@rom1504bot
<Antonio32A> is it possible to set the server icon somehow?
<Antonio32A> or respond with it manually when somebody pings the server
<Antonio32A> me and my friend would like to have some fun with server icons
<directive> You can with nmp by setting beforePing param (https://github.com/PrismarineJS/node-minecraft-protocol/blob/master/docs/API.md#mccreateserveroptions), not sure if flying-squid has a high level way to do this
rom1504bot
@rom1504bot
<Antonio32A> amazing, can you please send me a link to the file which handles this?
<Antonio32A> I cannot find it
<Antonio32A> nevermind, found it!
rom1504bot
@rom1504bot
<Ic3Tank> Does flying squid keep track of player opened window id's?
<U9G> no
<U9G> it soesnt implement window ids at all iirc
rom1504bot
@rom1504bot
<directive> whenever i clone flying-squid and run node app.js i get the following error:
August 12th 2021, 19:29:43 [INFO]: Server listening on port 25565
Error: Cannot find module 'prismarine-chunk/src/pc/1.14/ChunkSection'
Require stack:
- /Users/w/js/flying-squid/node_modules/prismarine-provider-anvil/src/1.14/chunk.js
- /Users/w/js/flying-squid/node_modules/prismarine-provider-anvil/src/chunk.js
- /Users/w/js/flying-squid/node_modules/prismarine-provider-anvil/src/index.js
- /Users/w/js/flying-squid/node_modules/prismarine-provider-anvil/index.js
- /Users/w/js/flying-squid/src/lib/plugins/world.js
- /Users/w/js/flying-squid/src/lib/requireindex.js
- /Users/w/js/flying-squid/src/index.js
- /Users/w/js/flying-squid/index.js
- /Users/w/js/flying-squid/app.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:94:18)
    at module.exports (/Users/w/js/flying-squid/node_modules/prismarine-provider-anvil/src/1.14/chunk.js:5:24)
    at module.exports (/Users/w/js/flying-squid/node_modules/prismarine-provider-anvil/src/chunk.js:12:34)
    at Object.module.exports [as Anvil] (/Users/w/js/flying-squid/node_modules/prismarine-provider-anvil/src/anvil.js:3:81)
    at Object.module.exports.server (/Users/w/js/flying-squid/src/lib/plugins/world.js:15:54)
    at /Users/w/js/flying-squid/src/index.js:56:50
    at Array.forEach (<anonymous>)
<extremeheat> npm i prismarine-chunk@latest
<directive> still happens
<directive> i can send my package.json if that would help
<extremeheat> ah prismarine-provider-anvil was not updated
<extremeheat> @nickelpro ^
rom1504bot
@rom1504bot
<nickelpro> What's pr-anvil?
rom1504bot
@rom1504bot
<U9G> loads world
<nickelpro> Did the anvil format change too? It's not related to the network chunk format
rom1504bot
@rom1504bot
<nickelpro> Ooooh it's because we consolidated the chunk sections
<nickelpro> Ya that's an easy update
<directive> just need to change the require statement?
<nickelpro> Yes
rom1504bot
@rom1504bot

<Ic3Tank> Is the deploy Dockerfile for flying-squid broken? When I do docker build . -f .\deploy\Dockerfile -t flying-squid-viewer in the root directory I get ```

#8 80.78 npm ERR! code ENOENT

#8 80.78 npm ERR! syscall chmod

#8 80.78 npm ERR! path /app/node_modules/flying-squid/app.js

#8 80.78 npm ERR! errno -2

#8 80.78 npm ERR! enoent ENOENT: no such file or directory, chmod '/app/node_modules/flying-squid/app.js'

#8 80.78 npm ERR! enoent This is related to npm not being able to find a file.

#8 80.78 npm ERR! enoent

```