PenguinMod / PenguinMod-Blocks

PenguinMod Blocks
https://penguinmod.github.io/
GNU General Public License v3.0
3 stars 25 forks source link

inline block missing functionality #14

Closed ghost closed 3 months ago

ghost commented 5 months ago

The inline block is a block that you can put instead of a function that returns a number, however stacking multiple inline blocks at a time lead to some bugs.

You can very easily drag out an inline block and put it in your code, then put another inline block INSIDE of the return block on the previous inline block, and this works very well, however when you duplicate it and try to stack BOTH of them AT THE SAME TIME, it doesn't work. You have to do it one at a time.

While this would be very useless in a normal coding scenario, it's fun for people who just like to mess around :D

RedMan13 commented 5 months ago

oh yeah, i think this is the same issue that makes it such a pain to construct switch case statements sometimes

JeremyGamer13 commented 5 months ago

does this work if you drag the center of the inline block? not sure if im understanding fully image

RedMan13 commented 5 months ago

@JeremyGamer13 if im understanding him correctly its the same/similar issue with the case block not wanting to insert if they dont have the c-clamp filled in and being really buggy about wrapping around blocks

ghost commented 5 months ago

block_5_15_2024-3_52_11 PM

to make something like this, you have to drag it one at a time because if you duplicate the whole thing and drag it in to the return, it wont work, although i don't see how fixing this would be helpful for making an actual game :p

ghost commented 5 months ago

image

it wont let me drag it in

RedMan13 commented 5 months ago

if you could include your hardware specs cause i just did it and it works :bleh

RedMan13 commented 5 months ago

nvm im doing ti differently

RedMan13 commented 5 months ago

you have to drag the block to center on the input

RedMan13 commented 5 months ago

leik thias Screen recording 2024-05-15 1.57.46 PM.webm

RedMan13 commented 5 months ago

and to be clear this is a function of dragging a block into an input and has nothing to do with it being an inline block its just easier to do with inline blocks since they have content stacked vertically rather then horrizontally

example of this being the case on more normal blocks Screen recording 2024-05-15 2.02.29 PM.webm

ghost commented 5 months ago

OOOOHHHHH

i guess i only tested the inline block lol

image thx