Jump to content

How to give a player a block (item)


Recommended Posts

I'm currently trying to learn how to make mods in forge and i have been following "Tutorials by kaupenjoe" on youtube. In the tutorial he makes a block called speedyblock. I removed the speed that the block gives, and instead wanted to make a sort of minigame where the only block that's allowed to stand on is the speedy block. I want to give the player a single speedyblock every 5 seconds. I have the event and logic all set up, i just don't know how to actually give the player the item. I tried using the players "addItem" function with a "new Itemstack(new blockItem(ModBlocks.SPEEDY_BLOCK, new Item.Properties))", however that only gave the player two items with the "missing texture" texture. Does anyone know how to do this?

Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

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.

  • Create New...

Important Information

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