Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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

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

  • Author
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

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.