Jump to content

Recommended Posts

Posted (edited)

I would like to have a tile entity that renders it's items in-world on top of itself.

 

Can I get some pointers as to where to look for examples of that sort of thing?

Also, just a few more questions:

1. Is it possible to just use a TER for the items and have the block itself just be a baked model?

2. Do I need to use a container for the tile entity if I'm not going to add a GUI for it?

Edited by Awsome
Posted (edited)

Look here to see different examples of tile entity renderers: https://github.com/TheGreyGhost/MinecraftByExample/tree/1-15-2-working/src/main/java/minecraftbyexample/mbe21_tileentityrenderer

Here is an outdated (1.12) example that does what you want to do, so maybe you can get inspiration from: https://wiki.mcjty.eu/modding/index.php?title=Render_Block_TESR_/_OBJ-1.12

To answer your questions:

1 - Yes, the examples i linked do that (though the second example loads an OBJ model)

2 - If you want to just display an item on top of your block, i think you just need to store an ItemStack in your tile entity...it really depends on how you want to interact with the block (for example right click on the block puts/takes the item) or if it needs more complicate behaviour

Edited by Beethoven92

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

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • This is the Forge forums, Neo is not supported here
    • So after a long break of minecraft I've decided to play but i got this crash when i would start up a world "The game crashed: exception in server tick loopError: net.minecraft.ResourceLocationException: Non [a-z0-9/._-] character in path of location: minecraft:gui/custom/curios/talent_slot - Copie" i moved all texture packs in case that was causing it but it wasn't that   https://pastebin.com/wjKtdMbU
    • 🔻 SERVER IP: 90.146.113.53 Watch the Server-Trailer now!     ArenaSMP is a brand new minecraft survival server combining the vanilla survival experience with the following exciting enhancements: In the PVE Arena, combat skeletons whom will when defeated by the player reward them with money which can be spent to purchase ranks with cool permissions such as disguising as a mob, setting multiple homes, accessing the enderchest by command and many more! To enhance your gameplay there are few tough named skeletons with a minor percent chance to drop highly enchanted tools when defeated! But that isn't all, theres a whole world dedicated to bring you the most exciting minecraft experience you've ever had. The treasurehunt world, a place made of massive scary abandoned mineshafts and underground ruins, is populated by very though skeletons and zombies guarding the most powerful treasures including armor and weapons with unique enchantments that will change the way you progress in survival forever! Some secret places hiding the most powerful treasures are difficult to find, only those who look behind every path and corner where nobody else would look might get the chance becomming an undefeatable GOD. The Enderdragon is yet alive, will you be the one to hunt it down first? Will you become the next GOD in arenasmp? Join now! As a bonus, the first 5 players joining will instantly recive a free rankup! What does ArenaSMP offer exactly? • Vanilla like Survival experience, Nether and End World • Hub with portals to various locations • PVE Arena • Treasurehunt World with many secrets • Powerful Hidden Gear • Ranks to be purchased with ingame-money • Landprotection for all players • Players with any minecraft version can join • Shields are disabled, we use the 1.8 combatsystem including sword blocking • Change your skin with the /skins command • Creepers don't destroy blocks and Phantoms are disabled • Defeated skeletons reward the player with ingame-money • Anticheat enabled • Survival World will never reset • Automatic Daily Server Backups Watch the Server-Trailer now! https://www.youtube.com/watch?v=xl5GfTizasI 🔻 SERVER IP: 90.146.113.53
    • I'm simply trying to start up a forever world with mods, but I don't understand what this crash report means. Can I get someone to diagnose the problem? https://pastebin.com/yRsq3C2A
  • Topics

×
×
  • Create New...

Important Information

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