Writable blocks (Signs)

Started by Ale1025 on

Topic category: Help with modding (Java Edition)

Last seen on 11:40, 5. Mar 2022
Joined May 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Writable blocks (Signs)

Is there anyway to make a block writable like the sign? I know the sign is a TileEntity, but i was wondering if there was anyway to make blocks (Or entities with no AI acting as blocks) writable such us signs. Thanks in advance.

Last seen on 16:23, 18. Mar 2024
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think with making they…
Thu, 03/26/2020 - 12:06

I think with making they have GUI that has text input. But im not sure can it be made saving the text, so then it will be like sign.

Last seen on 13:20, 30. Apr 2022
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can, if you make a…
Thu, 03/26/2020 - 13:24

You can, if you make a variable and by clicking a button in the gui it give the variable the value of the text input but idk if you can display it on the block side

 

Last seen on 20:31, 18. Mar 2024
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to display a text on a…
Tue, 10/27/2020 - 15:08

How to display a text on a block's side?

Last seen on 19:46, 3. Mar 2024
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you don't need your block…
Wed, 10/28/2020 - 08:20

If you don't need your block to store items, NBT or energy/fluid, you can try this steps:

  1. Enable tile entity of your block and do not change any other inventory settings;
  2. Make the block open a GUI with text label and "Ready" button;
  3. Create a procedure for that button that contains Set text variable textVar to: text inside textfield procedure block and custom code snippet - the code for it is:
    world.getTileEntity(new BlockPos((int)x, (int)y, (int)z)).setText(2, new StringTextComponent(textVar));
  4. Lock code of your block, remove CustomTileEntity class, replace all occurrences of CustomTileEntity with SignTileEntity, reformat and save code.
Last seen on 20:13, 19. Dec 2022
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i confused on step 4...
Fri, 05/27/2022 - 20:33

i confused on step 4...

Last seen on 19:29, 14. Jan 2024
Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
WHY IS EVERYTHING GUIS??  
Sun, 01/07/2024 - 15:26

WHY IS EVERYTHING GUIS??