#mod-dev-talk Thursday 1 July 2021
194 messages8 people
- J
- S
Replying toJack PapelWorking on a huge swet overhaul to allow for the proposed changes
that is mega epico00:50you are very epic Jack Papel - J
- C
- J01:42And textures for the other colors as well
- C01:43if it's white we can just tint it
- J01:43So just white should be fine
- C
- J
- A
- J
- A01:44But that can also take in a texture
- C
- A
- J
- J
- H
- J
- A
- H
- APlease do explain exactly what you mean with that, I feel like there is a better approach to this02:03A more flexible to that, and one that lets us have more reusable code.
- J
- H
- J
- A02:11Explain what I said above
- J
- A02:11What is the swet drops block
- J
- A
- J
- ABasically, instead of doing new SwetDropBlock(pissAndShit) you have EntityDropBlock(pissAndShit, BiFunction<BlockPos, ServerWorld>)02:14You get what I am talking about right?
- J
- A
- J
- H
- J
- A
Replying toHaven KingIt should be a BlockEntity storing the entities tag, yes.
What? No03:03Why would it need to be03:03That is an unnecessary performance sink - H
- A
- H
- A
- H
- C03:06afaik block entities are laggier(edited)
- H
- C
- H
- A
- C
- H
- J03:22But yes the other ideas do seem more versatile
- A
Replying toHaven KingNo, why would you do that?
You have a very simple, very clean implementation where you just make a new block and feed it a function03:29Rather elegant given it has one, simple purpose03:29Or you make an entire fucking BE for a block that you could get hundreds of in a block depending on the situation - H
- J03:42Though passing a function as an input seems a bit overkill since all you need to do is spawn a certain entity
- A
Replying toHaven KingYou literally would have one BE type that automatically supports every single possible…
Yes yes but I ask you03:54Is this cleaner? - H03:54Because you're not registering a different number of blocks based on which mods are loaded.
- A
Replying toHaven KingBecause you're not registering a different number of blocks based on which mods are…
What?03:55Sorry how did you get to that conclusion, exactly? - H
- A
- H
- A03:56If someone wants to do that then they can just register a new block
- H
- A
- H
- C03:57lol
- A
- C
- A03:58You are still making something dynamic that just does not need to be03:58If you just make it a block with a function to handle it then that is a static thing, it is initialized and it is done, all blocks call the one function, it is simple03:58It is also versatile as if you want to do a similar effect with lets say spiders then you can use the same block
- H
- A
- H
- A
- A
- A
Replying toArchanumI think since only one of the available types of swets is gonna be spawned this way…
Golden ones are the only ones currently planned, however something I have noted already is that such a block could be reused in various scenarios04:02Eg: spiders bursting out of a sack when broken04:02However, that does not necessitate a BE04:02A block entity ought not to be a default thing, it is not the first thing one should think of04:03It is a tool to be used when something is not reasonably and or cleanly achievable through a plain block.04:03In this case, this can absolutely be done elegantly simply via blocks.04:03Thus, no need to overcomplicate things - C
- J04:20It's how the block should know what to spawn04:20Because ideally, this one type of block should be able to spawn any kind of swet specified04:21With the blockstates method, it's really easy to change the way the block looks for different swet types, but it also restricts the block quite a bit04:22With the BlockEntity method, it's perhaps overcomplicated(edited)04:23With the pass-in-a-function-as-a-parameter method, it's perhaps a bit clunky
- J
- A
- J
- A
- J
- A
- J
- J
Replying toAzzyypaarasThat also, as aforementioned, makes it easy to then reuse this for non-swet entities…
Both methods would allow for any entity type(edited) - AYes, but one is more conductive to changing the whole texture rather than just the color
07:13Even the model can be changed, for that matter - J
- A07:14Why would a golden swet stick to a tree in the same way a purple one hangs from the wall of a dungeon?
- J
- J
- A
- J
- A
- J07:17Gah
- A07:17Perhaps you ought to rest and continue work later
- J07:17yeah I'll rest for now
- A
- J07:19Hey have a nice night
- A
- W
Help & About
World Time v1.3.3 Serving 5951 communities across 389 time zones.- Commands
tz.help- This message.tz.list- Displays current times for all recently active known users.tz.list [user]- Displays the current time for the given user.tz.set [zone]- Registers or updates your zone with the bot.tz.remove- Removes your name from this bot.- Admin commands
tz.setFor [user] [zone]- Sets the time zone for another user.tz.removeFor [user]- Removes another user's information.- Zones
- This bot accepts zone names from the IANA Time Zone Database (a.k.a. Olson Database). A useful tool to determine yours can be found at: https://kevinnovak.github.io/Time-Zone-Picker/
- A
- W● 30-Jun 23:19 AKDT (UTC-0800): fishy#0165 ● 01-Jul 00:19 PDT (UTC-0700): Jack Papel#8773, Haven King#2790 ● 01-Jul 02:19 CDT (UTC-0500): varinyc#5066, Azzy (azazelthedemonlord#2563), CDAGaming#3162, 24Chrome#1098 ● 01-Jul 03:19 EDT (UTC-0400): nailuj29#4242 ● 01-Jul 04:19 -03 (UTC-0300): Moises#4148 ● 01-Jul 09:19 CEST (UTC+0200): kalucky0#9373
- A07:19gn it is then
- J07:20Alright gn
- A
- C