Jump to content

How can I spawn an arena of walls around the portal and change item ingredients?


Recommended Posts

1. I want an indestructible arena made of moonrock-walls around the portal on my dedi server when world generates, with 2 entries. How can I do this?
2. How can I change the ingredients of an existing item? I tried this:

_G = GLOBAL
Ingredient = _G.Ingredient

if book_sleep then
                book_sleep.ingredients = {Ingredient("papyrus", 4), Ingredient("nightmarefuel", 4), Ingredient("goldnugget", 2)}
        end

or with the table_insert command:

table.insert(_G.AllRecipes.book_sleep.ingredients, Ingredient("goldnugget", 2))
                end

Thank you very much for your help!

Link to comment
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
 Share

×
  • Create New...