Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 14 19:39
    kf106 commented #595
  • Jun 14 19:39
    kf106 commented #595
  • Jun 14 04:20
    ThallesP synchronize #599
  • Jun 11 12:52
    andriycraft commented #599
  • Jun 11 12:52
    andriycraft commented #599
  • Jun 11 12:51
    andriycraft commented #599
  • Jun 11 12:42
    ThallesP commented #599
  • Jun 11 10:09
    andriycraft commented #599
  • Jun 11 10:08
    andriycraft commented #599
  • Jun 11 10:07
    andriycraft commented #518
  • Jun 09 18:57
    ThallesP ready_for_review #599
  • Jun 09 18:55
    ThallesP synchronize #599
  • Jun 04 22:54
    ThallesP synchronize #599
  • Jun 04 21:38
    darksunlight opened #600
  • Jun 04 07:15
    andriycraft commented #553
  • Jun 03 23:17
    ThallesP synchronize #599
  • Jun 03 21:51
    ThallesP opened #599
  • Jun 03 15:34
    andriycraft closed #578
  • Jun 02 18:06
    KaffinPX commented #182
  • Jun 01 21:03
    darksunlight commented #598
rom1504bot
@rom1504bot
<Ic3Tank> I think most people use mcData to get the id off a block for a specific version and then compare with the id.
<paradise> Makes sense, just that the function annoyed me so I implemented regex to check the name property instead of ID and I'm wondering if there's an actual downside
rom1504bot
@rom1504bot
<Ic3Tank> If the name changes you have to change the name checking at multiple places. Were as with mcData you only have to change the name at one place.
<Karang> comparing id is faster than comparing name (especially when using a regex) that being said if you do it only once or twice, it shouldn't be an issue
rom1504bot
@rom1504bot
<paradise> I c
<paradise> Well ty guess I won't do a pr then 👍
rom1504bot
@rom1504bot
<DrunkMoon> In my about me
rom1504bot
@rom1504bot
<rom1504> I mean the code
<DrunkMoon> It’s uh
<DrunkMoon> Not online anywhere yet since it’s just a pretty primitive modification of diamond-square
rom1504bot
@rom1504bot
<DrunkMoon> drop iron axe -> drops coral fan
use axe -> place coral fan
break coral fan -> drops axe
drop coral fan -> drops black shulker box
break black shulker box -> drop coral fan
drop black shulker box -> nothing
<DrunkMoon> block id and item id discrepancy is pain
<U9G> yeah, its an easy fix
<U9G> submit a pr where you match based on name not based on number
<U9G> ie find the cooresponding name in blocks that was just placed
<DrunkMoon> drop iron axe -> drops coral fan
use axe -> place coral fan
break coral fan -> drops axe
use coral fan -> place coral fan
drop coral fan -> drops black shulker box
break black shulker box -> drop coral fan
drop black shulker box -> nothing
rom1504bot
@rom1504bot
<paradise> How would I go by making an entity invisible?
rom1504bot
@rom1504bot
<DrunkMoon> why does opening the crafting window alter the entire player.inventory?
https://cdn.discordapp.com/attachments/413438265475989534/880989540960043048/unknown.png
<U9G> how?
<DrunkMoon> not entirely sure what happened
<DrunkMoon> can't reproduce now
<DrunkMoon> but basically since the actual player.inventory's IDs are one lower than that of the crafting table window's
<DrunkMoon> the items in the player.inventory got moved to their respective positions as in the crafting table
rom1504bot
@rom1504bot
<DrunkMoon> Btw it doesn’t send the confirmation packets for actions right?
rom1504bot
@rom1504bot
<DrunkMoon> the inventory management is quite a mess rn
rom1504bot
@rom1504bot
<nickelpro> Lol using flying squid
<nickelpro> :salutcat:
rom1504bot
@rom1504bot
<paradise> how would I be able to retrieve an entity ID after spawning it? js const spawnedEntity = serv.spawnObject(entity.id, serv.getPlayer('user').world, serv.getPlayer('user').position, { velocity: new Vec3((Math.random() - 0.5) * 10, Math.random() * 10 + 10, (Math.random() - 0.5) * 10) }); console.log(spawnedEntity); returns undefined
rom1504bot
@rom1504bot
<DrunkMoon> what's the best way to smooth the edges
<mat> calculating the biome per-block instead of per-chunk
rom1504bot
@rom1504bot
<DrunkMoon> right
rom1504bot
@rom1504bot
<nikku> looks like you need some anti-aliasing @DrunkMoon :umad:
rom1504bot
@rom1504bot
<Juaan> Hey! I was going to work on 1.16.2+ support and it seems there's already a PR that implemented the login packet changes. Why wasn't it merged? PrismarineJS/flying-squid#518
rom1504bot
@rom1504bot
<U9G> cc @rom1504
<rom1504> CI failing
rom1504bot
@rom1504bot
rom1504bot
@rom1504bot
<Vakore> I'm not sure if this is a flying squid thing, a mineflayer thing, or a prismarine viewer thing, but when I connect my bot to flying squid, it falls off when it see runs out of the chunks I can see with flying squid. I'm trying to dev a bot while at school which is why I seek flying squid.
<Vakore> Do I need to code in chunk gen?
rom1504bot
@rom1504bot
<Ic3Tank> That might be because it chunk did not load. When I was testing flying squid chunk loading was slow and only started to actually load chunks after 10-20 seconds after the bot joined the flying squid server. Try waiting a while and then move the bot.
rom1504bot
@rom1504bot
<Vakore> Ok, thanks
rom1504bot
@rom1504bot
<Darvin> Hi
<Darvin> Are there world generators, where the world looks 100% like vanilla mc?
rom1504bot
@rom1504bot
<ghqst> no
<ghqst> at least i dont think so
<ghqst> if you want something like that but with nodejs plugins I suggest that you use paper + https://www.spigotmc.org/resources/velt.90079/
rom1504bot
@rom1504bot
<Karang> https://github.com/PrismarineJS/prismarine-rng aim at that but only generates the biome map for now, next step is adding terrain generation
rom1504bot
@rom1504bot
<extremeheat> I believe there’s also a project in C that can do terrain generation, maybe possible to reuse that with wasm if it’s maintained
<extremeheat> Ah nevermind it’s just biomes