Writable blocks (Signs)

Started by Ale1025 on

Topic category: Help with Minecraft modding (Java Edition)

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.

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.

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

 

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?

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.
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...

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??