Jump to content

[1.16.1] Override Beacon/ Beacon TitleEntity


Luis_ST

Recommended Posts

I want to Override the Beacon beacause I think the Beacon range is tho short. So I creat a new Block (Beacon) and register this block with the same name as minecraft the beacon.

https://github.com/Luis-st/XOres-1.16.1-6.4/blob/master/forge-1.16.1 Only Ores/src/main/java/net/luis/cave/blocks/vanilla/Beacon.java

(also a BlockItem with the same name as minecraft the beacon)

 

Then i creat a new TitelEntity (CaveBeaconTitleEntity) wich extends the Minecraft BeaconTitelEntity.

https://github.com/Luis-st/XOres-1.16.1-6.4/blob/master/forge-1.16.1 Only Ores/src/main/java/net/luis/cave/tileentity/CaveBeaconTileEntity.java

 

But now:

1. My Item has no Textures and no Model

2. I can look through the Block

3. when I right click the Block the GUI of the Becon will open nut i cant select a Effect

Link to comment
Share on other sites

I don't have time to read through all your code but:

1) When you are having no-texture found issues it means that something in your jsons or textures files is not in the place where the game expects it to be, or the files are not correctly written. The game tells you where it tried to find the missing file in the logs.

2) Look at the properties of the vanilla  beacon block. If you are replicating the vanilla block you most likely want to copy its properties (also remember to assign it to the correct render layer in your client setup)

3) Vanilla containers do a check to see wheter the player is in proximity in order to be able to open the container. That check i hardcoded for the vanilla block, in that case Blocks.BEACON. You would need to create a custom container extending the beacon container and override the method that does the proximity check to accept your custom beacon block

Check out the port of the BetterEnd fabric mod (WIP): https://www.curseforge.com/minecraft/mc-mods/betterend-forge-port

Link to comment
Share on other sites

16 hours ago, Beethoven92 said:

1) When you are having no-texture found issues it means that something in your jsons or textures files is not in the place where the game expects it to be, or the files are not correctly written. The game tells you where it tried to find the missing file in the logs.

2) Look at the properties of the vanilla  beacon block. If you are replicating the vanilla block you most likely want to copy its properties (also remember to assign it to the correct render layer in your client setup)

I fixed it

 

16 hours ago, Beethoven92 said:

3) Vanilla containers do a check to see wheter the player is in proximity in order to be able to open the container. That check i hardcoded for the vanilla block, in that case Blocks.BEACON. You would need to create a custom container extending the beacon container and override the method that does the proximity check to accept your custom beacon block

when i right clickt the block the container will open and i can put a item in the slot and the "Cancel" Button work but I can't choose an effect

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.