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
  • Q - Minecraft 1.7.10 forge on right click it with a item Removes a block and rep
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 0
thilinkalin

Q - Minecraft 1.7.10 forge on right click it with a item Removes a block and rep

By thilinkalin, July 3, 2015 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

thilinkalin    0

thilinkalin

thilinkalin    0

  • Tree Puncher
  • thilinkalin
  • Members
  • 0
  • 7 posts
Posted July 3, 2015

I'm kind of new to all this Minecraft modding :) I'm trying to make this mod where you make a portal with runes.

 

Let's say you have this block called Demon Brick and you hold and rune in your hand :) and you want to "put" this rune on a block and it removes the old block and put a new block down with new texture where the rune is on :)

 

How do i do this so far? I got 4 different runes and if put together in the right order/ways the portal will open/ be activated.

 

What I've got so far is 5 different classes with the blocks and different textures and the DemonBrick itself, 4 different items (Runes) with class and texture and a class with the portal recipe.

 

Here's a picture with the portal so you know what im talking about:

28uo3me.png

 

hope some one can tell me what to do :)

  • Quote

Share this post


Link to post
Share on other sites

deadrecon98    16

deadrecon98

deadrecon98    16

  • Diamond Finder
  • deadrecon98
  • Forge Modder
  • 16
  • 316 posts
Posted July 3, 2015

I don't think anyone here will help you unless you actually try first. You haven't given us any code or issues that you are having other than you want us to walk you through this. There are plenty of tutorials out there for dimensions and block manipulation.

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    7589

diesieben07

diesieben07    7589

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7589
  • 54964 posts
Posted July 4, 2015

You could use metadata for this (e.g. metadata 0 means no rune, metadata 1 means has a rune). Then in either onItemUse or onBlockActivated (doesn't really matter which one you use) you check if things match up (metadata 0 and player is holding a rune and right-clicking your block). If so, you set the metadata to 1.

  • Quote

Share this post


Link to post
Share on other sites

thilinkalin    0

thilinkalin

thilinkalin    0

  • Tree Puncher
  • thilinkalin
  • Members
  • 0
  • 7 posts
Posted July 4, 2015

Aah Okey :) thanks :) now i get it

Dont really know Way i dont think of it before :) thanks

  • Quote

Share this post


Link to post
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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • diesieben07
      Forge is a "blank file" after installing

      By diesieben07 · Posted 1 minute ago

      After running JarFix, simply double click. But yes, that is the installer.
    • Gina5064
      Forge is a "blank file" after installing

      By Gina5064 · Posted 2 minutes ago

      Is there where I'm supposed to be? Lol. I right-clicked and hit "Open with Java" and it brought me here. I tried just double clicking on the installer as well as reinstalling it and neither of those worked which is why I manually opened with Java   https://imgur.com/a/zJKaZPM
    • diesieben07
      Forge is a "blank file" after installing

      By diesieben07 · Posted 6 minutes ago

      Some zip managers like to take control of the .jar file extension away from Java. Make sure you have Java installed and try running Jarfix once, then try the installer again.
    • Gina5064
      Forge is a "blank file" after installing

      By Gina5064 · Posted 7 minutes ago

      I do, but it's the newest version. Should I try an older one?
    • diesieben07
      Forge is a "blank file" after installing

      By diesieben07 · Posted 8 minutes ago

      Make sure you have Java installed.
  • Topics

    • Gina5064
      5
      Forge is a "blank file" after installing

      By Gina5064
      Started 16 minutes ago

    • Klarks
      25
      [1.16.4] How i can open a container by clicking on my mob

      By Klarks
      Started Saturday at 09:56 PM

    • XenoPyax
      6
      [1.16.4] Replace vanilla block texture

      By XenoPyax
      Started 3 hours ago

    • basicsid
      0
      [1.16.4] Looking to add trades to villagers/wandering traders

      By basicsid
      Started 1 hour ago

    • LK1905
      24
      [1.16.4] How do I correctly sync capability data between Client and server?

      By LK1905
      Started December 31, 2020

  • Who's Online (See full list)

    • Peyang
    • Gina5064
    • diesieben07
    • Veo
    • Heinzchen
    • basicsid
    • krystianwiechec
    • Choonster
    • JoppeGames3
    • Frederik2000
    • qwepo
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Q - Minecraft 1.7.10 forge on right click it with a item Removes a block and rep
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community