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

    • Av3ng3r5
      Getting The EntityPlayer List

      By Av3ng3r5 · Posted just now

      World world = mc.world; List<Entity> entities = world.loadedEntityList; public void onTick(TickEvent.PlayerTickEvent e) { int i = 0; if (i < entities.size(); i++) { if (entities.get(i) instanceof EntityPlayer) { EntityPlayer targets = (EntityPlayer) entities.get(i); } } } Hi I am pretty new to mod development and am having some issues getting the (EntityList) of the players and i am getting errors in the following code i'm not sure about that i'm not sure about and if someone could help me out i would really appreciate it. Thanks.  
    • Peyang
      [1.15.2] Display text in the upper right

      By Peyang · Posted 7 minutes ago

      (Please forgive me for using a translator. I wanted to show strings on the display and created a project in 1.15.2. I ported from the code that worked in 1.8.9, but apparently it doesn't work in 1.15.2. In the code of 1.8.9 I used Minecraft.getInstance().fontRenderer.drawStringWithShadow() from RenderGameOverlayEvent.Pre. Since there was the same method in 1.15.2, I wrote it as it is, but it seems that it does not work. I also tried, but it didn't work. I also tried RenderGameOverlayEvent.Post and so on. Can anyone please teach me how to display the character string in the upper left corner of the screen?  
    • Firstzcz
      Minecraft modpack when loading world and it crash in 1.16.4

      By Firstzcz · Posted 7 minutes ago

      I play modpack so when i try to connect to my world normally but it crash after finish loading world data
    • Gina5064
      Forge is a "blank file" after installing

      By Gina5064 · Posted 29 minutes ago

      Thank you for the help!
    • diesieben07
      Forge is a "blank file" after installing

      By diesieben07 · Posted 31 minutes ago

      After running JarFix, simply double click. But yes, that is the installer.
  • Topics

    • Av3ng3r5
      0
      Getting The EntityPlayer List

      By Av3ng3r5
      Started Just now

    • Peyang
      0
      [1.15.2] Display text in the upper right

      By Peyang
      Started 7 minutes ago

    • Firstzcz
      0
      Minecraft modpack when loading world and it crash in 1.16.4

      By Firstzcz
      Started 7 minutes ago

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

      By Gina5064
      Started 46 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

  • Who's Online (See full list)

    • Peyang
    • Av3ng3r5
    • diesieben07
    • Danebi
    • Firstzcz
    • Godis_apan
    • S-Spirit
    • _HungTeen_
  • 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