Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • How to make a 3x3 tile entity?
The update for 1.13 is being worked on - please be patient. (Updated 02/19/19)
1.13 Update Notes for Mod Creators
Sign in to follow this  
Followers 1
Jummit

How to make a 3x3 tile entity?

Started by Jummit, February 10

7 posts in this topic

Jummit    0

Jummit

Jummit    0

  • Tree Puncher
  • Jummit
  • Members
  • 0
  • 4 posts
  • Report post
Posted February 10

How would I go about making a 3x3 block that you can place and break like a normal one? I looked into tile entities and got one to work, but how can I make it occupy nine blocks? I also looked at how the bed does it, and it looks like what I need, but that are only two parts. Mine has way more.

Share this post


Link to post
Share on other sites

Draco18s    1928

Draco18s

Draco18s    1928

  • Reality Controller
  • Draco18s
  • Members
  • 1928
  • 12868 posts
  • Report post
Posted February 10
20 minutes ago, Jummit said:

I also looked at how the bed does it, and it looks like what I need, but that are only two parts. Mine has way more.

Then you need way more.

There is no way around this, you MUST place a block in each of the 27 occupied places otherwise all kinds of things get screwed up, like players falling on it or mobs trying to pathfind over it.

Share this post


Link to post
Share on other sites

Jummit    0

Jummit

Jummit    0

  • Tree Puncher
  • Jummit
  • Members
  • 0
  • 4 posts
  • Report post
Posted February 10
2 minutes ago, Draco18s said:

Then you need way more.

There is no way around this, you MUST place a block in each of the 27 occupied places otherwise all kinds of things get screwed up, like players falling on it or mobs trying to pathfind over it.

Could I make a block that if placed creates a 3x3 block around itself, and if broken deconstructs it again?

Share this post


Link to post
Share on other sites

Draco18s    1928

Draco18s

Draco18s    1928

  • Reality Controller
  • Draco18s
  • Members
  • 1928
  • 12868 posts
  • Report post
Posted February 10

Sure can.

 

Of course, that central block is probably not the one that you want to initiate things, as the player can't place a block in mid-air. But you can treat it as the "central core" if you will, that if any block breaks, it knows where the core is, tells the core to break, and if the core breaks, it can tell every block around it to break.

Share this post


Link to post
Share on other sites

Jummit    0

Jummit

Jummit    0

  • Tree Puncher
  • Jummit
  • Members
  • 0
  • 4 posts
  • Report post
Posted February 10

Should I use tile entities for that? Or are normal block sufficient, for the non-core blocks at least?

Share this post


Link to post
Share on other sites

Jummit    0

Jummit

Jummit    0

  • Tree Puncher
  • Jummit
  • Members
  • 0
  • 4 posts
  • Report post
Posted February 10

That worked pretty good!

Here is a terrible choppy video of it working.

Share this post


Link to post
Share on other sites

Cadiboo    145

Cadiboo

Cadiboo    145

  • World Shaper
  • Cadiboo
  • Members
  • 145
  • 2119 posts
  • Report post
Posted February 11

Can you post your code for future people? This concept is often badly implemented

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
Followers 1
Go To Topic Listing Modder Support

  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • BeardlessBrady
      [1.12] Making a TESR less laggy

      By BeardlessBrady · Posted 4 minutes ago

      I suppose Ill have to move it down to just 25. Unfortunately when using the FastTESR I put the same code in the render method from above in the fastTESR's 'renderTileEntityFast' and it crashes. Any idea why?
    • Cadiboo
      [1.13.pre] Setting up workspace for eclipse (Solved)

      By Cadiboo · Posted 4 minutes ago

      The root directory is the . folder. So the one above /src
    • HeberonYT
      Version Manifest - Forge

      By HeberonYT · Posted 17 minutes ago

      But I'm already supporting Patreon, I also do not download direct from the server, the ".json" files are only used to show a list of the versions available to install in our small hosting, but the installation is done manually on a computer and then we put the user in his host Multicraft, I do not see how this affects the developer.
    • Josherang
      Smelting Recipes question

      By Josherang · Posted 27 minutes ago

      In 1.12.2 i'd use GameRegistry.addSmelting to add a smelting recipe for items in my mod, but in 1.13.2 I guess .addSmelting was removed, so my question is how do you add smelting recipes to your custom mod now ?
    • uncletwister
      dispenser with empty bucket does not suck up water block in front of it

      By uncletwister · Posted 28 minutes ago

      dispenser with empty bucket does not suck up water block in front of it. I have no mods installed yet. does anyone have this issue as well? 
  • Topics

    • BeardlessBrady
      4
      [1.12] Making a TESR less laggy

      By BeardlessBrady
      Started 8 hours ago

    • BatHeart
      3
      [1.13.pre] Setting up workspace for eclipse (Solved)

      By BatHeart
      Started January 29

    • HeberonYT
      2
      Version Manifest - Forge

      By HeberonYT
      Started 22 hours ago

    • Josherang
      0
      Smelting Recipes question

      By Josherang
      Started 27 minutes ago

    • uncletwister
      0
      dispenser with empty bucket does not suck up water block in front of it

      By uncletwister
      Started 29 minutes ago

  • Who's Online (See full list)

    • Cadiboo
    • BeardlessBrady
    • RedBullSlurpie
    • Sana36
    • ruth
    • Whit2k
    • HeberonYT
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • How to make a 3x3 tile entity?
  • Theme
  • Contact Us

Copyright © 2017 ForgeDevelopment LLC Powered by Invision Community