How to make items glow?

Started by Adi_MC on Mon, 03/16/2020 - 12:18

Topic category: Help with modding (Java Edition)

Last seen on 12:09, 15. Aug 2020
Joined Oct 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to make items glow?
Mon, 03/16/2020 - 12:18

Like, glow in the dark, not the enchant glint. I want to make a sword, which I already have a model for, that it's blade is glowing. Similar to glowing mushrooms from the Random Things mod (not a mcreator mod)

Last seen on 05:27, 24. Jun 2020
Joined Dec 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How did U make the glowing…
Thu, 04/23/2020 - 15:48

How did U make the glowing blade?

 

Last seen on 17:42, 30. Oct 2020
Joined May 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
optifine?
Thu, 04/23/2020 - 16:16

optifine?

Last seen on 01:27, 5. Sep 2020
Joined Apr 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
This is what I'm thinking:…
Thu, 04/23/2020 - 19:48

This is what I'm thinking:

Create an invisible block that emits light, and set the min x y z and max x y z of the block to zero so that the player cannot mine the invisible block. The block material would be air, and the rest would be up to you.

After that, you would create a procedure that is added onto that block. The event that runs the procedure should be "On Update tick" for the block. The procedure would remove the block in order to prevent unnecessary block placements.

Now, the final step...

Add another procedure that would be for your sword that would place the invisible glowing block at the player position if there's air at the player's location. Edit your item by adding that procedure to the event called "When tool/item in hand tick".

If I'm correct, while the item is in the player's hand, it should emit light. I hope I was of assistance!

;)

Last seen on 17:42, 30. Oct 2020
Joined May 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
 Thank you GBG, however, I…
Tue, 04/28/2020 - 19:54

 Thank you GBG, however, I don't think that works in any occasions

1 this method would cause the existing blocks in the world to be easily be overwritten (become that light block) because of location inaccuracies.

2 placing a block every tick and removing the previous block every tick is not good for movements, whether swimming, walking, sneaking, jumping, sprinting, or crawling as the block placement axis depending on the player axis is usually inexact.

3 The lights are emitted and removed constantly so it will look wrong.

4 If you are underwater, then I think it would be a disaster cuz block placements remove water and fluid blocks.

It's deprecated and causes many more problems.

Last seen on 20:05, 30. Oct 2020
Joined Sep 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
isnt the vanilla torch a…
Fri, 07/17/2020 - 07:03

isnt the vanilla torch a glow item now?